Stanford Webinar - Create a Better User Experience through AI, Michael Bernstein

Michael Bernstein argues AI should augment human abilities rather than replace them, requiring careful design of interfaces and uncertainty handling. He covers ability-based interfaces, design-assist tools, and techniques like LIME to make AI models understandable, while addressing bias, fairness, and how organizations should govern AI data.
Chapters
Now I would like to welcome today's presenter, Associate Professor Michael Bernstein. Michael, the Associate Professor of Computer Science in the Stanford School of Engineering, is also an STMicroelectronics Faculty Scholar at Stanford. where he, he is a member of the Human-Computer Interaction Group. His research focuses on the design of social computing and crowdsourcing systems. Michael has received 8 best paper awards at premier computing venues, and he has been recognized with an NSF Career Award and an Alfred P. Sloan Fellowship. His PhD students have gone on both to industry working at Adobe, Facebook, and starting companies, as well as faculty careers at Carnegie Mellon and UC Berkeley. Michael holds a bachelor's degree in symbolic systems from Stanford, as well as a master's degree and PhD in computer science from MIT. Welcome everyone today, and welcome Michael. Would you please go ahead and get started?
All right. It's wonderful to have you all here. Thank you, Anita. My name is Michael Bernstein, as she mentioned. And yeah, I teach in and do research in Stanford's Computer Science Department, which means that I'm interested in how we design computational systems that are a better fit for human needs, goals, and essentially the broader context. And a lot of what we do draws on the techniques developed by modern artificial intelligence algorithms to create new kinds of user experiences. And that's really what our goal is going to be today. We're going to be thinking about the kinds of opportunities that arise when you combine AI with human-computer interaction or HCI, but also the unique challenges that come. And I wanna start off by just mentioning that if we get this wrong, it can be really, really tough. I'm sure you've all seen examples publicized in the media Demonstrating, for example, when people are applying AI techniques in ways that are racist, biased, are creating all sorts of errors. Even today on the internet, lots of people, I think, chiding a website that will tell you the gender of a name and putting in words like professor and finding out that it's 98% nurses is very female. There's lots of challenges and issues that we have to consider as we think about these. I think it's important that we draw on broad Today, we're going to focus on how AI is influencing sort of that last mile of user interaction. So I'm going to go ahead and share my screen, which means that my face is going to largely disappear. But I promise I am talking to you live. And I encourage you to put questions into the Q&A. And I'm happy to have a conversation about this as we wind up. So again, very thrilled you're here with us. You're going to get a brief moment of transition as we start the slides.
All right.
This talk is going to be about what I call interactive artificial intelligence. So I think what we need to do here is acknowledge that AI is not just a thing that happens in the backend, but that ultimately these are all done in the service of some human goal. And sometimes these AI systems are put directly in the hands of people. And we need to think about how we co-design the AI and the interaction to be effective. Now, give a few examples here on the right from colleagues at UC Berkeley showing that really AI hits the road when it starts to interact with people, whether we're talking about, in these examples, robots, robots that are— you can imagine a completely non-humanoid robot, but at the end of the day, the robot needs to interact with people.
Right.
So what these folks on the left at MIT's Personal Robotics Group are doing are looking at ways in which robots are giving social cues through what it's looking at, for example, that people can make sense of. Or on the right, Anca Dragan's group at UC Berkeley is building grasping algorithms that people can understand. They're legible. I can predict where that robot is going to actually grab. Because it turns out that the most direct path for a robot to grab, say, that bottle on the right-hand side, is not actually the path that people are going to find the most intuitive. So instead, the robot could take a less direct path, but one that people make more sense and can predict what it's going to do. Now, we already have AI that's interactive in everyday use. Maybe you use Siri or Alexa or any of these smart assistants, or maybe you just use systems like Google, Bing, other search engines. And those are all AIs behind the hood. They are AIs that have been built with the interaction on top of them. Google very famously created just a single text box, whereas previous search engines were much more complex. And at the end of the day, I think we have to acknowledge that automation here is not the answer.
That—
actually, a very good case in point. As I'm speaking, my Alexa is actually talking to me because it thinks I'm trying to I just had to go unplug my Alexa right now because it has not been designed effectively to take into account that I might be talking about Alexa rather than to Alexa. So, case in point. Automation, full automation is not the answer. I think a very simple case in point here is self-driving cars. I would love it to be the case that I could get into a car and that it would just get me where I need to go. But a ton of studies have demonstrated that this is a really patently bad idea. What you're seeing here is some moments from a study done by Wendy Zhu, who's now at Cornell Tech, looking at handoffs between automation and live human control. Every car, every automated car at some point is going to get into a position where it no longer can drive completely in an automated way. There's construction on the road. It's confused. It needs to hand control back to the human. And in the bottom left, you can see this person is actually staring at their phone while they're getting driven somewhere here in a simulator. And then the car all of a sudden says, oh, guess what? It's your turn now. And the person freaks out and barely avoids careening off the road. In fact, as another car is coming in as oncoming traffic, they almost get into an accident. They're also swearing. I've cut that part out. Essentially, it's not about is the automation good or is the person good, but here it's that intersection where the automation had to hand back off to the person. How do we design those seams so that people can work more collaboratively and that the power can be handed back and forth more effectively? And to make this point, I'm going to start by introducing a term. It's called intelligence augmentation, and it actually has a long history. Intelligence augmentation, I think, effectively understood as a response to the notion that AI is just going to take over everyone's jobs. There are many folks, including actually Stanford has incoming faculty, Erik Brynjolfsson, he was just arriving from MIT, studying which jobs in particular AI might actually eventually displace. They're largely very rote ones. In reality, there are some jobs that will be replaced in that way. Many are— it's going to be— the story's going to be much more complicated. And there's going to be much more of a pull and tug. So this is a picture of Douglas Engelbart. He's a Turing Award winner. That's basically the Nobel Prize of computer science. Douglas Engelbart invented, among many things, hypertext, the mouse, a two-handed— a one-handed key— a key cord— corded keyset, which we use less, the initial word processor. sorts of stuff, effectively the first working graphical user interface. But he had a vision around how all this was going to go, one which he published at Stanford Research Institute, SRI, at the time about what he called augmenting human intellect, that computers were not here to replace us, but to actually make us smarter. Imagine a sort of cognitive prosthesis, something that's like a strap-on cortex that makes our brains smarter. On the left, artificial intelligence, where you're trying to take human intelligence and just replace it with computation. But on the right, and I think the point I'm going to try to make here, is much more focused on what I would call intelligence augmentation and what Douglas Engelbart calls intelligence augmentation, where instead of just displacing, what you're doing is actually using the computation and the intelligence to help us do— think through things smarter, better, more effectively, more collaboratively. So let's talk about that. Now, any story about what AI and interaction are going to do together needs to start with a very brief collective moment of what AI can and cannot actually achieve. And here, I love this quote by Eitan Adar at University of Michigan, where he says, don't let your UI, your user interface, write a check that your AI can't cash. What he means by this is that it's very common that people will build user interface elements that assume an AI that's smarter than AI can actually provide. I think one of the most famous examples of this, if I'm not going to raise various forms of PTSD for old-time computer users, is Clippy, the Microsoft Office assistant. It was trying to guess when you were, say, writing a letter and would pop in a little paperclip and say, hey, it looks like you're writing a letter. But the AI, they had tuned it down to the point where it was not really very smart. And so the user interface was assuming a brilliant AI that didn't actually exist. So how do we know what might actually be feasible? My colleague Andrew Ng in computer science is a machine learning researcher. I think he had this article in the Harvard Business Review that I think puts a nice point on it. We can debate the particulars of it, but I think in broad brushstrokes, this is not so far off, that we have to think about 2 things. First, essentially, when you're talking about AI, almost all of its progress is through a particular type of function, something that takes some input, A, and generates some simple response, B. And the As and the Bs can change, but it's always A becomes B. You give it an A that's a picture, and the B response is a yes or no, is there a face in it? You give it an A that's a loan app, and B is a prediction, will they repay it? Again, there's lots of issues with doing that and bias, that can come out of it. A might be an English phrase. B might be a French phrase. We're just translating. Everything sort of— you feed something in, it gives you something back. And what he says that I think is a good way of thinking about this is that if a typical person can do a mental task with less than 1 second of thought, then we can probably automate it using AI either now or in the near future. So what does that mean, right? It means that things like, Is that a person? Is that a face? Is that a dog? Is this sentence in English? All of these kinds of tasks are things that you do almost subconsciously, very quickly, in a second or less. And they very obviously, if not already, can be done by AI. Other things like, please design this software for me, architect my home, is this person Going to win the Olympics in 10 years? These are all things that would take much more than 1 second of thought. And so this is likely to remain outside of the realm of AI for the considerable future. So again, is my car inside the lane? Yes, we can do that now. That's a very fast task. But is my—
Sure.
We can make judgments, but maybe we're doing OK, but it's not clear we're going to get it right yet. So then we need to flip this around and say, OK, if that's what AI can and cannot do, what can and can't we do with intelligence augmentation? And here, I'll give you a few examples of how things that are likely coming to market soon are drawing on these advances. So you can imagine, for example, a project in which a piece of hardware that you can install just sort of turns something into the pipes outside of your— the spigot outside of your house, and it will start to disaggregate your water usage and be able to start telling you how much water is being used by this toilet, this bathtub, this sink, this dishwasher. Imagine just being able to screw one thing in and then getting all sorts of visualizations about What's using water, right? It's learning on its own. It's being trained what's a toilet, what's a faucet. And the way you can tell this is by momentary changes in the water pressure in your water line as, say, the faucet opens. And once you have these, you can start to think about how you design potentially behavior change interfaces that would visualize how much water you're spending, who's spending it, what time of day, try to help you sort of be more sustainable. Another example are what are known as ability-based interfaces. These are interfaces that can be customized to individuals, say, with different motor abilities. So imagine that I was born with a motor disability. This system can start to take a user interface like the one on the top, measure various things about my motor abilities, and then predict a version of that same interface that would be more effective given my motor abilities. Individuals who have these customized interfaces— you can imagine this being like a web browser plugin, for example— are about 25% faster, make 73% fewer errors with these automatic adjustments. So we can start to think about how AI can understand how people who are born with various motor disabilities or seeing or visual disabilities might be able to perform, or also as I age, or as I'm distracted because I have a 3-year-old at home and I'm working from home now because of COVID-19. All of these differences. In the style and fashion space, people are building technologies that allow me to describe in words what it is that I'm looking for. I'm looking for an outfit for a beach wedding. It needs to sort of look effortless and breezy and build embeddings on top of this that can return items that match the query even though I may not have used exactly the right terms. Think of this as sort of a higher-level search engine. I don't just say dress with flowers. I say a beach wedding that's breezy. And it can do this mapping. Here's another one. This will be a bit of a short video. If you're a visual designer, people are building AI models that can understand where people are looking. So you want a heat map that says, look at the red parts. People pay attention to the red parts. And as I move the design of my poster around, let's say this text October, as I make it smaller or larger, I can see immediately how much people are going to be paying attention to various parts of the poster. So now imagine I'm a designer or a marketing person or something like this, being able to work in a very tight loop where I can change everything that I'm doing. I can change the design. I can change the messaging and get an immediate prediction of what people are going to pay attention to because we have better models of human visual attention. So if I change the color, no one pays attention anymore. So there are lots of opportunities, but there's lots of challenges in this space as well. And I think this is where we're going to start to dig into the core issues around designing interactive artificial intelligence, which is uncertainty and error. What do I mean by this? So essentially up to this point in computing and interaction, we've lived in a world in which when I click on something or when I say something, The computer does exactly what I ask. It's known as direct manipulation, that I say click on the save button and the machine saves. Click on the bold button and my text gets bold. But people are trying to do stuff with AI that will inevitably introduce error and uncertainty. And that's because— I might be saying things at a higher level, like make this look more professional. Or it might misunderstand me, or it might misexecute. It's more intelligent, but it's not deterministic. It's not for sure that it will do this. So what do we do about this? In some systems, when you have very high certainty, that you just— that the systems will automatically take action. So on the left, you can see an example in Gmail. If I said, you know, attached are my tax documents, but I didn't actually attach anything, or various other versions of this, Gmail will actually pop up a window that says, hey, did you actually mean to attach files? This is sort of like the, are you trying to write a letter right now, from Microsoft Word. But it's so certain, given your language, that this is often viewed as a savior rather than an annoyance. Likewise, when I tell Siri to set an alarm, in 25 minutes, Siri just goes ahead and does it. When it's high certainty and the probability of error is low, it just go— these systems will go ahead. But what if certainty is lower? What do we do? And here there are a number of different techniques that industry and in research have developed to try and be a bit smarter about this. One of them goes under the heading of adaptive interaction. In adaptive interaction, what you're doing is tweaking the interface to sort of bring things closer to you that you— that the system thinks might be more useful. So rather than trying to execute something automatically, it's sort of more like an assistant who's bringing you the stuff that you might need right at the time when you need it. And you can notice, for example, that when you resize in this case Microsoft Word, it's not that it just cuts off the various items, it will actually relay out some of them. It'll collapse certain things, it'll expand certain things because it has a notion of what you're likely to be clicking on and it will try to lay things out such that it keeps the tools that you need most available. Again, you can think about being adaptive that As you'll notice that if I take a website and I turn it— on my phone and I turn my phone from, say, vertical to horizontal, it will relay it out. AIs will sometimes do this kind of thing as well, where I can automatically relay out an interface that was, say, designed for a mouse interaction to work well with touch interaction, like on a phone or a tablet, by trying to optimize a cost function on how much time and effort it would take someone to do this. Now, so you can be adaptive like this, but another large set of options are oriented around accelerators. What are accelerators? Accelerators basically don't force you to do anything. By default, it might just do exactly— you might be exactly as fast as you are now, but it offers you an opportunity to autocomplete what you're doing. Sometimes literally. When I type SANF into Google, this dropdown has lots of guesses about things that I might actually be typing. And it's not San Francisco that's the most likely. It's actually San Francisco weather. So all I need to do is press the down arrow and Enter, and it'll speed me up. Or likewise, when I'm driving, driving directions, like with Google Maps or Apple Maps or various other ways, it will sometimes say, hey, there's a faster route now available. And this is an interesting question, right? I can be accelerated by hitting Accept, Or if I do nothing, I stay where I am. There's always the important question here of whether this is opt-in or opt-out. If I do nothing, will it move me to the new route? Or if I do nothing, will it just keep me where I am? This is very context-dependent. In general, my advice is to opt toward heavier user control, which would mean by default, do the last thing the user told you to do, but allow them to revise their opinion. Another approach that many interactive systems use when trying to layer on top of uncertain AIs are suggestion. This is when you have lower certainty. These are often seen in the context of what are known as recommender systems. Recommender systems power everything from Amazon to Netflix to Stitch Fix. The basic idea here is that it's saying, hey, here's some stuff you might be interested in seeing. Netflix at some point tries to— maybe thinks that I'm into comedies, and it'll show me Parks and Rec, Friends, and Cheers. Or Stitch Fix is trying to learn more about my style so that it sends me jeans that fit my style. If you want to learn more about this, I would check out collaborative— the term collaborative filtering. There's a rich set of techniques around this. But ultimately, what these recommender systems tend to be used to do is to display a large number of personalized suggestions to the user. So we don't know which one, we might be wrong about any given one of them, so we're not going to show you one, we're actually going to show you a menu and you're going to pick between them. The hope is that at least one of the things there would be good enough, even if some of them are kind of off. And then in general, if you have low certainty, you just do nothing. This is in fact most interfaces today. It does what's known as direct manipulation. It just says, the end user's in control. We're not going to screw anything up, but we're not going to do anything either. We can make guesses, but ultimately, there's so much error that we might make that it's just not worth it. It's just not worth it. We're going to leave you in control. So this is overall known as a mixed initiative interaction framework. And it's mixed initiative because sometimes the computer will take the lead, and sometimes the person will take the lead. If you're a little bit more mathematically oriented, I can provide a visualization of the notion here. On the x-axis along the bottom is the probability of some goal being true given that the system thinks it's true. On the bottom right there is, yep, the machine is right. On the bottom left is, nope, it's wrong. It thought that your goal was G, but it definitely wasn't. And on the y-axis is how much value this brings to you. This is in sort of an economic sense, like utility. So is it really good for you, or is it pretty bad for you? So if it's unlikely that the user has a given goal, we're on the left half of this square. And if it's likely that the user has a given goal, then we're on the right half of that square. And you can actually now build out several— you can build out a few utility measures. So for example, In the upper left, that little sideways half T is a NOT symbol, logical operator NOT, if you haven't seen that before. What it's saying is, what's the utility to the user if I take no action and it was not their goal? So let's say it means if I interactively do nothing, just let the user do their thing, and I was wrong about what the thing that they were going to do was. And in the upper right, likewise, is the utility of taking action if it was their goal. What if they didn't want to change routes and I did it for them? How good is that? And likewise, the other 2 would say, what if I don't do anything but I was right? What if I do do something and I was wrong? That's the false positive, right? What happens if I say you're writing a letter? How bad is that? And it turns out that you can actually reason over this space to figure out when you should do what. For example, here, this green line is what you could think of as the utility of inaction. They both say not A. That means I do nothing. So in the upper left, that means if I was wrong about the goal, this is how much utility I would be getting if I did nothing. And on the bottom right, if I did nothing but I was right about the goal, that's how much benefit or harm I would bring to the user. Likewise, there's the utility of action. And what you can start to do is say, where's the line highest? And what you can sort of see is that the line on the utility of inaction connection is higher. It's in that upper left. It's higher up when I'm low certainty on the left half of the diagram. When I'm not actually sure, I should probably not do anything. But as I become more sure, then I should start to act. And you can reason about this in a closed-form fashion through this notion of mixed initiative interaction from Eric Horvitz. Now, that's all What happens at the user interface side? What happens about interaction when we're really dealing with the guts of these machine learning models? What should we do? What's going to happen? Here we're going to dive into these machine learning models, these ML models a little bit more directly because these AI systems are all built on the back of these modern neural networks and we have to understand what we can do to try and make these models more powerful, more effective, more understandable, and so on. I'm going to assume here, at least at a basic level, you know what machine learning is doing. But if you don't, I think you could probably figure out the assumptions that I'm making. One of the core questions of this space is, what is that black box learning? You've trained some statistical machine learning model. And what has it learned? How do I know what it knows and what it doesn't know? What kind of errors might it make? These machine learning models are big black boxes. They're powerful, but they're very high-level statistical functions that can basically— they're universal approximators, which means they could learn anything. But what did it learn? So it's opaque, it's unintelligible, which makes this thing very difficult to predict, design, and debug. And it results in some very non-intuitive behavior. This famous image by Ian Goodfellow Here's an example. I built a computer vision algorithm that classifies what it's looking at. Here in the bottom left is I feed it that image of a panda, and it outputs panda with an okay level of confidence, about 57% confidence. Then these authors demonstrated that I could add a very, very small amount of noise carefully chosen noise that is a messed-up version of a nematode— or excuse me, it's going to think it's a nematode but be very low confidence in that— and produce the image on the right. That image looks to humans basically exactly the same as the panda image on the left. It does have this sort of high-frequency noise layered into it, but we humans can't really tell. But this totally messes up the algorithm, and now the algorithm thinks with very high confidence, 99% confidence, that this thing is a gibbon. Totally wrong. So 2 images that look the same to people, the algorithm is thinking are very different. And so we need to be able to understand why did it think this way? Why did adding this seemingly random colored noise change its opinion? The goal here is to produce what's known as intelligibility in these models. A model is intelligible Um, as is sort of— as is defined, basically to the extent that a person can predict how a change to the inputs will change its outputs. So for example, uh, let's examine whether my 3-year-old is intelligible. Um, and, uh, I was trying to feed him lunch earlier today. If I give him a, uh, peanut butter sandwich, I can predict that he will be happy and eat it. If I try to give him the lentil soup that I made, I can predict that he will not eat it and will not be happy. So I feel that that model is relatively intelligible because I can reason about it. When I change the inputs to his lunch, I can predict the outputs from his mouth. So for example, in the bottom left, linear relationships we tend to view as very intelligible. So y= mx+ b. If I get more years of education, then my lifetime income goes up. That's a linear relationship. It's just 2 variables. As I increase y— as I increase x, y either goes up or down. Convolutional neural networks of the sorts that are used in computer vision, far less intelligible. There's these sliding windows that are compressing down and then recombining. Essentially, one cannot really make a prediction of what happens if I change the little circle on the top of the robot's head to a square. We don't know exactly what's going to happen. They make, as we would say at the end of the day, they would make errors. One way to look at this from an intelligence augmentation point of view is to try and help visualize what the model sees. These are images that might keep you up at night, but what it is, is on the far left, you can essentially accentuate the nodes within the neural network that are activating with the notion of a Labrador Retriever and essentially get it to hallucinate what it sees when it thinks of a Labrador Retriever. Then as you go over to the right, a tiger cat. And then you can build the entire linear space between those to look at what is it paying attention to. And as you can see on the far left, when it's recognizing Labrador retrievers, what it's really seeing are these big floppy ears and some brownish nose and so on. And then on the right with the tiger cats, you can see the small pointy ears, the sort of texture to its fur, the patterns on its fur. and in between. The question would be, maybe we can't make the thing reason in the same way that a person can, but maybe we can come around the other side and help a person see what the system is seeing. Now, there are other approaches as well. Just simplify the model. Sometimes you can actually get 90-95% of the performance out of the machine learning model with far higher intelligibility. One of my favorite examples in this space is an algorithm known as LIME. And what this thing does is try to point out that even if the entire decision is complex, maybe within a specific— with the case of a single example, it's much simpler to understand. So let's say, for example, here you have these blue circles and these red crosses. And the machine learning algorithm has learned to separate the red crosses from the blue circles through the sort of lighter-colored irregular space that you see here. So let's say you were trying to explain why is this red plus sign— why is it in the red space? Why is it not a blue— why do I not think it's a blue circle? What would you do? Well, LIME made this observation that you could sample points nearby, for example, these big red crosses and big blue circles, and weigh them in proportion to how close they are to the example you care about, and then learn a very simple linear separator between those. So you see that black dashed line around the red plus sign says, you know what, I can't explain the full complexity of the space to you, but for this particular example, relative to other counterfactuals nearby, here are the features that matter. What's important to note here, well, let me give an example. Again, my 3-year-old, when I say it's bedtime, they can say, why? Why is it bedtime? I'm not tired. I can give all sorts of different It might involve the fact that he needs sleep or he's going to become a mess. It might be that, you know, I need to do some work tonight. It could be many different things and they might all be true. It's complex space. But in the case of this particular example, the most salient reason might just be because it's after his bedtime. And that's the simplest explanation to give. If the time were to change to be earlier, it would no longer be his bedtime. So I've inserted a simpler explanation, but it's important to point out that this is actually— it's kind of technically a lie. It's not a representation of the full model. There are times where I would let him stay up past his bedtime for specific reasons, but I'm not going to explain all that. It's going to be a local explanation. Percy Liang and Pengwei Ko here at Stanford also did some cool work on influence functions that are another way you can visualize this. So in this case, what you can do is say, well, here's this test image on the left. And you can start to actually identify the training images, the inputs you trained the algorithm on, that were most influential in the decision. So again, here, with the sense of my 3-year-old, sending him to bed, you can say, why? Well, I can say, well, let me tell you. Because when you stayed up late last time, you were very cranky the next day. So it pulls out the influential training data points, and those are much more readily interpretable than a complex model. Now, as Dan Weld and his colleague argue, there's actually a dilemma here. Any model simplification like LIME is a lie. It is not true that this is exactly how the model reasoned about it. We're telling you a single thing when there's a much more complex set of factors in play here. But it turns out that the non-simplifications are just unintelligible. So we're somewhat in a sticky wicket here, that we either have to lie or we have to give you the full details in a way that are going to be very hard to understand. And I think it's really going to depend on your context. What Dan Weld argues is that you can draw on psychology research to guide what makes for an effective explanation. So you make explanations, for example, contrastive. These are things that people tend to understand quite well. Well, why did you recommend movie X the implicit critique there is, why didn't you recommend movie Y? And you can explain that much more effectively. Necessary causes being better than sufficient ones, using few conjuncts— don't say it's because of A and B and C and D and so on. Now, when we pull all this together, we start to see a situation where these AI techniques are especially common as we kind of move off the desktop into voice, speech, computer vision-based interaction. Because once you're off the desktop, you often require intelligence. I'm going to avoid saying the name of the smart speaker on the left in order to— so that I don't say the wake word of the one in my room. But you can get the idea of what it is. Fitbit, Apple Watch are all sensing, am I biking right now? Am I walking? Am I— soon the new version of iOS will tell you whether you're washing your hands. The Nest thermostat detects when it should be changing the temperature and whether you're home and so on. This all requires artificial intelligence because we're not going to sit there and tap every button on everything. And there's lots of examples where this has become successful. So here's an example of a research project a number of years ago now at Georgia Tech demonstrating that you can figure out what kinds of Just like before when I was showing what's using the water in your home, what's using the electricity in your home. Or here's an example out of Carnegie Mellon demonstrating that by just simply having a smartwatch on, it can start to pick up on the electromagnetic waves being sent out by various things you might touch and your computer can in real time detect what you're touching. So as I'm holding this iron file, Sending electromagnetic signals to my body, as well as a smartwatch. That smartwatch makes sense of the signal, runs some machine learning on top of that, and then detects what I'm doing. Now imagine that my watch knows what I'm doing. Am I grasping my office door? It should unlock the door when I'm grasping the door, for example, and all sorts of other examples. So am I turning on the stove? Am I grabbing my toothbrush? Am I trying to open a room? Am I using my first laptop or my second laptop? Imagine how our interfaces might be able to adapt themselves if they knew what I was doing. These are the kinds of applications that become possible when we go off the desktop. So I have just a few closing thoughts, and then we have— hopefully I left plenty of time for questions. And again, as a reminder, there's a Q&A area in your interface that you can feel free to toss questions into, and then you'll soon be able to see my face again, and we can have a discussion for the rest of the conversation here. So a few reflections. First, AI is undoubtedly a very powerful tool, but it brings along with it some massively unsolved user interaction problems. And often— and there are a few different sources of those. One which warrants an entire lecture on its own is problems around bias, justice, and so on that these models can inherit. The one we talked about today, also important, is the fact that all of a sudden it takes something that used to be a very certain interaction, direct manipulation, and injects So it brings benefits in that it can do things that a direct manipulation interface never could, but it also makes errors and it's not sure about its answers. So we have to think about how to design. So the second reflection here that I hope you're taking away is that if we're smart and thoughtful about how we do the interaction design, we can hide or manage that uncertainty more effectively, that we can sort of build a user experience that still feels good even though under the hood it might not be entirely certain. We also now know that if you don't do that well, as I'm sure you can now think of examples, it can really cause someone to throw the thing on the floor. And finally, again, quoting Eitan Adar, don't let your artificial intelligence write a check that your UI can't cash, meaning don't build an AI model that we can't create an effective user interface around. And don't let your user interface, your UI, write a check that your AI can't cash. Again, meaning that you shouldn't be building a user interface that assumes or promises things that an artificial intelligence algorithm can't actually do well enough yet. It turns out through prospect theory, a Nobel Prize-winning theory from Kahneman and Tversky, that people are very, very averse to problems and errors. People will much rather avoid a problem than essentially get an equivalent benefit. So if I have a choice between something that's slower but will do the thing for sure, or faster but might make an error, many people will choose the slow but sure route. I think this is a major impediment in some ways, or a major reason why people are avoiding intelligent interfaces unless they're very, very accurate. So I'll close here, and I think we have a few minutes left for conversation, questions, and so on.
All right.
So I will stop sharing my screen. And we will talk. Hopefully you can now see my face.
Yes, and hopefully everybody can hear me. Thank you, Michael. This is very informative and an impactful presentation. We've gathered a range of questions from the audience, so let's go ahead and get started. The first question is, if you could talk more broadly, how is AI being utilized to mitigate This particular question was supply chain disruptions during the pandemic. For example, in the food service industry, transportation logistics, clean energy, or any other industry, what are you seeing? What are you hearing out there right now?
Sure. Yeah, well, not very well for a very particular reason. Again, hopefully you can see my face now. Here's the reason. Okay. Machine learning inherently makes the following assumption. It has training data, and the training data is assumed to be coming from the same distribution as the test data or the real world. What that means is that essentially all of these algorithms assume that what they're going to need to do when they're put in the real world is Exactly like the training data they were given. So now imagine that your training data all comes from a pre-pandemic world. You can make all sorts of assumptions. And now your test environment, your real-world environment, is a pandemic. Everything has changed. And so many of these algorithms will, in fact, I predict, make the wrong predictions because they don't know what to do in these sort of off-kilter scenarios. There's a really good example. You may have heard a few years ago, there was a— Google's AlphaGo algorithm was playing Go master, the world champion, and it did, in fact, win. But, there was a very telling moment where, essentially, the player, the human player, did something that the algorithm had not really seen before. It was a confusing move, and the system just totally collapsed and made some nonsensical moves. I would actually be very careful about thinking about how to deploy AIs in a world that has changed because that's not what they're meant to be able to do. In those cases, I would actually be much more— I would be much more likely to make sure that there's additional human oversight so that it's not making unusual or poor decisions.
Great. That leads me— thank you. That leads me into the next question. And this is actually a combination of a few different questions.
Sure.
How do we help AI to avoid bias towards things like race, disabilities, gender, where we know there's an issue? How do we adjust for that?
Yeah, well, I think we have to be careful that there might be, you know, challenging assumptions belying the question, how do we adjust for that? Because it sort of assumes that we know what we're adjusting for. That if we could just get something that performed that didn't exhibit that bias, that would solve the problem.
And it won't.
But let's take this in 2 parts. So if you're interested in the very cutting-edge technical work in this space, I would check out a conference. I'll just list out the letters, FAT*. It stands for Fairness, Accountability, and Trust, and then everything else around that. It's a conference where people People really spend a lot of time thinking about this. However, as many have demonstrated, there's no single really effective definition of what fair means or what bias means. So, for example, you could stratify on certain demographics and make sure that your algorithm is not performing better or worse on certain demographics than others. There was a subject of a major ProPublica article article a number of years ago about how the algorithms used to predict recidivism and used by judges, i.e., are you going to show up to your court date if I let you out on bail, were biased against African Americans or Black people. And it's definitely true that we can start to build estimates of this, but it's actually very— the devil's in the details there, and there's no really good way to capture everything about what we mean by fair. And so you end up having to pick one definition or another, and then you're going to inevitably basically be missing something. If you're looking for folks at Stanford who have been thinking about this, Sharad Goel in the Management Science and Engineering Department has some really excellent, fairly statistically heavy work looking at how we can reason about these issues. That said, even a perfectly fair, transparent, an accountable algorithm might still be used to advance unjust causes, right? I can have a perfectly fair algorithm that's yet still used by an authoritarian government to, you know, identify people who are protesting and go throw them in jail, or that is applied disproportionately toward people of colour. And I think that's where we need to remember that computing doesn't just exist in some technical magical world where ethics and justice don't matter, but in fact that AI and computing are very tied up with systems of power and oppression. And we have to stop and think, OK, what is it that this system, this AI, et cetera, is being used to do? What's the goal? Who's going to be in charge of it? And how comfortable are we with that answer? What are the likely abuses of that power? And what should be built in the system to predict— to prevent it? Or should the system be built at all? It could all just be an input to a human who maybe is elected or something like this.
Great. Thank you. This is another combination of a few different questions. For an aspiring startup or a larger company that has never implemented any AI, what Where, you know, the general question is, where does one start? And then getting, you know, taking that, maybe you've done some AI implementation. What are the new fields in which AI is being implemented?
Sure. Well, to take that in an inverse order, you know, the first sort of business areas that adopted AI were the areas that were fairly computationally heavy, that sort of tech field, because essentially computer science majors were learning machine learning. And they said, ooh, I can work with this. Let's insert smart email prioritization into Gmail, et cetera. And I think what you're starting to see, or you've started to see over the last few years, is the diffusion of this into supply chain management, Everything else— fashion, farming, FiveThirtyEight trying to predict political outcomes from polling, and so on. You're seeing sort of a diffusion of this into other areas. Often, it goes by different names in other business areas. Sometimes, it falls under the heading of a data science team. But I would say that there are very few domains now where— that remain untouched by AI, or at least where someone isn't trying. It doesn't mean that they've necessarily succeeded yet, but I would be stunned to find an area where someone hasn't tried to figure it out. If you are yourself trying to transition, there are many people here on Stanford's faculty who are actually— who study business transformation and technological transformation and so on. I'm thinking of my colleague Melissa Vallone, Valentine in management science and engineering who has, through several of her studies, pointed out that there are actually very complex power dynamics within organizations that have to be designed very carefully if you're trying to turn an existing business into an AI-smart business because AI is going to change who has power over what. And, you know, to be very concrete about that, decisions that used to be made by people over here in the organization are now going to be made by algorithms over here in the organization that are— and those algorithms are run by, you know, other kinds of people. And so what ends up happening sometimes is that it gets gummed up. And if you're not careful about this, these people who are losing power in the organization are going to resist the introduction of the AI because it's sort of reducing what they can say and the influence they have. Um, uh, Angel Christin in, uh, and here at Stanford's communication department has studied how this happens in, in newsrooms. Like if you are, um, uh, like a newspaper in the US, or she also studied in France, um, you know, they have different reactions to these predictions of like what's gonna get clicks or how many clicks something got, et cetera. And, you know, It's changing the values of who's important and who gets to make these editorial decisions. And so it can really go well and it can sort of make an organization— it can really go poorly and it can make an organization sort of combust if you don't manage it carefully. But if you can do that, the other things that I've heard them mention, and really I'm relying here on their expertise substantially, is that, well, obviously you need to You need to produce people who are very carefully in charge of the data, right? What is this data that's being trained? You need a ton of data to make any of these things work. Who's collecting it? Who's managing it? Who's making sure it's available? Who's making sure that it's clean? Having clean data is surprisingly challenging. And then you have a group of people who are modeling, building machine learning models on top of that data. And who's telling— who's working with them to decide what to model and how and when? What does good enough mean? What's the error rate that is okay enough to launch a product? There are a number of programs through SCPD and others where you can— I think there's even— maybe Anita can correct me. I think there's a digital transformations program here at SCPD if you want to learn more about that. But there's quite a bit to be said about how to manage an organizational transformation. If you're a small startup, I think, in some ways, In some ways, you're luckier because you don't have all that baggage. But I think it will cause things to look quite different than a traditional startup, like a software startup.
Great, thank you. And yes, there is the Digital Transformation Program, which this course is a part of. And you can learn more about that by selecting the Learn More button. One other question, and this might be our last one. I thought this was kind of humorous, but it's to the point. How would you communicate to a company, the users, that your AI is going to give you answers that are not 100% correct? There is that error. And how do you send that message?
So people have tried a bunch of different things. Generally, the most successful technique has been to hide it, just to decide whether it's good enough and to own the fact that it might make mistakes, or to be in a domain where it doesn't matter if there are slight mistakes. Peter Norvig at Google, I remember him pointing out that a lot of successes in modern AI are in domains where there are sort of soft edges, where it's okay— there are multiple okay solutions. So if you look at these things where, like, GPT-3 recently is producing all sorts of interesting text that looks human-written and so on, it's because there's not one single right answer. Things can be a little bit weird and off or there are multiple correct paths and it can usually find one of them. So that's one approach that places have taken. But ultimately— so, for example, like, with Tesla's Autopilot, There may be multiple correct paths, but there are clearly wrong ones that lead to a crash. And you can't just say, oh, I'm uncertain about this. You have to decide at some point, am I going to give the control back to the driver and say, I can't handle this? And when would you do that? So I don't think that exposing confidence values— many algorithms, you might be aware of these sort, can expose confidence values. I think I'm 92% sure this is the right answer. Those can be useful, but I don't I don't think that exposing those to end users get interpreted quite correctly. The other thing to keep in mind is that people tend not to associate the errors with an AI that might be making errors. They associate it with your product. Again, think back to Clippy in Microsoft Word. It wasn't that there was a machine learning algorithm, which there sort of was, making errors. They're like, no, Microsoft Word is dumb. It gets attributed to the company or to the product, so I would be very careful You know, launching things that have high error rates. Or, again, with my voice assistant in the room, I'm sort of surprised how much I put up with it sometimes. You know, they misinterpret things all the time, and it becomes very frustrating. Even though it knows it's uncertain, it still has to do something. And sometimes even just asking me, oh, did you mean blah, is still seen as annoying. So I think this again comes back to the don't make promises you can't keep. If it can't do the right thing the vast majority of the time, I would be very careful about designing user experience around it. On the other hand, if you have some system in which the machine is making predictions, and then there's a human layer that's always vetting those predictions, and then the only thing that gets seen by the outside world is the vetted version of it, Then maybe you could be more certain. Microsoft has a system called calendar.help, which is a great example of this. It's like an email address that you can—it's sort of like a calendaring assistant. You can say, you know, oh, maybe Cortana or whatever it's called now. Please find, you know, find a time when Anita and I can meet. And it—it's for simple requests. It's an algorithm. For more complex ones, there's actually humans in the loop. And you never know which one you're dealing with. It just sort of is this opaque system that is some combination of humans and machines. And I think that that, as an intermediary solution, can be quite helpful. And over time, you're generating data from the human interactions that's the human supervision. The algorithm itself can get better, and the people can be focused continually on the harder and harder tasks. So those are some of my thoughts there.
Excellent. Thank you very much. And that is all the time we have for today's webinar. Michael and everyone in the audience, thank you for joining us. If you found this presentation to be helpful in any way, we encourage you to share the recording with your colleagues, and we will send out an on-demand version of this, with your friends or family or whoever you think will find this information useful. Thank you for taking the time to join us today. And have a great rest of your day.
More from Michael

Webinar: What AI Can and Cannot Do: Intelligence Augmentation in Practice with Michael Bernstein

Michael Bernstein | Designing artificial intelligence to navigate societal disagreement








