Join Chris Paxton & Michael Cho as we geek out over robotic papers with paper authors. First episode: Jiafei Duan talks about SAM2Act. How do we build robots which can remember things and perform challenging, long horizon manipulation tasks with objects they haven't seen before? Project Website ArXiV Youtube Spotify Abstract: Robotic manipulation systems operating in diverse, dynamic environments must exhibit three critical abilities: multitask interaction, generalization to unseen scenarios, and spatial memory. While significant progress has been made in robotic manipulation, existing approaches often fall short in generalization to complex environmental variations and addressing memory-dependent tasks. To bridge this gap, we introduce SAM2Act, a multi-view robotic transformer-based policy that leverages multi-resolution upsampling with visual representations from large-scale foundation model. SAM2Act achieves a state-of-the-art average success rate of 86.8% across 18 tasks in the RLBench benchmark, and demonstrates robust generalization on The Colosseum benchmark, with only a 4.3% performance gap under diverse environmental perturbations. Building on this foundation, we propose SAM2Act+, a memory-based architecture inspired by SAM2, which incorporates a memory bank, an encoder, and an attention mechanism to enhance spatial memory. To address the need for evaluating memory-dependent tasks, we introduce MemoryBench, a novel benchmark designed to assess spatial memory and action recall in robotic manipulation. SAM2Act+ achieves competitive performance on MemoryBench, significantly outperforming existing approaches and pushing the boundaries of memory-based robotic systems. This is a public episode. If you would like to discuss this with other subscribers or get access to bonus episodes, visit itcanthink.substack.com
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
SPEAKER_03So, yeah. Hello, everybody. Welcome to the first episode of RoboPaper. So, you know, very, very cool today to have Jiafei to talk about his latest paper, Sam2Act, Integrating Visual Foundation Model with a Memory Architecture for Robotic Manipulation. Quite a mouthful. But anyway, maybe just as a start, Jiafei, maybe you can share a little bit about yourself.
SPEAKER_02Thanks. Thanks, Michael. Yeah. So, hi, everyone. It's an honor to be the first guest on such an interesting broadcast and sort of, you know, giving people awareness of robotics, robot learning as a whole. Anyway, my name is Jiafei and I'm like a third year PhD student from University of Washington in Seattle. I work a lot on robot learning. I also work on like data generation for robotics. These days I'm really interested in, you know, building foundation models for robotics and trying to understand what's like the right form of ways of training,
SPEAKER_02for example, visual language action model, and what is a good kind of representation that we should be looking for in terms of, you know, training on this model and having a better understanding of robotics as a whole, I think that sort of interests me a lot. And same as Chris, and also I think Michael is really interested in robotics.
SPEAKER_03Yeah.
SPEAKER_02Yeah.
SPEAKER_03As a non-researcher, yeah, as a layman, I guess.
SPEAKER_02Yes, of course, yeah. So I think this is a really interesting work that sort of came out from my group and inspired, I guess it's not just purely from me. It's work and led by Hao Chen, who's an incredible undergrad that's able to, you know, be able to work at a capability i think of like equivalent to a phd level and so i think the idea behind this work is really something that we have been trying to explore a lot in in detail's group in the rc lab here which is to be able to have a
better understanding of how can we sort of build like robotic transformers especially like this kind of 3d based robotic transformers to have capabilities beyond just doing multitask but also having the ability to generalize to you know a
SPEAKER_02diverse kind of environmental perturbation, to be really robust when you change lighting, change table texture, and also to be able to perform manipulation on precise objects, or even to be able to do high precision manipulation. And also one of the most important aspects of what this paper tries to address is the idea of memory. So I guess like a lot of times, like previous work coming from our group, like Clip Hall, Percival Actor, I think a lot of these are really excellent work that sort of opens up a new field,
SPEAKER_02opens up a new way of looking at robot learning. And also that lead to like really impressive work such as RVT, RVT2, and all these kind of 3D-based behavior cloning methods. So inherently, there is a lot of problems. And as all these different iterations of obesity policies that came out, tries to improve and try to address some of these problems, so are we. So we also believe that maybe there's a way that we can go about building such a robotic transformer-based policy in a way
that's able to be able to be really generalizable and able to perform multitask and is also able to sort of solve some of these high precision manipulation tasks and ultimately to have the
SPEAKER_02concept of memory. So I keep mentioning memory. So what I mean by memory in this context, I think would be more of the term whereby, you know, if you try to train a behavior cloning agent, You do not just want it to sort of memorize the data because there will be times where you hit a state whereby it's hard for you to determine whether what is the next state. And that sort of is the idea here whereby, for example, if you go do a task and once you're done with the task, you go do something else and then now you're coming back to this task again, will you be able to recall? So this is something that's really intuitive to humans.
But a lot of times this kind of VC model tends to fail in terms of doing such things. I think the fundamental problem is that such task breaks the Markov assumption, whereby your current observation sort of helps to predict the future state.
SPEAKER_02So if you come back to the same observation, then it's going to be very difficult for your model to sort of adapt to that. So I think that's like the high level overview of, you know, SEM2. And I'd like to also go into the details to talk about how we sort of achieve that. So yeah, Michael, I think if you guys have any questions, we can discuss and we can chat more about it. But yeah.
SPEAKER_00Yeah, so why do you think you need this separate memory? Why do you need a separate memory-based architecture? Why can't it just have a really long context or something like that?
SPEAKER_02Yes, so I think that's a good point. So I think you can also look at a problem whereby you have a really long context. But I think the idea here is that we realize that... That will essentially also lead to some form of compounding error. So when this compounding error occurs from busy training, you realize that, okay, how can we sort of get out of that loop? Because essentially you're still relying heavily on the distribution of your data. So that is something that is not that intuitive. A lot of times it's hard for you to really evaluate whether is
it a long horizon task that is the model failing just because it can't do the task or does it really
SPEAKER_02not remember what you have done? So there's a lot of design aspect that goes on behind SAM2AD whereby not only we propose the model, but we also propose a benchmark on top of that because essentially you want to have a way to systematically evaluate policies on just memory and not penalizing them because they fail to perform the task. So when we design some of these tasks, which I can scroll down. Okay. So when we design some of these memory bench tasks, we look into the fact that,
SPEAKER_02you know, we want to make sure that, you know, any kind of like busy policy, once you train with enough data and it's really sort of overfitted to the task, it's able to successfully complete the task. And the only point of failure should occur is at the last step when it makes that decision. So... So the idea behind this memory task, as you see, we have like three tasks. And the way we sort of go about designing these tasks is also pretty clever. I think Chris here is probably very familiar with this benchmark that came out from Dyson, I guess previously Steven James,
SPEAKER_02which is our bench. So our bench has a huge array of over 100 tasks. And obviously, if you're just training and testing on some of these tasks, even though the sequence length is really long, you can't really sort of evaluate memory. So the way we sort of look at this problem is that let's make the task as simple as possible, but yet try to bring out the nature of, you know, are policies able to have that kind of implicit memory? And in this case, we are focusing a lot on spatial memory. So when we try to design this task, we look at those axes. So the first task we actually try to design is the one over here.
SPEAKER_02which is the idea whereby the drawer, so it has three levels of drawers. And in the training data, it can be any of those drawers that's originally open. And the policies of the robot is given demonstrations where the robot closes the drawer and then reach for the button and then try to reopen the drawer. you know, based on what was initially opened. And the way we sort of design, we design in such a way that the language doesn't give away any information. And if you think about the drawer, it's actually more along the z-axis.
So it's like a spatial task whereby now I'm trying to evaluate based on the z-axis
SPEAKER_02of like whether can the model predict the variations. And the why we designed the button is so that when the robot agent sort of remembers to press the button and you reach a state whereby it's hard for you to determine whether, you know, which state, which state was previously where the drawer was open, that sort of breaks that Markov assumption. So I think that's the way that we go about designing. And interestingly, which I show a result later, Models actually succeeded in the task. But most of the time when it fails, it fails at the last step, which is to choose which drawer to reopen.
SPEAKER_02So in an intuitive sense, then that will be 33%. But after that, if you look at the result, you realize that there's some noise to that. Because I guess a huge portion is because when we generate the data, we didn't make sure that the data is implicitly balanced out. Somehow the behavior claim policy tries to, you can call it like hack it, or sort of like tries to overfeed to a distribution that more likely to open the top. That's why you will not get an exact 33%. But our model is able to achieve close to, I would say close to 100% success rate for this task.
SPEAKER_02And when we design the center task, which is, you know, initially the cube will be any of these square patch, and then the agent will first pick up the cube, put it into the center, and then press the button. And at that point, you know, it breaks the assumption and the agent need to be able to determine which patch was the cube originally at. So if you look at this, this is along the X and Y axis. So this is the idea of how we show along different 3D axis, will we be able to have that spatial memory?
And the last task when we design is actually based on like a very real world scenario. So I guess when everyone tries to, you know, soup, you will try to add salt. So if you don't want your robot to be always adding salt over and over again,
SPEAKER_02because it might not remember exactly how many times it adds. So in this case, we do the counter reasoning whereby initially you have a cube that's set in the center. The agent puts the cube into a patch and press the button. And now at this point in time, the agent has to choose the alternative cube. rather than the cube that was, you know, first originally set. So that gives the illustration of like the example, the sort of the illustration I just mentioned, which you want to add salt and you want to add your pepper. You don't want to keep adding the salt over and over again.
And later I can show a few more examples on how different policies behave when
SPEAKER_02evaluated on our memory bench. So this is like a high level idea of what goes into designing such a task and why it's important that you can't solve with long contexts.
SPEAKER_00Yeah, I really thought that this was one of the parts that I thought was really cool about the paper, actually, because I feel like if you haven't worked with many of these imitation learning methods, you almost always have it set up so that it is very Markov. meaning that like you can tell exactly what is going to happen given the frame and in addition there's all these data the the biases like you said like you were saying where it's not always the same drawer like that kind of thing like making sure that every task is like perfectly well balanced and all of
this so that it can properly learn based on these that kind of stuff is near impossible in real with
SPEAKER_00real robot data so anyway i don't want to just tangent too much but yeah yeah exactly so i think uh to also to add on to your point it's really tough for us to design such tasks because we want to make sure that the underlining assumption that the policy is able or capable of succeeding and the only reason it fails is because of memory that's something that's really tricky and that requires a bit of fine-tuning not not fine-tuning as in you know fine-tuning the model but requires us to sort of tweak the way we design that task but the overall underlining
SPEAKER_02principle is is along this line and And also we realized that, you know, as the sequence length gets longer and longer, which one you mentioned, like if have a longer context, you know, can we also use that to evaluate memory? The answer is, yeah, sure we can. But the problem is that there's a lot of chance that, you know, the policy fails not because of memory, but because it just, you know, has that compounding error from behavior cloning. So I think that is something that inherently I think is hard to address. One thing that we make sure is that it has very short keyframes. So basically it has about two to three keyframes to memorize. So making the task much simpler and decompose the task to be
easier so that we will
SPEAKER_02focus primarily on memory. Obviously the policy also we evaluate on like general RL bench 18 tasks to see whether it's general manipulation capability.
SPEAKER_00So can, yeah, let me, just a quick follow up on that. So what, what actually is a trajectory for you? So in this case, and particularly for people listening, like what, so like you mentioned keyframes. So let's explain like what exactly is, what exactly is coming out of this model, right? Like,
SPEAKER_02So that's a good point, yeah. So I think there is a line of work with visual motor policy, and there's a line of work with what Mohit started with Percival Actor, whereby in this case, a keyframe is basically in the context of six soft poles. And then basically you are bridging between the keyframes through the motion planner. And that makes the problem, it decomposes the problem to be easier. but also there is also its downside or limitation where it's not that reactive as compared to an action-based model such as like a diffusion
policy or action chunking where you're always consistently predicting actions at a fixed frequency so I think there is trade-off but obviously for like keep frame-based method especially like Percivator or RVT they require some form of 3D so to do that you
SPEAKER_02need to be able to calibrate your camera you need to be able to have a good rgbd camera setup and then also the good side about that is you require less demonstration as compared to a 2d based model so there is like a trade-off to that and i think for us right now we are focusing on a keyframe based approach whereby we predict the next best keyframe and then we sort of move the robot there using a motion planner or motion primitive so yeah thanks for pointing that out because i think i need to give the audience some context
SPEAKER_00Well, you can also go to, like,
SPEAKER_02I think that, yeah, this diagram, this is what I was going to, yeah. So I think to sort of go in depth on how SAM2AC works, I think it's also good for people to know, like, just in general, like, this line of work. So SAM2AC, it doesn't just come out of nowhere. It's obviously, you know, as we are doing research, we're always building on top of the shoulders of the giants. And this SAM2AC was built on top of RVT2. So RVT1, then there was RVT2. so maybe also to give the audience a bit of context RVT1 is
basically a multi-view transformer robotic transformer that takes a RGB scene that generates point cloud and they re-renders the point cloud into multiple virtual view and they have a multi-view transformer that tries to learn to predict a point on all these individual views and that points off as like action heat map and when you sort of
SPEAKER_02bring all this action heat map back you get a point in 3D space, and then having a motion planner to move to that point is basically how you sort of predict. And the idea behind RVT is to sort of increase the speed of training for models such as Percival Atter, which is in Voxer space, so which is really hard. It takes a lot of computational, it takes a lot of compute and time to sort of train. So they sort of outlive that into 2D so that to make the training much easier, or 2D in that case.
SPEAKER_03Yeah, so when you say multi-view, you literally means from a RGBD, you know, thing and then the point cloud and then the multi-view, it literally could be arbitrary. It could be like from the side, from the front, from the top.
SPEAKER_02Yeah, so the way the RVT does is that it takes RGBD and it projects into point cloud and it does a virtual re-rendering. So I think they re-render in a way that's orthogonal to each other. So they have a view from... from the left, from the right, from the side. Obviously, the thing about this kind of re-rendered virtual view is that there might be like some form of like, you know, missing picture, you know, resolution issues. But, you know, the idea here is that now we are taking this 3D and we are outlifting it into like maybe a 2.5D-ish kind of image plane.
SPEAKER_02So the idea is that you're only doing prediction on this image. So in that context, then it makes the training faster. So we draw upon the idea of what RVT does, but obviously not the first RVT because as research, especially in robotics these days, model comes out really fast. So at the point we are doing this, there was RVT And RVT do sort of brings along the same idea. But the thing that they sort of do is that they do a cost-to-find approach whereby they do this RVT transformer twice. And the first time,
SPEAKER_02instead of predicting a point on the heat map, it predicts sort of a point of where a region should be. And then it sort of crops inwards into the point cloud and takes that point cloud and re-renders again but now you are zooming in and that's like the find so the find stage will do the exact same action twice and they realize that by doing this will actually help to improve the uh the prediction of the action heat map and ultimately lead to a better performance for the for the model itself so when i was reading the paper i have this question like this cause and find i know this is not your paper you're
putting on top but i'm just curious like is a design decision that's made by the researcher right so
SPEAKER_03Where do you draw the line between what is cost and find? I think it's, I guess the zooming part is sort of like heuristically defined.
SPEAKER_02So like probably if you find a region that is sort of, you know, I think the high level intuition is that, you know, if you are just predicting, you try to predict the next action based on a current, you know, point cloud from like the RGBD camera, you know, you might not be able to see that clearly. So the idea is that now if we want to, because the original word, the first word is called perceive actor, which is to perceive and to add. So once you zoom in, you're able to see clearly and then let's do another round of that prediction to get more cost, a more fine point. And that fine point will ultimately lead to better performance.
SPEAKER_02Also, they also show that, you know, it's good for like precision tasks. You know, our approach show that it's even better. Our approach show that it can do even much more Fine-grain manipulation.
SPEAKER_00So it's largely just like an efficiency thing then? So saying that like we have, obviously the camera can capture a much higher resolution than you usually feed into a transformer. And so is that like, so I'm doing this all in software, essentially. I'm taking a higher resolution image. I'm downsampling it to like 640 by 480 or something. And then I'm choosing an area and then I'm blowing that up to be whatever, 640 by 480 again, but whatever maximum resolution, that kind of thing.
SPEAKER_02Yeah, I think that's the case. I think also I think Ankit is from Princeton. He works a lot in computer vision and like this re-rendering technique, I think was used in other work in his PhD. So I think this is a technique that probably people in computer vision use quite a lot. But I think this is sort of like one of the first times where you sort of translate the idea into robot learning. I think it works really well. which, yeah, that's the outcome. So to further add on to Chris's point, so with that intuition in mind,
SPEAKER_02so we ask ourselves, you know, how can we make this better? So to make this better, we need to probably do two things, right? Because a lot of these RBT-per-act style models, they are not sort of, I guess they don't have some kind of like pre-training visual foundation model in them. And a lot of things sort of is trained from scratch. So there is a lot of missing components in terms of, you know, a semantic understanding that comes from all these visual encoders are not being able to, you know, be well utilized. And I think there's a huge line of research like 3M MVP that
shows that it's kind of,
SPEAKER_02you know, pre-trained visual encoder does help with robot manipulation. And I think, I think that's the idea that we want to draw about. And also the next thing we look at is, okay, since if RVT is already doing cost to find, can we make the resolution even better? Or can we improve that resolution so that it can capture even more fine grained details or in another way instead of making it better let's think about every time when you sort of zoom in or every time when you do like convex up sampling you are losing information so is there a way for us to retain that information as you are you
know going from cost to fine so that's how it gives us ideas to sort of think about and then
SPEAKER_02I guess a lot of times when doing research, you have to be at the right time, at the right place, when the right things came out. So I think that's where SAM2 came out. And that's where we see opportunity. So before this, there was a work called SAM embodiment, which is SAMe. So the idea of SAMe is basically taking RVT and the only thing they sort of really try to do is to before passing it into the multi-view transformer they have a SAM2 image encoder that sort of you know output image embedding that is really reached because the SAM2 encoder
is pre-trained and then using that image embedding they train the multi-view transformer and then everything else is basically RVT so that's what they did and they show that
SPEAKER_02performance increase the model gets slightly more generalizable. And so we believe that the same idea will work with SAM2. So the first thing that we did was that, okay, we are also using SAM2 image encoder that takes...
SPEAKER_00So what's special about using SAM2 here? Like, why is it important to use SAM2 over... Yeah, so that's a good question.
SPEAKER_02So I think, first of all, SAM2 image encoder... From the original SAM paper, it has shown that it's better than the first original SAM1 encoder.
SPEAKER_01Yes.
SPEAKER_02That's like trivial. Yeah. But the second thing that's really interesting is that only SAM2 image encoder give multi-resolution embedding. So that's something really unique. And I'll come to why that matters. So... That's the two reasons. So with the SEM2 image encoder, we are able to sort of encode the image that's passing into image embedding that's really reached. And this image embedding comes in multiple levels of resolution. So, so this is the coding. So like as well, it's mentioned YSAM2, right?
So besides the fact that it's better, this output is multi-resolution embedding.
SPEAKER_02Yeah, 1532 and 64. So this multi-image embedding is sort of kept just a lot of information. from the original image that is sort of being encoded by SAM2 encoder. And these information are stored in a very different way. So for example, it can be, you know, a certain dimension whereby, you know, if you change the lighting, some of these embeddings are not really affected. Or if you change the texture of the table, some of these embeddings still retains the visual information from the original image. So I think that's also one of the reasons why our model is much
more generalizable.
SPEAKER_02But before that, you know, with the, uh, and the output image embedding, we fit into the multi-view transformer, which is still pretty much the same as RVT2. It comes to the next part, which is how do we do that convex upsample? So the original paper of RVT2, it does this convex upsample so that it takes a dimension of 128 by 16 by 16, and they sort of upsample it to become 1 by 224 by 224. So that's basically like the image, and where a point lies there, that's sort of like the heat map that they're trying to predict.
SPEAKER_02And to us, we look at, okay, you know, this team might look awfully similar to like a mask, you know, for like segmentation. So I think that's something also inspire us to sort of look into sample. And we realized that, you know, by just doing one time up sample, you basically lose a lot of information in this process. So how can we sort of make sure that we don't lose the information? We decompose them up sampling process into three different stages. So every time we only do one time up sample, And then after you do first upsample, it becomes a 64 by 32 by 32. And then you sort of have an element-wise addition with the ResNet 30,
SPEAKER_02which sort of adds the information back. as you are continuously upsampling this. So in this process, we realized that information of the image features are not lost. So when you solve, upsample all the way until you predict the heat map itself, actually makes it much more accurate. And it also increases the performance a lot for the manipulation task itself. So I think these two things happen together. That's why it makes it work. And I think from our observation, we show that if you take away these two features, if you take away any of these features, it will not work.
So I guess that's also a component of being at the right time at the right place.
SPEAKER_02And also to have a better intuition of how, you know, we can integrate SAM2 into an existing architecture such as RVT2 also makes a huge difference. Yeah.
SPEAKER_00So just to summarize, so the multi-resolution training in SAM2. So SAM2 is segment editing two, which is like the, from meta, like really, really useful model for all this kind of like video and segmentation. Yeah. and then so you have a you've trained this multi-view transformer transformers are generally not trained on huge images for obvious reasons right takes a lot of tokens very slow but uh but what you can do is that you are and the action space importantly which i think is different from what a lot of people usually see again
SPEAKER_00and maybe not usually but like i think is the action space here is a heat map so it's saying like so like the actual positions that the robot is going to are abstracted out right it's quite like so i need a very accurate heat map which is saying something like i need to pick out this very fine detail from like the handle on this cabinet that i can go and reach the robot to So by doing this with these pre-trained features and this multi-view transformer, I can then resolve this very complex problem of figuring out
all this language and
SPEAKER_00this long horizon memory and spatial reasoning and get this perfect, extremely accurate segmentation of the thing that I need to move to, which because I have a 3D map, I can then just send my robot to and act on. All right.
SPEAKER_02Exactly, yeah. I think that's a really great summary. And I think the intuition behind a lot of this from past work also sort of draws upon that. And I think the idea is that, you know, if the better that map is sort of constructed, the more accurate is your, you know, your robot able to, you know, reach that point. So if any information is lost along the way, as you are trying to draw this map, essentially you will have a huge impact on the performance of this calm model, especially. especially it's purely a trend on just demonstrations.
SPEAKER_02So I think that's one of the intuitions. And so when we are done with this SAM2AD, this is like a general model architecture. And let me just scroll back. Sorry, if I had to scroll. So the idea is that when we did this, we obviously did this for both the course and fine. So that's why I call stage one training. So we are able to train SAM2AD, which is really for general models. manipulation tasks. And it's able to do multi-tasks and it's able to, you know, be able to be highly robust or generalizable. And it's also able to, you know, perform like really precise tasks,
SPEAKER_02which previously a lot of the models fails to do in our bench. So that sort of gives us a really good general manipulation policy. And then it comes to the next part, which is how do we incorporate memory into that? And we realize that you can't really train everything in first stage because the idea of memory is to sort of retain temporal relation. And it sort of contradicts the normal ways of, you know, what Stephen James and a lot of prior work from like Pacific Hector RVT sort of day-purposed, which is that,
SPEAKER_02you know, you want to sort of randomly take a keyframe and try to predict the next best action. So if you are feeding it sequentially, then it's going to hurt that process. You're going to hurt your model because you'll probably be overfeited to that sequence. that temporal relation is good for memory, but it's bad for performance. So that's the idea. So when we try to train stage one, we realize that if we combine the idea of temporal into stage one, the model's performance in general manipulation really decreased significantly. So the idea is that let's break it into two stage.
SPEAKER_02Stage one is purely to train the general manipulation policy. And then in stage two, we are going to freeze some stuff. So what are we going to freeze? We're going to freeze the SAM to add image encoder. we're going to also freeze the multi-view transformer. So these two things sort of learn the action from the first stage of training. And then we look into, okay, what do we want to add in? Because SAM2 have this memory mechanism, and this memory mechanism contains a memory encoder, memory bank, and memory attention. So we want to integrate that into this architecture.
But you can't use any pre-trained one because you can't use the pre-trained encoder or even some of the pre-trained memory mechanism because what SEM2 is trained on is totally
SPEAKER_02different from what we are training on. Because they are training on memory of a mask, you know, segmentation mask and all these things that they are tracking. But for us, we want to track points which represents action. So that's inherently still different. So we are thinking of, okay, if we can't do that, we have to do where to fine-tune the whole three components, then let's do it. And the way we sort of do it is that, you know, we have this architecture, but whereby we only care about the coarse branch because the idea is that once you're able to determine memory or you sort of remember which region to look at,
SPEAKER_02the fine branch will solve by itself. So because the fine branch basically predates like what Chris mentioned, which point of the mark. But if you are able to zoom into that region, that means you already remember exactly where you are supposed to go. So that solves a huge problem. To sort of go about doing this, what we do is that now for the second stage of training, we are feeding data in a temporal manner. And because it's a multi-view transformer, there's different viewpoints. So we actually essentially have three different, what I call it, memory bank.
SPEAKER_02So we initiate three different memory bank. At every pass, we sort of cache the memory, cache the observation or the keyframes after that comes out from the multi-view transformer prediction to try to attend with whatever is inside a memory bank. So at the start, there's no observation that's stored. So after a few iterations, every time when a new observation comes in, it will always attend with the past memory that was cached in the memory bank. So by doing that, every time before it predicts the heat map, the output of the,
SPEAKER_02originally from the multi-field transformer, now it's memory, So it actually helps when you up-sample back into predicting the heat map, it will actually sort of remembers, you know, like previous action, you know, I'm here. So based on the data that's trained on what is most likely to be the action that is supposed to go for the next one. So I think that's a really interesting idea here. And the way you put this memory mechanism makes a huge difference. We have to put it after multi-view transformer instead of before the multi-view transform because we want to sort of
learn at least the first layer of prediction like where we want to go to and then sort of attend that to the memory bank attend that with the memory attention of by taking out the cache memory from the memory bank why does it need to be after the sampling though why why can't it just be like there's a i don't know why does it yeah why does it need to out sample before it gets encoded into memory yeah
SPEAKER_02So, yes, that's a good question. So I think why after is because I think we try, we try both and realize that, you know, putting it after is better. And also intuitively the thing about it is that you want to solve, you know, at least learn to have idea of, you know, where you want to sort of predict to and then join on the idea before you sort of, you know, do the app sampling, attempt with your past memory. So that now when you are trying to upsample, that thing that you are sort of upsampling contains, you know, or sort of like enriched by memory.
SPEAKER_02So that memory comes from this memory bank. And we also realized that obviously the memory bank has a fixed length. So obviously the way we sort of decide this is it's not task specific, but for like multitask, we will take the longest sequence of keyframes to use. And the idea here is that, you know, as long as you, if you are doing multitask and you take the longest sequence to use, you will definitely have enough. Yeah, I'm sorry.
SPEAKER_00Okay. So the idea is that the, so the multi-view transformer, again, it's just like, that's just like a snapshot saying like, this is the thing that I'm predicting on. Then we have the multi, then we have the, you go into the memory attention. So now I'm looking over basically whatever memory I've decided is important. And the idea is that the upsampling is kind of then it's kind of doing some some essentially some spatial grounding of this into the image and then then re-encoding that back down yeah that's there yeah exactly yeah it still feels like you could do this without the up sampling
but i guess like i do
SPEAKER_00see how that would be useful i guess yeah yeah yeah doing some yeah
SPEAKER_02I do agree, yeah. Also, we realized that, you know, obviously, because at the very beginning, the memory bank is empty, right? So whatever you sort of attend, you know, is less effective because everything is sort of concatenated together. So as your memory bank gets richer and richer, the memory feature that sort of, you know, comes out after attending with the memory of attention, It's much more richer. And then when you upsample, you know, that's why, you know, that's also why we designed the task that the memory decision happens at the last few steps rather than at the very beginning. So that's also a clever way of thinking this.
SPEAKER_02Because if you happen at the very beginning, then there's nothing much to what you remember is probably the last frame. And a lot of other models could also essentially, you know, make a really good educator guess or, you know, you have like somehow rich features in the image embedding that was used to train. So there's one thing to that. Yes, Michael.
SPEAKER_03Yeah, quick question. So you mentioned that it has a fixed memory window length, right? And you mentioned somewhere in the limitation or conclusion section that you think it would be good to have varying length. Can you just elaborate a bit more like what is this fixed window length like? What is it measured in? Is it measured in keyframes or is it measured in time?
SPEAKER_02Yes. Yeah. Thanks for the question. So I think right now that's also one of the limitations because as I was explaining to Chris, you know, this fixed window length is basically the same way that, you know, SAM tool originally did that for their paper. But I guess in their case, you know, it's easier for them to define like, you know, a fixed window length because they are tracking like temporal frames. So that is easier. But for us, it's a bit difficult. So in this case, the fixed window length is corresponding to the number of keyframes for each of the tasks. So for example,
SPEAKER_02if you have a task that has 10 keyframes, then the window length will set it as 10. But if you're training like multi-task, some task has 10 keyframes, some has 6 keyframes, some has 5 keyframes, then we will always take the longest as the window length. So hopefully in the future, we hope that we have better ways of doing this because essentially what this means is that you need to sort of know ahead of time how many keyframes your task has, which that is not that feasible, especially in Yeah, especially in the real-world context, because it will vary. It definitely will vary.
SPEAKER_00What happens if you give it too many? Like, if the maximum context length is too large, do you see performance degrade?
SPEAKER_02So that's a great question. Too much memory. yeah we try to do that but the problem is that also as your keyframe increases the task complexity gets harder so a lot of times it fails not because of the memory so it fails because a lot of action so this like yeah i mean it's like this i guess i'm wondering like what like if you if you do a really simple task can you give it just like a maximum memory of like 20 frames or something would that prevent it
SPEAKER_00from performing well
SPEAKER_02In terms of frames or in terms of keyframes?
SPEAKER_00Keyframes, yeah.
SPEAKER_02A really simple task. So I think in this case, sort of redefine the complexity of tasks is based on the sequence of number of keyframes in the data. So if your keyframe is really long, then obviously you have to be remembering what's the next keyframe. And then if that context gets longer and longer, then the performance essentially also decreases over time. So that's hard for us to distinguish. So that's the reason why we didn't try that. But I guess a good point. I think this is something that we will definitely look into and
have some kind of
SPEAKER_02evaluation on that. Because ultimately, we want to have this memory, not just for like short, short horizon tasks. Although short horizon task is important because sometimes like it's a split second kind of thing. You do something, you do something else, you come back to it immediately. So I guess that's also possible. But you also want to be able to remember, you know, if I do something, I go do something else, I do another thing and then I do something else again. Can I come back to the first task and remember what has actually happened? So I think that's something that we want to, you know, extend towards in the future work. I mean,
SPEAKER_00another thing that comes up a lot in real environment, in real robot use cases, I think, is just, like, there's distractor tasks. Like, it did something totally unrelated before your thing begins, and you don't want that to actually impact performance, right? Yeah. Like, it's particularly for a robot in a home, or honestly, anything, right? Yeah, yeah, exactly, exactly.
SPEAKER_02Yeah, and also, I think, like, it's even harder for, like, you know, robot at home with, like, mobile manipulation, because you need to, you're also navigating, and you also need to remember, you know, you know, where exactly you have been to, you know, what have you interacted with and all these things. So I think that problem formulation is much harder as compared to right now what we're trying to show, which is tabletop manipulation. But I guess some of the ideas is transferable and could be, you know, applied into other contexts. And I see, I think I have also seen previous work where people try to
address memory,
SPEAKER_02either from like Peter Stone or even from like Tucker. whereby they are, they sort of decompose the problem to be much simpler, either in terms of like a grid word setting. So we are trying to push that to a higher dimension with like, you know, with this kind of real robot and body agent kind of approach. Yeah. Yeah, so that's that. And maybe I can show some cool demos. Okay, maybe before that, let's talk a bit about the results. Yeah, I think that's something a lot of folks care about it.
SPEAKER_02I think also, I think results is a good point because you know, people build on top of each other and we are able to improve as a community. That's why I think benchmark is also very important. And that's why I also do some work on benchmarking. So the first result that we have is we value down our bench. As I mentioned, our bench is like over hundreds of, you know, I guess, tabletop manipulation tasks that was designed, hand designed and And then you have ability to generate demonstrations in simulation to train policies.
SPEAKER_02So it all started with like Mohit, you know, doing Percival Actor. And he chose this 18. I guess I asked him back then. He chose it randomly. But I guess that has been like the industries. I wouldn't say industry standard, but academia standard where everyone is evaluating on these exact same 18 tasks. Which sometimes I also question like why this 18? There's no... There's no real reason.
SPEAKER_00I chose them randomly and Moet's paper got a lot of citations. Therefore, that is the standard now. Why just those 18? Because some of the tasks in our bench are a little bit flaky. And that's why. I totally agree.
SPEAKER_02That's why to this day, I'm still asking why these 18 tasks? Yeah. So anyway... Right now, you know, the state-of-the-art method, I think recently is like an action-based model, ARP or something. So for them, they managed to push the score up to 86%. So for some context, when the first paper that sort of started on this 18 R-bench task to evaluate the 3D-based behavioral policy, it was only an average of about 60%. 60-ish percent so you can see as a community how far we
actually push this number upwards and uh you know we are fortunate that you know same to add is able to outperform all the methods and become the new sota in this in this uh 18 hour bench task and i think what is really interesting is not the fact that you know we are
SPEAKER_02the new sota but some of the tasks has a significant increase. So for example, insert peg and also like for example, sort shapes. You can see that the result from the second best model, which is RVT2, it almost, it doubled. Like that's significantly a huge boost in performance. whilst the rest is pretty much close the same i mean a push button is a really simple task you know most of this model gets 100 and for sorting shapes it becomes like 64 which is a huge boost so i'm going to show everyone what that task looks like and then i'll explain a bit more yeah yeah i do like that
a lot of these are not just taken place to like the sweeping task and turning them turning the knobs yeah it's a night one of the nice things about rl bench is that it has quite a
SPEAKER_00quite a variety
SPEAKER_02Yeah. So let me show the insert page. Okay. So this is the insert page task. And if you look at it, you realize that this actually is one of those high precision tasks because, you know, there's only a certain region that you can sort of place the robot above the pig and before you let go. And anywhere that's beyond that, you know, although people say that, you know, the physics and our bench is not that great, but, you know, it's not possible to do this task at all. If you look at all the other models, because it's really hard to actually get the very precise position of your gripper before you let it go.
SPEAKER_02On the left is what our model is able to do. And on the right is the baseline, which is in this case RVT2. So RVT2 is also known for high precision tasks. And I guess like clearly in this simulation, it shows that by incorporating the multi-view up sampling together, I guess it's mainly because the multi-view up sampling, we're able to predict much more precise action heat map as compared to RVT2. And that led to this performance. And also for the soft shape, uh, if you look at this other case,
SPEAKER_02this object drop, but it's okay. The object is not part of that. So I think in RV32 case, it's sort of like a struggle and yeah. And so, oh wait, I guess that's the actual object. Okay. It does run into the box a little bit on the left, but it doesn't, it's not fatal.
SPEAKER_03Yeah, yeah, yeah. So as you can see... Jaffe, you want to share the Place Cups one?
SPEAKER_00Oh, yeah.
SPEAKER_03I'm curious about the Place Cups one because in terms of just absolute, like, you know, success rate, right? It's 47%. I'm just curious, what is that task like? Why is it so hard? I mean, you guys are already the best.
SPEAKER_02Yeah, that's a great question. So first of all, I think the displaced cup task only succeeds when all three cups are placed. And I guess Chris can relate to me like this is a really quite iconic task in tabletop manipulation. And it's really hard because you need to not only make sure that it has to be precise, you also need to make sure that the orientation of the creeper is in the right position. So you can see the baseline is really struggling to even do anything remotely close. And I think like based on our result, we can see that Perret was at 2% when Mohi first started this.
So I guess that is a really huge improvement in terms of, you know, this line of work.
SPEAKER_01Yeah.
SPEAKER_02This is really tough in real world. Not going to lie. And okay, to further, since we are already here, I want to talk a bit about like, you know, how do we test for this in the real world context? Obviously, I know simulation is good, but we want to be able to show the same result in real world. So the idea is that to do real world, we also collect demonstration in real world, and then we train them to add policy in the real world. So to sort of evaluate the task in real world, we have these tasks. I guess this task is really difficult because you have to, first of all, predict a keyframe. That's so precise. And when you close the gripper,
I think it's like a two, maybe like five mm offset.
SPEAKER_02If you miss by five mm, you're not able to grasp on that at the very tip of this lamp to sort of perform your next action. So the baseline, you see, it just missed by a bit and it failed. And the cool thing about this is that, you know, even though when our model, you know, hits the lamp, it's still able to accurately predict where, you know, the point is supposed to be. And I guess maybe I can show a few different versions. Yeah. So for design, if you're off slightly, you are totally going to fail in doing that task. In all the group open,
close, that's just something that we started to activate the model.
SPEAKER_02Yeah. So I guess this is one demonstration of high precision tasks that we talk about a lot in our paper. I think this is really interesting. Yeah. How many examples did you train this on? Oh yeah, so yeah, that's a good question. So unlike action-based model, which has its advantage to be able to infer a frequency and make it much more reactive, You know, we train this with like, since it's a 3D-based behavior according policy, we only need about 10 demonstrations as compared to maybe something like, I don't know, like a diffusion policy, which needs about 50 to 100 demonstrations.
SPEAKER_02Yeah. And then I saw that you did like 10 in distribution and 10 out of distribution for evaluation, right? Yeah, so for out-of-distribution, the idea is that, you know, SAM2H is trained purely on... So SAM2H is purely trained on data that looks like this. But during out-of-distribution, that's where, during test time, we introduce other factors. So, you know, in the real world, of course, there's not just going to be only one LAM. There's going to be a bunch of other objects. People are going to, you know, people will come in and they put random objects.
So can your policy be able to still generalize on the tasks that you learn?
SPEAKER_02So as you can see, for the turning LAM task, RVT basically thinks that probably this is the lamp because it looks exactly the same color and predicts a point towards that. Well, you know, same to add is not really affected by that. I guess there's a lot of, you know, a lot of the reason is due to the pre-training image encoder, because I guess it has seen the concept of a lamp, at least in terms of the image embedding that sort of output from the image encoder.
SPEAKER_00So would you say is the rest of this, so I was going to ask if this was partly because of the heat map action space, but I guess RVT is using that as well. So this is probably because of the encoder. Yeah. The encoder pre-training Sam.
SPEAKER_02Yeah. Which we, which we, which I can talk a bit about the results later from the simulation experiment. So I think in this case, we show that robustness. Also, another way to look at this robustness is, you know, if you change the texture. So that table texture is totally out of distribution. Ignore this part because we actually crop out the 3D scene. So that's totally out of distribution. Everything basically did not move because it's so far away from what I was originally trained. So you have no idea that this scene is basically the same scene. It's just I put a different table mat. yeah and uh obviously another huge thing is about cam uh okay
this is lighting but obviously we also test different camera posts and so this one we introduced an extra lighting to sort of lit up the environment so that you know it makes the data
SPEAKER_02the test data set to be out of distribution from the training yeah
SPEAKER_03Yeah, so Jeff, I have a question about, so you have four tasks, right, for this real-world evaluation, and then you have 10 in distribution, 10. So it sounds like you did roughly 80 evaluations in the real world.
SPEAKER_02Yes. And each of these evaluations takes like maybe a minute, maybe, something like that.
SPEAKER_03I'm curious, like, why stop at 80, you know, like, it's, or do you think 80, it gets you, like, why don't do more so that you get maybe something that's more statistically significant,
SPEAKER_02that sort of stuff? Yeah, that's just a good question.
SPEAKER_03Yeah, to evaluate things.
SPEAKER_02Yeah, so I think if ever you have a chance to work with robots, you know, the hardest thing to do is actually evaluation. I would say, like, real-world evaluation. In the real world? In the real world, it's really tough. First of all, you need to ensure that, you know, the way you evaluate is fair. You know, the same setup need to be able to reproduce for different model. And also you need to test different model, right? And obviously it can't be, I think like Raz Tetrade talked a lot about the way they evaluate models in TRI whereby they do blind evaluation means people have no idea
which model they are evaluating.
SPEAKER_02So I think that's a really fair gauge. So I think it's also really hard for anyone to reproduce my result in the real world because the real world has so much difference in terms of setting. You have to recollect the data again. But I guess what the real world sort of reflects is it sort of aligns with the results that come from simulation. And the simulation is what we want to be reproducible, at least when it comes to design work. yeah so um i mean i i saw that in simulation you guys roughly do 80 plus percent although that's on on the our bench maybe it's like different
tasks here and then 70 success rate here right yeah would you say those like 20 to 30 percent that is failing in simulation and then those 30 is failing let's say in in real world are they failing for very similar reason like do you have some gut feel around that oh
SPEAKER_03yeah yeah that's that's a good question so We didn't add that into the paper, but we did record down some of the failure case. And I think, and to answer your question, yes, we see similar trends of failure.
SPEAKER_02So failure, for example, you know, meets the grass point or meets to predict the next keyframes with offset. And also, I guess, like in terms of, you know, environment perturbations, you can cause the policy to, you know, choose a different object. So since you're on the topic about evaluation, I'll talk a bit about how we evaluate generalization in simulation. Colosseum is another work that I work on. So Colosseum is basically building on top of our bench. So imagine the 18 tasks. For every task, we can systematically change
SPEAKER_02you know, perturbations. That means we can change lighting, we can change texture, we can change size, we can change color, we can change a lot of these things during test time. But you are still training with the same data. And then we want to test whether how robust is some of this model to some of this change. And this is an example of like extreme case where we basically do perturbation to everything. Like if I show you the original task, you could not even recognize it's the same thing. Like as a human, I can't even recognize. And that's what SAM2AD is actually performing in terms of, you know, getting the task done. So it's still able to predict the point and it's still able to
close the drawer.
SPEAKER_02So I think that is coming back to quiz point, which is largely because of the image encoder that was used to generate the image embedding. And also, I guess it has to be able to even do some of these tasks. So a lot of times when when policy fail on Colosseum, they fail to generalize. And one of the main reasons we realized is that they are not that capable in terms of doing the regular tasks. That's why, you know, when it comes to perturbation, it makes things even worse. So a policy that is able to do the regular tasks usually tends to do better for, you know, generalizing to some of these perturbations.
SPEAKER_02To answer Michael's question, I think, you know, obviously we are not able to do that perturbation in the real world to keep changing lighting, test a bunch of different colors, but we can do that in simulation. So I can just randomize a different episode, now the lighting changes, or I randomize a different object. I'm not sure you can see the cup, but the texture of the cup changes. Or even in this case, I think the size of the ring changes. And if the size of the ring changes means that your model must be robust enough to have some concept of equivalent to predict points that has some offsets from the
SPEAKER_02original point. And in that case, it wasn't even trained on a range of different rings, right? So this is, again, a functional... So this is a function that came out of that. So I think one of the very typical example or like classic example that we test for this is that in Colosseum, we will scale the size of drawers. So if you scale the size of the drawers, the position of the handle will vary. That means originally the point where the drawer was supposed to be pulled is here. But because the size of the drawer shrinks, the drawer's handle becomes here. So the concept of like this equivariant is also sort of,
SPEAKER_02you know, sort of kind of behavior that has to be out of these policies. Yeah. And also it's a way for you to test robustness. Yeah. So I think coming back to Colossium, I would like to talk a bit about it. We realized that actually SEM2H is really robust. So the way we measure is we have the original task without any perturbation. We have the value, the performance for that, for that individual task. And then we perturbate in a systematic way by changing different variations. And we try to measure the difference. And when we average it out,
SPEAKER_02we realize that same to add only have a performance drop of minus 4.3%. That's as close as maintaining. I wouldn't say as close as zero, but it's pretty well. That means no matter how you change the environment, how you perturbate the environment, it's still able to get a task succeeded. So I think that's something that is a huge gain.
SPEAKER_00Why do you have two that actually perform better under randomization?
SPEAKER_02Yes, that's a good question. So I think this is something that when we first designed the task, we realized that this is a problem because for the two that performs better because we are aggregating relative to like those has no perturbation. So it's an average drop between the one that has no perturbation. For these variations, sometimes the no perturbation has lesser. So if you look at Colossium, it's like basically a spreadsheet and you try to fill in the spreadsheet, but not every variation, every task will have.
So some tasks might not have some variation or some variation might have less tasks. So that creates this like, I guess when we design Colossium, we should have thought of that. you know ahead of time so there is like this kind of weird phenomenon that occurs where you know if the model performs uh really bad on their task and then if that's it somehow in the perturbation it does slightly better the change becomes magnified yeah okay that makes sense yeah yeah but but uh at the end of the day i think what we really matter is to look at the aggregation here of the
average yeah so i think
SPEAKER_02that's one huge uh plus point about which is really robust. And we show that both in simulation and we show that both in the real world for our policy.
SPEAKER_03Can I ask for what kind of compute do you need? Like once you train the whole architecture, like an inference,
SPEAKER_02Yeah, so I think that's a good question, Michael. I think as much compute as you can, I think that's like... At inference.
SPEAKER_03At inference.
SPEAKER_02Oh, you mean like test time, is it? Yeah, test time. So during test time, I think for like a real-world evaluation, I think we evaluated on one 4090. I think that's pretty much enough. Yeah, but for training-wise, you know, as much as you can get your hand on, that's the best. How much data did you have at train time? for training time for real or for sim both for real for sim for sim the rl bench 18 tasks uh we train with like 100 demonstration for each task we
did multi-task training and then test time for sim was like 25 episodes of each uh each task yeah and i think one thing to sort of point out is that uh what do you call that
SPEAKER_02SAM2 image encoder that was used here was the base model. And SAM2 has a large model that we did not try. So if we believe that, you know, if we change that to the large model, the performance will go even higher. But I think ultimately, I think we sort of prove our point with, you know, SAM2 itself. So I guess, you know, sometimes in robotics, like 2% change doesn't really mean that much. Whereas the memory thing is more interesting. Yeah. So, uh, yeah, coming back to the next point, which I think the last feature, which I think is really interesting about, about SEM2AD is that our variation,
SPEAKER_02which is SEM2AD plus incorporates memory into, you know, into its performance. So having the ability to, you know, solve memory tasks. And as I mentioned about the memory bench, as you can see from the result, SAM2 app plus really increased significantly as compared to like SAM2, which has no memory stage training and compared to like baseline is also significant. And in the ideal, SEM2X should get 100%. I guess we get close to 100% as possible. But I guess,
SPEAKER_02as I say, there's a bit of data imbalance here, which led to not meeting the hypothesized performance result that we expect. But I guess overall, we do see that the performance is significant.
SPEAKER_03Seems to me you need a harder task for your memory bench now. I mean, 100%, 99%.
SPEAKER_02Yeah, yeah. A harder memory task. Michael, you know what? Which is a good thing. Yeah, you're right. You're right. I think we do need a harder task for the memory bench. But also, I guess it's also a way for people to test, you know, how far is current, you know, PC policy away from the upper bound. So that could also be a way to look at this, right? So I mean, like, we are not claiming that, you know, we solve memory bench because we basically formulate a problem and we show that, you know, this is the upper bound,
SPEAKER_02but essentially, you know, people can come up with ways to hit the upper bound, but still have better performance than us in generalization, in general task performance, or even I hope to see like a VLA model that's able to, you know, solve memory bench while be able to do all the other things. So I think that's the cool part. And I think one thing that, yeah, maybe we can just take a look at some of the tasks from MemoryBench. So this is Sam2Ads. It's able to sort of, you know, open the right drawer. And I guess like RVT. Sometimes RVT do succeed because, you know, like this is random.
SPEAKER_02Like it's definitely able to succeed in doing the tasks. But, you know, sometimes you'll choose between which drawer to open. So I think in this case, it got it correct. But if you look at things like, for example, put the cube. If RVT takes from the center and you press, it puts at a wrong place. You see, that's the very interesting behavior. And I guess like, let's see where the hours works. Yeah. So this is SEM to App Plus. I also want to point out something really interesting that I observe from some of this model is that they will try to put it in a way that,
SPEAKER_02you know, if let's say the cube is put in the center and it's slightly tilted in a certain way, that sort of gives like a signal for the model to sort of hack on it. So they will try to use that orientation to remember, okay, where it came from. So that's something we find very interesting. So they're not using memory, but they're trying to hack this way through to optimize on getting the right location. Yeah, so that's why there's the variation in terms of what we expect the performance to be and what the real performance for the baseline is. Interesting. Is that because of like biases in the kinematics, the robot, the motion?
SPEAKER_02Yeah, okay. Yeah, it's the bias in the motion and also because the motion creates some kind of hints. So it knows that, okay, maybe I should put it back at that first point. Yeah. And the counter argument case is also, I think it's pretty interesting. So this one puts in the center, you press the button, and then, you know, it moves to the left. I want to show the... Can I? Sorry, I have to, like, cut two different screens. So what's next, I guess?
SPEAKER_02So I think what is next, I think, for us is to see how can we sort of incorporate this for not just, like, you know, That's what Michael said, right? You know, this is like a short horizon task. I guess there is some concept of memory, but ultimately we want to look at long horizon manipulation tasks and not just manipulation. I think right now I'm really interested in mobile manipulation. And I think this problem, I think Chris has some work in this, and I think this problem is amplified significantly when it comes to mobile manipulation. And how do you represent memory in a mobile manipulation context?
SPEAKER_02And I'm not talking about just, you know, finding the object and remembering the object and going somewhere else, but actually doing an actual task and then going to somewhere else and do something else and come back to do, you know, that same task. Are you able to sort of remember? So I think that's something that's really interesting. And hopefully we want to see whether can we take this and transfer that into mobile manipulation? Yeah, that's like the high level answer to what is next. So let me quickly share the last. One. Yeah, so this is an example of what memory task looks like in the
real world.
SPEAKER_02Okay, are you able to? Yeah, we can see. Can you see? Okay, so the idea behind this is that you have a cube in front of a button. So during training, we put a cube there, and then we remove the cube, and then the data that's collected is to press the same button twice. But during test time, we do the same thing, and rest baseline basically choose between the red and blue button, red and green button. Whereas our model sort of remembers where that blue button was, the blue pill was in front of the button. So it's the same concept with like the breaking the Markov
assumption and to be
SPEAKER_02able to put this in a way that requires some form of memory.
SPEAKER_01Yeah.
SPEAKER_02And I think this is pretty cool because, you know, I think this is what you expect in the real world, right? Because when you have someone, you know, interacting with a robot, the human might remove an object. And then will the robot be able to know where that object, you know, previously was so that it can, you know, add accordingly? I think this is something that you can't just learn by throwing a lot of data at. So it comes fundamentally through the model architecture itself.
SPEAKER_00I mean, this is like the fundamental piece of like probably maybe one of the most useful robot apps that I could think of for a home robot would be like, where did I leave my keys? Which is like, which board did I leave my keys in?
SPEAKER_02And you don't want your robot to give you a random guess.
SPEAKER_00Yeah, right. You don't want, yeah, exactly. You want to actually remember or like, hey, where did I put this thing? Yeah, right. All of that. That's non-Markov because if I put it in a drawer or something like that, right, it's, you know. I feel like, yeah, we want more reliable policies before trying to scale out these kind of foundation
SPEAKER_02models for robotics, right? Because Ultimately, CHGBT hallucinates. So I think VOA models could also, when it gets large enough and more capable, hallucination will occur. And I think a lot of times this hallucination could be exactly what you mentioned here, which is, it doesn't really remember exactly where it put, and it's just making an educated guess. So I think that's like, yeah, that's the high level take. And I think that's all for my paper. And hopefully, you guys, you know, I'm interested.
SPEAKER_03Yeah, this is super cool. Well, so maybe just a couple of questions to round up on things, right, Jiafei? Let's say, you know, if you have, let's say, one or two more months extension to the paper deadline, I'm sure there are things that you want to squeeze in the paper. What would you have done if you just have that one or two more months? Is it like to swap out to a bigger, you know, like, what's that, the same tool? image and go the thing yeah yeah I think that's that's a good question Michael I think more cool demos I guess no I'm just kidding but I guess these days there's a lot of you know hype about like cool demos I think this kind of
thing is really hard to do like cool demos because you know when you do cool demos you make the problem much more complicated and you miss the you know the essence of you know understanding the fundamental science behind robot learning so I guess like we want
SPEAKER_02to sort of you know, made the problem manageable. So I think what I will spend time on sort of to investigate is one of the questions or some of the limitations that we mentioned, which is like the varying window length of the memory. And as you say, like what happens if you have a larger image encoder? And also to solve, further do more ablation study to better understand this concept of memory. And I think one of the problems that we also face that I think this policy could be better improved on is semantic memory. So semantic memory in a sense whereby do you remember which exact color
SPEAKER_02Because right now, this is a lot of spatial memory because the point has to be, you know, previously reached before you do that. And you realize every drawer is the location, but it's not differentiated by colors. So we want to understand, you know, how can we learn semantic memory out of this? So there might be some fundamental architecture change that we need to implement. Or, you know, there's other tricks to do that. And I guess humans have these different stages of memory, spatial memory, semantic memory, episodic memory. So I think if we want to move more towards like, you know, robot learning policies that's, you know, human inspired,
SPEAKER_02then I guess like these are some of the problems that we need to solve. I think this and also like the ability to do like reasoning or failure reasoning and all these kind of things, I think is what I saw missing.
SPEAKER_03Yeah. Anything like super surprising or unexpected when you were doing this? Super surprising and unexpected.
SPEAKER_02I think, I guess like the way, as I mentioned, like how you see some of the policies, you know, basically users leverage on its buyers to sort of increase the performance, like just a slight shift or, you know, when they try to close the drawer, they don't close fully. So because if you don't close fully, then obviously... It's like a very lousy thief, you know? Okay. yeah yeah so it's really interesting to see those those examples and and that that makes us you know think a bit more about how we should go about
designing the tasks i think that's like the hardest part so a lot of time was spent in terms of thinking about how we should go about designing these tasks how we are able to you know and test out to make sure that you know we are not just i guess a lot of times you know we have this like perceiver effect whereby you you think that the model is learning something but actually it's not so we want to make sure for sure that the
SPEAKER_02memory component is being utilized and and the model is able to remember exactly what he'd done previously. So I think that's something that is really hard and that took a lot of effort.
SPEAKER_03Very cool. Maybe one last question just to wrap everything up. Any great paper you read recently that completely blew your mind that maybe we should invite for our next guest? Any people recommendation?
SPEAKER_02Oh my gosh, these days, there's so many like really interesting papers, you know, that came out, I think. I think there's a, there's a paper that came out today, I think from Suran's group, Suran and Dorsai, the universal video action model. I think that's really interesting. This one, right?
SPEAKER_03I think. Yeah, yeah, yeah. Yeah.
SPEAKER_02Cool. Yeah. I think these are pretty, pretty interesting line of work. I guess, you know, we can, we can look, I mean, people are interested, I guess that is, that would really help. Cool. Well, thanks. All right. Awesome.
SPEAKER_00Chris, you have anything? Anything else? Oh, I'm good. I have plenty of questions throughout. This is a lot of fun. It was, thank you for coming on.
SPEAKER_02Yeah. Thanks. Thanks, Chris. Yeah. It's good to see you virtually. And hopefully, I guess I see you a lot in the conference. So maybe we'll see each other again. Thank you so much, man. Jeffree, really appreciate it. I think this is a great initiative. I think it sort of educates, you know, people about robotics that's beyond just cool demos. And there's a lot more problems beyond, yeah.
SPEAKER_00Yeah. I'm excited about it. See you. Okay.
SPEAKER_03Thank you, Jeffrey.
SPEAKER_00Okay. Bye. What do you think, Chris? What have you learned? uh yeah i think it's a cool paper i like this kind of direction i think setting these there's a few things that i like here the memory problem like solving memory spatial memory like this i think is one of the bigger ones that actually prevents robots from like really being useful deployably so like meaning that like if a robot is actually supposed to be autonomous it's not teleopt or whatever it is or scripted like memory is like it has to have it has to have a really good functioning memory and so i think that part's really valuable
I really like a lot of the stuff with these spatially abstracted or whatever you
SPEAKER_00want to call it, like these kinds of policies that aren't doing continuous actions. They're a very interesting kind of difference from the way that like a lot of the time we see people doing these. So like compared to like the way that you do a VLA, right, where you actually are predicting actions, right, discrete actions that tell you how the end effect is going to move. that's not that's not what happens here right it's based on it's like the fact that it's yeah the keyframe stuff like there are downsides to that like which we didn't really talk about but there but there are also um but like one of the big upsides
SPEAKER_00is like the precision stuff like the fact that he can with only a few demonstrations train like those peg insertion tasks that's pretty impressive Like, yeah, I don't know. So cool stuff. The SAM2, of course, very interesting. It's interesting how complex the training architectures are getting with some parts being frozen to get the vision encoders right and all that. Anyway, yeah. What about you? What do you think?
SPEAKER_03I mean, for me, I mean, definitely the memory thing is great to see. I guess as a layman, all these Markov decision thing, I vaguely know what they mean. But I think just looking at the baseline, it's not even like to a human, it's such a simple task. You don't even think of it as memory. You just do it. But it's so difficult for an AI. Right now. So, but it also points to me, like, uh, I mean, even like this is already Sota result, right. In some sense, but you look at some of these, like, uh, firstly, the task to a human is very, very simple task. The other thing is also like the, the,
SPEAKER_03the success rate, you're talking about 80 something percent in simulation, 70%. Let's say in, in real, right. You know, human were to do, it will be 99.9% at least, you know, so, uh, It'll be interesting to see what other type of research leaps that we need to get to that. Yeah. Definitely the memory part is the most interesting to me.
SPEAKER_00So yeah, the Markov thing. So we talk a lot throughout the discussion about Markov. And so I think it's probably worth including some summary of that, like a discussion of what... So what does Markov mean? So... so in this context we're talking about is it and this is true of most learning from demonstration stuff right like you have to make sure that the image that you're capturing actually tells you exactly like it has contains all
the information that is necessary to determine where the task is going right like and like technically this isn't like you use like technically it's not but like it's not always like technically true because you have like long lstms and stuff which have mem or like transformers can't have like memory and video all that kind of stuff but like in general like that for the best results like you really are setting it up so that like at every frame you can tell exactly what's going to happen next right and i think that that's that's the big thing that he is talking about
throughout this is that like the fact that from an individual image if i look at my image if i even
SPEAKER_00look at it like a short snippet of video right like Like I can't always tell, I cannot tell what is going to happen. And that's why, you know, that you actually need the memory part. And that's, that's, I think, yeah, I think that it's interesting. And I agree. Like a lot of the tasks are quite simple. I will say, I think that they, a lot of the RL bench tasks are actually quite hard for robotics imitation behavior, cloning. There's a whole discussion you could have on like what benchmarks are useful. And like he chose one where, where it does require a good degree of precision. Right. And that's why for a lot of these methods, they perform pretty poorly.
SPEAKER_00They're also, also a lot of the demonstration data is generated via motion plan or not via human, human data, which is, which is like, so there's lots of like big discrete switches and stuff like that, which also you can, so like, there's a lot of little things in here that are, that are like different from other papers, I guess. Cool.
SPEAKER_03Cool. Cool. Well, okay, cool. Well, great to do this. First one, get it out of the way. We'll push it out soon. And then, yeah, we'll do this weekly.
SPEAKER_00Yeah, sounds fun.
SPEAKER_03Yeah, I'm excited.
SPEAKER_00I'm very tired because it's after midnight actually.
Note: this is an old episode of RoboPapers. I am uploading old episodes of our podcast here to make it easier to find them and to find our reference materials. Please follow the podcast on Youtube or on Spotify. Value...
Sim-to-real training is an important part of the future of robot skill learning. But a lot of sim-to-real work focuses on navigation, grasping, or, more recently, non-interactive robot behaviors like dancing. Training...
One of the dreams of robotics research is being able to download and test out a model and have it *just work*. Mahi talks to us about “robot utility models,” which are essentially just this: models that you can download...