TrustFlow: Adaptive Trust Calibration for Language Model Guided Reinforcement Learning

Hao Chen, Zhiwei Xu, Hu Fu, Yuelin Ma, Hangyu Mao, Yiqun Chen, Guoliang Fan, Bin ZhangNeurIPS 2026

TL;DR

Using Large Language Models (LLMs) to guide Reinforcement Learning (RL) agents is like putting a toddler in a baby walker: it prevents early stumbles, but if you never take it away, they’ll never learn to run on their own. TrustFlow solves this by treating LLM-RL integration as a dynamic "trust calibration" problem, gradually weaning the RL agent off expensive LLM advice as its own competence grows. The result is faster learning during training and a lightweight, completely LLM-free agent at test time.

What Problem Does This Paper Address?

Reinforcement learning is notoriously sample-inefficient—agents waste millions of steps randomly bumping into walls before figuring out sparse-reward environments. Recently, researchers started using LLMs as knowledgeable coaches, leveraging their pre-trained common sense to prune bad actions or shape rewards.

However, most existing methods treat LLM guidance as static. Whether the RL agent is on Episode 1 or Episode 1,000, the LLM’s influence remains fixed. This creates two headaches:

  1. Imperfect priors become ceilings: LLMs hallucinate and lack grounded environmental experience. Rigidly following an LLM prevents the RL agent from surpassing its teacher.
  2. Inference-time crutches: Many frameworks still require querying the LLM during deployment, introducing massive latency (hundreds of milliseconds per step) that makes real-time execution impractical.
Figure 1: While LLM guidance aids early exploration, static integration becomes subop- timal as the agent improves. We dynamically calibrate LLM influence to enable LLM-free policy execution.

The authors ask: How can an RL agent dynamically regulate how much it trusts an LLM based on its own evolving skill, eventually graduating to complete independence?

Methods

Instead of hard-pruning actions or forcing strict imitation, TrustFlow weaves a dynamic trust coefficient, $\alpha \in [0, 1]$, through four stages of the standard RL pipeline:

Figure 2: The overall framework of TrustFlow. (1) Preference Representation: bridging sparse LLM rankings and policy representations via probabilistic modeling; (2) Trust Calibration: dynamically balancing LLM guidance and RL exploration; (3) Value Alignment: enforcing consistency between Q-value ordering and preference rankings; (4) Trust-Modulated Optimization: grounding Bellman updates within trusted preference constraints via residual modulation.
  1. Probabilistic Preference Representation: Rather than asking the LLM for noisy scalar scores or a single "best" action, TrustFlow queries the LLM multiple times for top-$K$ action rankings, aggregates them (similar to a Borda count), and converts this ordinal ranking into a smooth probability distribution using a standard Boltzmann (softmax) formulation.
  2. Adaptive Trust Calibration (The Core Novelty): The policy mixes the RL distribution and LLM prior via $\alpha$. To set $\alpha$ without manual schedules, the authors borrow the Kalai–Smorodinsky bargaining solution from game theory. It frames trust as a negotiation between two utilities: alignment with the LLM's baseline preferences and empirical task return. Early on, $\alpha$ stays near $0$ (trust the LLM). Once the RL agent's alignment passes a relaxed threshold, $\alpha$ scales up proportionally with episodic return toward $1$ (trust RL).
  3. Preference-Aware Value Alignment: Mixing policies at the action level doesn't guarantee the RL agent's internal Q-network actually learns the LLM's intuition. TrustFlow adds a pairwise margin ranking loss—weighted by $(1 - \alpha)$—to encourage Q-values to respect the LLM's action ordering early in training.
  4. Trust-Modulated Optimization: Standard Bellman updates can be chaotic under sparse rewards. TrustFlow projects target Q-values onto the nearest vector that respects the LLM's ordering (via isotonic regression) and scales the temporal-difference (TD) gradient residual based on agreement. When RL rewards and LLM intuition agree, learning steps are amplified; when they clash, updates are dampened until $\alpha$ grows large enough for environmental reality to override the LLM.

Datasets

Rather than static datasets, the paper evaluates across three existing text-based interactive environments (modeled as POMDPs), plus offline transition datasets derived from them:

  • Overcooked (Text-based): Cooking coordination tasks (Tomato and multi-ingredient Salad) with dense rewards and up to 8 macro-actions.
  • ALFWorld: Household tasks (Pick and Examine) featuring diverse instructions and large action spaces (up to 50 actions per step).
  • VirtualHome: Household simulation (Entertainment scenario) with up to 17 actions and sparse rewards.
  • Offline RL Datasets: 1k- and 2k-transition datasets collected on the Overcooked Salad task. No new benchmarks are introduced.

