Manuscript Offprint

arXiv:2609.10315

TRACE: Training Reasoning Agents for Causal Exploration with Synthesized Rewards

Rui Sun, Zhan Shi, Bing He

Abstract

Reinforcement learning with verifiable rewards (RLVR) has advanced language-model reasoning in domains such as mathematics and code, where objective answers are inexpensive to check. Diagnostic reasoning over complex data lacks this advantage: establishing the true cause of an anomaly often requires costly expert investigation and may remain ambiguous after the fact. We ask whether this asymmetry of verification can instead be engineered. We sample an intervention, inject it into a controlled simulator, and generate the observations it would produce. The hidden intervention provides an oracle label and objective reward, while the agent must still investigate noisy, confounded, and distributed evidence.

We instantiate this approach in TRACE, a digital-advertising diagnostic environment with 12 root causes and fine-grained segment attribution. Agents investigate each episode using Python and SQL and must identify both the root cause and, when applicable, the affected segment assignment. On a held-out 235-episode test set, the strongest prompted baseline, Claude Opus 5, reaches 0.686 FullAttr@1. Supervised fine-tuning raises Qwen3.5-35B-A3B from 0.159 to 0.637, and subsequent RL with synthesized rewards reaches 0.757, outperforming all evaluated prompted baselines, including frontier closed-source models and a prompted Qwen3.5-122B-A10B model. The resulting policy also uses substantially fewer tool calls than the prompted 35B base. These results provide evidence that access to a scalable, objective training signal can be a more important constraint than model scale alone. More broadly, simulation-based verification can make otherwise ambiguous diagnostic reasoning tasks amenable to scalable reinforcement learning.

1 Introduction

Reinforcement learning with verifiable rewards (RLVR) has driven recent progress in LLM reasoning. Work on mathematical reasoning [Guo et al., 2025, Shao et al., 2024] and coding agents [Wei et al., 2026, Luo et al., 2025b] shows that policies optimized against objective verifiers can acquire multi-step reasoning and tool-use capabilities. These domains provide a natural asymmetry of verification: checking a solution against a known answer or test suite is considerably easier than producing the solution itself [Wei, 2025]. RLVR turns this asymmetry into a scalable training signal.

Many practical reasoning tasks lack such verifiers. Diagnostic reasoning over complex data is a representative example: determining why a system changed can require expensive expert investigation, and the resulting attribution may remain uncertain even after the fact. Multiple changes can occur concurrently, observations are noisy, and plausible causes may produce similar signatures. LLM-as-judge approaches [Zheng et al., 2023, Bai et al., 2022, Lee et al., 2024] do not eliminate this bottleneck because the target itself remains ambiguous, while learned judges can introduce additional opportunities for reward hacking [Gao et al., 2023, Skalse et al., 2022]. The central obstacle to applying RLVR in these settings is therefore access to scalable, objective ground truth.

Preprint. Under review.

In this paper, we ask whether the asymmetry of verification can be engineered. Rather than observing data and attempting to determine an unknown cause, we first sample an intervention, inject it into a controlled simulator, and generate the observations that the intervention would produce. The hidden intervention is retained as an oracle label, making the agent's final attribution inexpensive and deterministic to verify. The agent does not observe this label: it must still investigate noisy, confounded, and distributed evidence to recover the cause. Simulation therefore separates the difficulty of solving a diagnostic task from the difficulty of verifying its answer.

We instantiate this approach in TRACE (Training Reasoning Agents for Causal Exploration), a simulated diagnostic environment for digital advertising. Each TRACE instance presents an agent with a campaign-performance anomaly and a multi-table database. The agent investigates through Python and SQL, iterating between hypotheses and evidence, and ultimately attributes the anomaly to one of the predefined cause types while ruling out realistic confounders. TRACE builds a simulator-oracle-RL pipeline: the simulator injects a hidden intervention, the oracle verifies that the agent-visible data contains sufficient evidence to recover it, and RL uses the resulting hidden label as a synthesized reward. We refer to this setting as RL with synthesized rewards, where hidden intervention labels are converted into objective reward signals.

