How computers are learning to be creative | Blaise Agüera y Arcas


So, I lead a team at Google
that works on machine intelligence; in other words, the engineering discipline
of making computers and devices able to do some of the things
that brains do. And this makes us
interested in real brains and neuroscience as well, and especially interested
in the things that our brains do that are still far superior
to the performance of computers. Historically, one of those areas
has been perception, the process by which things
out there in the world — sounds and images — can turn into concepts in the mind. This is essential for our own brains, and it’s also pretty useful on a computer. The machine perception algorithms,
for example, that our team makes, are what enable your pictures
on Google Photos to become searchable, based on what’s in them. The flip side of perception is creativity: turning a concept into something
out there into the world. So over the past year,
our work on machine perception has also unexpectedly connected
with the world of machine creativity and machine art. I think Michelangelo
had a penetrating insight into to this dual relationship
between perception and creativity. This is a famous quote of his: “Every block of stone
has a statue inside of it, and the job of the sculptor
is to discover it.” So I think that what
Michelangelo was getting at is that we create by perceiving, and that perception itself
is an act of imagination and is the stuff of creativity. The organ that does all the thinking
and perceiving and imagining, of course, is the brain. And I’d like to begin
with a brief bit of history about what we know about brains. Because unlike, say,
the heart or the intestines, you really can’t say very much
about a brain by just looking at it, at least with the naked eye. The early anatomists who looked at brains gave the superficial structures
of this thing all kinds of fanciful names, like hippocampus, meaning “little shrimp.” But of course that sort of thing
doesn’t tell us very much about what’s actually going on inside. The first person who, I think, really
developed some kind of insight into what was going on in the brain was the great Spanish neuroanatomist,
Santiago Ramón y Cajal, in the 19th century, who used microscopy and special stains that could selectively fill in
or render in very high contrast the individual cells in the brain, in order to start to understand
their morphologies. And these are the kinds of drawings
that he made of neurons in the 19th century. This is from a bird brain. And you see this incredible variety
of different sorts of cells, even the cellular theory itself
was quite new at this point. And these structures, these cells that have these arborizations, these branches that can go
very, very long distances — this was very novel at the time. They’re reminiscent, of course, of wires. That might have been obvious
to some people in the 19th century; the revolutions of wiring and electricity
were just getting underway. But in many ways, these microanatomical drawings
of Ramón y Cajal’s, like this one, they’re still in some ways unsurpassed. We’re still more than a century later, trying to finish the job
that Ramón y Cajal started. These are raw data from our collaborators at the Max Planck Institute
of Neuroscience. And what our collaborators have done is to image little pieces of brain tissue. The entire sample here
is about one cubic millimeter in size, and I’m showing you a very,
very small piece of it here. That bar on the left is about one micron. The structures you see are mitochondria that are the size of bacteria. And these are consecutive slices through this very, very
tiny block of tissue. Just for comparison’s sake, the diameter of an average strand
of hair is about 100 microns. So we’re looking at something
much, much smaller than a single strand of hair. And from these kinds of serial
electron microscopy slices, one can start to make reconstructions
in 3D of neurons that look like these. So these are sort of in the same
style as Ramón y Cajal. Only a few neurons lit up, because otherwise we wouldn’t
be able to see anything here. It would be so crowded, so full of structure, of wiring all connecting
one neuron to another. So Ramón y Cajal was a little bit
ahead of his time, and progress on understanding the brain proceeded slowly
over the next few decades. But we knew that neurons used electricity, and by World War II, our technology
was advanced enough to start doing real electrical
experiments on live neurons to better understand how they worked. This was the very same time
when computers were being invented, very much based on the idea
of modeling the brain — of “intelligent machinery,”
as Alan Turing called it, one of the fathers of computer science. Warren McCulloch and Walter Pitts
looked at Ramón y Cajal’s drawing of visual cortex, which I’m showing here. This is the cortex that processes
imagery that comes from the eye. And for them, this looked
like a circuit diagram. So there are a lot of details
in McCulloch and Pitts’s circuit diagram that are not quite right. But this basic idea that visual cortex works like a series
of computational elements that pass information
one to the next in a cascade, is essentially correct. Let’s talk for a moment about what a model for processing
visual information would need to do. The basic task of perception is to take an image like this one and say, “That’s a bird,” which is a very simple thing
for us to do with our brains. But you should all understand
that for a computer, this was pretty much impossible
just a few years ago. The classical computing paradigm is not one in which
this task is easy to do. So what’s going on between the pixels, between the image of the bird
and the word “bird,” is essentially a set of neurons
connected to each other in a neural network, as I’m diagramming here. This neural network could be biological,
inside our visual cortices, or, nowadays, we start
to have the capability to model such neural networks
on the computer. And I’ll show you what
that actually looks like. So the pixels you can think
about as a first layer of neurons, and that’s, in fact,
how it works in the eye — that’s the neurons in the retina. And those feed forward into one layer after another layer,
after another layer of neurons, all connected by synapses
of different weights. The behavior of this network is characterized by the strengths
of all of those synapses. Those characterize the computational
properties of this network. And at the end of the day, you have a neuron
or a small group of neurons that light up, saying, “bird.” Now I’m going to represent
those three things — the input pixels and the synapses
in the neural network, and bird, the output — by three variables: x, w and y. There are maybe a million or so x’s — a million pixels in that image. There are billions or trillions of w’s, which represent the weights of all
these synapses in the neural network. And there’s a very small number of y’s, of outputs that that network has. “Bird” is only four letters, right? So let’s pretend that this
is just a simple formula, x “x” w=y. I’m putting the times in scare quotes because what’s really
going on there, of course, is a very complicated series
of mathematical operations. That’s one equation. There are three variables. And we all know
that if you have one equation, you can solve one variable
by knowing the other two things. So the problem of inference, that is, figuring out
that the picture of a bird is a bird, is this one: it’s where y is the unknown
and w and x are known. You know the neural network,
you know the pixels. As you can see, that’s actually
a relatively straightforward problem. You multiply two times three
and you’re done. I’ll show you an artificial neural network that we’ve built recently,
doing exactly that. This is running in real time
on a mobile phone, and that’s, of course,
amazing in its own right, that mobile phones can do so many
billions and trillions of operations per second. What you’re looking at is a phone looking at one after another
picture of a bird, and actually not only saying,
“Yes, it’s a bird,” but identifying the species of bird
with a network of this sort. So in that picture, the x and the w are known,
and the y is the unknown. I’m glossing over the very
difficult part, of course, which is how on earth
do we figure out the w, the brain that can do such a thing? How would we ever learn such a model? So this process of learning,
of solving for w, if we were doing this
with the simple equation in which we think about these as numbers, we know exactly how to do that: 6=2 x w, well, we divide by two and we’re done. The problem is with this operator. So, division — we’ve used division because
it’s the inverse to multiplication, but as I’ve just said, the multiplication is a bit of a lie here. This is a very, very complicated,
very non-linear operation; it has no inverse. So we have to figure out a way
to solve the equation without a division operator. And the way to do that
is fairly straightforward. You just say, let’s play
a little algebra trick, and move the six over
to the right-hand side of the equation. Now, we’re still using multiplication. And that zero — let’s think
about it as an error. In other words, if we’ve solved
for w the right way, then the error will be zero. And if we haven’t gotten it quite right, the error will be greater than zero. So now we can just take guesses
to minimize the error, and that’s the sort of thing
computers are very good at. So you’ve taken an initial guess: what if w=0? Well, then the error is 6. What if w=1? The error is 4. And then the computer can
sort of play Marco Polo, and drive down the error close to zero. As it does that, it’s getting
successive approximations to w. Typically, it never quite gets there,
but after about a dozen steps, we’re up to w=2.999,
which is close enough. And this is the learning process. So remember that what’s been going on here is that we’ve been taking
a lot of known x’s and known y’s and solving for the w in the middle
through an iterative process. It’s exactly the same way
that we do our own learning. We have many, many images as babies and we get told, “This is a bird;
this is not a bird.” And over time, through iteration, we solve for w, we solve
for those neural connections. So now, we’ve held
x and w fixed to solve for y; that’s everyday, fast perception. We figure out how we can solve for w, that’s learning, which is a lot harder, because we need to do error minimization, using a lot of training examples. And about a year ago,
Alex Mordvintsev, on our team, decided to experiment
with what happens if we try solving for x, given a known w and a known y. In other words, you know that it’s a bird, and you already have your neural network
that you’ve trained on birds, but what is the picture of a bird? It turns out that by using exactly
the same error-minimization procedure, one can do that with the network
trained to recognize birds, and the result turns out to be … a picture of birds. So this is a picture of birds
generated entirely by a neural network that was trained to recognize birds, just by solving for x
rather than solving for y, and doing that iteratively. Here’s another fun example. This was a work made
by Mike Tyka in our group, which he calls “Animal Parade.” It reminds me a little bit
of William Kentridge’s artworks, in which he makes sketches, rubs them out, makes sketches, rubs them out, and creates a movie this way. In this case, what Mike is doing is varying y
over the space of different animals, in a network designed
to recognize and distinguish different animals from each other. And you get this strange, Escher-like
morph from one animal to another. Here he and Alex together
have tried reducing the y’s to a space of only two dimensions, thereby making a map
out of the space of all things recognized by this network. Doing this kind of synthesis or generation of imagery
over that entire surface, varying y over the surface,
you make a kind of map — a visual map of all the things
the network knows how to recognize. The animals are all here;
“armadillo” is right in that spot. You can do this with other kinds
of networks as well. This is a network designed
to recognize faces, to distinguish one face from another. And here, we’re putting
in a y that says, “me,” my own face parameters. And when this thing solves for x, it generates this rather crazy, kind of cubist, surreal,
psychedelic picture of me from multiple points of view at once. The reason it looks like
multiple points of view at once is because that network is designed
to get rid of the ambiguity of a face being in one pose
or another pose, being looked at with one kind of lighting,
another kind of lighting. So when you do
this sort of reconstruction, if you don’t use some sort of guide image or guide statistics, then you’ll get a sort of confusion
of different points of view, because it’s ambiguous. This is what happens if Alex uses
his own face as a guide image during that optimization process
to reconstruct my own face. So you can see it’s not perfect. There’s still quite a lot of work to do on how we optimize
that optimization process. But you start to get something
more like a coherent face, rendered using my own face as a guide. You don’t have to start
with a blank canvas or with white noise. When you’re solving for x, you can begin with an x,
that is itself already some other image. That’s what this little demonstration is. This is a network
that is designed to categorize all sorts of different objects —
man-made structures, animals … Here we’re starting
with just a picture of clouds, and as we optimize, basically, this network is figuring out
what it sees in the clouds. And the more time
you spend looking at this, the more things you also
will see in the clouds. You could also use the face network
to hallucinate into this, and you get some pretty crazy stuff. (Laughter) Or, Mike has done some other experiments in which he takes that cloud image, hallucinates, zooms, hallucinates,
zooms hallucinates, zooms. And in this way, you can get a sort of fugue state
of the network, I suppose, or a sort of free association, in which the network
is eating its own tail. So every image is now the basis for, “What do I think I see next? What do I think I see next?
What do I think I see next?” I showed this for the first time in public to a group at a lecture in Seattle
called “Higher Education” — this was right after
marijuana was legalized. (Laughter) So I’d like to finish up quickly by just noting that this technology
is not constrained. I’ve shown you purely visual examples
because they’re really fun to look at. It’s not a purely visual technology. Our artist collaborator, Ross Goodwin, has done experiments involving
a camera that takes a picture, and then a computer in his backpack
writes a poem using neural networks, based on the contents of the image. And that poetry neural network
has been trained on a large corpus of 20th-century poetry. And the poetry is, you know, I think, kind of not bad, actually. (Laughter) In closing, I think that per Michelangelo, I think he was right; perception and creativity
are very intimately connected. What we’ve just seen are neural networks that are entirely trained to discriminate, or to recognize different
things in the world, able to be run in reverse, to generate. One of the things that suggests to me is not only that
Michelangelo really did see the sculpture in the blocks of stone, but that any creature,
any being, any alien that is able to do
perceptual acts of that sort is also able to create because it’s exactly the same
machinery that’s used in both cases. Also, I think that perception
and creativity are by no means uniquely human. We start to have computer models
that can do exactly these sorts of things. And that ought to be unsurprising;
the brain is computational. And finally, computing began as an exercise
in designing intelligent machinery. It was very much modeled after the idea of how could we make machines intelligent. And we finally are starting to fulfill now some of the promises
of those early pioneers, of Turing and von Neumann and McCulloch and Pitts. And I think that computing
is not just about accounting or playing Candy Crush or something. From the beginning,
we modeled them after our minds. And they give us both the ability
to understand our own minds better and to extend them. Thank you very much. (Applause)

