Categories
Technology

GPT 3 – How OpenAI’s latest tech is a glimpse into the Future

Elon Musk’s OpenAI has released a commercial API for their latest GPT 3 language model. This is an exciting development in the field of AI. 175 Billion Parameters, and approximately 12 million dollars just to train. As a result, this can easily be the most expensive and expansive model ever built. It can generate language, computer code, answer questions and much more. Most benchmarks give it state of the art performance. It is also scary because it can have some negative applications. Fake news and misinformation being the obvious ones. Therefore, OpenAI wants to limit access to the technology. This is because it wants to protect it from falling within wrong hands. As a result, OpenAI has launched a commercial API. It says it will use proceeds to cover costs and progress the mission of achieving Artificial General Intelligence (AGI).

Anyone who knows or has heard about ML / Artificial Intelligence should gasp at this point.

What is GPT 3 and what is the fuss about?

What is GPT 3

GPT stands for “Generative Pretrained Transformer”. GPT 3 is the latest version of OpenAI’s language models released in 2020. It is an autoregressive model with 175 billion parameters! In Machine learning parlance it is a breakthrough, well known for its few-shot and task agnostic performance. It can do translation, sentence and text completion, question and answer, 3 digit arithmetic.

I believe this is a fundamental shift in the field of AI since we are moving away, for the first time from task specific data and training.

For instance, look at the application below where a consumer of the API has been able to simply “describe” the layout of the page he wants to build and GPT 3 was able to generate a complete layout with functionality.

OpenAI has a vision to enable AGI or Artificial General Intelligence

It can generate layouts and designs just by describing

Social media has been flooded with other applications such as extremely logical and realistic chats. See one here that suggests that there is a deep connection between laws of physics, and love! I don’t think most humans could have made this up.

It can answer questions with deep context and make up believable answers

Or look at the example here where it tells Paras about the “central idea of a fairly complex book. It is eerily accurate (or not but that is not the point). The point is, that it is unbelievably realistic. Don’t forget to also look at the advise on starting a startup. Just amazing!

It is not all intelligent, not even close. We must separate the hype from reality

A lot of conventional wisdom in AI research has been that we may be at the end of extracting performance by simply scaling up the data and size of the models. GPT 3 has basically destroyed that debate.

However it is still to be discussed whether this is the go to approach, especially considering the resources such models take to build, and the resources they take to retrain, deploy and possibly maintain. Artificial intelligence has always been about modelling intelligence on our brain, which is more about top down reasoning. However, most AI and deep learning that we see today is bottoms-up and therefore takes way too much data to train. There is a new vigour in inventing systems that learn top down. However it still remains fairly elusive.

Turing test has been the golden standard for understanding whether we have truly reached human levels, GPT 3 brings it pretty close but still there is a long way to go! we must separate hype from reality

So where does GPT 3 flounder?

As mentioned above the size of the model makes it extremely hard to deploy, run, or change. It has not even been open sourced yet for obvious reasons. I came across one article that consistently and most logically stumped GPT 3 in question & answers. As long as you can ask a question that can be logical, it is pretty damn good. See below..(sourced directly from the blog)

Q: What is your favorite animal?
A: My favorite animal is a dog.

Q: Why?
A: Because dogs are loyal and friendly.

Q: What are two reasons that a dog might be in a bad mood?
A: Two reasons that a dog might be in a bad mood are if it is hungry or if it is hot.

Q: How many eyes does a giraffe have?
A: A giraffe has two eyes.

Q: How many legs does a frog have?
A: A frog has four legs.

Q: Are there any animals with three legs?
A: No, there are no animals with three legs.

Q: Why don't animals have three legs?
A: Animals don't have three legs because they would fall over.

(Sourced from the linked blog above)

However as soon as you switch to questions and answers that cannot be found on the internet, GPT 3 begins to flounder. It is not good at simple math questions either. The author of the blog (linked above) has done a great job and understanding sub-human performance of GPT 3.

Q: How many eyes does a giraffe have?
A: A giraffe has two eyes.

Q: How many eyes does my foot have?
A: Your foot has two eyes.

Q: How many eyes does a spider have?
A: A spider has eight eyes.

