Skip to content
Lex Fridman PodcastLex Fridman Podcast

Ian Goodfellow: Generative Adversarial Networks (GANs) | Lex Fridman Podcast #19

Lex Fridman and Ian Goodfellow on ian Goodfellow on GANs, AI Limits, Security, and Future Intelligence.

Lex FridmanhostIan Goodfellowguest
Apr 18, 20191h 8mWatch on YouTube ↗

EVERY SPOKEN WORD

  1. 0:002:42

    Deep learning’s bottlenecks: data hunger, generalization, and RL sample inefficiency

    1. LF

      The following is a conversation with Ian Goodfellow. He's the author of the popular textbook on Deep Learning, simply titled Deep Learning. He coined the term of generative adversarial networks, otherwise known as GANs, and with his 2014 paper, is responsible for launching the incredible growth of research and innovation in this subfield of Deep Learning. He got his BS and MS at Stanford, his PhD at University of Montreal with Yoshua Bengio and Aaron Courville. He held several research positions, including an OpenAI, Google Brain, and now at Apple as the director of machine learning. This recording happened while Ian was still at Google Brain. But we don't talk about anything specific to Google or any other organization. This conversation is part of the Artificial Intelligence podcast. If you enjoy it, subscribe on YouTube, iTunes, or simply connect with me on Twitter @lexfridman, spelled F-R-I-D. And now, here's my conversation with Ian Goodfellow. You open your popular Deep Learning book with a Russian doll type diagram that shows Deep Learning is a subset of representation learning, which in turn is a subset of machine learning, and finally a subset of AI. So this kind of implies that there may be limits to Deep Learning in the context of AI. So what do you think is the current limits of Deep Learning, and, uh, are those limits something that we can overcome with time?

    2. IG

      Yeah. I think one of the biggest limitations of Deep Learning is that right now, it requires really a lot of data, especially labeled data. Um, there are some unsupervised and semi-supervised learning algorithms that can reduce the amount of labeled data you need, but they still require a lot of unlabeled data.

    3. LF

      Mm.

    4. IG

      Reinforcement learning algorithms, they don't need labels, but they need really a lot of experiences. Um, as human beings, we don't learn to play pong by failing at pong two million times. So just getting the generalization ability better is one of the most important bottlenecks in the capability of the technology today. And then I guess I'd also say Deep Learning is like a component of a bigger system. Um, so far, nobody is really proposing to have, uh, only what you'd call Deep Learning as the entire ingredient of intelligence. You use Deep Learning as sub-modules of other systems, like AlphaGo has a Deep Learning model that estimates the value function. Um, you know, most reinforcement learning algorithms have a Deep Learning module that estimates which action to take next, but you might have other components.

  2. 2:425:41

    Neural nets as multi-step programs: depth as sequential computation

    1. LF

      So you're basically as, uh, building a function estimator. Do you think it's, uh, possible, you said nobody's kind of been thinking about this so far, but do you think neural networks could be made to reason in the way symbolic systems did in the ’80s and '90s to do more, create more, like, programs as opposed to functions?

    2. IG

      Yeah. I think we already see that a little bit. I already kind of think of neural nets as a kind of, of program. I think of Deep Learning as basically learning programs that have more than one step. Um, so if you draw a flowchart or, or if you draw a tensor flow graph describing your machine learning model, I think of the depth of that graph as describing the number of steps that run in sequence, and then the width of that graph is the number of steps that run in parallel. Now it's been long enough that we've had Deep Learning working that it's a little bit silly to even discuss shallow learning anymore.

    3. LF

      Mm.

    4. IG

      But back when I first got involved in AI, when we used machine learning, we were usually learning things like support vector machines, where you could have a lot of input features to the model, and you could multiply each feature by a different weight. But all those multiplications were done in parallel to each other, and there wasn't a lot done in series. I think what we got with Deep Learning was really the ability to have, uh, steps of a program that run in sequence. And I think that we've actually started to see that what's important with Deep Learning is more the fact that we have a multi-step program rather than the fact that we've learned a representation. If you look at things like, uh, ResNets, for example, they take one particular kind of representation, and they update it several times. Uh, back when Deep Learning first really took off in the academic world in 2006, when Geoff Hinton, uh, showed that you could train deep belief networks, everybody who was interested in the idea thought of it as each layer learns a different level of abstraction, that the first layer, uh, trained on images learns something like edges, and the second layer learns corners, and eventually, you get these kind of grandmother cell units that recognize specific objects. Today, I think most people think of it more as a computer program, where as you add more layers, you can do more updates before you output your final number. But I don't think anybody believes that layer 150 of the ResNet, uh, is a grandfa- grandmother cell, and, you know, layer 100 is contours or something like that.

    5. LF

      Okay. So you think... You're not thinking of it as a singular representation that keeps building. You think of it as a program, sort of almost like a state representation is a state of understanding in something ?

    6. IG

      Yeah. I think of it as a program that makes several updates and arrives at better and better understandings, but it's not replacing the representation at each step. It's refining it. And in some sense, that's a little bit like reasoning. It's not reasoning in the form of deduction, but it's reasoning in the form of taking a thought and refining it and refining it carefully until it's good enough to use.

  3. 5:418:58

    Reasoning, cognition, and consciousness: what might emerge from current architectures

    1. LF

      So do you think... and I hope you don't mind, we'll jump philosophical every once in a while. Do, (laughs) do, do you think, uh, of, you know, cognition, human cognition or even consciousness as simply a result of this kind of, uh, sequent- sequential representation learning? Do you think that can emerge?

    2. IG

      Cognition, yes, I think so. Consciousness, it's really hard to even define what we mean by that.I guess there's, consciousness is often defined as things like having self-awareness-

    3. LF

      Mm-hmm.

    4. IG

      ... and that's relatively easy to turn into something actionable for a computer scientist to reason about. People also define consciousness in terms of having qualitative states of experience, like qualia-

    5. LF

      Right.

    6. IG

      ... and there's all these philosophical problems, like, could you imagine a, a zombie who does all the same information processing as a human, but doesn't really have the qualitative experiences that we have? That sort of thing, I have no idea how to formalize or turn it into a scientific question. I don't know how you could run an experiment to tell whether a person is a zombie or not, and similarly, I don't know how you could run an experiment to tell whether an advanced AI system had become conscious in the sense of qualia or not.

    7. LF

      But in the more practical sense, like almost like self-attention, you think consciousness and cognition can, in an impressive way, emerge from current types of architectures that we think of as deep learning?

    8. IG

      Yeah, yeah. Or, or if, if you think of consciousness in terms of self-awareness and just, um, making plans based on the fact that the agent itself exists in the world, reinforcement learning algorithms are already more or less forced to model the agent's effect on the environment. So that, that more limited version of consciousness is already something that we get limited versions of with reinforcement learning algorithms, if they're trained well.

    9. LF

      But, uh, you say limited. So the, the, the big question really is how you jump from limited to human level.

    10. IG

      Yeah.

    11. LF

      Right? And, uh, whether it's possible, it, th- y- you know, the, even just building common sense reasoning seems to be exceptionally difficult. So can... if we scale things up, if we get much better on supervised learning, if we get better at labeling, if we get bigger datasets, uh, the more compute, do you think we'll start to see really impressive things that go from limited to, you know, uh, something, echoes of human-level cognition?

    12. IG

      I think so, yeah. I'm, I'm optimistic about what can happen just with more computation and more data. Uh, I do think it'll be important to get the right kind of data. Uh, today, most of the machine learning systems we train are mostly trained on one type of data for each model. Uh, but th- the human brain, w- we get all of our different senses and we have many different experiences, like, you know, riding a bike, driving a car, talking to people, reading. Um, I think when you get that kind of integrated dataset working with a machine learning model that can actually close the loop and interact, w- we may find that algorithm's not so different from what we have today, learn really interesting things when you scale them up a lot and train them on a large amount of multimodal data.

  4. 8:5811:45

    Multimodal data and adversarial examples: from ‘gap with humans’ to security liability

    1. LF

      And so multimodal is really interesting, but within, like your work in, uh, adversarial examples, so selecting within modal, within a one mode of data, (laughs) uh, selecting better at what are the difficult cases from which are most useful to learn from.

    2. IG

      Oh, yeah. Like, like, could we, could we get a whole lot of mileage out of, uh, designing a model that's resistant to adversarial examples or something like that?

    3. LF

      Right.

    4. IG

      Yeah.

    5. LF

      That's the question.

    6. IG

      My, my thinking on that has evolved a lot over the last few years, when I-

    7. LF

      Oh, interesting.

    8. IG

      ... when I first started to really invest in studying adversarial examples, I was thinking of it mostly as adversarial examples reveal a big problem with machine learning-

    9. LF

      Hmm.

    10. IG

      ... and we would like to close the gap between how machine learning models respond to adversarial examples and how humans respond. Uh, after studying the problem more, I still think that adversarial examples are important. I think of them now more of as a security liability than as an issue that necessarily shows there's something uniquely wrong with machine learning as opposed to humans.

    11. LF

      Also, do you see them as a tool to improve the performance of the system? Not, not on the security side, but literally just accuracy.

    12. IG

      I do see them as a kind of tool on that side, but maybe not quite as much as I used to think.

    13. LF

      Mm-hmm.

    14. IG

      Uh, we've started to find that there's a trade-off between accuracy on adversarial examples and accuracy on clean examples. Back in 2014, when I did the first adversarially-trained classifier that showed resistance to some kinds of adversarial examples, it also got better at the clean data on MNIST, and that's something we've replicated several times on MNIST, uh, that when we train against weak adversarial examples, MNIST classifiers get more accurate.

    15. LF

      Mm-hmm.

    16. IG

      So far, that hasn't really held up on other datasets and hasn't held up when we train a- g- against stronger adversaries. It seems like when you confront a really strong adversary, uh, you tend to have to give something up.

    17. LF

      Interesting. It's, but it's such a compelling idea, 'cause it feels, uh, it feels like that's how us humans learn.

    18. IG

      Yeah.

    19. LF

      Is through the difficult cases.

    20. IG

      We, we try to think of what would we screw up, and then we make sure we fix that. Yeah.

    21. LF

      Right.

    22. IG

      It's also, in a lot of branches of engineering-

    23. LF

      Right.

    24. IG

      ... you do a worst-case analysis and make sure that your system will work in the worst case, and then that guarantees that it'll work in all of the messy average cases that happen when you go out into a really randomized world. Uh-

    25. LF

      Yeah, with driving with autonomous vehicles, there seems to be a desire to just look for, think adversarially, try to figure out how to mess up the system, and if you can be robust to all those, uh, difficult cases, then you can... it's a hand-wavy empirical way to show your system is, uh, r- r- safe.

  5. 11:4514:00

    Real-world adversarial attacks: finance and speech ‘hidden voice commands’

    1. IG

      Yeah, yeah. Today, most adversarial example research isn't really focused on a particular use case-

    2. LF

      Mm-hmm.

    3. IG

      ... but there are a lot of different use cases where you'd like to make sure that the adversary can't interfere with the operation of your system. Like, in finance, if you have an algorithm making trades for you, people go to a lot of an effort to obfuscate their algorithm. That's both to protect their IP, because you don't want to research and develop a, a profitable trading algorithm then have somebody else capture the gains. Uh, but it's at least partly because you don't want people to make adversarial examples that fool your algorithm into making bad trades.... or I guess one area that's been popular in the academic literature is speech recognition. If you use speech recognition to hear an audio wave form and then, uh, in turn that into a command that a phone executes for you, y- you don't want an- a malicious adversary to be able to produce audio that gets interpreted as malicious commands, especially if a human in the room doesn't realize that something like that is happening.

    4. LF

      In speech recognition, has there been much success in- in, uh, being able to, uh, create adversarial examples that fool the system?

    5. IG

      Yeah, actually. I guess the first work that I'm aware of is a paper called Hidden Voice Commands-

    6. LF

      Mm-hmm.

    7. IG

      ... that came out in 2016, I believe. And they were able to show that they could make sounds that are not understandable by a human, but are recognized as the target phrase that the attacker wants the phone to recognize it as.

    8. LF

      Wow.

    9. IG

      Since then, things have gotten a little bit better on the attacker's side (laughs) and worse on the defender's side. It's become possible to make, uh, sounds that sound like normal speech, uh, but are actually interpreted as a different sentence than the human hears. Uh, the level of perceptibility of the adversarial perturbation is still kind of high. Uh, the- w- when you listen to the recording, it sounds like there's some noise in the background just like rustling sounds, but those rustling sounds are actually the adversarial perturbation that makes the phone hear a completely different sentence.

    10. LF

      Yeah, that's so fascinating.

    11. IG

      Uh-

  6. 14:0016:56

    Writing deep learning for AIMA: what’s stable vs what’s rapidly evolving

    1. LF

      Peter Norvig mentioned that you're writing the deep learning chapter for the fourth edition of the Artificial Intelligence: A Modern Approach book. So, how do you even begin, uh, summarizing the field of deep learning in a chapter?

    2. IG

      (laughs) Well, uh, in- in my case, I waited like a year before (laughs) I actually wrote anything.

    3. LF

      Okay.

    4. IG

      Because I- uh, even having written a full-length textbook before, it's still, uh, pretty intimidating to try to start writing just one chapter that covers everything. One thing that helped me make that plan was actually the experience I've had in f- having written the full book before, and then watching how the field changed after the book came out. I've realized there's a lot of topics that were maybe extraneous in the first book, and just seeing what stood the test of a few years of being published and what seems a little bit less important to have included now helped me pare down the topics I wanted to cover for the book. Uh, it's also really nice now that the field is kind of stabilized to the point where some core ideas from the 1980s are still used today. When I first started studying machine learning, almost everything from the 1980s had been rejected, and now some of it has come back. So, that stuff that's really stood the test of time is what I focused on putting into the book. Uh, there is also, I guess, two different philosophies about how you might write a book. Uh, one philosophy is you try to write a reference that covers everything.

    5. LF

      Mm-hmm.

    6. IG

      And the other philosophy is you try to provide a high level summary that gives people the language to understand a field and tells them what the most important concepts are. Uh, the first deep learning book that I wrote with Yoshua and Aaron was somewhere between the- the two philosophies, that it's trying to be both a reference and an introductory guide. Uh, writing this chapter for Russell and Norvig's book, I was able to focus more on just a concise introduction of the key concepts and the language you need to read about them more. In a lot of cases, I actually just wrote paragraphs that said, "Here is a rapidly evolving area that you should pay attention to." It's-

    7. LF

      (laughs)

    8. IG

      It's pointless to try to tell you what the latest and best version of a, you know, learn to learn model is.

    9. LF

      Right.

    10. IG

      Um, you know, I can- I can point you to a paper that's recent right now, but there isn't a whole lot of a reason to delve into exactly what's going on with the latest learning to learn approach or the latest module produced by a learning to learn algorithm. You should know that learning to learn is a thing, and that it may very well be the source of the latest and greatest convolutional net or recurrent net module that you would want to use in your latest project. But there isn't a lot of point in trying to summarize exactly, uh, which architecture and which learning approach got to which level of performance.

    11. LF

      So, you maybe focus more on the basics of the methodology, so f- from back propagation to feedforward to recurrent neural networks, convolutional, that kind of thing?

    12. IG

      Yeah, yeah.

  7. 16:5620:35

    What is deep learning? Definitions beyond ‘gradient descent on differentiable models’

    1. LF

      So, if I were to ask you, I remember I took, um, algorithms and data structures algorithms course, I remember the- the professor asked, uh, "What is an algorithm?" And, uh, yelled at everybody, in a good way, that nobody was answering it correctly. Everybody knew what the algor- it was a graduate course. Everybody knew what an algorithm was, but they weren't able to answer it well. So, let me ask you, uh, in that same spirit, what is deep learning?

    2. IG

      I would say deep learning is any kind of machine learning that involves learning parameters of more than one, uh, consecutive step. So that, I mean, shallow learning is things where you learn a lot of operations that happen in parallel. You might have a system that makes multiple steps, um, like you might have hand-designed feature extractors, uh, but really only one step is learned. Deep learning is anything where you have multiple operations in sequence, and that includes the things that are really popular today, like convolutional networks and recurrent networks. Uh, but it also includes some of the things that have died out, uh, like Boltzmann machines-

    3. LF

      Mm.

    4. IG

      ... where w- we weren't using back propagation. Today, I hear a lot of people define deep learning as gradient descent a- applied to these differentiable functions.

    5. LF

      Mm-hmm.

    6. IG

      And I think that's a legitimate usage of the term. It's just different from the way that I use the term myself.

    7. LF

      So, what's an example...... of, uh, deep learning that is not gradient descent on differentiable functions, uh, in your, I mean, not specifically perhaps, but more even looking into the future. What- what- what's your thought about that space of approaches?

    8. IG

      Yeah. So I tend to think of machine learning algorithms as decomposed into really three different pieces. There's the model, which can be something like a neural net or a Boltzmann machine or a- a recurrent model. And- and that basically just describes how do you take data and how do you take parameters, and, you know, wha- what function do you use to make a prediction given the data and the parameters? Um, another piece of the learning algorithm is the optimization algorithm. Or not every algorithm can be really described in terms of optimization, but what's the algorithm for updating the parameters or updating whatever the state of the network is? Uh, and then the- the last part is the- the dataset. Like, how do you actually represent the world as it comes into your machine learning system? Um, so I think of deep learning as telling us something about, what does the model look like? And basically to qualify as deep, I say that it just has to have multiple layers. That can be multiple steps in a feedforward differentiable computation. That can be multiple layers in a graphical model. There's a lot of ways that you could satisfy me that something has, uh, multiple steps that are each parameterized separately. Um, I think of gradient descent as being all about that other piece, the how do you actually update the parameters piece. So you can imagine having a deep model, like a convolutional net, and training it with something like evolution or a genetic algorithm, and I would say that still qualifies as deep learning. Uh, and then in terms of models that aren't necessarily differentiable, uh, I guess, Boltzmann machines are probably the main example of something where you can't really take a derivative and use that for the learning process. Uh, but you- you can still argue that the model has many steps of processing that it applies when you run inference in the model.

  8. 20:3524:17

    Beyond backprop: what might replace or complement gradient descent (memory, attention, fast updates)

    1. LF

      So it's the steps of processing that's key. So Geoff Hinton suggests that we need to throw away back prop- back propagation and start all over. What do you think about that? What could an alternative direction of training neural networks look like?

    2. IG

      I- I don't know that back propagation is gonna go away entirely. Most of the time, when we decide that a machine learning algorithm isn't on the critical path to research for improving AI, the algorithm doesn't die. It just becomes used for some specialized set of things.

    3. LF

      Right.

    4. IG

      Uh, a lot of algorithms, like logistic regression, don't seem that exciting to AI researchers who are working on things like speech recognition or autonomous cars today. But there's still a lot of use for logistic regression in things like analyzing really noisy data in medicine and finance or, um, making really rapid predictions in really time-limited contexts. So I think- I think, uh, back propagation and gradient descent are around to stay, but they may not end up being, um, everything that we need to get to real human level or superhuman AI.

    5. LF

      Are you optimistic about us discovering... S- you know, back propagation has been around for a few decades. So, uh, are you optimistic about- about us as a community being able to discover something better?

    6. IG

      Yeah, I am. I think- I think we likely will find something that works better. You could imagine things like having stacks of models where, uh, some of the lower level models predict parameters of the higher level models, and so th- at the top level, you're not learning in terms of literally calculating gradients, but just predicting how different values will perform. You can kind of see that already in some areas like Bayesian optimization, where you have a Gaussian process that predicts how well different parameter values will perform. We already use those kinds of algorithms for things like hyper-parameter optimization, and in general, we know a lot of things other than back prop that work really well for specific problems. The main thing we haven't found is a way of taking one of these other non-back prop based algorithms and having it really advance the state of the art on an AI level problem.

    7. LF

      Right.

    8. IG

      But I- I- I wouldn't be surprised if eventually we find that some of these algorithms that... even the ones that already exist, not even necessarily a new one, we might find some way of, uh, customizing one of these algorithms to do something really interesting at the level of cognition or- or the- the level of, um... I think one system that we really don't have working quite right yet is, uh, like short-term memory.

    9. LF

      Mm-hmm.

    10. IG

      Uh, we have things like LSTMs. They're called long short-term memory. Uh, they still don't do quite what a human does with short-term memory. Um, like gradient descent, to learn a specific fact has to do multiple steps on that fact. Like, if I- I tell you, "The meeting today is at 3:00 PM," um, I don't need to say over and over again, "It's at 3:00 PM. It's at 3:00 PM. It's at 3:00 PM. It's at 3:00 PM-"

    11. LF

      Right.

    12. IG

      ... for you to do a gradient step on each one. You just hear it once and you remember it. Um, there's been some work on things like, uh, self-attention and attention-like mechanisms, like the Neural Turing Machine, that can write to memory cells and update themselves with facts like that right away, but I don't think we've really nailed it yet. And that's one area where I'd imagine that new optimization algorithms or different ways of applying existing optimization algorithms could give us a way of just lightning fast updating the state of a machine learning system to contain a- a specific fact like that without the need to have it presented over and over and over again.

  9. 24:1726:40

    Symbolic AI revisited: differentiable knowledge bases and injecting ‘hints’ into generative models

    1. LF

      So some of the success, uh, of symbolic systems in the '80s is they were able to assemble these kinds of facts, uh, better, but th- there's a lot of expert input required, and it's very limited in that sense. Do you ever look back to that?... as, uh, something that we'll have to return to eventually, sort of dust off the book from the shelf and, uh, think about how we build knowledge representation, knowledge base-

    2. IG

      Like, will we have to use graph searches-

    3. LF

      Graph searches, right.

    4. IG

      ... and, like, first-order logic and entailment and things like that?

    5. LF

      That kind of thing, yeah, exactly.

    6. IG

      In my particular line of work, which has mostly been machine learning security and, and also generative modeling, I haven't usually found myself moving in that direction. For generative models, I could see a little bit of, it could be useful if you had something like a, a differentiable, uh, knowledge base, or some other kind of knowledge base where it's possible for some of our fuzzier machine learning algorithms to interact with the knowledge base.

    7. LF

      I mean, your own network is kind of like that. It's a differentiable knowledge base of sorts.

    8. IG

      Yeah.

    9. LF

      But, uh-

    10. IG

      If, if we had a really easy way of giving feedback to machine learning models, that would clearly help a lot with, with generative models. And so you could imagine one way of getting there would be get a lot better at natural language processing. But another way of getting there would be, uh, take some kind of knowledge base and figure out a way for it to actually interact with a neural network.

    11. LF

      Being able to have a chat with a neural network.

    12. IG

      Yeah.

    13. LF

      That's... (laughs)

    14. IG

      (laughs) Well, so like one thing in generative models we see a lot today is you'll get things like faces that are not symmetrical.

    15. LF

      Mm-hmm.

    16. IG

      Uh, li- like people that have two eyes that are different colors. And, I mean, there are people with eyes that are different colors in real life, but not nearly as many of them as you tend to see in the machine learning generated data. So if, if you had either a knowledge base that could contain the fact, uh, people's faces are generally approximately symmetric, and eye color is especially likely to be the same on both sides. Uh, being able to just inject that hint into the machine learning model without it having to discover that itself after studying a lot of data would be a really useful feature. I, I could see a lot of ways of getting there without bringing back some of the 1980s technology, but I also see some ways that you could imagine extending the 1980s technology to play nice with neural nets and have it help get there.

  10. 26:4030:20

    The GAN origin story: why ‘training two nets’ seemed impossible (Boltzmann machines vs GANs)

    1. LF

      Awesome. So, uh, you talked about the story of, of, uh, you coming up with the idea of GANs at a bar with some friends. You were arguing that this, you know, uh, GANs would work, generative adversarial networks, and the others didn't think so. Then you went home at midnight, coded it up, and it worked. So if, if I was a friend of yours, uh, at the bar, I would also have doubts. It's a really nice idea, but I'm very skeptical that it would work. Uh, what was the basis of their skepticism? What was the basis of your intuition why it should work?

    2. IG

      I, I don't want to be someone who goes around promoting alcohol for the purposes (laughs) of science.

    3. LF

      (laughs) Right.

    4. IG

      But, uh, in this case, I do actually think that drinking helped a little bit.

    5. LF

      Mm-hmm.

    6. IG

      When your inhibitions are lowered, you're more willing to try out things that you wouldn't try out otherwise. So I, (laughs) I have noticed in general that I'm less prone to shooting down some of my own ideas when I'm, when I, I have had a little bit to drink. I think if I had had that idea at lunchtime-

    7. LF

      Yeah.

    8. IG

      ... I probably would have thought, "Uh, it's hard enough to train one neural net, you can't train a second neural net in the inner loop of the outer n- neural net." That was basically my friends' objection, was that trying to train two neural nets at the same time would be too hard. Um...

    9. LF

      So it was more about the training process unless... So my skepticism would be, you know, I'm sure you could train it, but, uh, the thing it would converge to would not be able to generate anything reasonable, an- an- any kind of reasonable realism.

    10. IG

      Yeah. So, so part of what all of us were thinking about when we had this conversation was deep Boltzmann machines. Which a lot of us in the lab, including me, were a big fan of deep Boltzmann machines at the time. They involved two separate processes running at the same time.

    11. LF

      Mm-hmm.

    12. IG

      One of them is called the positive phase, where you, uh, load data into the model and tell the model to make the data more likely.

    13. LF

      Mm-hmm.

    14. IG

      The other one is called the negative phase, where you draw samples from the model and tell the model to make those samples less likely. Um, in a deep Boltzmann machine, it's not trivial to generate a sample. You have to actually run an iterative process that gets better and better samples coming closer and closer to the distribution the model represents. So during the training process, you're always running these two systems at the same time. Uh, one that's updating the parameters of the model and another one that's trying to generate samples from the model. And they worked really well on things like MNIST, but a lot of us in the lab, including me, had tried to get deep Boltzmann machines to scale past MNIST to things like generating color photos, and we just couldn't get the two processes to stay synchronized.

    15. LF

      Mm-hmm.

    16. IG

      Um, so when I had the idea for GANs, a lot of people thought that the discriminator would have more or less the same problem as the negative phase in the Boltzmann machine, that trying to train the discriminator in the inner loop, you just couldn't get it to keep up with the generator in the outer loop-

    17. LF

      Right.

    18. IG

      ... and that would prevent it from converging to anything useful.

    19. LF

      Yeah. I share that intuition. (laughs)

    20. IG

      Yeah. Um... (laughs)

    21. LF

      It turns out to not be the case. Uh-

    22. IG

      A lot of the time with machine learning algorithms, it's really hard to predict ahead of time how well they'll actually perform.

    23. LF

      Right.

    24. IG

      You have to just run the experiment and see what happens. And I would say I still today don't have like one factor I can put my finger on and say, "This is why GANs worked for photo generation and deep Boltzmann machines don't." There are a lot of theory papers showing that under some theoretical settings the, the GAN algorithm does actually converge.

    25. LF

      Mm-hmm.

    26. IG

      But those settings are restricted enough, uh, that they don't necessarily explain the whole picture in terms of all the results that we see in practice.

  11. 30:2033:25

    What GANs are: generative modeling as a two-player game and Nash equilibrium

    1. LF

      So taking a step back, can you, uh, in the same way as we talked about deep learning, can you tell me what generative adversarial networks are?

    2. IG

      Uh, yeah. So generative adversarial networks are a particular kind of generative model.A, a generative model is a machine learning model that can train on some set of data, like say you have a collection of photos of cats and you want to generate more photos of cats, or you want to estimate a probability distribution over cats, so you can ask how likely it is that some new image is a photo of a cat. Um, GANs are one way of doing this. Uh, some generative models are good at creating new data. Uh, other generative models are good at estimating that density function and telling you how likely particular, uh, pieces of data are to come from the same distribution as the training data. Uh, GANs are more focused on generating samples rather than estimating the density function. There are some kinds of GANs, like FlowGAN, that can do both, but mostly GANs are about generating samples of generating new photos of cats that look realistic. Uh, and they do that completely from scratch. It's analogous to human imagination when a GAN creates a new image of a cat. It's using a neural network to produce a cat that has not existed before. It isn't doing something like compositing photos together. You're not, you're not literally taking the eye off of one cat and the ear off of another cat. It's, it's more of this digestive process where the, the neural net trains on a lot of data and comes up with some representation of the probability distribution and generates entirely new cats. Uh, there are a lot of different ways of building a generative model. What's specific to GANs is that we have a two-player game in the game theoretic sense, and as the players in this game compete, one of them becomes able to generate realistic data. The first player is called the generator. It produces output data such as just images, for example.

    3. LF

      Mm-hmm.

    4. IG

      And at the start of the learning process, it'll just produce completely random images. The other player is called the discriminator. The discriminator takes images as input and guesses whether they're real or fake. Uh, you train it both on real data, so photos that come from your training set, actual photos of cats, and you train it to say that those are real. You also train it on images that come from the generator network, and you train it to say that those are fake. Uh, as the two players compete in this game, the discriminator tries to become better at recognizing whether images are real or fake, and the generator becomes better at fooling the discriminator into thinking that its outputs are, are real. Uh, and you can analyze this through the language of game theory and find that there's a Nash equilibrium where the generator has captured the correct probability distribution. So in the cat example, it makes perfectly realistic cat photos, and the discriminator is unable to do better than random guessing because all the, all the samples coming from both the data and the generator look equally likely to have come from either source.

  12. 33:2536:55

    Why do generative models generalize instead of memorizing? Architectural priors and domain limits

    1. LF

      So do you ever, do you ever sit back and does it just blow your mind that this thing works? So from very... So it's able to estimate that density function enough to generate, generate realistic images. I mean, uh, does it... Yeah. Do you ever sit back (laughs) -

    2. IG

      Yeah.

    3. LF

      ... and think "How does this even... Why..." This is quite incredible, especially where GANs have gone in terms of realism.

    4. IG

      Yeah. And, and not just to flatter my own work, but generative models, all of them have this property that if they really did what we asked them to do, they would do nothing but memorize the training data.

    5. LF

      Right. Exactly.

    6. IG

      Um, models that are based on maximizing the likelihood, the way that you obtain the maximum likelihood for a specific training set is you assign all of your probability mass to the training examples and nowhere else. Uh, for GANs, the game is played using a training set. So the way that you become unbeatable in the game is you literally memorize training examples. One of my former interns wrote a paper, uh, his name is Vaishnav Nagarajan, and he showed that it's actually hard for the generator to memorize the training data. Uh, hard in a-

    7. LF

      Right.

    8. IG

      ... a statistical learning theory sense that you can actually create reasons for w- why it, it would require, um, quite a lot of learning steps and, and a lot of observations of, of different latent variables before you could memorize the training data. That still doesn't really explain why when you produce samples that are new, why do you get compelling images rather than, you know, just garbage that's different from the training set, and I don't think we really have a good answer for that, especially if you think about how many possible images are out there-

    9. LF

      Right.

    10. IG

      ... and, uh, how few images the generative model sees during training. It seems just unreasonable that generative models create new images as well as they do. Uh, especially considering that we're basically training them to memorize rather than generalize.

    11. LF

      W-

    12. IG

      Uh, I, I think part of the answer is there's a paper called Deep Image Prior-

    13. LF

      Mm-hmm.

    14. IG

      ... where they show that you can take a convolutional net, and you don't even need to learn the parameters of it at all. You just use the model architecture, and it's already useful for things like inpainting images. I think that shows us that the convolutional network architecture captures something really important about the structure of images, and we don't need to actually use learning to capture all the information coming out of the convolutional net. Uh, that would, that would imply that it would be much harder to make generative models in other domains. Uh, so far, we're able to make reasonable speech models and things like that.

    15. LF

      Mm-hmm.

    16. IG

      But to be honest, we haven't actually explored a whole lot of different datasets all that much. We don't, for example, see a lot of, uh, deep learning models of, um, like biology datasets, where you have lots of microarrays measuring the amount of different enzymes and things like that. So we may find that some of the progress that we've seen for images and speech turns out to really rely heavily on the model architecture, and we were able to do what we did for vision by trying to reverse engineer the human visual system.

    17. LF

      Right. (laughs)

    18. IG

      Um, and, and maybe it'll turn out that we can't just, uh, use that same trick for arbitrary kinds of data.

    19. LF

      Right, so there's aspects of the human vision system, the hardware of it, that, uh, makes it, uh, without learning, without cognition, just makes it really effective at detecting the patterns we see in the visual world.

    20. IG

      Yeah.

  13. 36:5539:51

    Beyond GANs: likelihood-based models, PixelCNN trade-offs, and why GANs look best

    1. LF

      Uh, that's, yeah, that's really interesting. Uh, what, um, in a big quick overview, in your view, eh, eh, eh, eh, in your view, what types of GANs are there and what other generative models besides GANs are there?

    2. IG

      Yeah, um, so it's maybe a little bit easier to start with what kinds of generative models are there other than GANs. Um, so most generative models are likelihood based, where to train them, you have a model that tells you how, how much probability it assigns to a particular example, and you just maximize the probability assigned to all the training examples. It turns out that it's hard to design a model that can create really complicated images or really complicated audio waveforms and still have it be possible to, uh, estimate the, the likelihood function, uh, eh, from a computational point of view. Uh, most interesting models that you would just write down intuitively, it turns out that it's almost impossible to calculate the amount of probability they assign to a particular point. Um, so there's a few different schools of generative models in the likelihood family. Uh, one approach is to very carefully design the model so that it is computationally tractable to measure the density it assigns to a particular point, so there are things like, uh, autoregressive models-

    3. LF

      Mm-hmm.

    4. IG

      ... like PixelCNN. Uh, those basically break down the probability distribution into a product over every single feature. So for an image, you estimate the probability of each pixel given all of the pixels that came before it.

    5. LF

      Mm-hmm.

    6. IG

      Uh, there's tricks where if you want to measure the density function, you can actually calculate the density for all these pixels more or less in parallel. Uh, generating the image still tends to require you to go one pixel at a time, and that can be very slow. Uh, but there are, again, tricks for doing this in a hierarchical pattern where you can keep the runtime under control.

    7. LF

      Are the quality of the images it generates, putting runtime aside, pretty good?

    8. IG

      Oh, they're, they're reasonable, yeah. They're, I would say a lot of the best results are from GANs these days.

    9. LF

      Right.

    10. IG

      But it can be hard to tell how much of that is based on who's studying which type of algorithm.

    11. LF

      (laughs)

    12. IG

      If that makes sense.

    13. LF

      The amount of effort invested in a particular

    14. IG

      Yeah. ... project. Or, or, like, the kind of expertise. So, a lot of people who've traditionally been excited about graphics or art and things like that have gotten interested in GANs.

    15. LF

      Mm-hmm.

    16. IG

      And to some extent it's hard to tell, are GANs doing better, uh, because they have a lot of graphics-

    17. LF

      Creative people, yeah, right.

    18. IG

      ... and art experts behind them, or are GANs doing better because they're more computationally efficient, or are GANs doing better because they prioritize the realism of samples-

    19. LF

      Right.

    20. IG

      ... over the accuracy of the density function? I think, I think all of those are potentially valid explanations, and it's, it's hard to tell.

  14. 39:5157:52

    GAN evolution 2014→DCGAN→BigGAN and new uses: semi-supervised learning, fewer labels, and adversarial feature games

    1. LF

      So, can you give a brief history of GANs from 2014, were your paper, '13?

    2. IG

      Yeah, um, so a few highlights, in the first paper, we just showed that GANs basically work. If you look back at the samples we had now, they look terrible. Um, on the CIFAR-10 dataset, you can't even recognize objects in them.

    3. LF

      Your paper, sorry, you used CIFAR-10?

    4. IG

      We used MNIST, which is little handwritten digits. Uh, we used the Toronto Face Database, which is small grayscale photos of faces. We did have recognizable faces. My colleague, Bing Xu, put together the first GAN face model for that paper. Um, we also had the CIFAR-10 dataset, which is things like very small, 32 by 32 pixels of, of, uh, cars and cats and dogs.

    5. LF

      Mm-hmm.

    6. IG

      Uh, for that, we didn't get recognizable objects, but all the deep learning people back then were really used to looking at these failed samples and kinda reading them like tea leaves.

    7. LF

      Right.

    8. IG

      And people who are used to reading the tea leaves recognize that our tea leaves at least look different.

    9. LF

      Right.

    10. IG

      Maybe not necessarily better, but there was something unusual about them. And that got a lot of us excited. Uh, one of the next really big steps was LAPGAN by Emily Denton and Soumith Chintala at Facebook AI Research, where they actually got really good high resolution photos working with GANs for the first time. They had a complicated system where they generated the image starting at low res and then scaling up to high res, uh, but they were able to get it to work. And then, um, in 2015, I, I believe later that same year, uh, Alec Radford and Soumith Chintala and Luke Metz, uh, published the DCGAN paper, which it, it stands for Deep Convolutional GAN. Um, it's kind of a non-unique name because m- these days basically all GANs and even some before that were deep and convolutional, but, uh, they just kinda picked a name for a really great recipe where they were able to actually, using only one model instead of a multi-step process, actually generate realistic images of faces and things like that. Um, that was sort of, like, the beginning of the Cambrian explosion of GANs.

    11. LF

      Mm-hmm.

    12. IG

      Like, you know, once, once you had animals that had a backbone, you suddenly got lots of different versions of, of, you know, like, fish and-

    13. LF

      Right.

    14. IG

      ... four-legged animals and things like that. So, so DCGAN became kind of the backbone for many different models that came after it.

    15. LF

      It's used as a baseline even still, right?

    16. IG

      Yeah, yeah, and so from there, I would say some interesting things we've seen are, um, there's a lot you can say about how just the quality of standard image generation GANs has increased, but what's also maybe more interesting on an intellectual level is how the things you can use GANs for has also changed. Um, one thing is that you can use them to learn classifiers without having to have l-... class labels for every example in your, your training set. So that's called semi-supervised learning.

    17. LF

      Mm-hmm.

    18. IG

      Um, my colleague at OpenAI, Tim Salomons, who's at, at Brain now, uh, wrote a paper called Improved Techniques for Training GANs. Um, I'm a co-author on this paper, but I can't claim any credit for this particular part. Uh, one thing he showed in the paper is that you can take the GAN discriminator and use it as a classifier that actually tells you, you know, this image is a cat, this image is a dog, this image is a car, this image is a truck, and so on. Not just to say whether the image is real or fake, but if it is real, to say specifically what kind of object it is. And he found that you can train these classifiers with far fewer labeled examples than traditional classifiers.

    19. LF

      So if you supervise based on also not just your discrimination ability, but your ability to classify, you're going to do m- much, you're going to converge much faster to being effective at being a discriminator.

    20. IG

      Yeah.

    21. LF

      Okay.

    22. IG

      So for, for example, for the MNIST dataset, you want to look at an image of a handwritten digit and say whether it's a zero, a one, or a two, and so on. Um, to get down to less than 1% accuracy required around 60,000 examples until maybe about 2014 or so. In 2016, with this, uh, semi-supervised GAN project, Tim was able to get below 1% error, uh, using only a hundred labeled examples. So that was about a 600X decrease in the amount of labels that he needed. He's still using, uh, more images than that, but he doesn't need to have each of them labeled as, you know, this one's a one, this one's a two, this one's a zero, and so on.

    23. LF

      Then to be able to... For, for GANs to be able to generate recognizable objects, so objects from a particular class, you still need labeled data because you need to know what it means to be a particular class, cat, dog. How do you think we can move away from that?

    24. IG

      Yeah, um, some researchers at Brain Zurich actually just released a really great paper on, uh, semi-supervised GANs where their, their goal isn't to classify, it's to make recognizable objects despite not having a lot of label data.

    25. LF

      Mm-hmm.

    26. IG

      Um, they were working off of DeepMind's BigGAN project.

    27. LF

      Hm.

    28. IG

      And they showed that they can match the performance of BigGAN using only 10%, I believe, of the, of the labels. Uh, BigGAN was trained on the ImageNet dataset, which is about 1.2 million images, and had all of them labeled. Um, this latest project from Brain Zurich shows that they're able to get away with only having about 10% of the, uh, of the images labeled. And they do that essentially using a, a clustering algorithm, where the discriminator learns to assign the objects to groups, and then this understanding that objects can be grouped-

    29. LF

      Mm.

    30. IG

      ... into, you know, similar types helps it to form more realistic ideas of what should be appearing in the image, because it, it knows that every image it creates has to come from one of these archetypical groups rather than just being some arbitrary image. If you train a GAN with no class labels, you tend to get things that look sort of like grass or water or brick-

  15. 57:521:08:21

    What’s next: fast-breakthrough areas, AGI via interactive environments, and securing models against adaptive attackers

    1. LF

      ... it would be okay. Okay. So, you mentioned the beer and the bar and the new ideas. You were able to implement this, or come up with this new idea, uh, pretty quickly and implement it pretty quickly. Do you think there are still many such groundbreaking ideas in deep learning that could be developed so quickly?

    2. IG

      Uh, yeah. I do think that there are a lot of ideas that can be developed really quickly. GANs were probably a little bit of an outlier on the whole, like, one-hour time scale-

    3. LF

      Right.

    4. IG

      ... but, uh, just in terms of, like, low resource, uh, ide- ideas where you do something really different on the algorithm scale and get a, a big payback, um, I think it's not as likely that you'll see that in terms of things like core machine learning technologies, like a better classifier or a better reinforcement learning algorithm or a better generative model. Um, if I had the GAN idea today, it would be a lot harder to prove that it was useful than it was back in 2014 because I would need to get it running on something like ImageNet or CelebA at high resolution. You know, tha- those take a while to train. You couldn't, you couldn't train it in an hour and know that it was something really new and exciting. Uh, back in 2014, training on MNIST was enough. Uh, but there are other areas of machine learning where I think a new idea could actually be developed really quickly with low resources.

    5. LF

      What's your intuition about what areas of machine learning are ripe for this?

    6. IG

      Yeah. So I think, um, fairness and, uh, interpretability are areas where we just really don't have any idea how anything should be done yet. Uh, like, for interpretability, I don't think we even have the right definitions. And even just defining a really useful concept, you don't even need to run any experiments, could have a huge impact on the field. W- we've seen that, for example, in differential privacy, that, uh, Cynthia Dwork and her collaborators made this technical definition of privacy, where before, a lot of things were really mushy, and then with that definition, you could actually design randomized algorithms for accessing databases and guarantee that they preserved individual people's privacy in a, in, like, a mathematical quantitative sense. Right now, we all talk a lot about how interpretable different machine learning algorithms are, but it's really just people's opinion, and everybody probably has a different idea of what interpretability means in their head. If we could define some concept related to interpretability that's actually measurable, that would be a huge leap forward, even without a new algorithm that increases that quantity. And also, once, once we had the definition of differential privacy, it was fast to get the algorithms that guaranteed it. So, you could imagine, once we have definitions of good concepts and interpretability, we might be able to provide the algorithms that have the interpretability guarantees quickly too.

    7. LF

      What do you think it takes to build a system with human-level intelligence, as we quickly venture into the philosophical? So, artificial general intelligence, what do you think it takes?

    8. IG

      Yeah. Um, I, I think that it, it definitely takes, uh, better environments than we currently have for training agents, that we want them to have a really wide diversity of experiences. Uh, I also think it's gonna take really a lot of computation. It's hard to imagine exactly how much.

    9. LF

      So, you're optimistic about simulation, simulating a variety of environments is the path forward, as opposed to operating in the real world?

    10. IG

      I, I think it's a necessary ingredient. Yeah, I, I, I don't think that we're going to get to artificial general intelligence by training on fixed data sets or, or by thinking really hard about the problem. I, I think that the, the agent really needs to interact and have a variety of experiences within the same...... uh, lifespan. And today, we have many different models that can each do one thing, and we tend to train them on one data set or one RL environment. Um, sometimes there are actually papers about getting one set of parameters to perform well in many different RL environments.

    11. LF

      Mm-hmm.

    12. IG

      But we don't really have anything like an agent that goes seamlessly from one type of experience to another and, and really integrates all the different things that it does over the course of its life. Uh, when we do see multi-agent environments, they tend to be, um, or sorry, many, uh, multi-environment agents, they tend to be similar environments, like all, all of them are playing, like, an action-based video game.

    13. LF

      Right.

    14. IG

      Um, we don't really have an agent that goes from, you know, playing a video game to, like, reading the Wall Street Journal, uh, to predicting how effective a molecule will be as a drug or something like that.

    15. LF

      What do you think is a good test for intelligence in your view? There's been a lot of benchmarks, started with the, uh, with Alan Turing, natural conversation being good, being a good benchmark for intelligence. What, what are, what would, uh, uh, Ian Goodfellow sit back and be really damn impressed if a system was able to accomplish?

    16. IG

      Um, something that doesn't take a lot of glue from human engineers. So, imagine that instead of having to go to the, uh, CIFAR website and download CIFAR-10, and then write a Python script to parse it and all that, you could just point an agent at, uh, the CIFAR-10 problem, and it downloads and extracts the data and trains a model and starts giving you predictions. Um, I feel like something that doesn't need to have every step of the pipeline assembled for it-

    17. LF

      Mm-hmm.

    18. IG

      ... but definitely understands what it's doing.

    19. LF

      Is AutoML moving into that direction or are you thinking way even bigger? Just-

    20. IG

      AutoML has mostly been moving toward, um, once we've built all the glue, can the machine learning system, uh-

    21. LF

      Automate it.

    22. IG

      ... design the architecture really well?

    23. LF

      (laughs) Okay.

    24. IG

      And so I'm more of saying, like, if something knows how to pre-process the data so that it successfully accomplishes the task, then it would be very hard to argue that it doesn't truly understand the task in some fundamental sense. And I, I don't necessarily know that that's, like, the philosophical definition of intelligence, but that's something that would be really cool to build, that would be really useful and would impress me and would convince me that we've made a step forward in real AI.

    25. LF

      So, you give it, like, uh, the URL for Wikipedia, and then, uh, uh, next day expect it to be able to, uh, solve CIFAR-10. Okay.

    26. IG

      Or, like, you type in a paragraph explaining what you want it to do, and it figures out what web searches it should run and downloads all the, all the necessary ingredients.

    27. LF

      So, uh, you have a very clear, calm way of speaking, no ums-

    28. IG

      Mm-hmm.

    29. LF

      ... easy to edit. I've seen comments for both you and I, uh, have been, uh, identified as both potentially being robots. Uh, if you have to prove to the world that you are indeed human, how would you do it?

    30. IG

      (laughs) Uh, well, I d- I can understand thinking that I'm a robot. Uh, it's actually-

Episode duration: 1:08:36

Install uListen for AI-powered chat & search across the full episode — Get Full Transcript

Transcript of episode Z6rxFNMGdn0

Get more out of YouTube videos.

High quality summaries for YouTube videos. Accurate transcripts to search & find moments. Powered by ChatGPT & Claude AI.