Key Insights and Ideas

  • Schedules shouldn't be hardcoded: In ablations, both a constant $\alpha = 0.5$ and a linear $0 \to 1$ schedule underperformed TrustFlow. Tying trust directly to actual performance gains prevents premature independence on hard tasks and avoids lingering dependence on easy ones.
  • Two-stage knowledge internalization: Tracking the Top-1 action agreement between the RL agent and the LLM reveals a fascinating curve: agreement spikes early in training and deliberately drops later on while task rewards keep climbing. The agent absorbs the LLM's broad intuition first, then outgrows its mistakes using ground-truth rewards.
  • Graceful degradation under hallucination: When researchers injected 10% and 20% random noise into the LLM's rankings, the baseline DQN-PRIOR collapsed (dropping 38% and 63% in performance). TrustFlow barely flinched, because its residual scaling dampens conflicting updates and relies on environmental rewards to break ties.

Key Results

TrustFlow was tested across value-based (DQN), policy-based (GFLAN with T5-small), and offline RL (CQL) setups, primarily using Qwen2.5-7B as the teacher.

Figure 3: Comparison with value-based baselines. Shaded regions show the 75% confidence interval (CI) across 4 random seeds.
  • Superior Sample Efficiency & Standalone Policies: Across ALFWorld, VirtualHome, and Overcooked, TrustFlow converges faster and higher than baselines. Crucially, standalone TrustFlow (RL-only) consistently beats DQN-PRIOR (RL-only) and frequently rivals LLM-assisted baselines.
  • Massive Speedup at Inference: On test-time benchmarks, TrustFlow (Mixed) scores 1.038 vs. DQN-Prior’s 0.505 (a 105% jump) at ~0.40s latency per step. Dropping the LLM entirely at test time (TrustFlow RL-only) slashes latency ~40x down to 0.0099s while still achieving a 0.848 score—a 67% improvement over the LLM-assisted baseline!
  • Offline RL Dominance: On the 2k-transition Salad dataset (standalone evaluation), TrustFlow with Qwen2.5-7B hits 1.337, dwarfing CQL-PRIOR (0.048), Behavior Cloning (0.542), and standard CQL (0.176), remaining robust across 7B–14B Qwen backbones.

Limitations and Future Work

  • Training-time query overhead: Querying the LLM $N$ times per state during training to build consensus rankings adds substantial computational overhead, and performance drops if too few rankings are sampled.
  • Discrete, text-based scope: The ranking formulation and isotonic projection assume finite, discrete action spaces. Extending this to continuous control (like robotics joint torques) or open-ended text generation remains unexplored.
  • Future directions: The authors plan to cut training costs by learning from sparser, partial preference signals rather than repeated action rankings.

Summary updated

Abstract

Reinforcement learning (RL) often suffers from low sample efficiency and inefficient exploration in complex environments. Recent work leverages large language models (LLMs) as sources of prior knowledge for sequential decision-making. However, existing LLM-guided RL approaches typically rely on static or loosely coupled integration, failing to account for the evolving competence of the agent during training. As a result, LLM guidance may become redundant or even detrimental, leading to suboptimal learning dynamics, unnecessary dependence at inference time, and increased latency due to frequent LLM interaction. In this work, we propose TrustFlow, a unified framework that formulates LLM–RL integration as adaptive trust calibration. The key idea is to dynamically regulate the influence of LLM guidance based on learning progress, enabling a gradual transition from prior-driven exploration to LLM-free decision-making. Concretely, a preference representation is first constructed to connect sparse LLM rankings with policy representations. Trust calibration then balances LLM guidance with RL exploration. Building on this trust signal, value alignment is enforced, and a trust-modulated optimization scheme is introduced, incorporating preference structure into the learning process. Empirical results show that TrustFlow consistently improves sample efficiency and enables a smooth transition to fully LLM-free policies, eliminating the need for LLM access at inference time across diverse environments.
BibTeX
@inproceedings{chen2026trustflow,
  author = {Hao Chen and Zhiwei Xu and Hu Fu and Yuelin Ma and Hangyu Mao and Yiqun Chen and Guoliang Fan and Bin Zhang},
  title = {{TrustFlow: Adaptive Trust Calibration for Language Model Guided Reinforcement Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=mDpGbO5PSA},
}
Figure