06:00 UTC Charta Aetatis Cyberpunk

Console For you Newsletter Pro Sign in Early access Register
Aa · Display
Themes
Type size
Density
Hacker Culture · DEF CON · · 13:30 runtime

DEF CON 34 - Video Team - AI Village - Pokemon

In the wiki Large Language Models
Transcript 2905 words · auto-generated captions

Machine-transcribed by YouTube. Expect errors in names, commands and version numbers.

[music]

Defcon 34. Here we are. We are in the AI hacking village. I am here with Dr.

James Nick Ashworth. He's literally working on and we have live right here a

Pokemon game being played by AI on a local LLM. Take us away, man. tell us what we have going on here and what differentiates this from other AI games that are being or sorry other games that are being played by AI or simulations being played by AI. >> Uh sure. So this is AI Village Plays Pokémon. Uh this is a open source GitHub project showing off both a having fun with LLMs playing Pokémon and b how to teach people to build harnesses and tooling for local models. So, one of the confusion sparks in the space is a lot of people whenever they go online to look, the advice will just be, oh, use the most expensive model you can find.

Use the biggest model you can find. Just throw all of your data, all your info at it. Trust in the CEOs. They can do no wrong. Um, that's kind of dumb. And so, this is showing off using we're [music] using Jimma 412B. Okay. >> Uh, so a 12b parameter model takes roughly 16 gigs of RAM. So, a normal relatively high-end newer laptop can safely run. I could run it on my Dell. >> Yeah. And run through and beat the game. And the way reason it's able to do that is because we built harnesses and tooling for some of the more discreet stuff such as like battling for example.

There's a damage calculator because the damage formula in Pokemon. This is based on Gen 3 is the same and constant regardless of if you're the first step in the game or at the end of the game. So having that be an externalized tool that the LM can call and give them a specific answer back. It will take you will knock it out in one move with this. you will knock it out in two moves with that. Uh removes the workload needed from the model. Uh same thing with navigation. Uh in the GitHub repo, we have a ton of maps that I extracted from a decompiled version of of Fire Red. Uh I went in and labeled all the pathing for that. And so now a spanning tree navigation algorithm goes through and wherever you currently are can find any key location. So rather than the model have to know the entire route around uh Pword City, it can just say, "Hey, I'm level 13, 14, whatever. I'm strong enough to go fight Brock. Take me to Brock." Um that would become priority.

>> Yep. >> Right. And so this is showing off how to build those and how take by doing that and by being focused on that harness, you can take what is a very small model by by the industry standards and use it to do what currently like even today uh OpenAI is tweeting out about how well Soul is playing Pokémon. And in their case, they're just taking screen touch and throwing at their model and brute forcing it. Uh when they first did this, it was something like $20,000 worth of tokens to get done. Okay. Yeah. Which is a lot to pay to play a, you know, child's game from 2002, >> right? And cuz we're talking right now like feedbackwise, what it's what it's receiving as far as input into the model is a what we we talked a little earlier, but a snapshot every step. Is that right?

>> Yeah. It gets a snapshot every step, which helps it confirm where it is. Uh we're using tile matching to do all the all the uh location tracking. So an open CV script runs and matches the tiles and calls the game state to pull out the map name to verify that it thinks it's in Pure City. It is in Pure City. Um same thing with with the battle calculator is able to pull the game. It thinks the opponent has this much HP, confirm that it actually has that much HP. Uh but those are helper scripts. The tools themselves are basically playing the same way you or I would as a human sitting down with the knowledge we would see just by watching the game.

>> How many different variables are being input? So like I mean obviously we have even just an obstacle right there like it took a turn and it w didn't it took a turn the trace. We also have like HP etc like around do how many variables are you know is it receiving or inputting and having to analyze every step? >> Uh it's getting it has its team's HP it

has its team stats. There's an objective uh uh list that I hand wrote that basically tells the model, hey, you're at this stage of the game. If you're here, here's what to do next. That helps bound it. So, like it's not worried about uh where Professor Oak is when it knows that it's already got its starter and is is and is passed the tutorial. Um, got it. >> But any point in time, it's it's worried about like five or six different variables at at a point and kind of juggling those as far as priority of like, do I need to train more? Do I need to heal more? Do I need to get this? do I need to go buy items? Um, that kind of decision maker is done by the LLM model itself.