We evaluate on a held-out 235-episode test set enriched for segment-specific attribution. The strongest prompted baseline, Claude Opus 5, reaches 0.686 FullAttr@1. On Qwen3.5-35B-A3B, SFT raises FullAttr@1 from 0.159 to 0.637, and subsequent RL with synthesized rewards improves it to 0.757, surpassing every evaluated prompted baseline. The post-trained 35B model also substantially outperforms the prompted Qwen3.5-122B-A10B model, which reaches 0.283. This result provides evidence that, for this diagnostic setting, the binding constraint is access to an effective post-training signal—including a scalable, objective reward—rather than model scale alone. The best trained policy also averages 11.73 tool calls per trajectory, compared with 22.05 for the prompted 35B base.

Our contributions are threefold. First, we introduce a simulator-oracle-RL methodology for synthesizing objective reward in domains where natural verifiers are scarce. The key idea is to generate tasks from controlled interventions, so that the same process that creates a difficult reasoning problem also provides an objective answer. Second, we instantiate this methodology in TRACE, a tool-using diagnostic environment with configurable causes, realistic confounders, and multi-table evidence. TRACE supports held-out evaluation and post-training without human attribution labels or an LLM judge. Third, we show that SFT followed by RL with TRACE's synthesized rewards substantially improves an open-weight 35B reasoning agent, enabling it to outperform frontier closed-source models on diagnostic attribution tasks. We also conduct ablation experiments to study the roles of supervised initialization and RL reward design in producing these gains. Together, these results show how simulation-based verification can make otherwise ambiguous diagnostic reasoning tasks amenable to scalable reinforcement learning.

References (36)

  • Constitutional AI: Harmlessness from AI Feedback
  • A diagnostic evaluation benchmark towards text-to-sql robustness (opens arXiv in a new tab)
  • Towards medical complex reasoning with llms through medical verifiable problems
  • Scaling laws for reward model overoptimization
  • Nature, 645(8081):633–638, 2025
  • Magentbench: Evaluating language agents on machine learning experimentation
  • Assessing causal reasoning in language models
  • Causal reasoning and large language models: Opening a new frontier for causality
  • Process-verified reinforcement learning for theorem proving via lean (opens arXiv in a new tab)
  • Scaling reinforcement learning from human feedback with ai feedback
  • Advances in Neural Information Processing Systems, 36:42330–42357, 2023
  • Understanding R1-Zero-Like Training: A Critical Perspective
  • Empowering mathematical reasoning for large language models via reinforced evol-instruct
  • DeepSWE: Training a fully open-sourced, state-of-the-art coding agent by scaling RL. Together AI / Agentica technical blog, 2025b
  • DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models
  • Defining and characterizing reward gaming
  • Scienceworld: Is your agent smarter than a 5th grader? In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, pages 11279–11298, 2022
  • Self-instruct: Aligning language models with self-generated instructions
  • Swe-rl: Advancing llm reasoning via reinforcement learning on open software evolution
  • Metamath: Bootstrap your own mathematical questions for large language models
  • An open-source llm reinforcement learning system at scale
  • A large-scale human-labeled dataset for complex and cross-domain semantic parsing and text-to-sql task
  • Datascibench: An llm agent benchmark for data science
  • Group Sequence Policy Optimization
  • Advances in neural information processing systems, 36:46595–46623, 2023
  • Seq2sql: Generating structured queries from natural language using reinforcement learning (opens arXiv in a new tab)
  • A realistic web environment for building autonomous agents
  • Campaign identifiers and category, together with the fraction of advertised products that are in stock.</td></tr></table>
  • For campaign-wide, segment-mix, and no-signal episodes, driver_segments is omitted or null
  • It first checks that the expected signature is present at the appropriate level: campaign metrics for campaign-wide causes, impression-share changes for segment-mix causes, and changes within the injected segment for segment-specific causes
  • RL uses an asynchronous pipeline in which rollout generation for the next step overlaps policy optimization, with updated weights synchronized from Megatron-LM to SGLang after each optimizer step
  • We use a learning rate of $10^{-5}$ with cosine decay and apply the language-model loss only to assistant turns under the Qwen3.5 chat template
  • The Python state persists across calls within an episode
  • At $k=1$, the estimator is the mean single-trajectory success probability over the test tasks
  • a non-empty root cause and any predicted segment assignment
  • Table 7 reports a paired re-scoring of the same saved trajectories under both parsers