Think Twice, Act Once: A Co-Evolution Framework of LLM and RL for Large-Scale Decision Making

Xu Wan, Wenyue Xu, Chao Yang, Mingyang Sun

Introduction

In the realm of industrial decision-making, such as power grid management, systems must navigate a complex landscape of high-dimensional action spaces and strict real-time constraints. Traditional Reinforcement Learning (RL) excels at rapid execution but often suffers from sample inefficiency and a lack of strategic foresight. Conversely, Large Language Models (LLMs) possess deep reasoning capabilities but are hampered by high latency and limited long-term coherence in physical control loops.

This paper introduces the Agents Co-Evolution (ACE) framework, a novel approach that bridges this gap. By adopting a "Think Twice, Act Once" philosophy, ACE utilizes LLMs as offline strategic coaches to refine RL policies, achieving state-of-the-art performance in massive industrial tasks while maintaining the sub-millisecond response times required for physical systems.

The Challenge: Latency vs. Reasoning

Large-scale industrial systems present two primary hurdles for autonomous agents:

  1. The Action Space Explosion: In power grid operations, an agent may face over 60,000 possible discrete actions at any given step. Standard RL agents, starting from a state of "tabula rasa," struggle to explore these spaces efficiently.
  2. The Latency Bottleneck: While LLMs can reason through complex scenarios, their autoregressive nature results in response times (often >10 seconds) that are incompatible with real-time grid stability requirements (<100ms).

ACE addresses these by decoupling the heavy strategic reasoning from the immediate execution phase.

The ACE Framework: Think Twice, Act Once

The ACE framework operates through a dual-process architecture that separates offline guidance from online action.

1. Think Twice (Offline LLM Guidance)

During the training phase, the LLM acts as a high-level supervisor through two primary roles:

  • Policy Actor: The LLM analyzes "bad cases" where the RL agent failed. It converts the numerical grid state into a natural language description, reasons through a superior alternative, and validates the new strategy within a simulator.
  • Value Critic: To solve the "credit assignment" problem, the LLM performs trajectory-level reward shaping. By reviewing an entire sequence of events, the LLM identifies critical turning points, adjusting rewards to ensure the RL agent understands which early decisions led to eventual success or failure.

2. Act Once (Online RL Execution)

The actual interaction with the environment is handled by a lightweight RL agent (specifically using Soft Actor-Critic). Because the LLM’s reasoning is distilled into the RL policy during training, the deployed model can respond instantly without querying the LLM during runtime.

3. Co-Evolutionary Loop

ACE is a closed-loop system. The RL agent’s experiences are used to fine-tune the LLM via Low-Rank Adaptation (LoRA), transforming it into a domain-specific expert. Simultaneously, the LLM’s refined trajectories are fed back into the RL agent’s replay buffer, significantly accelerating the learning process.

Experimental Evaluation

The framework was rigorously tested on three Learning to Run a Power Network (L2RPN) challenges:

  • WCCI 2020: A medium-sized grid with 36 substations and 60,000+ actions.
  • NeurIPS 2020: A robustness test featuring an adversarial opponent that triggers random line disconnections.
  • WCCI 2022: A massive IEEE-118 bus system with over 70,000 discrete actions, representing the current frontier of grid complexity.

Key Results and Insights

Superior Performance and Robustness

ACE consistently outperformed both pure RL and LLM-only baselines. In the highly complex WCCI 2022 environment, ACE achieved a 145% improvement over the previous expert-guided RL champion. In the adversarial NeurIPS 2020 challenge, ACE maintained a survival rate of 84.8%, compared to 72.9% for standard RL.

Quality Over Quantity

A significant finding of the study is the efficiency of LLM intervention. Injecting just 287 high-quality LLM-refined trajectories allowed the RL agent to reach state-of-the-art performance. In contrast, traditional RL methods often require hundreds of thousands of random explorations to achieve comparable results.

Bypassing Latency

By restricting the LLM to an offline role, ACE meets industrial hardware requirements. In the WCCI 2020 challenge, ACE achieved a test time of 38.7s, matching traditional RL (46.1s) and proving orders of magnitude faster than pure LLM approaches (~3415s).

Conclusion and Future Work

The ACE framework demonstrates that LLMs and RL are not competing paradigms but complementary tools. By using LLMs as counterfactual reasoners to guide RL exploration, ACE overcomes the sample inefficiency of RL and the latency of LLMs.

While the current implementation faces challenges regarding the "token bottleneck"—where dense industrial data can exceed LLM context windows—future work will explore more efficient state-to-text abstractions. Additionally, the authors aim to apply the co-evolution framework to other complex domains such as traffic control and multi-robot coordination.

Summary updated

BibTeX
@inproceedings{wan2025think,
  author = {Xu Wan and Wenyue Xu and Chao Yang and Mingyang Sun},
  title = {{Think Twice, Act Once: A Co-Evolution Framework of LLM and RL for Large-Scale Decision Making}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=ySWrJer7mW},
}
Figure