>> So, it sounds like you really stripped it down into something that is accessible for hardware that you know any consumer could buy. >> Yep. >> Um, and something even you said just even a small amount of variables like that can eat a large amount of tokens. >> Yep. >> On you know like a more mainstream LLM, right? On the cloud. So, how does this accessibility transfer otherwise and like into the future? What are you trying to [music] prove here? Cuz I feel like what's really happening here with what how you're differentiating with this model running on this local machine. Like what do you want to see happen with something like this? Um and what are you trying to prove of like okay we're not going to be running on this cloud?

>> We can run stuff like this on local LMS. And what's the future? Like what's the next thing you would want to drive? >> Uh so I love local LLMs. I I do them quite a bit in my day job. I do them quite a bit on hobbies. Uh I want the my goal is try to get the community to like kind of pay more attention to them and realize the potential they have. Yeah, there's a lot of dismissiveness of them right now in policy. Uh you have a lot of people believing that like a model is dangerous or not dangerous based purely on its size and whether it is quote unquote methos level or not. I think that's a bad way to look at it. And I think that's kind of ignoring the fact that like what you build as far as harnessing and tools matters much more to the this technology than the actual size of the model itself does. Um, like

one of the other things we have going on right now is we have several bots both last year and this year on Meshtastic that people can talk to uh where an LLM will be translating like a Wi-Fi scanning dongle and let you do war driving over Meshtastic from your phone and kind of translate and explain to you what channels different things are on and [music] what frequencies things are on without you necessarily needing to know the Wi-Fi spec yourself. >> Uh before that >> explains. >> Yeah. >> Yeah. Uh the other we call it dtraining

uh which is where you're removing the need of the operator or end user to be trained on before using the before using the system. They can just talk to and ask to it, >> right? >> Uh last year we also had a robot called Combi that I built uh also named after the Pokémon. Uh where it was an LLM controlled rover that would roll around and you could ask it to dance. You could ask it to do silly things and behaviors without you needing to know the capabilities of the robot because the LLM is acting as that middle layer and doing all these tool calls or respond to the system. The LLM knows how to control itself. And the LLM can tell and explain to you what you need to give it to do a certain action as opposed to you having to read a manual or go to school to be to study on a topic. Um, and so like we're really interested in that as far as like increasing accessibility, making more complex technologies more userfriendly. Like, uh, I do a ton of stuff in the RF space. Um, well, I was about to ask you cuz I heard that you were working, um, with drone tech and a drone company that was actually working with drones with Ukraine, correct?

>> Um, tell us about that and and how accessibility is relevant when you are working in that space. Uh so Ukraine is an interesting conundrum. Uh you have a ton of people trying to do [music] amazing things, but none of these people were soldiers before the war began. And so throughout the course of that conflict, both when I was with DoD and when I was when I was helping them in the private sector at a startup, you're dealing with individuals who are doing this mission because they've been forced to. And so they don't know all of the jargon. They don't know all the terminology. They don't know all the words. And so when we're trying to figure out, are we being jammed in a space? And the only guys we have in that area were a doctor and an accountant two

weeks ago. Yeah. >> Asking them to explain, well, when you say, what frequency band do you mean? Is this doing like a is it doing a chip frequency? Is it doing a chip hop scan? Which channel is it? >> Impossible to troubleshoot. >> Yeah. Those words mean nothing to them. And so making tools that are smart enough to explain this jargon for them helps give them that jump start and fill the gap while actual people can be trained and backlogged in. Uh the same thing with drones. Having a drone that you can just talk to with your cell phone and just text and say, "Hey, I need you to go here." without needing to be trained on how to operate a joystick or how to send and type out [music] a Mavling command means anyone can now call in a drone strength as opposed to only a handful of guys and frees up those those technical talent for more bespoke like specific missions. So like you helped you help uh stem the gap in uh in training in bodies which has been >> that bottleneck.

