this post was submitted on 29 Jan 2025
18 points (87.5% liked)

Ask Lemmy

27799 readers
2880 users here now

A Fediverse community for open-ended, thought provoking questions


Rules: (interactive)


1) Be nice and; have funDoxxing, trolling, sealioning, racism, and toxicity are not welcomed in AskLemmy. Remember what your mother said: if you can't say something nice, don't say anything at all. In addition, the site-wide Lemmy.world terms of service also apply here. Please familiarize yourself with them


2) All posts must end with a '?'This is sort of like Jeopardy. Please phrase all post titles in the form of a proper question ending with ?


3) No spamPlease do not flood the community with nonsense. Actual suspected spammers will be banned on site. No astroturfing.


4) NSFW is okay, within reasonJust remember to tag posts with either a content warning or a [NSFW] tag. Overtly sexual posts are not allowed, please direct them to either [email protected] or [email protected]. NSFW comments should be restricted to posts tagged [NSFW].


5) This is not a support community.
It is not a place for 'how do I?', type questions. If you have any questions regarding the site itself or would like to report a community, please direct them to Lemmy.world Support or email [email protected]. For other questions check our partnered communities list, or use the search function.


6) No US Politics.
Please don't post about current US Politics. If you need to do this, try [email protected] or [email protected]


Reminder: The terms of service apply here too.

Partnered Communities:

Tech Support

No Stupid Questions

You Should Know

Reddit

Jokes

Ask Ouija


Logo design credit goes to: tubbadu


founded 2 years ago
MODERATORS
 

In what ways a machine learning model can be trained/improved using video games?

you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 2 points 1 day ago* (last edited 1 day ago) (1 children)

I guess if you had an generalized AI meant to play video games, you would presumably need to feed it a bunch of games so it could get better.

Although I'd imagine it'd be difficult creating the "win conditions" for it to improve.

For example in a game like Super Mario Bros it's fairly simple - there's a point counter on the top right you can just feed into the model. In a racing game, you could just take the time per lap and make that the fitness measurement. This makes it so anybody can just download some machine learning library and an emulator and go to town.

But in a game like Skyrim or GTA- how would you measure fitness?

For that reason, I think you would probably need a very generalized AI like Chatgpt with some sort of interface that allows it to make decisions on the spot with an overarching directive.

It's an interesting question. I think we're very close to something like this, although it's prohibitively expensive right now. At least for an AI to do in real-time. Maybe if you had an emulator you could sort of do something like this if you're able to freeze the game every time you send a prompt to the AI.

Ie you're playing Skyrim. You take a screenshot of the screen and then turn that into pixel data. You take your current health. You take your inventory. You take your level, your mana, your quest log etc. Then you send that all to the AI and say "Hey, your goal is to complete the main quest line. What do you do next?" The emulator freezes the game, waits for a response. AI says "I will move towards the next village. Press W to move forward." then the interface sends the "W" command to the emulator. Plays a frame or two and then freezes again. Sends another prompt to the AI.

and so on and so on. That is technically possible right now, although like I said - very expensive. Every call to an AI like that costs $$$. The more data you send, the more expensive. And sending the screenshot data every frame or two is a lot of data. Not to mention you would presumably need many thousands to get anywhere in the game.

perhaps there are AIs you can run on your PC that won't be as good as chatGPT but maybe good enough to do this? not sure. I've been wanting to look into it but I also don't want to fry my graphics card

[โ€“] [email protected] 2 points 1 day ago

Mario AI

One of the things Notch (of Minecraft fame) was known for before MC was a Mario remake that infinitely generated levels and had API hooks for quantifying progress. This was used in AI competitions.

Similarly, one of the old Trackmania games has been modified to output position and track info around the player along with fitness measures, allowing someone to train AIs.