Skip to main content
QUICK REVIEW

[Paper Review] An electronic-game framework for evaluating coevolutionary algorithms

Karine da Silva Miras de Araújo, Fabrício Olivetti de França|arXiv (Cornell University)|Apr 3, 2016
Reinforcement Learning in RoboticsComputer Science11 references4 citations
TL;DR

This paper introduces EvoMan, an electronic game framework based on Mega Man II for evaluating coevolutionary algorithms in reinforcement learning. It enables testing neuroevolution via Genetic Algorithms and NEAT to train agents that co-evolve with adaptive enemies, demonstrating improved adaptability and arms race dynamics in competitive gameplay scenarios.

ABSTRACT

One of the common artificial intelligence applications in electronic games consists of making an artificial agent learn how to execute some determined task successfully in a game environment. One way to perform this task is through machine learning algorithms capable of learning the sequence of actions required to win in a given game environment. There are several supervised learning techniques able to learn the correct answer for a problem through examples. However, when learning how to play electronic games, the correct answer might only be known by the end of the game, after all the actions were already taken. Thus, not being possible to measure the accuracy of each individual action to be taken at each time step. A way for dealing with this problem is through Neuroevolution, a method which trains Artificial Neural Networks using evolutionary algorithms. In this article, we introduce a framework for testing optimization algorithms with artificial agent controllers in electronic games, called EvoMan, which is inspired in the action-platformer game Mega Man II. The environment can be configured to run in different experiment modes, as single evolution, coevolution and others. To demonstrate some challenges regarding the proposed platform, as initial experiments we applied Neuroevolution using Genetic Algorithms and the NEAT algorithm, in the context of competitively coevolving two distinct agents in this game.

Motivation & Objective

  • To address the challenge of evaluating learning algorithms in environments where rewards are delayed until game completion, making traditional supervised learning infeasible.
  • To provide a flexible, configurable testbed for evaluating autonomous agent learning in electronic games, particularly for coevolutionary and neuroevolutionary approaches.
  • To simulate realistic, dynamic game environments that reflect real-world uncertainties and enable adaptive AI behavior similar to human learning patterns.
  • To explore the feasibility of coevolutionary learning where both player and enemy agents evolve simultaneously, creating an arms race dynamic.
  • To support the development of adaptive, challenging, and engaging AI opponents in video games by testing learning algorithms in a controlled, repeatable environment.

Proposed method

  • Designing a customizable game environment inspired by Mega Man II, with configurable game modes including single evolution and coevolution.
  • Implementing a neuroevolution framework using Artificial Neural Networks (ANNs) as agent controllers, trained via Genetic Algorithms (GA) and NEAT (NeuroEvolution of Augmenting Topologies).
  • Defining game-specific fitness functions based on in-game metrics such as player energy, enemy health, and survival time to guide evolutionary optimization.
  • Enabling coevolution by pitting the main player agent against an evolving enemy agent, where both evolve in parallel to outperform each other.
  • Using a population-based evolutionary approach where each agent's genome encodes the weights of an ANN, with selection, crossover, and mutation applied over generations.
  • Introducing a heuristic baseline for comparison, where the player learns against fixed, pre-programmed enemy behaviors before transitioning to coevolutionary training.

Experimental results

Research questions

  • RQ1Can coevolutionary algorithms effectively train an agent to learn and adapt to evolving enemy behaviors in a game environment with delayed rewards?
  • RQ2How does the performance of neuroevolution (GA and NEAT) compare when learning against fixed enemy behaviors versus coevolving enemies?
  • RQ3To what extent does the coevolutionary setup generate an arms race, where both agents continuously improve in response to each other?
  • RQ4Which enemies are most challenging to learn against, and how does the learning curve vary across different enemy types in both heuristic and coevolutionary settings?
  • RQ5Does the coevolutionary approach lead to more robust and generalizable strategies compared to single-agent learning?

Key findings

  • In heuristic experiments, the agent successfully learned to defeat all enemies, with AirMan being the easiest (beaten early) and FlashMan, WoodMan, and HeatMan being the most difficult to overcome.
  • In coevolutionary experiments, the main player achieved a mean energy of 0 against FlashMan, 74 against AirMan, and 4 against WoodMan, indicating strong performance against some enemies but failure to defeat others.
  • Against MetalMan, the agent maintained a high level of performance (mean energy 94) in coevolution, suggesting stable adaptation, while against FlashMan, performance remained poor (mean energy 0), indicating persistent difficulty.
  • The arms race was most evident against AirMan and QuickMan, where the agent alternated between winning and losing, showing dynamic adaptation over time.
  • The NEAT algorithm struggled to maintain perfect solutions over time due to high mutation rates and sensitivity to chromosome representation, particularly against enemies like MetalMan and CrashMan.
  • The evolution of player and enemy energy over 100 generations (Fig. 4) revealed that early success against some enemies (e.g., AirMan) did not guarantee sustained performance, highlighting the need for longer training in coevolutionary settings.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.