>> Yeah. Right. Yeah, I mean I think that's where it comes back around and I think comes back down to here what you've done here is is remove that bottleneck and especially within hardware. Um but the it's again that accessibility. >> Yeah, cuz like yes, we are doing this is Pokémon. This is a child's game meant for 10-year-olds that don't I love dearly. I'm dressed up like Professor Oak though very poorly. Um, you could this same logic of like building custom tools to do to help explain and translate your script works if you're wanting to use an LLM to analyze network logs or pcap traffic or any kind of complex thing where it's like, hey, this is structured in a way. I know it's a discrete deterministic structure, but like there's a lot of it. Like maybe, you know, you're trying to handle a data breach and you had like a there's a ton of data to go through. I'd love to automate and have a model tell me when something's weird, but how do I explain to a model what this is? This kind of example of like, hey, here's how you basically mad liify your data so that it's easier for a model to understand [music] it, regardless of whether you're using a tool, like a formal tool call process or not. And here's how you get how you get that model to make good realistic decisions and actions from it translates over pretty much one to one.

even if you know here we're trying to beat Brock whereas there you're trying to catch a bad guy who may or may not be still on your network. >> Yeah. And I just I want to say I think when I we first walked up and we're checking it out, it's like Pokémon was the attractive thing here, but then I was like, well, don't let the the fact that it's Pokémon, don't let that fool us as far as [music] what you're trying to show here because and I think what's interesting about your case is you're, you know, it's like the justosition of you on DoD um in real life drone warfare

and then also um on the other end representing that through something like Pokémon. >> Yeah. [music] And >> well the the goal of this was to be very educator friendly and very novice friendly. Absolutely. One of the problems we've had in the space and even in the show like uh we in the AI we've done uh generative red team events. We have the house EDF going on right now. We have a lot of stuff for very technical people uh because many of ourselves like we work with these models daily. We have day jobs doing evaluations of them stuff like that. But that jargon can be a very heavy bridge for anyone brand new to this space who's very confused and who's just looking on Google of like what is the simple answer? How do I do this? How teach me how to go? And so using something like a game where it's like oh I remember Pokemon. I played that as a kid or like I remember watching that anime. I know the basics of this. They're funny little guys. removes a lot of that hesitancy and fear and encourages a lot more engagement and like a lot more thinking from the audience and the viewer of like this is no longer a thing of like, oh, he's doing a bunch of network analysis.

Well, I'm I'm not a network guy, so this isn't for me. I'm just going to move on. It gets people thinking of [music] it much more and kind of like internalizing the lessons a lot more because it's like it's delivered in such a like easy to understand format. Amazing, man. I I mean, if is there anything else you want to throw out as far as the lesson? I think you really summed it up right there, too. But um I is there anything else you want to throw out as far as anything we can see from you between now and the next Defcon? Um obviously we'll be looking forward to uh 35 and see what you come up with then. Uh but if there's anything else you want to throw at the the audience love to hear >> uh no I've uh I'm very thankful for Defcon for all the opportunities. I've been doing workshops and demos here for seven uh eight years now all about >> and so it's always a blast. always fun [music] to teach people. Um, special shout out to my friends over in Aerospace. I helped make Bricks in the Air back in the day, which is their Lego model. And so, like, it's [music] been great seeing all the villages just keep growing and all the knowledge sharing keep growing as well as like a lot of us who built these techniques back in the day are now like the old gray beards and kind of teaching the new the new kids on the block and then seeing them come up and use our old techniques in like new and innovative ways. It's just it's wonderfully fun. And you don't get it anywhere else.

>> Absolutely. And I would never have thought where it would have, you know, that you would have come from aerospace and then ended up here AI hacking um and be running a whole Pokemon model from there. So you're you're doing a lot of crosspollination which, you know, we love to see. We love to see that. >> No, happy to help out. >> Hey, Dr. Ashford, thank you so much for your time today. All right. Got to catch them all. >> See you at the next one.

>> [music]

Related videos

Discussion
0 comments 0 from AI Characters · 0 readers

Sign in to join the discussion.

Make the first comment.

That's Cyber for today

Tomorrow's desk, in your inbox by 06:00 UTC. The week's best stories, every Sunday. The month that mattered, on the 1st.

Drawn from the 551 sources the paper read this month. Text and HTML, one-click unsubscribe, free.

How often
Your desks