Q: How many eyes does the sun have?
A: The sun has one eye.

Q: How many eyes does a blade of grass have?
A: A blade of grass has one eye.

(Sourced from the linked blog above)

We have clearly come a long way since early days of language models I still remember playing with Eliza in my engineering days, and this is certainly going to make assistants even better. I can even imagine specific versions of these taking over some human tasks such as receptionists, personal assistants on administrative tasks completely…

We are not anywhere near Artificial general intelligence, but as a result of the advances made by OpenAI in GPT 3 it certainly doesn’t feel unachievable. If this is not a glimpse into the future, I don’t know what is.

Categories
Technology

3 Times Machine Learning gave me the goosebumps!

My kid loves a storybook by the name of “The Gruffalo…” A mouse walking through a jungle meets a series of predators. He escapes each and every one of them by making up stories of a non-existent creature called a “Gruffalo” and scares them away. There is a twist though – creature is for real!! The mouse manages to pretend his way and get out of the pickle – the little brat outsmarts his own creation 😅

I wonder sometimes if AI / ML is like a Gruffalo! Frankly most of the hype around it seems make-belief. The biggest disservice to the field of machine learning is actually this word called AI. It promotes fear that AI will trounce humans or will one day take over the world. We at least today seem to be far from such a dystopian scenario. Almost all science community agrees that we are far away from achieving AGI or Artifical general intelligence or what is also popularly referred to as the ‘singularity’.

Let us extend the Gruffalo metaphor a bit – while most agree about the wrongness of fear mongering on AI, we should be open to precaution. Perhaps the creature is not make belief after all! Very recently I have come across 3 things that have given me the creeps when it comes to what machine learning can become!!

1. Reinforcement learning agents learn how to use tools and form strategies without additional programming

Elon Musk’s Open AI just released a paper in which they describe a simulated training environment in which they make agents (RIL) play a game of hide and seek. The environment progressively introduces 6 strategies and counterstrategies. What they observed was incredible, they observed emergent complex tool usage. As an example, hiding agents using boxes to block doors so that they cannot be discovered by seeker agents. Seeking agents using ramps to jump over obstacles, hiders using ramps and hiding them in rooms to prevent them from being used for jumping over by seekers. If this type of “completely unprogrammed” behaviour is not intelligence then I don’t know what is! Please read a blog post by OpenAI here.

2. Google Duplex RNNs enable a natural sounding calling service for restaurant bookings etc was out of this world – borderline spooky as well.

https://youtu.be/ijwHj2HaOT0

This is the first time synthetic speech was indistinguishable from human speech. To use it, improvise it and do it at Google scale was simply an incredible feat for speech synthesis, natural language understanding and processing and apparently a factory of human agents as well 😄 jokes aside this really gave me goose bumps. Google uses RNNs for this. See conceptual architecture and the link to original Google blog here.

3. Breakthrough language model GPT 2 released recently by OpenAI achieves state of the art performance on many language processing benchmarks and performs rudimentary machine translation, comprehension and summaries

I don’t think people appreciate how much of a big deal this is. Basically you feed the model some seed and it generates many many paragraphs of coherent human like text on its own, replete with stories, meaning and full sense. If you read it you will not believe that an AI wrote it. I have previously written about how tech / social is being misused. You add this and you have a frankenstein-ish monster on your hands. This can be used to generate fake news en masse and it would be really hard to detect. It can be used to impersonate people, for identity theft and many more. On a positive side it will make bots, writing assistants translation, and knowledge systems remarkably useful and human like! For an AI that is the ultimate goal. See an example below from openAI original blog post.

SYSTEM PROMPT (HUMAN-WRITTEN)

In a shocking finding, scientist discovered a herd of unicorns living in a remote, previously unexplored valley, in the Andes Mountains. Even more surprising to the researchers was the fact that the unicorns spoke perfect English.

MODEL COMPLETION (MACHINE-WRITTEN, 10 TRIES)

The scientist named the population, after their distinctive horn, Ovid’s Unicorn. These four-horned, silver-white unicorns were previously unknown to science.

Now, after almost two centuries, the mystery of what sparked this odd phenomenon is finally solved.

