NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Towards Efficient Online Tuning of VLM Agents via Counterfactual Soft Reinforcement Learning

Lang Feng, Weihao Tan, Zhiyi Lyu, Longtao Zheng, Haiyang Xu, Ming Yan, Fei Huang, Bo An

Abstract

Adapting Vision-Language Models (VLMs) to agentic tasks via online Reinforcement Learning (RL) is often hindered by the vast exploration space of natural language. Most generated tokens are semantically redundant and do not influence the final executable action, leading to inefficient exploration. This paper introduces Counterfactual Soft Reinforcement Learning (CoSo), a framework that utilizes a lightweight Structural Causal Model (SCM) to identify action-critical tokens. By scaling the entropy bonus in Soft RL according to the causal weight of each token, CoSo focuses exploration on the segments of the output that directly impact task performance. Experimental results across mobile control (AitW), mathematical reasoning (Gym Cards), and embodied AI (ALFWorld) demonstrate success rate improvements of up to 16.7% with negligible computational overhead.

1. Introduction

Large Vision-Language Models (VLMs) are increasingly deployed as autonomous agents capable of navigating complex user interfaces and physical environments. While these models possess strong zero-shot capabilities, they often require fine-tuning to master specific domains. Online Reinforcement Learning (RL) is a natural candidate for this adaptation; however, it faces a unique challenge in the context of VLMs: the "Parser Gap."

VLM agents typically generate a sequence of reasoning (e.g., "I will click the search bar to find a kettle") followed by a structured command that a parser converts into an API call. In standard RL, every token in this sequence is treated as equally important for exploration. This leads to an exponential explosion of the search space, where the agent wastes resources exploring variations of "fluff" text that have no bearing on the final action.

2. The CoSo Framework

To address the exploration efficiency problem, we propose CoSo, which prioritizes exploration on tokens that are causally linked to the agent's actions.

2.1 Structural Causal Modeling (SCM)

CoSo employs a lightweight surrogate model (a 0.01B parameter BERT-based architecture) to act as a Structural Causal Model. This SCM is trained to predict the final parsed action based on the VLM's textual output. Because the SCM is so small, it adds less than 0.2% to the total parameter count and minimal GPU memory overhead.

2.2 Counterfactual Reasoning and Causal Weights

The framework identifies critical tokens by performing a counterfactual "what-if" analysis. For each token $y_i$ in a generated sequence, CoSo calculates a Causal Weight ($B_{y o a}$) by measuring how much the probability of the resulting action $a$ changes if that specific token is nullified or altered. If the action remains the same regardless of the token, the token is deemed non-critical.

2.3 Causal-Weighted Entropy

In standard Soft Reinforcement Learning, an entropy bonus is used to encourage exploration by rewarding uncertainty. CoSo modifies this objective by scaling the entropy bonus by the Causal Weight.

  • High Causal Weight: The model is incentivized to explore different possibilities for this token (e.g., specific coordinates or commands).
  • Low Causal Weight: The entropy bonus is suppressed, preventing the model from wasting time on semantically redundant variations of the reasoning text.

3. Experimental Evaluation

We evaluated CoSo against state-of-the-art baselines, including DigiRL and RL4VLM, across three distinct environments:

  1. Android-in-the-Wild (AitW): A benchmark for mobile UI navigation. CoSo achieved a 72.9% success rate, representing a 12.3% improvement over previous methods.
  2. Gym Cards: A suite of tasks requiring numerical reasoning and logic (e.g., Blackjack, Points24). CoSo showed a 9.3% gain in success rates.
  3. ALFWorld: An embodied AI environment for household tasks. CoSo delivered its most significant performance jump here, with a 16.7% improvement.

4. Key Insights

4.1 The 10% Rule

Our analysis reveals that in typical VLM agent outputs, less than 10% of tokens are action-critical. Conversely, over 80% of tokens have nearly zero impact on the final executable command. By focusing on this critical 10%, CoSo effectively narrows the exploration search space by several orders of magnitude.

4.2 Robust Error Recovery

CoSo demonstrates superior error recovery compared to naive RL agents. When an agent makes a mistake (e.g., an incorrect click), CoSo identifies that tokens related to navigation commands (like "Home" or "Back") are causally important for correcting the state. While standard agents often fall into repetitive loops of redundant text, CoSo-tuned agents prioritize the tokens necessary to reset and try a new strategy.

5. Conclusion and Future Work

CoSo provides a computationally efficient method for fine-tuning VLM agents by bridging the gap between natural language reasoning and discrete action execution. By focusing exploration on action-critical tokens, it achieves superior performance across diverse tasks.

Future research will explore the application of CoSo to "ultra-long" Chain-of-Thought (CoT) reasoning sequences, where the ratio of redundant to critical tokens may be even higher. Additionally, we aim to investigate hierarchical implementations of CoSo to manage sub-goal exploration in long-horizon tasks.

Summary updated

BibTeX
@inproceedings{feng2025towards,
  author = {Lang Feng and Weihao Tan and Zhiyi Lyu and Longtao Zheng and Haiyang Xu and Ming Yan and Fei Huang and Bo An},
  title = {{Towards Efficient Online Tuning of VLM Agents via Counterfactual Soft Reinforcement Learning}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=H76PMm7hf2},
}
Figure