Dual-Axis Policy Optimization for LLM Agents: Bayesian Feedback Attribution and Trajectory Mass Normalization

Yingxuan Zhuang, Binhe Yu, Jingxiao Yang, Ruopei Sun, Ziting Li, Cheng Tan, Xuhong Zhang, Jianwei Yin, Jintao ChenarXiv 2026

TL;DR

Standard reinforcement learning for LLM agents suffers from a severe "length bias," where long, unsuccessful trajectories dominate the training signal. This paper introduces BATON, a dual-axis optimization framework that uses Bayesian Feedback Attribution to better allocate credit within a trajectory and Trajectory Mass Normalization to ensure all trajectories contribute equally to learning. BATON consistently boosts the performance of base RL algorithms like GRPO and GiGPO across multiple benchmarks while significantly reducing agent verbosity and execution costs.

What Problem Does This Paper Address?

When training Large Language Model (LLM) agents to perform multi-turn tasks (like navigating websites or solving embodied text games), researchers frequently turn to reinforcement learning (RL). Popular group-based RL methods, such as GRPO, optimize policies by averaging losses across all valid tokens in a batch.

However, the authors identify a critical flaw in this standard approach: flat token-level aggregation creates a massive length bias. In multi-turn environments, failed trajectories are often significantly longer than successful ones because the agent gets stuck in loops, misreads state changes, or repeatedly tries ineffective actions.

Figure 1: Motivation of BATON. Flat token-level aggregation gives longer trajectories disproportionate optimization mass, motivating separate treatment of feedback attribu- tion and trajectory aggregation.

Because token-proportional averaging gives longer sequences more scalar mass, the gradient pool becomes heavily dominated by prolonged failures. For example, in standard training data, the longest 25% of trajectories account for over 60% of the aggregation mass in ALFWorld. This means the model inadvertently spends most of its budget learning disproportionately from its worst, most drawn-out mistakes.

Methods

To solve this, the authors propose BATON (Bayesian Attribution and Trajectory Objective Normalization), which decouples policy optimization into two distinct axes:

  1. Intra-Trajectory Feedback Attribution (Bayesian Feedback Attribution - BFA): Instead of treating every step inside a trajectory equally, BFA evaluates how strongly a specific action is associated with the environment's subsequent feedback. It samples a counterfactual alternative action and computes a "Bayesian evidence ratio" based on how compatible the observed feedback is with the executed action versus the alternative. This creates a localized weight that reallocates learning mass to the most critical decision points within a single trajectory.
  2. Inter-Trajectory Objective Aggregation (Trajectory Mass Normalization - TMN): TMN eliminates the global length bias by assigning an equal optimization mass ($1/B$, where $B$ is the batch size) to every complete trajectory. This ensures that a short, clean success carries the exact same weight as a long, winding failure.
Overview of the BATON framework showing Intra-Trajectory and Inter-Trajectory optimization axes.

Importantly, BATON acts as a plug-and-play wrapper. It modifies only the weighting of the objective function, leaving the host learner’s rewards, advantage estimators, and rollout procedures completely unchanged.

Datasets

The authors evaluated BATON across three diverse multi-turn interaction benchmarks using Qwen2.5-Instruct models (scaled from 1.5B to 7B parameters):

  • ALFWorld: An embodied environment where agents must accomplish household tasks (e.g., "examine a heated apple") via text commands.
  • WebShop: A web-interaction environment where agents browse an e-commerce site to find and purchase items matching specific user constraints.
  • Search-Augmented QA: A suite of seven question-answering datasets requiring multi-step retrieval and reasoning, split into single-hop (NQ, TriviaQA, PopQA) and multi-hop tasks (HotpotQA, 2WikiMultihopQA, MuSiQue, Bamboogle).

Key Insights and Ideas

  • The Efficiency Penalty of Flat Aggregation: Standard RL objectives accidentally penalize efficiency. An agent that solves a task concisely generates fewer tokens, meaning its successful strategy contributes less to the gradient update than an agent that blunders around for 50 steps before failing.
  • Counterfactuals for Credit Assignment: BFA mathematically formalizes the concept of "distinguishability." If the environment's response would have been identical whether the agent chose Action A or Action B, BFA recognizes that this step lacks strong feedback coupling and downweights its importance.
  • Shorter Trajectories as a Byproduct: By fixing the aggregation mass across trajectories, the model learns to value concise paths to success. This fundamentally alters the agent's behavioral footprint, making it less verbose and more decisive.

Key Results

BATON achieved substantial, independent gains across all tasks, model scales, and base RL algorithms (GRPO and GiGPO).

Main results on ALFWorld and WebShop benchmarks.
  • Performance Boosts: For Qwen2.5-1.5B on ALFWorld, BATON improved GRPO's success rate from 72.9% to 85.6%, and GiGPO's from 86.8% to 94.1%. On WebShop, success rates jumped from 57.1% to 68.2% (GRPO) and 67.1% to 76.4% (GiGPO).
  • Reduced Execution Cost: Agents trained with BATON became significantly more efficient. For GiGPO on ALFWorld, BATON reduced the average number of actions per trajectory from 13.51 to 10.82, and slashed the average number of generated output tokens from 1,431 down to 746—nearly a 50% reduction in generation overhead.

Limitations and Future Work

  • Computational Overhead: Evaluating the likelihood of feedback for counterfactual actions in BFA requires additional forward passes. This introduces a wall-clock training overhead of approximately 10% to 17% depending on the host learner.
  • Pairwise Counterfactual Limitation: The current BFA mechanism only samples a single counterfactual action for comparison. In highly complex action spaces, comparing against a larger pool of alternative actions might yield more accurate attribution, though it would increase compute costs.
  • Stochastic Environments: The paper primarily focuses on environments where feedback can be reasonably modeled by the agent. In highly stochastic environments, computing reliable feedback likelihoods could prove more challenging.

Summary updated

BibTeX
@misc{zhuang2026dual,
  author = {Yingxuan Zhuang and Binhe Yu and Jingxiao Yang and Ruopei Sun and Ziting Li and Cheng Tan and Xuhong Zhang and Jianwei Yin and Jintao Chen},
  title = {{Dual-Axis Policy Optimization for LLM Agents: Bayesian Feedback Attribution and Trajectory Mass Normalization}},
  year = {2026},
  eprint = {2609.19830},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.19830},
}
Figure