Thinking vs. Doing: Improving Agent Reasoning by Scaling Test-Time Interaction

Junhong Shen, Hao Bai, Lunjun Zhang, Yifei Zhou, Amrith Setlur, Shengbang Tong, Diego Caples, Nan Jiang, Tong Zhang, Ameet Talwalkar, Aviral Kumar

TL;DR

While recent AI breakthroughs have heavily focused on scaling "thinking" (generating longer internal reasoning traces), this paper argues that for interactive agents, scaling "doing" (taking more environment steps) is even more critical. By introducing TTI (Test-Time Interaction)—a curriculum-based reinforcement learning approach that gradually increases an agent's interaction horizon—the authors achieve state-of-the-art performance for open-source web agents on benchmarks like WebVoyager and WebArena.

Introduction

The current "test-time scaling" paradigm, popularized by models like OpenAI’s o1, emphasizes generating long internal reasoning chains before producing an answer. However, in agentic tasks—such as navigating a website or managing a terminal—the environment is often partially observable.

Contrasting test-time compute scaling (thinking longer) with test-time interaction scaling (taking more steps).

Thinking harder about a single static screen cannot tell an agent what resides on the next page or whether a specific button is broken. Current agents are typically "reactive," trained to predict the single best next step based on expert demonstrations. This makes them brittle: if they hit a dead end or encounter an unseen pop-up, they lack the "budget" or the training to backtrack, explore alternatives, or gather more information. This paper addresses the critical gap between internal deliberation and external exploration.

Methodology

The researchers propose scaling the interaction horizon (the total number of steps an agent can take) as a primary axis for improving performance. They approach this through two distinct methods:

  1. Prompting-based Scaling: A simple "check-again" mechanism where, after an agent signals task completion, it is explicitly prompted to reconsider its decision. This baseline intervention alone improved success rates on WebArena from 23% to 28%.
  2. TTI (Test-Time Interaction): This is the core training framework, utilizing Curriculum-based Online Reinforcement Learning.
  3. The Challenge: Training with a fixed, long horizon from the start is notoriously difficult due to "noisy credit assignment." The agent gets lost in aimless exploration and struggles to identify which of its many actions actually led to success.
  4. The Solution: TTI starts with a short interaction limit and gradually increases it to a maximum using a multiplicative schedule. This allows the agent to master "atomic" exploitation skills (direct paths) before learning complex exploration and recovery behaviors.
  5. Algorithm: The authors employ a stable form of RL called "Filtered Behavior Cloning," where the model is fine-tuned only on successful trajectories generated during its own on-policy rollouts.

Datasets

The study focuses on the domain of web agents, evaluating on:

  • WebArena: A self-hosted environment with 812 tasks across domains like GitLab, Reddit, and Shopping.
  • WebVoyager: 427 tasks across 13 real-world websites (e.g., Amazon, Apple, Cambridge Dictionary).
  • Synthetic Training Data: To avoid benchmark contamination, the team built an automated pipeline to generate over 128K synthetic tasks across ~20 domains, allowing the agent to learn from a massive variety of web interactions.

Key Insights and Ideas

  • Interaction > Reasoning: For a fixed "compute budget" (total tokens generated), taking more steps in the environment is significantly more effective than generating longer reasoning traces for a single step. Interaction provides tangible information gain that internal reasoning simply cannot replicate.
Interaction scaling yields higher task success rates than per-step compute scaling for a given token budget.
  • The "Re-check" Dividend: Simply asking an agent to "pause and think again" after it believes it is done causes it to change its action roughly 25% of the time, often leading to a correct answer it initially missed.
  • Curriculum is Mandatory: Agents trained with a fixed long horizon (e.g., 30 steps) actually performed worse than those with a short horizon because they drifted into aimless exploration. The curriculum is the key ingredient that enables the agent to adaptively balance exploration and exploitation.
  • Adaptive Backtracking: As training progressed through the curriculum, agents naturally learned to use "GoBack" and "Search" actions more frequently in complex tasks while remaining highly efficient in simpler ones.

Key Results

Using a Gemma 3 12B model, the TTI framework achieved impressive gains:

  • State-of-the-Art: TTI produced the best-performing open-source, open-data web agents to date.
  • WebVoyager: Achieved a 64.8% success rate, outperforming the non-fine-tuned base model by 9%.
  • WebArena: Achieved a 26.1% success rate, an 8% improvement over the zero-shot baseline.
  • Efficiency: TTI outperformed fixed-horizon training while using 40% fewer training steps, proving the efficiency of the curriculum approach.

Limitations and Future Work

  • Computational Cost: Scaling interaction steps inherently increases inference time and cost, as each step requires a new environment observation and model call.
  • Domain Scope: The current work is limited to web navigation. Extending this methodology to robotics or open-world games is a necessary next step.
  • Self-Verification Issues: Despite the improvements, agents still occasionally suffer from "limited self-verification"—sometimes acknowledging a mismatch in data but submitting the incorrect answer anyway.
  • RL Complexity: The authors utilized simple behavior cloning; they suggest that integrating more advanced RL methods like PPO or GRPO could further amplify these scaling results.

Summary updated

BibTeX
@inproceedings{shen2025thinking,
  author = {Junhong Shen and Hao Bai and Lunjun Zhang and Yifei Zhou and Amrith Setlur and Shengbang Tong and Diego Caples and Nan Jiang and Tong Zhang and Ameet Talwalkar and Aviral Kumar},
  title = {{Thinking vs. Doing: Improving Agent Reasoning by Scaling Test-Time Interaction}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=un1TRwNgiv},
}
Figure