Adaptive Context Length Optimization with Low-Frequency Truncation for Multi-Agent Reinforcement Learning

Wenchang Duan, Yaoliang Yu, Jiwan He, Yi Shi

Introduction

In Multi-Agent Reinforcement Learning (MARL), agents frequently operate in partially observable environments where the current state does not provide all necessary information for optimal decision-making. To mitigate this, agents rely on historical observations—a context window—to infer the underlying state of the world. However, the standard approach of utilizing a fixed-length context window presents a significant trade-off. Short windows may fail to capture critical long-term dependencies, while excessively long windows introduce high-dimensional noise and substantial computational overhead, often hindering an agent's ability to generalize.

This paper introduces ACL-LFT (Adaptive Context Length with Low-Frequency Truncation), a framework designed to dynamically optimize context length. By employing a central agent to manage temporal history and utilizing Fourier-based signal processing to filter noise, ACL-LFT achieves superior performance and efficiency across a variety of complex MARL benchmarks.

Methodology

The ACL-LFT framework is built upon three core technical pillars designed to address the "dual challenge" of context length: managing computational burden while improving representation quality.

1. Fourier-based Low-Frequency Truncation (LFT)

Rather than processing raw time-series data, ACL-LFT applies a Discrete Fourier Transform (DFT) to the observation history. Drawing on Littlewood–Paley theory, the system utilizes a "Dyadic Partition of Unity" to truncate the signal. This process retains low-frequency components—which represent global temporal trends and slow-moving environmental patterns—while discarding high-frequency components that typically represent stochastic noise. This truncation results in a compressed, high-fidelity representation of the agent's history.

2. The Central Agent

To manage the adaptive nature of the context window, the framework introduces a specialized "senior" central agent. Unlike standard agents, this central agent does not interact directly with the environment. Instead, its role is to determine the optimal context length for the decentralized agents at each time step. By taking the compressed LFT representation as input, the central agent can make informed decisions about history requirements with minimal computational cost.

3. Spatio-Temporal Decoupling

ACL-LFT separates the learning of spatial information (immediate action selection) from temporal information (history window selection). The central agent is trained independently using a multi-head attention-based reward mechanism, ensuring its objectives are aligned with the overall team performance while maintaining a clear separation of concerns between "what to do" and "how much to remember."

Theoretical Foundation

The researchers provide a theoretical justification for adaptive context lengths through Theorem 1, which establishes a "long-term advantage lower bound." This proof demonstrates that in unstable or non-stationary environments, an adaptive approach provides a significant advantage over fixed-length windows by preventing the accumulation of "regret" and allowing agents to "zoom in or out" on relevant historical data as the situation demands.

Experimental Results

The framework was evaluated against state-of-the-art (SOTA) sequence processors, including Transformers, ToST, and AMAGO, using backbones such as MAPPO, QMIX, and QPLEX across several challenging environments.

  • Google Research Football (GRF): In the "3 vs 1 with Keeper" scenario, ACL-LFT achieved a 90.12% win rate, a substantial improvement over the best fixed-length baseline, which peaked at approximately 71%.
  • MiniGrid Soccer: ACL-LFT demonstrated superior convergence speeds, reaching the goal in 41 steps, compared to 47 steps for Transformer-based models and 59 steps for AMAGO.
  • StarCraft Multi-Agent Challenge v2 (SMACv2): The method consistently outperformed SOTA models across various tactical scenarios (e.g., corridor, 5m_vs_6m), showing average win rate improvements between 2.6% and 4.6%.
  • Efficiency and Noise Reduction: Case studies revealed that ACL-LFT dynamically reduces context length during high-stakes moments, such as scoring a goal, confirming that filtering out redundant history can lead to more precise decision-making.

Conclusion

ACL-LFT demonstrates that in the context of MARL, "less is more." By focusing on low-frequency global trends and adaptively adjusting the temporal window, the framework overcomes the limitations of fixed-length history. While the introduction of a central agent and Fourier transforms adds a layer of architectural complexity, the resulting gains in win rates and computational efficiency mark a significant step forward for agents operating in complex, partially observable environments. Future research may extend this adaptive logic to Large Language Model (LLM) agents to address prompt length and context window bottlenecks.

Summary updated

BibTeX
@inproceedings{duan2025adaptive,
  author = {Wenchang Duan and Yaoliang Yu and Jiwan He and Yi Shi},
  title = {{Adaptive Context Length Optimization with Low-Frequency Truncation for Multi-Agent Reinforcement Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=4BsrGHtvW5},
}
Figure