this post was submitted on 27 Oct 2024
109 points (95.0% liked)

Games

32642 readers
1921 users here now

Welcome to the largest gaming community on Lemmy! Discussion for all kinds of games. Video games, tabletop games, card games etc.

Weekly Threads:

What Are You Playing?

The Weekly Discussion Topic

Rules:

  1. Submissions have to be related to games

  2. No bigotry or harassment, be civil

  3. No excessive self-promotion

  4. Stay on-topic; no memes, funny videos, giveaways, reposts, or low-effort posts

  5. Mark Spoilers and NSFW

  6. No linking to piracy

More information about the community rules can be found here.

founded 1 year ago
MODERATORS
 

Playing complex strategy games for many years, one of the things that irks me the most is that hard AI levels often just give the dumb AI cheats to simulate it being smarter. To me, it's not very satisfying to go against cheating AI. Are any games today leveraging neural networks to supplant or augment hand-written decision tree based AI? Are any under development? I know AI can be resource intensive, but it seems that at least turn based games could employ it.

you are viewing a single comment's thread
view the rest of the comments
[–] echodot@feddit.uk 0 points 3 weeks ago (1 children)

You don't want a neural net for your game AI because it's behavior is unpredictable and therefore cannot be tested.

All of the issues AI companies have now times by a thousand because now the AI have access to a physical presence in the game world. It would cheat and find ways to know things about the game state that it's not supposed to know, or it would hide in a corner as far away from the player as possible because it's parameters is to avoid death, or some other unforeseen function of its instructions.

[–] Trantarius@lemmy.dbzer0.com 5 points 3 weeks ago (1 children)

You are misrepresenting a lot of stuff here.

it's behavior is unpredictable

This entirely depends on the quality of the AI and the task at hand. A well made AI can be relatively predictable. However, most tasks that AI excels at are tasks which themselves do not have a predictable solution. For instance, handwriting recognition can be solved by a neural network with much better than human accuracy. That task does not have a perfect solution, and there is not an ideal answer for each possible input (one person's 'a' could look exactly the same as another's 'o'). The same can be said for almost all games, especially those involving a human player.

and therefore cannot be tested

Unpredictable things can be tested. That's pretty much what the entire field of statistics and probability is about. Also, testability is a fundamental requirement for any kind of machine learning. It isn't just a good practice kind of thing; if you can't test your model, you don't even have a model in the first place. The whole point is to create many candidate models and test them to find the best one.

It would cheat and find ways to know things about the game state that it's not supposed to know

A neural network only knows what you tell it. If you don't tell it where the player is, it's not going to magically deduce it from nothing. Also, it's output has to be interpreted to even be used. The raw output is a vector of numbers. How this is transformed into usable actions is entirely up to the developer. If that transformation allows violating the rules, that's the developers fault, not the networks. The same can be said of human input; it is the developers responsibility to transform that into permissable actions in game.

it would hide in a corner as far away from the player as possible because it's parameters is to avoid death

That is possible. Which is why you should make a performance metric that reflects what you actually want it to try to do. This is a very common issue and is just part of the process of making an AI. It is not an insurmountable problem.

Neural networks have been used to play countless games before. It's probably one of the most studied use cases simply because it is so easy to do.

[–] echodot@feddit.uk 2 points 3 weeks ago

Neural networks have been used to play countless games before. It's probably one of the most studied use cases simply because it is so easy to do.

Play games yes not be the enemy. It just seems like way more work than is necessary and for no really obvious outcome.