Learning from Environmental Feedback: Credit Assignment across Multiple Timescales for Agentic Reinforcement Learning

Yifu Huo, Shunjie Xing, Chenglong Wang, Peinan Feng, Qiaozhi He, Yan Ding, Anxiang Ma, Yuxin Gao, Tongran Liu, Tong Xiao, Jingbo ZhuarXiv 2026

TL;DR

Training Large Language Model (LLM) agents via reinforcement learning often struggles with sparse, delayed rewards over long horizons. This paper introduces Environmental Feedback-based Credit Assignment (EFCA), a lightweight, plug-and-play method that refines step-level rewards by leveraging immediate environmental text feedback and recent interaction history. By operating across multiple timescales, EFCA significantly boosts task success and alignment quality without requiring an expensive, separately trained critic network.

What Problem Does This Paper Address?

When optimizing LLMs as interactive agents using reinforcement learning (RL), a major bottleneck is credit assignment. In long-horizon tasks, an agent executes a long sequence of heterogeneous actions, but typically only receives a single, sparse reward at the very end (success or failure). Simply propagating this final reward backward uniformly to all intermediate steps causes two major failure modes: it mistakenly reinforces redundant or useless actions in successful runs, and it incorrectly suppresses locally useful actions in failed runs.

While traditional RL uses parameterized value models (critics) to provide denser step-level guidance, these critics are expensive to train from scratch for every new environment and can suffer from modeling errors. Meanwhile, existing methods completely ignore a rich, free source of information: the immediate textual feedback naturally provided by the environment during interaction (e.g., "Nothing happens" or "You opened the cabinet"). This paper addresses how to directly exploit this environment-grounded process feedback to build highly accurate, multi-timescale credit signals.

Methods

EFCA introduces a temporally structured approach to credit assignment by combining three distinct timescales: long-term outcome rewards, short-term immediate feedback, and medium-term historical efficiency. It acts as a plug-and-play module on top of existing stepwise policy optimization algorithms (like GiGPO or HGPO).

Figure 1: Overview of EFCA. EFCA complements the long-term outcome signal with a short- term feedback credit from immediate environment responses and a medium-term state-history credit from recent action- feedback history. The combined credit score reweights the original step-level return, strengthening supervision for locally effective actions and suppressing repeated ineffective behaviors.

The core mechanism constructs a customized step-level credit score ($C_t$) at each step $t$:

$$C_t = \alpha \cdot c_t^{fb} + \beta \cdot c_t^{hist}$$

  1. Short-Term Feedback Credit ($c_t^{fb}$): This evaluates the immediate execution quality of an action. Textual feedback from the environment is normalized and matched against predefined positive ($P$) and negative ($N$) pattern sets. For instance, phrases like "nothing happens" or "invalid action" yield a score of $-1$, while "you pick up" or "you open" yield $+1$.
  2. Medium-Term State-History Credit ($c_t^{hist}$): This looks across a recent sliding window of size $K$ to detect short-horizon stagnation or behavioral loops. If the agent receives consecutive negative feedback or fails to make any positive progress over the window, it receives a stagnation penalty ($-1$ or $-\eta$).

Finally, this combined credit score is transformed into a step-dependent weight ($w_t$) used to reweight the original base return ($R_t^{base}$):

$$\tilde{R}_t = w_t \cdot R_t^{base}$$

This dynamically scales up rewards for locally effective actions and suppresses rewards for steps associated with invalid or repetitive behaviors.

Datasets

The authors evaluated EFCA across two prominent long-horizon agentic benchmarks:

  • ALFWorld: An embodied environment requiring agents to achieve household goals (e.g., Pick & Place, Examine in Light) through multi-turn text interactions across 3,827 task instances.
  • WebShop: A web-based interactive shopping environment containing over 1.1 million products and 12,000 user instructions, where agents must navigate an HTML-based site to purchase items matching specific attributes.

Key Insights and Ideas

  • Free, Grounded Supervision: Environmental text feedback is an underutilized, zero-cost source of truth. Unlike learned reward models, it requires no external annotations and is inherently aligned with the true environment dynamics.
  • Differentiating via Variance: By applying differentiated weights based on process evidence, EFCA increases the standard deviation of step-level returns during training. This indicates that the model successfully distinguishes critical bottleneck actions from transitional or superfluous ones.
  • Efficiency Gains from Loop Suppression: Surprisingly, EFCA actually reduces overall training wall-clock time (by ~6.36% compared to HGPO). By penalizing stagnation early on, it prevents the LLM agent from getting trapped in long, unproductive behavioral loops during rollout generation.
Figure 3: Mean reweighting ratio over training steps. The shaded area shows the raw-value band, while the solid line shows the smoothed trend. The dashed line indicates the no-reweighting baseline where the ratio equals 1.0.

Key Results

EFCA was evaluated using Qwen2.5-1.5B-Instruct and Qwen2.5-7B-Instruct backbones, outperforming strong stepwise baselines:

  • ALFWorld: EFCA achieved the highest overall success scores under both model scales. With the 1.5B model, it reached an overall score of 95.31 (outperforming HGPO by +3.32 and GiGPO by +4.43). With the 7B model, it reached 96.03 (outperforming HGPO by +4.04).
  • WebShop: EFCA achieved the top Task Score across both backbones (89.81 for 1.5B and 89.06 for 7B). This indicates that the agent didn't just complete a purchase action, but bought items that much more accurately matched the user's detailed semantic requirements (attributes, price, options).
  • Ablation Studies: Removing the medium-term history signal caused the ALFWorld score to drop from 95.31 to 90.95, while removing the short-term signal dropped it to 91.40, proving that multi-timescale coordination is vital.

Limitations and Future Work

The authors note a few limitations and areas for future exploration:

  • Pattern Matching Dependency: The current implementation relies on surface-level keyword and pattern matching to categorize feedback. Moving toward semantic feedback understanding via small, specialized language models would make the system more robust across diverse environments.
  • Complex Temporal Structures: While EFCA handles short and medium-term loops, real-world tasks involve more intricate structures like subgoals, reversible recovery actions, and globally necessary but locally unproductive exploration steps.
  • Exploration Coupling: EFCA can only assign credit to trajectories the agent actually collects. It does not guarantee that the agent will discover states with informative feedback, highlighting a need to couple EFCA with advanced exploration strategies.

Summary updated

BibTeX
@misc{huo2026learning,
  author = {Yifu Huo and Shunjie Xing and Chenglong Wang and Peinan Feng and Qiaozhi He and Yan Ding and Anxiang Ma and Yuxin Gao and Tongran Liu and Tong Xiao and Jingbo Zhu},
  title = {{Learning from Environmental Feedback: Credit Assignment across Multiple Timescales for Agentic Reinforcement Learning}},
  year = {2026},
  eprint = {2608.08255},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.08255},
}
Figure