Lex Fridman Podcast XX
[0] The following is a conversation with Anka Jirgan, a professor at Berkeley working on human robot interaction, algorithms that look beyond the robot's function in isolation and generate robot behavior that accounts for interaction and coordination with human beings.
[1] She also consults at Waymo, the autonomous vehicle company, but in this conversation, she is 100 % wearing her Berkeley hat.
[2] She's one of the most brilliant and fun roboticists in the world to talk with.
[3] I had a tough and crazy day leading up to this conversation, so I was a bit tired, even more so than usual, but almost immediately, as she walked in, her energy, passion, and excitement for human -robot interaction was contagious.
[4] So I had a lot of fun and really enjoyed this conversation.
[5] This is the Artificial Intelligence Podcast.
[6] If you enjoy it, subscribe on YouTube, review it with five stars on an Apple podcast, support it on Patreon, or simply connect with me on Twitter, at Lex Friedman, spelled F -R -I -D -M -A -N.
[7] As usual, I'll do one or two minutes of ads now and never any ads in the middle that can break the flow of the conversation.
[8] I hope that works for you and doesn't hurt the listening experience.
[9] This show is presented by Cash App, the number one finance app in the app store.
[10] When you get it, use code Lex Podcast.
[11] Cash app lets you send money to friends, buy Bitcoin, and invest in the stock market with as little as one dollar.
[12] Since Cash App does fractional share trading, let me mention that the order execution algorithm that works behind the scenes to create the abstraction of fractional orders is an algorithmic Marvel.
[13] So big props to the Cash App engineers for solving a hard problem that in the end provides an easy interface that takes a step up to the next layer of abstraction over the stock market, making trading more accessible for new investors and diversification much easier.
[14] So again, if you get Cashab from the app store or Google Play and use the code Lex Podcast, you get $10, and Cash App will also donate $10 to the first, an organization that is helping to advance robotics and STEM education for young people around the world.
[15] And now, here's my conversation with Enka Dragon.
[16] When did you first fall in love with robotics?
[17] I think it was a very gradual process, and it was somewhat accidental, actually, because I first started getting into programming when I was a kid, and then into math, and then into computer science was the thing I was going to do, and then in college I got into AI, and And then I applied to the Robotics Institute at Carnegie Mellon.
[18] And I was coming from this little school in Germany that nobody had heard of.
[19] But I had spent an exchange semester at Carnegie Mellon.
[20] So I had letters from Carnegie Mellon.
[21] So that was the only, you know, MIT said no, Berkeley said no, Stanford said no. That was the only place I got into.
[22] So I went there to the robotics institute.
[23] And I thought that robotics is a really cool way to actually apply the stuff that I knew and love like optimization.
[24] So that's how I got into robots.
[25] I have a better story how I got into cars, which is I, you know, I used to do mostly manipulation in my PhD, but now I do kind of a bit of everything application wise, including cars.
[26] And I got into cars because I was here in Berkeley while I was a PhD student still for RSS 2014.
[27] Peter Bill organized it.
[28] And he arranged for it was Google at the time to give us rides in self -driving cars and I was in a robot and it was just making decision after decision the right call and it was so amazing so it was a whole different experience right just I mean manipulation is so hard you can't do anything and there it was it the most magical robot you've ever met so like for me to me and Google self -driving car for the first time was like a transformative moment like I had two moments almost like that, that and Spotmini, I don't know if you met SpotMini from Boston Dynamics, I felt like, I felt like I fell in love or something.
[29] Like it, because I know how a Spot Mini works, right?
[30] It's just, I mean, there's nothing truly special.
[31] It's great engineering work, but the anthropomorphism that went on into my brain, like it came to life.
[32] Like it had a little arm and looked at me, he, she looked at me. You know, I don't know, there's a magical connection there, And it made me realize, wow, robots can be so much more than things that manipulate objects.
[33] They can be things that have a human connection.
[34] Do you have, was the self -driving car the moment?
[35] Like, was there a robot that truly sort of inspired you?
[36] That was, I remember that experience very viscerally riding in that car and being just wowed.
[37] I had the, they gave us a sticker that said I rode in a self -driving car and it had this cute little firefly.
[38] on and or logo or something like that was like the smaller one like the yeah yeah the really cute one yeah and and I put it on my laptop and I had that for years until I finally changed my laptop out and you know what about if we walk back you mentioned optimization like what beautiful ideas inspired you in math computer science early on like why get into this field seems like a cold and boring field of math Like, what was exciting to you about it?
[39] The thing is, I liked math from very early on, from fifth grade is when I got into the Math Olympiad and all of that.
[40] Oh, you competed, too.
[41] Yeah, Romania is like our national sport.
[42] You got to understand.
[43] So I got into that fairly early, and it was a little maybe two just theory with no kind of, I didn't kind of had a, didn't really have a goal.
[44] And other than understanding, which was cool.
[45] I always like learning and understanding, but there was no, okay, what am I applying this understanding to?
[46] And so I think that's how I got into more heavily into computer science because it was, it was kind of math meets something you can do tangibly in the world.
[47] Do you remember like the first program you've written?
[48] Okay, the first program where I've written with, I kind of do, it was in Q Basic in fourth grade.
[49] Wow.
[50] And it was drawing like a circle or a square.
[51] Yeah, that was, I don't know how to do that anymore.
[52] But in fourth grade, that's the first thing that they taught me. I was like, you could take a special, I wouldn't say it was an extra curricular.
[53] It's in the sense, an extracurricular.
[54] So you could sign up for, you know, dance or music or programming.
[55] And I did the programming thing.
[56] And my mom was like, what?
[57] Why?
[58] Did you compete in programming?
[59] Like, these days, Romania probably, that's like a big thing.
[60] There's a programming competition.
[61] Was that, did that touch you at all?
[62] I did a little bit of the computer science Olympian, but not as seriously as I did the math Olympian.
[63] So it was programming.
[64] Yeah, it's basically, here's a hard math problem, solved it with a computer is kind of the deal.
[65] Yeah, it's more like algorithm.
[66] Exactly.
[67] It's how it was algorithmic.
[68] So, again, you kind of mentioned the Google Self driving car, but outside of that, oh, what's, like, who or what is your favorite robot, real or fictional, that, like, captivated your imagination?
[69] imagination throughout.
[70] I mean, I guess you kind of alluded to the Google software.
[71] The firefly was a magical moment, but is there something else?
[72] It was in the firefly there.
[73] I think there was the Lexus, by the way.
[74] This was back then.
[75] But yeah, so good question.
[76] I, my, okay, my favorite fictional robot is Wally.
[77] And I love how amazingly expressive it is.
[78] Some person thinks a little bit about expressive motion kinds of things you're saying with, you can do this and it's a head and it's the manipulator and what does it all mean.
[79] I like to think about that stuff.
[80] I love Pixar.
[81] I love animation.
[82] Wally has two big eyes, I think, or no. Yeah, it has these cameras and they move.
[83] So, yeah, it's, you know, it goes and then it's super cute.
[84] Yeah, it's, you know, the way it moves is just so expressive, the timing of that motion, what is doing with its arms and what.
[85] what it's doing with these lenses is amazing.
[86] And so I've really liked that from the start.
[87] And then on top of that, sometimes I shared this.
[88] It's a person story I share it with people or when I teach about AI or whatnot.
[89] My husband proposed to me by building a Wally and he actuated it.
[90] So it's seven degrees of freedom including the lens thing.
[91] and it kind of came in and it had the he made it have like a you know the belly box opening thing so it just did that and then it spewed out this box made out of Legos that opened slowly and then bam no yeah yeah it was it was quite quite it set a bar I could be like the most impressive thing I've ever heard okay that was special connection to Wally long story short I like Wally because I like animation and I like robots and I like, you know, the fact that this was, we still have this robot to this day.
[92] How hard is that problem do you think of the expressivity of robots?
[93] Like the, with the Boston Dynamics, I've never talked to those folks about this particular element.
[94] I've talked to them a lot, but it seems to be like almost an accidental side effect for them, that they weren't, I don't know if they're faking it.
[95] They weren't trying to.
[96] Okay.
[97] They do say that the gripper was not intended to be a face.
[98] I don't know if that's an honest statement, but I think they're legitimately.
[99] It probably is.
[100] So do we automatically just anthropomorphize anything we can see about a robot?
[101] So the question is, how hard is it to create a Wally type robot that connects so deeply with us humans?
[102] What do you think?
[103] It's really hard, right?
[104] So it depends on what setting.
[105] So if you want to do it in this very particular narrow setting where it does only one thing and it's expressive, then you can get an animator.
[106] You can have Pixar -on -call come in, design some trajectories.
[107] There was anarchy had a robot called Cosmo where they put in some of these animations.
[108] That part is easy, right?
[109] The hard part is doing it not via these kind of handcrafted behaviors, but doing it generally autonomously.
[110] Like, I want robots.
[111] I don't work on, just to clarify, I don't, I used to work a lot on this.
[112] I don't work on that quite as much these days.
[113] But the notion of having robots that, you know, when they pick something up and put it in a place, they can do that with various forms of style.
[114] Or you can say, well, this robot is, you know, succeeding at this task and is confident versus it's hesitant versus, you know, maybe it's happy or it's, you know, disappointed about something, some failure that it had.
[115] I think that when robots move, they can communicate so much about internal states or perceived internal states that they have.
[116] And I think that's really useful in an element that will want in the future because I was reading this article about how kids are, kids are being rude to Alexa.
[117] they can be rude to it and it doesn't really get angry, right?
[118] It doesn't reply in anyway.
[119] It just says the same thing.
[120] So I think there's, at least for that, for the correct development of children, it's important that these things, you kind of react differently.
[121] I also think, you know, you walk in your home and you have a personal robot.
[122] And if you're really pissed, presumably the robot should kind of behave slightly differently than when you're super happy and excited.
[123] But it's really hard because it's, I don't know, you know, the way I would think about it.
[124] And the way I've thought about it when it came to expressing goals or intentions for robots, it's, well, what's really happening is that instead of doing robotics where you have your state and you have your action space and you have your space, the reward function that's trying to optimize, now you kind of have to expand the notion of state to include this human internal state.
[125] What is the person actually perceiving?
[126] What do they think about the robots something or rather and then you have to optimize in that system and so that means you have to understand how your motion your actions end up sort of influencing the observer's kind of perception of you and it's very it's very hard to write math about that right so when you start to think about incorporating the human into the state model uh apologize for the philosophical question but how complicated are human beings do you think like can they be reduced to a kind of almost like an object that moves and maybe has some basic intents, or is there something, do we have to model things like mood and general aggressiveness and I mean all these kinds of human qualities or like game theoretic qualities?
[127] Like, what's your sense?
[128] How complicated is?
[129] How hard is the problem of human robot interaction?
[130] Yeah.
[131] Should we talk about what the problem of human robot interaction is?
[132] Yeah, this is, what is human robot interaction?
[133] And then talk about how that, yeah.
[134] So, and by the way, I'm going to talk about this very particular view of human robot interaction, right, which is not so much on the social side or on the side of how you have a good conversation with the robot.
[135] What should the robot's appearance be?
[136] It turns out that if you make robots taller versus shorter, this has an effect on how people act with them.
[137] So I'm not, I'm not talking about that.
[138] But I'm talking about this very kind of narrow thing, which is you take.
[139] If you want to take a task that a robot can do in isolation, in a lab out there in the world, but in isolation, and now you're asking, what does it mean for the robot to be able to do this task for presumably what it's actually end goal is, which is to help some person, that ends up changing the problem in two ways.
[140] The first way it changes the problem is that the robot is no longer the single agent act.
[141] that you have humans who also take actions in that same space.
[142] You know, cars, navigating around people, robots around an office, navigate around the people in that office.
[143] If I send the robot over there in the cafeteria to get me a coffee, then there's probably other people reaching for stuff in the same space.
[144] And so now you have your robot and you're in charge of the actions that the robot is taking.
[145] Then you have these people who are also making decisions and taking actions in that same space.
[146] And even if the robot knows what it's what it should do and all of that, just coexisting with these people, right, kind of getting the actions to gel well to mesh well together, that's sort of the kind of problem number one.
[147] And then there's problem number two, which is goes back to this notion of if I'm a programmer, I can specify some objective for the robot to go off and optimize and specify the task.
[148] But if I put the robot in a in your home, presumably you might have your own opinions about, well, okay, I want my house clean, but how do I want it clean?
[149] And how should robot move?
[150] How close to me it should come and all of that.
[151] And so I think those are the two differences that you have.
[152] You're acting around people and what you should be optimizing for should satisfy the preferences of that end user, not of your programmer who programmed you.
[153] Yeah.
[154] And the preferences thing is tricky.
[155] So figuring out those preferences is be able to interactively adjust to understand what the human is doing.
[156] So it really boils down to understand the humans in order to interact with them and in order to please them.
[157] Right.
[158] So why is this hard?
[159] Yeah.
[160] Why is understanding humans hard?
[161] So I think there's two tasks about understanding humans that in my mind are very, very similar, but not everyone agrees.
[162] So there's the task of being able to just anticipate what people will do.
[163] we all know that cards need to do this right we all know that well if i navigate around some people the robot has to get some notion of okay where where is this person going to be um so that's kind of the prediction side and then there's what you are saying satisfying the preferences right so adapting to the person's preferences knowing what to optimize for which is more this inference side this what is what does this person want what is their intent what are their preferences and to me those kind of go together because I think that in if you at the very least if you can understand if you can look at human behavior and understand what it is that they want then that's sort of the key enabler to being able to anticipate what they'll do in the future because I think that you know we're not arbitrary we make these decisions that we make we act in the way we do because we're trying to achieve certain things and so I think that's the relationship between them now how complicated do these models need to be in order to be able to understand what people want?
[164] So we've gotten a long way in robotics with something called inverse reinforcement learning, which is the notion of someone asks, demonstrates how they want the thing done.
[165] What is an inverse reinforcement learning?
[166] You briefly said it.
[167] Right.
[168] So it's the problem of take human behavior and infer reward function from you.
[169] this.
[170] So figure out what it is that that behavior is optimal or respect to.
[171] And it's a great way to think about learning human preferences in the sense of, you know, you have a car and the person can drive it and then you can say, well, okay, I can actually learn what the person is optimizing for.
[172] I can learn their driving style.
[173] Or you can have people demonstrate how they want the house clean.
[174] And then you can say, okay, this is, this is, I'm getting the tradeoffs that they're, that they're making, getting the preferences that they want out of this.
[175] And so we've been successful in robotics somewhat with this.
[176] And it's based on a very simple model of human behavior.
[177] It's remarkably simple, which is that human behavior is optimal respect to whatever it is that people want, right?
[178] So you make that assumption, and now you can kind of inverse.
[179] That's why it's called inverse, well, really optimal control, but also inverse reinforcement learning.
[180] So this is based on utility maximization in economics, right?
[181] Back in the 40s, by Neumann -Morgensstein, we're like, okay, people are making choices by maximizing utility, go.
[182] And then in the late 50s, we had Luce and Shepard come in and say, people are a little bit noisy and approximate in that process.
[183] So they might choose something kind of stochastically with probability proportional to how much utility something has.
[184] So there's a bit of noise in there.
[185] This has translated into robotics and something that we call Boltzmann rationality.
[186] So it's a kind of an evolution of inverse reinforcement learning that accounts for human noise.
[187] And we've had some success with that too for these tasks where it turns out people act noisily enough that you can't just do vanilla, the vanilla version, you can account for noise and still infer what they seem to want based on this.
[188] Now we're hitting tasks where that's not enough.
[189] What are examples?
[190] What examples?
[191] So imagine you're trying to control some robot that's fairly complicated.
[192] You're trying to control a robot arm because maybe you're a patient with a motor impairment and you have this wheelchair -mounted arm you're trying to control it around.
[193] Or one test that we've looked at with Sergey is, and our students did, is a lunar lander.
[194] So I don't know if you know this Atari game, it's called Lunar Lander.
[195] It's really hard.
[196] People really suck at landing the same.
[197] Mostly they just crash it left and right.
[198] Okay, so this is the kind of task.
[199] Imagine you're trying to provide some assistance to a person operating such a robot, where you want the kind of the autonomy to kick in, figure out what it is that you're trying to do and help you do it.
[200] It's really hard to do that for, say, Lunar Lander because people are all over the place.
[201] And so they seem much more noisy than really irrational.
[202] That's an example of a task where these models are kind of failing us.
[203] And it's not surprising because, so we talked about in 40s, utility, late 50s, sort of noisy.
[204] Then the 70s came and behavioral economics started being a thing.
[205] where people are like, no, no, no, no. People are not rational.
[206] People are messy and emotional and irrational and have all sorts of heuristics that might be domain -specific, and they're just a mess.
[207] It's a mess.
[208] So what does my robot do to understand what you want?
[209] And it's a very, that's why it's complicated.
[210] You know, for the most part, we get away with pretty simple models until we don't.
[211] And then the question is, what do you do then?
[212] And I had days when I wanted to, you know, pack my bags and go home and switch jobs because it's just it feels really daunting to make sense of human behavior enough that you can reliably understand what people want, especially as, you know, robot capabilities will continue to get developed.
[213] You'll get these systems that are more and more capable of all sorts of things.
[214] And then you really want to make sure that you're telling them the right thing to do.
[215] What is that thing?
[216] Well, read it in human behavior.
[217] So if I just sat here quietly and tried to understand something about you by listening to you talk, it would be harder than if I got to say something and ask you and interact and control.
[218] Can you can the robot help its understanding of the humor by influencing the behavior by actually acting?
[219] Yeah, absolutely.
[220] Absolutely.
[221] So one of the things that's been exciting to me lately is this notion that when you try to, that when you try to think of the robotics problem as, okay, I have a robot and it needs to optimize for whatever it is that a person wants it to optimize, as opposed to maybe what a programmer said.
[222] That problem, we think of as a human robot collaboration problem in which both agents get to act, in which the robot knows less than the human, because the human actually has access to, at least implicitly, to what it is that they want.
[223] They can't write it down, but they can talk about it.
[224] They can give all sorts of signals.
[225] They can demonstrate.
[226] But the robot doesn't need to sit there and passively observe human behavior and try to make sense of it.
[227] The robot can act too.
[228] And so there's these information gathering actions that the robot can take to solicit responses that are actually informative.
[229] So, for instance, this is not for the purpose of assisting people, but with kind of back to coordinating with people in cars and all of that.
[230] One thing that Dorsa did was, so we were looking at cars being able to navigate around people, and you might not know exactly the driving style of a particular individual that's next to you, but you want to change lanes in front of them.
[231] Navigating around other humans inside cars?
[232] Yeah, good clarification question.
[233] So you have an autonomous car and it's trying to navigate the road around human -driven vehicles.
[234] Similar things, ideas apply to pedestrians as well, but let's just take human -driven vehicles.
[235] So now you're trying to change a lane.
[236] Well, you could be trying to infer the driving style of this person next to you.
[237] You'd like to know if they're in particular, if they're sort of aggressive or defensive, if they're going to let you kind of go in or if they're going to do.
[238] not.
[239] And it's very difficult to just, you know, if you think that if you want to hedge your bets and say, oh, maybe they're actually pretty aggressive, I shouldn't try this.
[240] You kind of end up driving next to them and driving next to them, right?
[241] And then you don't know because you're not actually getting the observations that you get away.
[242] Someone drives when they're next to you and they just need to go straight.
[243] It's kind of the same regardless of they're aggressive or defensive.
[244] And so you need to enable the robot to reason about how it might actually be able to gather information by changing the actions that it's taking.
[245] And then the robot comes up with these cool things where it kind of nudges towards you and then sees if you're going to slow down or not.
[246] Then if you slow down, it sort of updates its model of you and says, okay, you're more on the defensive side.
[247] So now I can actually like that's a fascinating dance.
[248] That's so cool.
[249] that you could use your own actions to gather information.
[250] That feels like an totally open, exciting new world of robotics.
[251] I mean, how many people are even thinking about that kind of thing?
[252] A handful of us, I'd say.
[253] Yes, it's rare because it's actually leveraging human.
[254] I mean, most roboticists, I've talked to a lot of, you know, colleagues and so on, are kind of, being honest, kind of afraid of humans.
[255] Because they're messy and complicated, right?
[256] Right?
[257] I understand.
[258] Going back to what we're talking about earlier, right?
[259] Now we're kind of in this dilemma of, okay, there are tasks that we can just assume people are approximately rational for and we can figure out what they want.
[260] We can figure out their goals.
[261] We can figure out their driving styles, whatever.
[262] Cool.
[263] There are these tasks that we can't.
[264] So what do we do?
[265] Do we pack our bags and go home?
[266] And this one, I've had a little bit of hope recently.
[267] And I'm kind of doubting myself because what do I know that, you know, 50 years of behavioral economics hasn't figured out.
[268] But maybe it's not really in contradiction with the way that field is headed.
[269] But basically one thing that we've been thinking about is instead of kind of giving up and saying people are too crazy and irrational for us to make sense of them, maybe we can give them a bit the benefit of the doubt.
[270] And maybe we can think of them as actually being relatively rational, but just under different assumptions about the world, about how the world works, about, you know, they don't have, when we think about rationality, implicit assumption is, or they're rational under all the same assumptions and constraints as the robot, right?
[271] If this is the state of the world, that's what they know.
[272] This is the transition function, that's what they know.
[273] This is the horizon, that's what they know.
[274] But maybe kind of this difference, the way, the reason they can seem a little messy and hectic, especially to robots, is that perhaps they just make different assumptions or have different beliefs.
[275] Yeah.
[276] I mean, that's another fascinating idea that this, our kind of anecdotal desire to say that humans are irrational, perhaps grounded in behavioral economics, is that we just don't understand the constraints and their words under which they operate.
[277] And so our goal shouldn't be to throw our hands up and say they're irrational, is to say, let's, you know, let's, try to understand what are the constraints what it is that they must be assuming that makes this behavior makes sense a good life lesson right good life lesson it's true it's just outside of robotics that's just good to that's communicating with humans that's just a good to assume that you just don't sort of empathy right it's uh maybe there's something you're missing and you and it's you know it especially happens to robots because they're kind of dumb and they don't know things and oftentimes people are sort of super irrational and that they actually know a lot of of things that robots don't sometimes like with the lunar lander the robot you know knows much more so it turns out that if you try to say look maybe people are operating this thing but assuming a much more simplified physics model because they don't get the complexity of this kind of craft or the robot arm with seven degrees of freedom with these inertiaes and whatever so so maybe they have this intuitive physics model which is not you know this this notion of intuitive physics is something that is studied actually in cognitive science, was like Josh Denhambaum, Tom Griffith's work on this stuff.
[278] And what we found is that you can actually try to figure out what physics model kind of best explains human actions.
[279] And then you can use that to sort of correct what it is that they're commanding the craft to do.
[280] So they might be sending the craft somewhere, but instead of executing that action, you can sort of take a step back and say, according to their intuitive, if the world worked according their intuitive physics model, where do they think that the craft is going?
[281] Where are they trying to send it to?
[282] And then you can use the real physics, right, the inverse of that to actually figure out what you should do so that you do that instead of where they were actually sending you in the real world.
[283] And I kid you not at where people land the damn thing in between the two flags and all that.
[284] So it's not conclusive in any way, but I'd say it's evidence that, yeah, maybe we're kind of underestimating humans in some ways when we're giving up and saying, yeah, they're just crazy, noisy.
[285] So then you try to explicitly try to model the kind of worldview that they have.
[286] That they have.
[287] That's right.
[288] That's right.
[289] And it's not too, I mean, there's things in behavior economics too that, for instance, have touched upon the planning horizon.
[290] So there's this idea that, there's bounded rationality, essentially.
[291] And the idea that, well, maybe we work under computational constraints.
[292] And I think kind of our view recently has been take the Belmont update in AI and just break it in all sorts of ways by saying state, no, no, no, no, no. The person doesn't get to see the real state.
[293] Maybe they're estimating somehow.
[294] Transition function?
[295] No, no, no, no, no. Even the actual reward evaluation, maybe they're still learning about what it is that they want.
[296] Like, you know, when you watch Netflix and, you know, you have all the things and then you have to pick some.
[297] something.
[298] Imagine that, you know, the, the AI system interpreted that choice as, this is the thing you prefer to see.
[299] How are you going to know?
[300] You're still trying to figure out what you like, what you don't like, et cetera.
[301] So I think it's important to also account for that.
[302] So it's not irrationality, because I'm doing the right thing under the things that they know.
[303] Yeah, that's brilliant.
[304] You mentioned recommender systems.
[305] What kind of, and we're talking about human robot interaction, what kind of problem spaces are you thinking?
[306] about.
[307] So is it robots, like wield robots with autonomous vehicles?
[308] Is it object manipulation?
[309] Like when you think about human robot interaction in your mind, and maybe, I'm sure you can speak for the entire community of human robot interaction.
[310] But like, what are the problems of interest here?
[311] And does it, you know, I kind of think of open domain dialogue as human robot interaction.
[312] And that happens not in the physical space, but it could just happen in the virtual space.
[313] So where's the boundaries of this field for you when you're thinking about the things we've been talking about?
[314] Yeah.
[315] So I try to find kind of underlying, I don't know what to even call them.
[316] I try to work on, you know, I might call what I do the kind of working on the foundations of algorithms make human robot interaction and trying to make contributions there.
[317] And it's important to me that whatever we do is actually somewhat domain agnostic when it comes to, is it about, you know, autonomous cars or is it about quadrotors or is it about the same underlying principles apply?
[318] Of course, when you're trying to get a particular domain to work, you usually have to do some extra work to adapt that to that particular domain.
[319] But these things that we were talking about around, well, you know, how do you model humans?
[320] It turns out that a lot of systems need to core benefit from a better understanding of how human behavior relates to what people want and need to predict human behavior, physical robots of all sorts and beyond that.
[321] And so I used to do manipulation.
[322] I used to be, you know, picking up stuff and then I was picking up stuff with people around.
[323] And now it's sort of very broad when it comes to the application level but in a sense very focused on okay how does the problem need to change how do the algorithms need to change when we're not doing a robot by itself you know emptying the dishwasher but we're stepping outside of that I thought that popped into my head just now on the game theoretic side I think you said this really interesting idea of using actions to gain more information but if we think a sort of game theory the humans that are interacting with you with you the robot i'm taking the identity of the robot yeah i did that all the time yeah is they also have a world model of you and you can manipulate that i mean if we look at autonomous vehicles people have a certain viewpoint you said with the kids people people people see Alexa in a certain way.
[324] Is there some value in trying to also optimize how people see you as a robot?
[325] Or is that a little too far away from the specifics of what we can solve right now?
[326] So we can both, right?
[327] So it's really interesting.
[328] And we've seen a little bit of progress on this problem, on pieces of this problem.
[329] So you can, again, it kind of comes down to how complicated is the human model need to be.
[330] But in one piece of work that we were looking at, we just said, okay, there's these parameters that are internal to the robot and what the robot is about to do or maybe what objective, what driving style the robot has or something like that.
[331] And what we're going to do is we're going to set up a system where part of the state is the person's belief over those parameters.
[332] And now when the robot acts, that the person gets new evidence about this robot internal state.
[333] And so they're updating their mental model of the robot, right?
[334] So if they see a card that sort of cut someone off, like, oh, that's an aggressive card.
[335] They know more, right?
[336] If they see sort of a robot head towards a particular door, they're like, oh, yeah, the robot's trying to get to that door.
[337] So this thing that we have to do with humans to try and understand their goals and intentions, humans, are inevitably going to do that to robots.
[338] And then that raises this interesting question that you asked, which is, can we do something about that?
[339] This is going to happen inevitably, but we can sort of be more confusing or less confusing to people.
[340] And it turns out you can optimize for being more informative and less confusing if you have an understanding of how your actions are being interpreted by the human, how they're using these actions to update their belief.
[341] And honestly, all we did is just Bay's rule.
[342] Basically, okay, the person has a little.
[343] belief, they see an action, they make some assumptions about how the robot generates its actions, presumably as being rational, because robots are rational.
[344] It's reasonable to assume that about them.
[345] And then they incorporate that new piece of evidence, in the Bayesian sense in their belief, and they obtain a posterior.
[346] And now the robot is trying to figure out what actions to take such that it steers the person's belief to put as much probability mass as possible on the correct on the correct parameters so that's kind of a mathematical formalization of that but uh my worry and i don't know if you want to go there with me but i i talk about this quite a bit um the the kids talking to alexa disrespectfully worries me i worry in general about human nature like i said i grew up in soviet union world war two i'm a jew too so with the holocaust and everything i just worry about how we humans sometimes treat the other, the group that we call the other, whatever it is.
[347] The human history, the group that's the other has been changed faces.
[348] But it seems like the robot will be the other, the other, the next, the other.
[349] And one thing is, it feels to me that robots don't get no respect.
[350] They get shoved around.
[351] Shovbed around.
[352] And is there one, at the shallow level, for a better experience, seems that robots need to talk back a little bit.
[353] Like, my intuition says, I mean, most companies from sort of Roomba, autonomous vehicle companies might not be so happy with the idea that a robot has a little bit of an attitude.
[354] But I feel, it feels to me that that's necessary to create a compelling experience.
[355] Like, we humans don't seem to respect anything that doesn't give us some attitude.
[356] or like a mix of mystery and attitude and anger and that threatens us subtly, maybe passive -aggressively.
[357] I don't know.
[358] It seems like we humans, yeah, need that.
[359] Do what do you, is there something, you have thoughts on this?
[360] I'll give you two thoughts on this.
[361] Okay, sure.
[362] One is, one is, it's, we respond to, you know, someone being assertive, but we also, respond to someone being vulnerable.
[363] So I think robots, my first thought is that robots get shoved around and bullied a lot because they're sort of, you know, tempting and they're sort of showing off or they appear to be showing off.
[364] And so I think going back to these things we were talking about in the beginning of making robots a little more, a little more expressive, a little bit more like, eh, that wasn't cool to do.
[365] And now I'm bummed.
[366] Right.
[367] I think that that can actually help because people can't help but anthropomorphize and respond to that.
[368] Even though, the emotion being communicated is not in any way a real thing, and people know that it's not a real thing because they know it's just a machine.
[369] We're still interpret.
[370] You know, we watch, there's this famous psychology experiment with little triangles and kind of dots on a screen and a triangle is chasing the square and you get really angry at the darn triangle because why is it not leaving the square alone?
[371] So that's, yeah, we can't help.
[372] So that was the first thought.
[373] vulnerability.
[374] It's really interesting.
[375] I think of like being, pushing back, being assertive as the only mechanism of getting, of forming a connection of getting respect, but perhaps vulnerability.
[376] Perhaps there's other mechanisms that are less threatening.
[377] Yeah.
[378] Is there?
[379] Well, I think, well, a little bit, yes.
[380] But then this other thing that we can think about is it goes back to what you're saying, that interaction is really game theoretic.
[381] Right.
[382] So the moment you're taking, actions in a space, humans are taking actions in that same space, but you have your own objective, which is, you know, you're a car, you need to get your passenger to the destination.
[383] And then the human nearby has their own objective, which somewhat overlaps with you, but not entirely.
[384] You're not interested in getting into an accident with each other, but you have different destinations and you want to get home faster and they want to get home faster.
[385] And that's a general sum game at that point.
[386] And so I think that's what treating it as such is kind of a way we can step outside of this kind of mode that where you try to anticipate what people do and you don't realize you have any influence over it while still protecting yourself because you're understanding that people also understand that they can influence you.
[387] And it's just kind of back and forth is this negotiation, which is really talking about different equilibria of a game, the very basic way to solve coordination is to just make predictions about what people will do and then stay out of their way.
[388] And that's hard for the reasons we talked about, which is how you have to understand people's intentions implicitly, explicitly, who knows, but somehow you have to get enough of an understanding of that to be able to anticipate what happens next.
[389] And so that's challenging.
[390] But then And it's further challenged by the fact that people change what they're due based on what you do because they don't, they don't plan in isolation either.
[391] Right.
[392] So when you see cars trying to merge on a highway and not succeeding, one of the reasons this can be is because you, they look at traffic that keeps coming.
[393] They predict what these people are planning on doing, which is to just keep going.
[394] And then they stay out of the way because there's no feasible plan.
[395] Right.
[396] plan would actually intersect with one of these other people.
[397] So that's bad.
[398] So you get stuck there.
[399] So now kind of if you start thinking about it as no, no, no, actually these people change what they do depending on what the car does.
[400] Like if the car actually tries to kind of inch itself forward, they might actually slow down and let the car in.
[401] And now taking advantage of that, well, that's kind of the next level.
[402] We call this like this under -actuated system idea where it's kind of under -actors system in robotics, but it's kind of, you don't, you influence these other degrees of freedom, but you don't get to decide what they do.
[403] I've somewhere seen you mention it, the human element in this picture as under -actuated.
[404] So you know, you understand underactuary robotics is, you know, that you can't fully control the system.
[405] You can't go in arbitrary directions in the configuration space.
[406] Under your control.
[407] Yeah, it's a very simple way of underactuation where basically there's literally these degrees of freedom that you can control and these degrees of freedom that you can't, but you influence them.
[408] I mean, I think that's the important part is that they don't do whatever, regardless of what you do, that what you do influence is what they end up doing.
[409] I just also like the poetry of calling human -robot interaction and under -extuated robotics problem.
[410] And you also mentioned sort of nudging.
[411] It seems that they're, I don't know, I think about this a lot in the case of pedestrians.
[412] I've collected hundreds of hours of videos.
[413] I like to just watch pedestrians.
[414] And it seems that it's a funny hobby.
[415] Yeah, it's weird because I learn a lot.
[416] I learn a lot about myself about our human behavior from watching.
[417] pedestrians watching people in their environment basically crossing the street is like you're putting your life on the line you know i don't know tens of millions of time in america every day is people are just like playing this weird game of chicken when they cross the street especially when there's some ambiguity about the right of way that has to do either with the rules of the road or with the general personality of the intersection based on the time of day and so on i mean And this nudging idea, I don't, you know, it seems that people don't even nudge.
[418] They just aggressively take, make a decision.
[419] Somebody, there's a runner that gave me this advice.
[420] I sometimes run in the street and, you know, not in the street, on the sidewalk.
[421] And you said that if you don't make eye contact with people when you're running, they will all move out of your way.
[422] It's called civil inattention.
[423] Civil and attention.
[424] That's a thing.
[425] Oh, wow, I need to look this up.
[426] But it works.
[427] What is that?
[428] My sense was if you communicate, like, confidence in your actions that you're unlikely to deviate from the action that you're following, that's a really powerful signal to others that they need to plan around your actions.
[429] As opposed to nudging where you're sort of hesitantly, the hesitation might communicate that you're now, you're still in the dance in the game that they can influence with their own actions.
[430] I've recently had a conversation with Jim Keller who's a sort of this legendary chip architect but he also led the autopilot team for a while and his intuition that driving is fundamentally still like a ballistics problem like you can ignore the human element that it's just not hitting things and you can kind of learn the right dynamics required to do the merger and all those kinds of things and then my sense is and I don't know if I can provide sort of definitive proof of this, but my sense is like an order of magnitude or more difficult when humans are involved.
[431] Like it's not simply an object collision avoidance problem.
[432] Where does your intuition?
[433] Of course, nobody knows the right answer here, but where does your intuition fall on the difficulty, fundamental difficulty of the driving problem when humans are involved.
[434] Yeah.
[435] Good question.
[436] I have many opinions on this.
[437] Imagine downtown San Francisco.
[438] Yeah.
[439] Yeah?
[440] It's crazy, busy, everything.
[441] Okay, now take all the humans out.
[442] No pedestrians.
[443] No human -driven vehicles.
[444] No cyclists.
[445] No people on little electric scooters zipping around.
[446] Nothing.
[447] I think we're done.
[448] I think driving at that point is done.
[449] We're done.
[450] There's nothing really that still needs to be solved about that.
[451] Well, let's pause there.
[452] I think I agree with you.
[453] And I think a lot of people that will hear will agree with that.
[454] But we need to sort of internalize that idea.
[455] So what's the problem there?
[456] Because we went not quite yet be done with that.
[457] Because a lot of people kind of focus on the perception problem.
[458] A lot of people kind of map autonomous driving into how close are we to solving being able to detect all the you know the the drivable area the objects in the scene do you see that as a how hard is that problem so your intuition there behind your statement was we might have not solved it yet but we're close to solving basically the perception problem i think the perception problem i mean and by the way a bunch of years ago this would not have been true.
[459] And a lot of issues in the space were coming from the fact that, oh, we don't really, you know, we don't know what's where.
[460] But I think it's fairly safe to say that at this point, although you could always improve on things and all of that, you can drive through downtown San Francisco if there are no people around.
[461] There's no really perception issues standing in your way there.
[462] I think perception is hard, but yeah, we've made a lot of progress on the perceptions and had to undermine the difficulty of the problem.
[463] I think everything about robotics is really difficult, of course.
[464] I think that, you know, the planning problem, the control problem, all very difficult.
[465] But I think what's what makes it really kind of, yeah, it might be, I mean, you know, and I picked down to San Francisco.
[466] I, it's adapting to, well, now it's snowing, now it's no longer snowing, now it's slippery in this way, now it's the dynamics part could, could I could imagine being still somewhat challenging.
[467] But no, the thing that I think worries us and our intuition is not good there is the perception problem at the edge cases.
[468] Sort of downtown San Francisco, the nice thing, it's not actually, it may not be a good example because because you know what you're getting.
[469] Well, there's like crazy construction zones and all of that.
[470] Yeah, but the thing is you're traveling at slow speeds.
[471] So like it doesn't feel, dangerous.
[472] To me, what feels dangerous is highway speeds when everything is to us humans super clear.
[473] Yeah.
[474] I'm assuming LIDAR here, by the way.
[475] I think it's kind of irresponsible to not use LIDAR.
[476] That's just my personal opinion.
[477] I mean, depending on your use case, but I think like, you know, if you have the opportunity to use LIDAR, in a lot of cases you might not.
[478] Good.
[479] Your intuition makes more sense now.
[480] So you don't think vision.
[481] I really just don't know enough to say, well, vision alone, what, you know, what's like, there's a lot of, how many cameras do you have?
[482] Is it how are you using them?
[483] I don't know.
[484] There's all, there's a sorts of details.
[485] I imagine there's stuff that's really hard to actually see, you know, how do you deal with, with glare, exactly what you were saying, stuff that people would see that, that, that you don't.
[486] I think I have more of my information comes from systems that can actually use lighter as well.
[487] Yeah, and until we know for sure, it's makes sense to be used.
[488] LIDAR.
[489] That's kind of the safety focus.
[490] But then there's sort of the, I also sympathize with the Elon Musk statement of LIDAR is a crutch.
[491] It's a fun notion to think that the things that work today is a crutch for the invention of the things that will work tomorrow, right?
[492] It's kind of true in the sense that if we want to stick to the comfort, you see this in academic and research settings all the time.
[493] The things that work force you to not explore outside, think outside the box.
[494] I mean, that happens all the time.
[495] The problem is in the safety critical systems.
[496] You kind of want to stick with the things that work.
[497] So it's an interesting and difficult tradeoff in the case of real world sort of safety critical robotic systems.
[498] But so your intuition is just to clarify.
[499] Yes.
[500] How, I mean, how hard is this human element for, like, how hard is driving when this human element is involved?
[501] Are we years, decades away from solving it?
[502] But perhaps actually the year isn't the thing I'm asking.
[503] It doesn't matter what the timeline is.
[504] But do you think we're, how many breakthroughs are away from in solving the human mobile interaction problem to get this, to get this right?
[505] I think it, in a sense, it really depends.
[506] I think that we were talking about how, well, look, it's really hard because anticipation what we all do is hard, and on top of that, playing the game is hard.
[507] But I think you sort of have the fundamental, some of the fundamental understanding for that.
[508] And then you already see that these systems are being deployed in the real world.
[509] You know, even driverless because I think now a few companies that don't have a driver in the car in some small areas.
[510] I got a chance to, I went to Phoenix and I shot a video with Waymo.
[511] I need to get that video out.
[512] People have been giving me slack.
[513] But it's an incredible engineering work being done there.
[514] And it's one of those other seminal moments for me in my life to be able to, it sounds silly, but to be able to drive.
[515] with a ride, sorry, without a driver in the seat.
[516] I mean, that was an incredible robotics.
[517] I was driven by a robot, you know, without being able to take over, without being able to take the steering wheel.
[518] That's a magical, that's a magical moment.
[519] So in that regard, in those domains, at least for like Waymo, they're solving that human, I mean, they were going, I mean, it felt fast because you're like freaking out at first.
[520] This is my first experience.
[521] But it's going like the speed limit, right?
[522] 30, 40, whatever it is.
[523] And there's humans and it deals with them quite well.
[524] It detects them.
[525] It negotiates the intersections, the left turns and all that.
[526] So at least in those domains, it's solving them.
[527] The open question for me is like, how quickly can we expand?
[528] You know, that's the, you know, outside of the weather conditions, all those kinds of things.
[529] How quickly can we expand to like cities?
[530] like San Francisco.
[531] And I wouldn't say that it's just, you know, now it's just pure engineering and it's probably the, I mean, and by the way, I'm speaking kind of very generally here as hypothesizing.
[532] But I think that there are successes and yet no one is everywhere out there.
[533] So that seems to suggest that things can be expanded and can be scaled and we know how to do a lot of things, but there's still probably, you know, new algorithms or modified algorithms that you still need to put in there as you learn more and more about new challenges that you get faced with.
[534] How much of this problem do you think can be learned through end -to -end?
[535] This is the success of machine learning and reinforcement learning.
[536] How much of it can be learned from sort of data from scratch?
[537] And how much, most of the success of autonomous vehicle systems have a lot of heuristics and rule -based stuff on top, like human expertise injected, forced into the system to make it work.
[538] What's your sense?
[539] What will be the role of learning in the near term?
[540] I think on the one hand that learning is inevitable here, right?
[541] I think on the other hand that when people characterize the process, as it's a bunch of rules that some people wrote down versus it's an end -to -end RL system or imitation learning, then maybe there's kind of something missing from maybe that's more.
[542] So for instance, I think a very, very useful tool in this sort of problem, both in how to generate the car's behavior and robots in general and how to model human beings is actually planning, search optimization.
[543] So robotics is a sequential decision -making problem.
[544] And when a robot can figure out on its own how to achieve its goal without hitting stuff and all that stuff, here, all the good stuff for motion planning 101, I think of that as very much AI, not this is some rule or something.
[545] There's nothing rule based around that, right?
[546] It's just you're searching through a space and figuring out, or you optimizing through a space and figure out what seems to be the right thing to do.
[547] And I think it's hard to just do that because you need to learn models of the world.
[548] And I think it's hard to just do the learning part where you don't, you know, bother with any of that because then you're saying, well, I could do imitation, but then when I go off distribution, I'm really screwed.
[549] Or you can say, I can do reinforcement learning, which adds a lot of robustness, but then you have to do either reinforcement learning in the real world, which sounds a little challenging, or that trial and error, you know.
[550] Or you have to do reinforcement learning in simulation.
[551] And then that means, well, guess what?
[552] You need to model things, at least to model people model the world enough that you you know whatever policy you get of that is like actually fine to roll out in the world and do some additional learning there so do you think simulation by the way just a quick tangent has a role in the human robot interaction space like is it useful it seems like humans everything we've been talking about are difficult to model and simulate do you think simulation has a role in the space i do i think so because You can take models and train with them ahead of time, for instance.
[553] You can.
[554] But the models, sorry to interrupt, the models are sort of human constructed or learned.
[555] I think they have to be a combination because if you get some human data and then you say, this is going to be my model of the person, what are for simulation and training or for just deployment time?
[556] And that's what I'm planning with as my model of how people work.
[557] Regardless, if you take some data and you don't assume anything else, and you just say, okay, this is some data that I've collected.
[558] Let me fit a policy to help people work based on that.
[559] What does to happen is you collected some data and some distribution, and then now your robot sort of computes a best response to that, right?
[560] It's sort of what should I do if this is how people work?
[561] and easily goes off of distribution where that model that you've built of the human completely sucks because out of distribution you have no idea, right?
[562] If you think of all the possible policies and then you take only the ones that are consistent with the human data that you've observed, that still leads a lot of, a lot of things could happen outside of that distribution where you're confident and you know what's going on.
[563] By the way, that's such a, I mean, I've gotten used to this terminology of out of distribution.
[564] It's such a machine learning terminology because it kind of assumes, so distribution is referring to the data that you've seen.
[565] The set of states that you encounter.
[566] They've encountered so far at training time.
[567] But it kind of also implies that there's a nice, like, statistical model that represents that data.
[568] So out of distribution feels like, I don't know, it raises to me philosophical questions of how we humans reason out of distribution, reason about things that are completely, we haven't seen before.
[569] And so, and what we're talking about here is, how do we reason about what other people do in situations where we haven't seen them?
[570] And somehow we just magically navigate that.
[571] I, you know, I can anticipate what will happen in situations that are even novel in many ways.
[572] And I have a pretty good intuition for, I don't always get it right, but, you know, and I might be a little uncertain and so on.
[573] I think it's this that if you just rely on data, you know, there's just too many possibilities.
[574] There's too many policies out there that fit the data.
[575] And by the way, it's not just state.
[576] It's really kind of history of state because to really be able to anticipate what the person will do, it kind of depends on what they've been doing so far because that's the information you need to kind of, at least implicitly, sort of say, oh, this is the kind of person that this is.
[577] This is probably what they're trying to do.
[578] So anyway, it's like you're trying to map history of states to actions.
[579] There's many mapping.
[580] And history meaning like the last few seconds or the last few minutes or the last few months?
[581] Who knows?
[582] Who knows how much you need, right?
[583] In terms of if your state is really like the positions of everything or whatnot and velocities, who knows how much you need.
[584] And then there's this, there's so many mappings.
[585] And so now you're talking about how do you regularize that space?
[586] What priors do you impose or what's the inductive bias?
[587] So there's all very related things to think about it.
[588] Basically, what are assumptions that we should be making such that these models actually generalized outside of the data that we've seen?
[589] And now you're talking about, well, I don't know.
[590] What can you assume?
[591] Maybe you can assume that people actually have intentions and that's what drives their actions.
[592] Maybe that's the right thing to do when you haven't seen data very nearby that tells you otherwise.
[593] I don't know.
[594] It's a very open question.
[595] Do you think so that one of the dreams of artificial intelligence was to solve common sense reasoning, whatever the heck that means.
[596] Do you think something like common sense reasoning has to be solved in part to be able to solve this dance of human robot interaction in the driving space or human robot interaction in general?
[597] Do you have to be able to reason about these kind of common sense concepts?
[598] of physics, of, you know, all the things we've been talking about humans.
[599] I don't even know how to express them with words, but the basics of human behavior, a fear of death.
[600] So like, to me it's really important to encode in some kind of sense, maybe not, maybe it's implicit, but it feels it's important to explicitly encode the fear of death, that people don't want to die because it seems silly but like that the game of chicken that involves with the pedestrian crossing the street is playing with the idea of mortality like we really don't want to die it's not just like a negative reward I don't know it just feels like all these human concepts have to be encoded do you share that sense or is it's a lot simpler than I'm making out to be I think it might be simple And I'm no person who likes to complicate this.
[601] I think it might be simpler than that.
[602] Because it turns out, for instance, if you say model people in the very, I'll call it traditional way, I don't know if it's fair to look at it as a traditional way, but, you know, calling people as, okay, they're irrational somehow, the utilitarian perspective.
[603] Well, in that, once you say that, they, you automatically capture that they have a an incentive to keep on being.
[604] You know, Stuart likes to say you can't fetch the coffee if you're dead.
[605] Stuart Russell, by the way.
[606] That's a good line.
[607] So when you're sort of treating agents as having these objectives, these incentives, humans or artificial, you're kind of implicitly modeling that they'd like to stick around so that they can accomplish those goals.
[608] So I think, I think in a sense, maybe that's what draws me so much to the rationality framework.
[609] Even though it's so broken, we've been able to, it's been such a useful perspective.
[610] And like we were talking about earlier, what's the alternative?
[611] I give up and go home.
[612] Or, you know, I just use complete black boxes, but then I don't know what to assume out of distribution that come back to this.
[613] It's just, it's been a very fruitful way to think about the problem in a very more positive way, right?
[614] It's just people aren't just crazy.
[615] Maybe they make more sense than we think.
[616] But I think we also have to somehow be ready for it to be wrong, be able to detect when these assumptions aren't holding, be all of that stuff.
[617] Let me ask sort of another small side of this that we've been talking about the pure autonomous driving problem.
[618] But there's also relatively successful systems already deployed out there in what you may call like level two autonomy or semi -autonomous vehicles, whether that's Tesla Autopilot.
[619] I'll work quite a bit with Cadillac Super Guru system, which has a driver -facing camera that detects your state.
[620] There's a bunch of basically lane -centering systems.
[621] What's your sense about this kind of way of dealing with the human -robot interaction problem by having a really dumb robot and relying on the human to help the robot out to keep them both alive.
[622] Is that from the research perspective, how difficult is that problem?
[623] And from a practical deployment perspective, is that a fruitful way to approach this human robot interaction problem?
[624] I think what we have to be careful about there is, to not, it seems like some of these systems, not all, are making this underlying assumption that if, so I'm a driver and I'm now really not driving but supervising and my job is to intervene, right?
[625] And so we have to be careful with this assumption that when I'm, if I'm supervising, I will be just as safe as when I'm driving, like that I, that I, I, will, you know, if I wouldn't get into some kind of accident, if I'm driving, I will be able to avoid that accident when I'm supervising to.
[626] And I think I'm concerned about this assumption from a few perspectives.
[627] So from a technical perspective, it's that when you let something kind of take control and do its thing, and it depends on what that thing is, obviously, and how much is taking control and how, what things are you trusting it to do.
[628] But if you let it do its thing and take control, it will go to what we might call off policy from the person's perspective states.
[629] So states that the person wouldn't actually find themselves in if they were the ones driving.
[630] And the assumption that the person functions just as well there as they function in the states that they would normally encounter is a little questionable.
[631] Now, another part is the kind of the human factor side of this, which is that I don't know about you, But I think I definitely feel like I'm experiencing things very differently when I'm actively engaged in the task versus when I'm a passive observer.
[632] Even if I try to stay engaged, right, it's very different than when I'm actually actively making decisions.
[633] And you see this in life in general.
[634] Like you see students who are actively trying to come up with the answer, learn this thing better than when they're passively told the answer.
[635] I think that's somewhat related.
[636] And I think people have studied this in human factors for airplanes.
[637] And I think it's actually fairly established that these two are not the same.
[638] Yeah, on that point, because I've gotten a huge amount of heat on this, and I stand by it.
[639] Okay.
[640] Because I know the human factors community well, and the work here is really strong, and there's many decades of work showing exactly what you're saying.
[641] Nevertheless, I've been continuously surprised that much of the predictions of that work has been wrong in what I've seen.
[642] So what we have to do, I still agree with everything you said, but we have to be a little bit more open -minded.
[643] So I'll tell you, there's a few surprising things that supervi -like everything you said to the word is actually exactly correct.
[644] But it doesn't say, what you didn't say is that these systems are, you said you can't assume a bunch of things.
[645] but we don't know if these systems are fundamentally unsafe.
[646] That's still unknown.
[647] There's a lot of interesting things like I'm surprised by the fact, not the fact, that what seems to be anecdotally from large data collection that we've done, but also from just talking to a lot of people, when in the supervisory role of semi -autonomous systems that are sufficiently dumb, at least, which is, that might be a, The key element is the systems have to be done.
[648] The people are actually more energized as observers.
[649] So they're actually better, they're better at observing the situation.
[650] So there might be cases in systems if you get the interaction right where you as a supervisor will do a better job with the system together.
[651] I agree.
[652] I think that is actually really possible.
[653] I guess mainly I'm pointing out that if you do it naively, you're in implicitly assuming something, that assumption might actually really be wrong.
[654] But I do think that if you explicitly think about what the agent should do, such that the person still stays engaged, what the, so that you essentially empower the person to more than they could, that's really the goal, right?
[655] You still have a driver, so you want to empower them to be so much better than they would be by themselves.
[656] And that's different, It's a very different mindset than I want them to basically not drive.
[657] And, but be ready to sort of take over.
[658] So one of the interesting things we've been talking about is the rewards that they seem to be fundamental to the way robots behaves.
[659] So broadly speaking, we've been talking about utility functions and so, but could you comment on how do we approach the design?
[660] of reward functions.
[661] Like, how do we come up with good reward functions?
[662] Well, really good question because the answer is we don't.
[663] This was, you know, I used to think, I used to think about how, well, it's actually really hard to specify rewards for interaction because it's really supposed to be what the people want.
[664] And then you really, you know, we talked about how you have to customize what you want to do to the end user.
[665] But I kind of realized that even if you take the interactive component away, it's still really hard to design reward functions.
[666] So what do I mean by that?
[667] I mean, if we assume this sort of AI paradigm in which there's an agent and his job is to optimize some objectives, some reward, utility, loss, whatever, cost.
[668] If you write it out, maybe it's a set depending on the situation or whatever it is.
[669] If you write it out and then you deploy the agent, you'd want to make sure that whatever you specified incentivizes the behavior you want from the agent in any situation that the agent will be faced with.
[670] Right?
[671] So I do motion planning on my robot arm.
[672] I specify some cost function like, you know, this is how far away you should try to stay.
[673] So much it matters to stay away from people and this is how much it matters to be able to be efficient and blah, blah, blah, right?
[674] I need to make sure that whatever I specify those constraints or tradeoffs or whatever they are, that when the robot goes and solves that problem in every new situation, that behavior is the behavior that I want to see.
[675] And what I've been finding is that we have no idea how to do that.
[676] Basically, what I can do is I can, Sample, I can think of some situations that I think are representative of what the robot will face.
[677] And I can tune and add and tune some reward function until the optimal behavior is what I want on those situations, which, first of all, is super frustrating because, you know, through the miracle of AI, we've taken, we don't have to specify rules for behavior anymore, right?
[678] who were saying before, the robot comes up with the right thing to do.
[679] You plug in this situation, it optimizes, brag not that situation, it optimizes.
[680] But you have to spend still a lot of time on actually defining what it is that that criteria should be, making sure you didn't forget about 50 bazillion things that are important and how they all should be combining together to tell the robot what's good and what's bad and how good and how bad.
[681] And so I think this is a lesson that, I don't know, kind of, I guess I close my eyes to it for a while because I've been tuning cost functions for 10 years now.
[682] But it really strikes me that, yeah, we've moved the tuning and the like designing of features or whatever from the behavior side into the reward side.
[683] And yes, I agree that there's way less of it.
[684] But it still seems really hard to anticipate any possible situation and make sure you specify a reward function that when optimized will work well in every possible situation.
[685] So you're kind of referring to unintended consequences or just in general, any kind of suboptimal behavior that emerges outside of the things you send out of distribution.
[686] Suboptimal behavior that is actually optimal.
[687] I mean, this, I guess the idea of unintended consequences.
[688] You know, it's optimal respect to what you specified, but it's not what you want.
[689] And there's a difference between those.
[690] But that's not fundamentally a robotics problem, right?
[691] That's a human problem.
[692] So like...
[693] That's the thing.
[694] Yeah.
[695] Right?
[696] So there's this thing called Goodhart's Law, which is you set a metric for an organization, and the moment it becomes on target that people actually optimize for, it's no longer a good metric.
[697] Well, what's it called?
[698] Good Heart's Law.
[699] Good Heart's Law.
[700] So the moment you specify a metric, It stops doing his job.
[701] Yeah, it stops doing his job.
[702] So, yeah, there's such a thing as optimising for things and, you know, failing to think ahead of time of all the possible things that might be important.
[703] And so that's interesting because history, I work a lot on reward learning from the perspective of customizing to the end user, but it really seems like it's not just the interaction with the end user that's a problem.
[704] of the human and the robot collaborating so that the robot can do what the human wants, right, this kind of back and forward, the robot probing, the person being informative, all of that stuff might be actually just as applicable to this kind of maybe new form of human robot interaction, which is the interaction between the robot and the expert programmer, roboticist, designer in charge of actually specifying what the heck the one should do, specifying the task for the robot.
[705] That's so cool, like collaborating on the reward design.
[706] Right, collaborating on the reward design.
[707] And so what does it mean, right?
[708] When we think about the problem, not as someone specifies, all of your job is to optimize, and we start thinking about you're in this interaction and this collaboration.
[709] And the first thing that comes up is when the person specifies a reward, it's not, you know, gospel.
[710] It's not like the letter of the law.
[711] It's not the definition of the reward function you should be optimizing because they're doing their best, but they're not some magic perfect oracle.
[712] And the sooner we start understanding that, I think the sooner will get to more robots that function better in different situations.
[713] And then you have kind of say, okay, well, it's almost like robots are over learning, over, putting too much weight on the reward specified.
[714] by definition, and maybe leaving a lot of other information on the table, like, what are other things we could do to actually communicate to the robot about what we want them to do besides attempting to specify a reward from me. Yeah, you have this awesome, again, I love the poetry of it, of leaked information.
[715] You mentioned humans leak information about what they want, you know, leak reward signal for the robot.
[716] So how do we determine?
[717] How do we determine?
[718] protect these leaks.
[719] What is that?
[720] Yeah, what are these leaks?
[721] I don't know.
[722] Those were this recently saw it, I don't know where from you.
[723] And it's going to stick with me for a while for some reason because it's not explicitly expressed.
[724] It kind of leaks indirectly from our behavior.
[725] From what we do.
[726] Yeah, absolutely.
[727] So I think maybe some surprising bits, right?
[728] So we were talking before about, I'm a robot arm.
[729] It needs to move around people.
[730] carry stuff, put stuff away, all of that.
[731] And now imagine that, you know, the robot has some initial objective that the programmer gave it so they can do all these things functional.
[732] It's capable of doing that.
[733] And now I noticed that it's doing something and maybe it's coming too close to me, right?
[734] And maybe I'm the designer, maybe I'm the end user and this robot is now in my home.
[735] And I push it away.
[736] So I push away because, you know, it's a reaction to what the robot is currently doing.
[737] And this is what we call physical human -robot interaction.
[738] And now there's a lot of, there's a lot of interesting work on how the heck do you respond to physical human -robot interaction?
[739] What should the robot do if such an event occurs?
[740] And there's sort of different schools of thought.
[741] Well, you know, you can sort of treat it to control theoretically and say, this is a disturbance that you must reject.
[742] You can sort of treat it more kind of heuristically.
[743] and say I'm going to go into some like gravity compensation mode so that I'm easily maneuverable around.
[744] I'm going to go into the direction that the person pushed me. And to us, part of realization has been that that is signal that communicates about the reward.
[745] Because if my robot was moving in an optimal way and I intervened, that means that I disagree with his notion of optimality.
[746] Whatever it thinks is optimal is not actually optimal.
[747] And sort of optimization problems aside, that means that the cost function, the reward function, is incorrect, at least it's not what I wanted to be.
[748] How difficult is that signal to interpret and make actionable?
[749] So like I, because this connects to our autonomous vehicle discussion, whether they're in the semi -autonomous vehicle or autonomous vehicle, when the safety driver disengages the car.
[750] Like, but they could have disengaged it for a million reasons.
[751] Yeah.
[752] Yeah.
[753] So that's true.
[754] back to, can you structure a little bit your assumptions about how human behavior relates to what they want?
[755] And, you know, you can't, one thing that we've done is literally just treated this external torque that they applied as, you know, when you take that and you add it with what the torque, the robot was already applying, that overall action is probably relatively optimal in respect to whatever it is that the person wants.
[756] And then that gives you information about what it is that they want.
[757] So you can learn that people want you to stay further away from them.
[758] Now, you're right that there might be many things that explain just that one signal and that you might need much more data than that for the person to be able to shape your reward function over time.
[759] You can also do this info -gathering stuff that we were talking about.
[760] Not that we've done that in that context, just to clarify, but it's definitely something we thought about where you can have the robot start acting in a way.
[761] like if there are a bunch of different explanations, right?
[762] It moves in a way where it sees if you correct it in some other way or not, and then kind of actually plans its motion so that it can disambiguate and collect information about what you want.
[763] Anyway, so that's one way, that's kind of sort of leaked information, maybe even more subtle leaked information, is if I just press the e -stop, right?
[764] I'm doing it out of panic because the robot is about to do something bad.
[765] There's, again, information there, right?
[766] Okay, the robot should definitely stop.
[767] but it should also figure out that whatever it was about to do was not good.
[768] And in fact, it was so not good that stopping and remaining stop for a while was a better, a better trajectory for it than whatever it is that it was about to do.
[769] And that, again, is information about what are my preferences, what do I want?
[770] Speaking of e -stops, what are your expert opinions on the three laws of robotics from Isaac Asimov that don't harm humans, obey orders, protect yourself.
[771] I mean, it's such a silly notion, but I speak to so many people these days, just regular folks, just, I don't know, my parents and so on about robotics.
[772] And they kind of operate in that space of, you know, imagining our future with robots and thinking what are the ethical, how do we get that dance right?
[773] I know the three laws might be a silly notion, but do you think about like what universal reward functions that might be that we should enforce on the robots of the future?
[774] Or is that a little too far out?
[775] Or is the mechanism that you just describe, there shouldn't be three laws.
[776] It should be constantly adjusting kind of thing.
[777] I think it should constantly be adjusting kind of thing.
[778] You know, the issue with the laws is, I don't even, you know, they're words and I have to write math and have to translate them into math.
[779] what does it mean to what does harm mean what is uh obey it's not math okay obey what right because we just talked about how you try to say what you want but uh you don't always get it right and you want these machines to do what you want not necessarily exactly what you're literally so you want to you don't want them to take you literally you want to take what you say and interpret it in context and that's what we do with the specified rewards we don't take them literally anymore from the designer.
[780] We, not we as a community, we as, you know, some members of my group.
[781] We and in some of our collaborators, like Peter Beale and Stuart Russell, we should say, okay, the designer specified this thing, but I'm gonna interpret it not as, this is the universal reward function that I shall always optimize, always and forever, but as this is good evidence about what the person ones.
[782] And I should interpret that evidence in the context of these situations that it was specified for.
[783] Because ultimately, that's what the designer thought about.
[784] That's what they had in mind.
[785] And really, them specifying reward function that works for me in all these situations is really kind of telling me that whatever behavior that incentivizes must be good behavior respect to the thing that I should actually be optimizing for.
[786] And so now the robot kind of has uncertainty about what it is that it should be, what its reward function is.
[787] And then there's all these additional signals we've been finding that it can kind of continually learn from and adapt its understanding of what people want.
[788] Every time the person corrects it, maybe they demonstrate, maybe they stop, hopefully not, right?
[789] One really, really crazy one is the environment itself.
[790] Like our world, you don't, it's not, you know, you observe our world and the state of it.
[791] And it's not that you're seeing behavior and you're saying, oh, people are.
[792] are making decisions that are rational, blah, blah, blah.
[793] It's, but, but our world is something that we've been acting when, according to our preferences.
[794] So I have this example where, like, the robot walks into my home and my shoes are laid down on the floor, kind of in a line, right?
[795] It took effort to do that.
[796] So even though the robot doesn't see me doing this, you know, actually aligning the shoes, it should still be able to figure out that I want the shoes align.
[797] because there's no way for them to have magically instantiated themselves in that way.
[798] Someone must have actually taken the time to do that.
[799] So it must be important.
[800] So the environment actually tells, the environment.
[801] Leaks information.
[802] It leaks information.
[803] I mean, the environment is the way it is because humans somehow manipulated it.
[804] So you have to kind of reverse engineer the narrative that happened to create the environment as it is.
[805] And that leaks the preference information.
[806] Yeah.
[807] And you have to be careful.
[808] Right?
[809] Because people don't have the bandwidth to do everything.
[810] So just because, you know, my house is messy doesn't mean that I wanted to be messy, right?
[811] But that just because I, you know, I didn't put the effort into that.
[812] I put the effort into something else.
[813] So the robot should figure out, well, that something else was more important.
[814] But it doesn't mean that, you know, the house being messy is not.
[815] So it's a little subtle.
[816] But yeah, we really think of it.
[817] The state itself is kind of like a choice that people implicitly made about how they want their world.
[818] What book or books, technical or fiction and philosophical, had a, when you look back, your life, had a big impact?
[819] Maybe it was a turning point, was inspiring in some way.
[820] Maybe we're talking about some silly book that nobody in their right mind wants to read.
[821] Or maybe it's a book that you would recommend to others to read.
[822] Or maybe those could be two different recommendations of books that could be useful for people on their journey.
[823] When I was in, it's kind of a personal story, when I was in 12th grade, I got my hands on a PDF copy in Romania of Russell Norvig AI Modern Approach.
[824] I didn't know anything about AI at that point.
[825] I was, you know, I had watched the movie The Matrix.
[826] That was my exposure.
[827] And so I started going through this thing.
[828] And, you know, you were asking in the beginning, what are, what are, you know, it's math and its algorithms, what's interesting, it was so captivating.
[829] This notion that you could just have a goal and figure out your way through a kind of a messy, complicated situation, so what sequence of decisions you should make to autonomously to achieve that goal.
[830] That was so cool.
[831] I'm, you know, I'm biased, but that's a cool book.
[832] to look at you can convert oh you know the goal the goal of intelligence and mechanize it i had the same experience i was really interested in psychiatry and trying to understand human behavior and then a i'm on an approach is like wait you can just reduce it all to you can write math about human behavior right yeah so that's and i think that stuck with me because you know a lot of what i do a lot of what we do in my lab is write math about human behavior mine it with data and learning, put it all together, give it to robots to plan with, and, you know, hope that instead of writing rules for the robots, writing heuristics, designing behavior, they can actually autonomously come up with the right thing to do around people.
[833] That's kind of our, you know, that's our signature move.
[834] We wrote some math, and then instead of kind of handcrafting this and that and that and the robot figuring stuff out and isn't that cool.
[835] And I think that is the same enthusiasm that I got from the robot figured out how to reach that goal in that graph.
[836] Isn't that cool?
[837] So, I apologize for the romanticized questions, but, and the silly ones, if a doctor gave you five years to live, sort of emphasizing the finiteness of our existence, what would you try to accomplish?
[838] It's like my biggest nightmare, by the way.
[839] I really like living.
[840] So I'm actually, I really don't like the idea of being told that I'm going to die.
[841] I'm sorry to link on that for a second.
[842] Do you, I mean, do you meditate or ponder on your mortality or our human?
[843] The fact that this thing ends, it seems to be a fundamental feature.
[844] Do you think of it is a feature or a bug, too?
[845] Is it, you said you don't like the idea of dying, but if I were to give you a choice of living forever, like you're not allowed to die.
[846] Yeah, now I'll say that I want the living forever, but I watch this show.
[847] it's very still, it's called The Good Place, and they reflect a lot on this.
[848] And, you know, the moral of the stories that you have to make the afterlife be finite too, because otherwise people just kind of, it's like Wally.
[849] It's like, yeah, whatever.
[850] So I think the finiteness helps.
[851] But, but yeah, it's just, you know, I don't, I don't, I'm not a religious person.
[852] I don't think that there's something after.
[853] And so I think it just ends and you stop existing and I really like existing it's just a it's such a great privilege to exist that um that yeah it's just I think that's yeah I still think that we like existing so much because it ends and that's so sad like it's so sad to me every time like I find almost everything about this life beautiful like the silliest most mundane things are just beautiful and I think I'm cognizant of the fact that I find it beautiful because it ends like it and it's so i don't know i don't know how to feel about that uh i i also feel like there's a lesson in there for robotics and ai that uh is not like the the finiteness of things seems to be a fundamental nature of human existence i i think some people sort of accuse me of just being russian and melancholic and romantic or something but that seems to be a fundamental nature of our existence that should be incorporated in our reward functions.
[854] But anyway, if you were, speaking of reward functions, if you only had five years, what would you try to accomplish?
[855] This is the thing.
[856] I'm thinking about this question and have a pretty joyous moment because I don't know that I would change much.
[857] Oh, that's a beautiful thing.
[858] I'm, you know, I'm trying to make some contributions to how we understand human AI interaction.
[859] I don't think I would change that.
[860] Maybe I'll take, you know, I take more trips to the Caribbean or something, but I tried to some of that already from time to time.
[861] So, yeah, I mean, I try to do the things that bring me joy.
[862] And thinking about these things, bring me joy is the merry condo thing, you know, don't do stuff that doesn't.
[863] doesn't spark joy.
[864] For the most part, I do things that spark joy.
[865] Maybe I'll do less service in the department or something.
[866] I'd be like, then death card.
[867] I'm not dealing with admissions anymore.
[868] But no, I mean, I think I have amazing colleagues and amazing students and amazing family and friends and kind of spending time and some balance with all of them is what I do.
[869] And that's what I'm doing already.
[870] So I don't know that I would really change anything.
[871] So on the spirit of positiveness, what small act of kindness if one pops to mind where you once shown that you will never forget?
[872] When I was in high school, my friends, my classmates did some tutoring.
[873] We were gearing up for our baccalaureate exam, and they did some tutoring on, well, some on math, someone, whatever.
[874] I was comfortable enough with some of those subjects, but physics was something that I hadn't focused on in a while.
[875] And so they were all working with this one teacher.
[876] And I started working with that teacher.
[877] Her name is Nicole Becano.
[878] And she was the one who kind of opened up this whole world for me because she sort of told me that I should take the SATs and apply to go to college abroad and, you know, do better on my English and all of that.
[879] And when it came to, well, financially I couldn't, my parents couldn't really afford to do all these things.
[880] She started tutoring me on physics for free and on top of that sitting down with me to kind of train me for SATs and all that jazz that she had experience with.
[881] Wow.
[882] So, and obviously that, has taken you to be to hear today also one of the world experts in robotics it's funny those little yeah people do it is small or large for no reason really just out of karma wanting to support someone yeah yeah so we talked a ton about reward functions let me talk about the the most ridiculous big question what is the meaning of life what's the reward function under which we humans operate like what maybe to your life maybe broader to human life in general what do you think what what gives life fulfillment purpose happiness meaning you can't even ask that question with a straight face that's how ridiculous this is like okay so you know you're going to try to answer it anyway or sure so i was in a planet sanitarium ones.
[883] Yes.
[884] And, you know, they show you the thing and they zoom out and zoom out and this whole like your respect of dust kind of thing.
[885] I think I was conceptualizing.
[886] They were kind of, you know, what are humans?
[887] We're just on this little planet, whatever.
[888] We don't matter much in the grand scheme of things.
[889] And then my mind got really blown because they talked about this multiverse theory where they kind of zoomed out and we're like, this is our universe.
[890] And then like there's a bazillion other ones.
[891] And it's just they pop in and out of it.
[892] existence.
[893] So like our whole thing that's that we can't even fathom how big it is was like a blimp that went in and out.
[894] And at that point I was like, okay, like I'm done.
[895] This is not.
[896] There is no meaning.
[897] Clearly what we should be doing is try to impact whatever local thing we can impact.
[898] Our communities leave a little bit behind there, our friends, our family, our local communities and just try to be there for other humans.
[899] Because I just, just everything beyond that.
[900] seems ridiculous.
[901] I mean, are you, like, how do you make sense of these multiverses?
[902] Like, are you inspired by the immensity of it?
[903] Do you, I mean, you, is there, like, is it amazing to you?
[904] Or is it almost paralyzing in the mystery of it?
[905] It's frustrating.
[906] I'm frustrated by my inability to comprehend.
[907] It just feels very frustrating.
[908] There's some stuff that, you know, we should time, blah, blah, blah, that we should really be understanding.
[909] And I definitely don't understand it.
[910] But, you know, the amazing physicists of the world have a much better understanding than me, but it's still since epsilon and the grand scheme of things.
[911] So it's very frustrating.
[912] It sort of feels like our brain don't have some fundamental capacity yet, well, yet or ever.
[913] I don't know.
[914] Well, one of the dreams of artificial intelligence is to create systems that will aid expand our cognitive capacity in order to understand the build the theory of everything with the physics and understand what the heck these multiverses are so I think there's no better way to end it than talking about the meaning of life and the fundamental nature of the universe and multiverse so Anka is a huge honor one of the my favorite conversations I've had I really appreciate your time.
[915] Thank you for talking to that.
[916] Thank you for coming.
[917] Come back again.
[918] Thanks for listening to this conversation with Anka Dragon, and thank you to our presenting sponsor, Cash App.
[919] Please consider supporting the podcast by downloading Cash App and using code Lex Podcast.
[920] If you enjoy this podcast, subscribe on YouTube, review it with five stars on Apple Podcast, support on Patreon, or simply connect with me on Twitter, and Lex Friedman.
[921] And now, let me leave you with some words from Isaac Asimov.
[922] Your assumptions are your windows in the world.
[923] Scrub them off every once in a while or the light won't come in.
[924] Thank you for listening and hope to see you next time.