Abstract
Traditional multi-agent reinforcement learning (MARL) relies on neural "mixing networks" for credit assignment, which are often opaque and computationally expensive. We introduce QLLM (Q-value Large Language Model), a framework that replaces these black-box networks with human-readable Python code generated by LLMs. By utilizing a self-correcting coder-evaluator loop, QLLM creates a training-free credit assignment function (TFCAF) that outperforms state-of-the-art neural methods while improving interpretability and reducing parameter overhead.
Introduction
In cooperative MARL, agents work together to achieve a common goal, often receiving a single shared reward. The challenge lies in "credit assignment": determining how much each agent contributed to the total success. The prevailing solution involves Value Decomposition, where a mixing network maps individual agent utilities (Q-values) to a global team Q-value. However, these networks are difficult to interpret, require extensive training, and often enforce rigid constraints like monotonicity that may not suit all tasks.
The QLLM Framework
QLLM shifts the paradigm from learning a mapping to generating a symbolic one. The core component is the Training-Free Credit Assignment Function (TFCAF), which is executable Python code defining the relationship between agent Q-values and the global state.
To ensure the reliability of the generated code, QLLM employs a Coder-Evaluator Framework:
- Coder LLM: Generates the initial TFCAF based on task descriptions and environment metadata.
- Evaluator LLM: Validates the code for logical consistency and runs it against environment samples to detect syntax or dimensional errors, providing feedback for iterative refinement.
- IGM-Gating Mechanism: Allows the system to toggle the Individual-Global-Max (IGM) principle, providing flexibility for both monotonic and non-monotonic tasks.
Experimental Evaluation
QLLM was evaluated across several diverse MARL benchmarks, including Cooperative Matrix Games, Multi-agent Particle Environments (MPE), Level-Based Foraging (LBF), and Google Research Football (GRF). These environments test the system's ability to handle everything from simple non-monotonic logic to high-dimensional physics simulations.
Key Results and Insights
QLLM consistently outperformed established baselines such as QMIX, QPLEX, and Qatten. Notably, it demonstrated superior robustness in high-dimensional spaces where traditional neural mixing networks often fail.
Symbolic Logic and Interpretability
By expressing credit assignment as code, QLLM leverages the inherent "common sense" and domain knowledge of LLMs. This approach is inherently interpretable; researchers can inspect the Python function to understand the logic behind credit distribution. Furthermore, by replacing dense neural layers with targeted functions, QLLM reduced trainable parameters by 12% to 37%, accelerating convergence.
Conclusion and Future Work
QLLM demonstrates that symbolic, LLM-generated functions can effectively replace neural mixing networks in MARL. While the framework relies on accurate task descriptions to avoid suboptimal code generation, its self-correcting nature significantly mitigates common LLM issues like hallucinations. Future research will explore dynamic function evolution during training and applications in real-world physical robotics.
Summary updated