Open-Source Foosball Benchmark for Deep Reinforcement Learning

Matthew So, Kwansoo Lee, Judah Goldfeder, Hod LipsonCODEML @ ICML 2025

TL;DR

This paper introduces an open-source, high-fidelity simulated foosball environment built in MuJoCo, designed to evaluate end-to-end deep reinforcement learning (RL) agents. The goal is to facilitate research in sim-to-real transfer and develop more robust, adaptive AI players for fast-paced, dynamic tasks.

What Problem Does This Paper Address?

Developing AI agents that can perform complex, real-time physical tasks is a significant challenge. Foosball, a fast-paced table game requiring rapid decision-making, precise motor control, and strategic play, serves as an excellent testbed for these capabilities. However, existing benchmarks often lack the fidelity needed to bridge the gap between simulation and real-world performance (sim-to-real transfer). This paper addresses this by creating a standardized, high-fidelity simulation environment that mirrors real-world foosball dynamics, enabling researchers to train and evaluate RL agents more effectively and to study the crucial sim-to-real transfer problem.

Methods

The core of this work is the development of a simulated foosball environment using the MuJoCo physics engine. MuJoCo was chosen for its ability to handle complex contact dynamics and provide accurate, high-speed simulations, crucial for a game like foosball. The environment is designed to accept raw image inputs, allowing end-to-end RL agents to learn directly from visual data without relying on pre-processed information like ball localization.

The authors evaluate three popular deep RL algorithms:

  • Proximal Policy Optimization (PPO): An on-policy algorithm known for its balance of sample efficiency and implementation simplicity.
  • Soft Actor-Critic (SAC): An off-policy algorithm that uses entropy regularization to encourage exploration and maintain stochasticity.
  • Twin Delayed Deep Deterministic Policy Gradient (TD3): An off-policy algorithm that addresses overestimation bias in DDPG through several modifications.

All agents share a similar neural network architecture (MLP backbone) and training setup, allowing for fair comparisons. The reward function is designed to incentivize scoring goals and moving the ball towards the opponent's goal.

Datasets

The paper introduces a newly developed simulated foosball environment as the primary benchmark. This environment is built using MuJoCo and reconstructs a Tornado T-3000 Foosball Table model. The simulation is designed to be high-fidelity, enabling the analysis of performance transfer to real-world conditions. The authors do not explicitly mention using pre-existing datasets for training; instead, the RL agents are trained within this custom simulation environment.

Key Insights and Ideas

  • Foosball as a Rich RL Benchmark: The game's inherent complexity—combining high-speed dynamics, precise motor control, adversarial play, and the need for implicit physical inference—makes it an ideal, yet challenging, testbed for advanced RL research.
  • End-to-End Learning from Images: By feeding raw images directly to the RL agent, the system pushes for agents that can learn to interpret visual scenes and infer physical properties without explicit feature engineering, a crucial step towards more generalizable AI.
  • The Sim-to-Real Gap is Real (and Quantifiable): The paper highlights that even with a high-fidelity simulator, performance drops when policies are transferred to real-world scenarios. This underscores the importance of robust sim-to-real transfer techniques.
  • Algorithm Specialization: Different RL algorithms exhibit distinct behaviors and performance characteristics even within the same environment. SAC emerged as the top performer in their setup, but TD3 showed promise in ball advancement, suggesting that algorithm choice and training duration significantly impact outcomes.
  • Emergent Ball-Handling Dynamics: The agents discovered different ball-propelling speeds, indicating that the RL algorithms learned distinct trade-offs between control precision and shot power, even without explicit velocity terms in the reward function.

Key Results

Under their chosen training horizon and domain randomization settings, SAC achieved the best overall performance, with a 42.9% Score Rate, more than doubling that of PPO and TD3. SAC also garnered a noticeably higher Average Reward.

While SAC scored more, TD3 demonstrated a strong ability to advance the ball close to the goal, achieving an Average Last Distance to Goal of 31.92, only slightly behind SAC's 24.87. This suggests TD3 learned effective ball-handling but may require more training for precise finishing.

Interestingly, the agents discovered different ball-handling dynamics: TD3 propelled the ball at roughly twice the speed of SAC, which in turn was twice as fast as PPO, as reflected in the Average Velocity metric.

Limitations and Future Work

Limitations: * The current benchmarks are based on a 15-epoch training budget, which the authors suggest might be insufficient for algorithms like TD3 to fully close the scoring gap. * The paper focuses on a single side of play for the agent's control.

Future Work: * The authors envision their platform as a standardized resource for the RL community, supporting reproducible research and a global leaderboard to track agent performance across simulated and real-world settings. * Further exploration of contact models and friction loss is planned to enhance the realism of the simulation. * The platform is designed to advance research in sim-to-real generalization, physical scene understanding, and competitive multi-agent settings. * They are exploring image-based observation spaces in addition to the position-based space used in their experiments.

Summary updated

BibTeX
@inproceedings{so2025open,
  author = {Matthew So and Kwansoo Lee and Judah Goldfeder and Hod Lipson},
  title = {{Open-Source Foosball Benchmark for Deep Reinforcement Learning}},
  booktitle = {CODEML @ ICML},
  year = {2025},
  url = {https://openreview.net/forum?id=i5HQkbi9UY},
}
Figure