100 thoughts on “How computers are learning to be creative | Blaise Agüera y Arcas”

  1. Dear TED, please, for the love of good taste and not being a douche, stop taking up 1/3 of the screen at the end of every freaking video.

  2. I may be way out in left field with this one but whose to say our complex physiological make-up isn't already a form of sophisticated foreign/technology that has gained consciousness and is repeating this perpetual cycle of creation.

  3. Is minicing or modeling creativity really creative. Does the computer have awareness of what it's art is or the effect it's art may have and a person's emotions.

  4. Seeing the facial reconstruction blew my mind. Understand that it's looking for one person's face, find another that is similar and then building the first person's face from reference images that are no doubt reduced to only key features…

  5. im still unconvinced about the basic premise of what it actually means, for AI to perceive. Blaise, you correctly state the computer was modelled on our brains. The leap is to presume the brain is automatically creative. the model we use to learn is based on repition and so the AI will reflect that also. but I found the assumption that perception and creativity to be linked, very interesting.

  6. I hate the idea of art made by an AI so much. Art is for humans. Art should never be made by machines. Art is interesting because it is human. In this overly digital, physically and emotionally disconnected world, making art inhuman is the last thing we need.

  7. When we use the creative process our mental images are not as perfect as drawn pictures. Drawing realistically is yet another function that can be taught to artificial neural networks so not only will they be able to creatively generate mental images of something but also draw that "something" without it looking surreal.

  8. I'm sure Wallstreet is already feeding this thing with stock exchange data.
    Hopefully the algorithm is more sensible than the people behind the 2008 recession.

  9. He is literally welcoming the dehumanisation of creativity, from visual arts to poetry and even classical music and jazz. Can someone hand-out moral compasses in Silicon Valley, I think they need them, badly.

  10. I would like to use an app to identify birds and other animals like the one in the video here.
    Would be nice if they putt links to such things in the description.

  11. Русская адаптация, это болезнь:"Bird, is only four letters"–"Птица же состоит из 5 букв" аааааааааааааааааа
    он говорит другие слова другие буквы но если написать птица и сказать четыре буквы все подумают что мы тупые если перевести по английски полностью эти тупицы ни че не поймут если написать в субтитрах bird и перевести правильно то аааааааааааааааааааааааааааааааа зачем вы вообще такие ролики смотрите если не можете даже над адаптацией подумать это ёлы палы три варианта перебрать халтураааааааааааааааааааааааааааааааааааааааааааааааааааааааааааа

  12. Before seeing this I thought Arificial General Intelligence was still a couple decades away. After reading Jeff Hawkins book "On Intelligence" in 2005 I believed his high level view was correct. That essentially the brain is a series of pieces Cortexes, and when we can create a critical set of cortexes we will have Artificial General Intelligence. What Arcas is showing is a visual cortex on silicon. I now believe we're a decade or less away from creating an AGI.

  13. Will computers see us as God? After humans are wiped out will computers tell stories about a man in the sky who created them?

  14. Wow!
    I find it extremely interesting, that all those images created by the computer are extremely similar to what one sees under the influence of psychedelics like LSD or psilocybin! With open eyes your evironment, especially when looking at the clouds, looks just like those images. And when ones eyes are closed it looks just like the image at the end, where it gets zoomed further and further in and new images are created based on what we think we see next.
    This gives a really good understanding of how recognition works!

  15. The face recognition in noisy images is pretty much exactly what I see when I am tripping 😛

  16. For those who liked the zooming in on "hallucinated" images (solved for X), check out Deep Dream if you haven't 🙂
    It's this kind of process open sourced from google's Deep Mind

  17. Creativity is not about images or poems or architecture, it is about communication between creatures. This thing will only be "creative" if we consider it to be a living thing insofar as it is conscious,

  18. Taken to its conclusion I think this may break some of the mysteries of conscience. Are we unique, is there more to this existence or are we just extremely complicated pre-programmed responses ran on the most complicated system known to man? If it's the latter we will be talking to machines in the near future.

  19. one day we will arrive at a time were human would have no place for creating art AI would generate movies music poems etc and what's magical about art would disapear making it less beautiful making less art :/ what a depressing thing to happen

  20. I knew these things before thanks to a project and tbh this guy managed to explain it in an accessible way. Congratulations 🙂

  21. Это аху**но просто. В моем сознании произошел переворот, это уже реально не шуточный ИИ! К тому же это не так уж и сложно, сколько всего можно сделать на основе этой технологии!!

  22. This is an amazing human creativity . I always wonder understand what computers "draw" if they have a complex creative algoritm… So…this is the answer. Thank you very much. Fantastic work!

  23. 9:50 SO OPTIMIZATION IS ALSO SOLVING WITHOUT ANY TAKING ACTION ON COEFFICIENTS ARE THERE SIMULTANEOUS OPTIMIZATION LIKE SIMULTANEOUS EQUATION SOLVING CAN ANY ONE GIVE ME SOME EXAMPLES

  24. its always funny when people think creativity is kinda intutive magic out of the blue when its just rationlity with sprinkles

  25. Este vídeo mostra um a notável investigação para conhecer como a percepção funciona e do modo como a AI replica todo o processo. Mas para mim as extraordinárias imagens mostradas não podem explicar o processo criativo a que Miguel Angelo se referiu. A arte é em si como o cosmo, um mistério que também ainda não se sabe para que serve. Gostaria de poder colaborar convosco: Rodrigo Ollero – [email protected]

  26. It’s like the same art style that Pouff uses in his videos, you should go check him out, he has some pretty trippy content!

  27. If I ever attended a ted talk I would be perpetually nodding in agreement in the off chance that the camera panned to me. I would look engaged and intelligent. Hopefully people on the internet would see me and then would think I was smart enough to attend said Ted talk.

  28. We are so close to a utopian society made possible by technology. The only problem is I'm going to miss it

  29. it's amazing to me that the people (or, whoever) wrote the bible was talking about this similar thing. it's like a viewpoint from within the mind… have to not read it literally to see this though

  30. there’s literally no other simulation of psychedelic visuals that even comes remotely close with the real experience other than this technology, and it should come as no surprise since it’s functioning the same way your brain is. we’ll come to see how similar the artificial brain is to our own soon. we don’t know much about this kind of learning or psychedelics but it doesn’t take a genius to see there’s huge parallels and that this is a fucking cool time to be alive.

  31. It explains to me why we dream in the way we dream.
    Our brain regenerates the image of things that it is processing while we are sleeping.
    and sometimes it records them and sometimes it feeds itself with the result.
    Now I understand my dreams.

  32. I've created a MacOS app which generates amazing AI-wallpapers in real-time. Each wallpaper is unique to you because they can not be regenerated.

    Cool right?

    Check it out at https://apps.apple.com/us/app/mosaic-ai-wallpaper-generator/id1484036961

Leave a Reply

Your email address will not be published. Required fields are marked *