Dr. Jorge Pérez, an evolutionary biologist from the University of La Paz, and several companions, were exploring the Andes Mountains when they found a small valley, with no other animals or humans. Pérez noticed that the valley had what appeared to be a natural fountain, surrounded by two peaks of rock and silver snow.

While it is impossible to list down many incredible feats achieved in this path breaking tech, I wanted to cite a few examples that gave me the goose bumps. Perhaps if you are interested you should also check out DeepFakes and MuseNet and do share in comments what did you find exciting.

I believe we are looking at building blocks of higher intelligence getting better and better, you could say we are helping machines evolve faster in their own right – but most still believe we are far away from AGI, or singularity… But are we?

Ps. This blog post was written by a human, and if you don’t believe it, ask Gruffalo 😅

Categories
Technology

Machine learning – a little closer to AI?

Before we get to Machine Learning, I want to introduce you to a story my kid loves – “The Gruffalo…”. A mouse walking through a jungle meets a series of predators. He escapes each and every one of them by making up stories of a non-existent creature called a “Gruffalo” and scares them away. There is a twist though – creature is for real!! The mouse manages to pretend his way and get out of the pickle – In summary, the little brat outsmarts his own creation 😅

I wonder sometimes if Machine Learning is like a Gruffalo!

Frankly most of the hype around it seems make-belief. The biggest disservice to the field of machine learning is the word AI. It promotes hype and fear that AI will trounce humans or will one day take over the world. We at least today seem to be far from such a dystopian scenario. Almost all science community agrees that we are far away from achieving “Artificial general intelligence”.

Let us extend the Gruffalo metaphor a bit – while most agree about the wrongness of fear mongering on AI, we should be open to precaution. Perhaps the creature is not make belief after all! Very recently I have come across 3 things that have given me the creeps when it comes to what machine learning can become!!

machine learning
Reinforcement agents learning on their own

Hide and seek intelligence!

Elon Musk’s Open AI just released a paper in which they describe a simulated training environment in which they make agents (RIL) play a game of hide and seek. The environment progressively introduces 6 strategies and counterstrategies. What they observed was incredible, they observed emergent complex tool usage. As an example, hiding agents using boxes to block doors so that they cannot be discovered by seeker agents. Seeking agents use ramps to jump over obstacles. Hiders use ramps and hide these in rooms to prevent use by seekers to jump. If this type of “completely un-programmed” behaviour is not intelligence then I don’t know what is! Please read a blog post by OpenAI here.

Google Duplex Machine Learning enable a natural sounding calling service for restaurant bookings etc was out of this world – borderline spooky as well

This is the first time synthetic speech was indistinguishable from human speech. To use it, improvise it and do it at Google scale was simply an incredible feat for speech synthesis, natural language understanding and processing and apparently a factory of human agents as well 😄 jokes aside this really gave me goose bumps. Google uses RNNs for this. See conceptual architecture and the link to original Google blog here.

Breakthrough language model GPT 2 released recently by OpenAI achieves state of the art performance on many language processing benchmarks and performs rudimentary machine translation, comprehension and summaries

I don’t think people appreciate how much of a big deal this is. Basically you feed the model some seed and it generates many many paragraphs of coherent human like text on its own, replete with stories, meaning and full sense. If you read it you will not believe that an AI wrote it. You add this and you have a frankenstein-ish monster on your hands. This can be used to generate fake news en masse. and would be hard to detect it. It can impersonate people. On a positive side it will make bots, writing assistants translation, and knowledge systems remarkably useful and human like! For an AI that is the ultimate goal. See an example below from openAI original blog post. See also a post on newer version GPT3.

Look at the dexterity of text completion. Be sure to check out my post on GPT3

While it is impossible to list down many incredible feats achieved in this path breaking tech, I wanted to cite a few examples that gave me the goose bumps. You should also check out DeepFakes and MuseNet.

I believe we are looking at building blocks of higher intelligence getting better and better, you could say we are helping machines evolve faster in their own right – but most still believe we are far away from AGI, or singularity… But are we?

Ps. This blog post was written by a human, and if you don’t believe it, ask the Gruffalo 😅