Characterizing, Evaluating, and Optimizing Complex Reasoning
Haoran Zhang (Shanghai Jiao Tong University, Shanghai AI Lab), Yafu Li, Zhi Wang, Zhilin Wang, Shunkai Zhang, Xiaoye Qu, Yu Cheng
Overview
As large reasoning models scale, the quality of their intermediate thinking traces increasingly dictates their final performance. To solve complex mathematical and scientific problems, modern models generate extended reasoning traces characterized by human-like exploration, reflection, and revision before outputting a final answer. However, these traces are typically generated automatically without rigorous quality control, frequently containing redundancies, logical inconsistencies, or outright errors. Poor reasoning traces drive up inference costs, distort analytical conclusions, and make automated evaluation unreliable.

Key moments
- 0:00 Introduction and motivation for complex reasoning quality
- 2:00 Overview of the three-part framework
- 3:40 Characterizing reasoning quality using the ME-squared principle
- 4:00 Representing reasoning traces as Directed Acyclic Graphs
- 6:00 Building the TRM preference dataset and training
- 7:00 Optimizing reasoning via test-time scaling and selection
- 8:00 Incorporating thinking reward into reinforcement learning
- 10:00 Conclusion and audience Q&A session
Characterizing, Evaluating, and Optimizing Complex Reasoning
Speakers: Haoran Zhang (Shanghai Jiao Tong University, Shanghai AI Lab); Yafu Li; Zhi Wang; Zhilin Wang; Shunkai Zhang; Xiaoye Qu; Yu Cheng
Conference: ICML
YouTube: https://slideslive.com/39083724
Overview
As large reasoning models scale, the quality of their intermediate thinking traces increasingly dictates their final performance. To solve complex mathematical and scientific problems, modern models generate extended reasoning traces characterized by human-like exploration, reflection, and revision before outputting a final answer. However, these traces are typically generated automatically without rigorous quality control, frequently containing redundancies, logical inconsistencies, or outright errors. Poor reasoning traces drive up inference costs, distort analytical conclusions, and make automated evaluation unreliable.
This talk, presented by Haoran Zhang at ICML on behalf of researchers from Shanghai Jiao Tong University and the Shanghai AI Lab, introduces a comprehensive methodology for characterizing, evaluating, and optimizing complex reasoning. The authors propose a unified pipeline centered on the ME-squared principle for defining reasoning quality, a Directed Acyclic Graph (DAG) representation for structuring reasoning traces, and TRM (Thinking Reward Model)—a reward model trained to score reasoning quality independently of final answer correctness.
The significance of this work lies in its ability to separate process quality from outcome correctness. By capturing the structural and content-oriented nuances of long-form reasoning, TRM provides a robust reward signal capable of guiding both test-time scaling (such as best-of-N selection) and reinforcement learning via GRPO (Group Relative Policy Optimization). Across benchmarks like AIME 24 and AIME 25, this approach consistently outperforms traditional verifier-only baselines, establishing a new paradigm for aligning reasoning models with high-quality cognitive trajectories.
Background
▶ Watch: Introduction and motivation for complex reasoning quality (0:00)
In the contemporary machine learning and systems landscape, the paradigm of test-time compute scaling has shifted focus toward long-form reasoning models. Models like Qwen-3-8B, DeepSeek-V3 variants, and various GPT-OSS checkpoints tackle difficult problems by generating expansive text traces filled with intermediate hypotheses, self-corrections, and backtracking.
Despite these advancements, standard reinforcement learning and evaluation pipelines rely heavily on sparse outcome supervision—typically binary rule-based verifiers that check whether the final numerical or symbolic answer is correct. This creates a significant systems and algorithmic bottleneck. Binary verifiers treat all correct reasoning traces as equally valid, ignoring whether a model arrived at the correct answer through elegant, concise logic or convoluted, redundant wandering.
Prior work in process supervision often required expensive human annotations or narrow, rule-based process reward models that struggled to scale across diverse STEM domains. Furthermore, existing evaluation frameworks lacked a formal taxonomy for what constitutes a "good" reasoning trace. Without a principled way to characterize macro-level structure and micro-level step validity, optimizing models to produce better intermediate thoughts remained largely ad-hoc. This talk addresses the core problem of how to mathematically define, automatically evaluate, and effectively optimize the hidden cognitive traces of modern language models.
Key Findings
▶ Watch: Characterizing reasoning quality using the ME-squared principle (3:40)
The research yields several major discoveries regarding the nature of complex reasoning traces and how they can be leveraged to improve model performance:
- The ME-squared Principle: Quality can be systematically organized along two independent axes: evaluation level (macro global structure vs. micro individual steps) and evaluation objective (efficiency via compact reasoning vs. effectiveness via genuine progress toward a conclusion). This forms a four-quadrant rubric for trace assessment.
- DAG Representation Superiority: Representing reasoning traces as DAGs effectively captures complex dependency patterns—specifically progression, branching, and merging—outperforming traditional trees (which cannot model merging) and general graphs (which risk introducing cyclic dependencies).
- Decoupling Reasoning Quality from Answer Correctness: By filtering training data to include only traces verified as correct by rule-based verifiers, the resulting TRM 8B model learns to score the intrinsic quality of the thinking process rather than simply memorizing correct final answers.
- Test-Time Scaling Gains: Using TRM for best-of-N selection ($N \le 16$) without inspecting the final answer improves downstream accuracy. On AIME 24 and AIME 25 benchmarks using GPT-OSS 20B, TRM-guided selection steadily outperforms baseline selection strategies as $N$ increases.
- Improved Reinforcement Learning via Gated Reward Shaping: Incorporating TRM into GRPO-based reinforcement learning through gated reward shaping (applying the thinking reward only when the verifiable reward is positive) improves policy performance across 10 STEM and math benchmarks without destabilizing training.
Technical Deep Dive
▶ Watch: Building the TRM preference dataset and training (6:00)
The technical architecture of the proposed framework consists of three sequential phases: characterization, evaluation, and optimization.
1. Characterization via the ME-squared Principle
The framework begins by establishing what makes a trace high-quality using the ME-squared rubric. The macro level evaluates the global narrative and structural coherence, while the micro level inspects individual logical transitions. Orthogonally, efficiency measures conciseness and lack of wasted computational or cognitive effort, while effectiveness measures forward progress toward a justified conclusion.
2. DAG Construction and Trace Structuring
To model a raw trace mathematically, the system applies a two-step parsing pipeline:
- Partitioning: The raw text is split on structural boundaries such as blank lines for code blocks. High-frequency discourse markers (e.g., so, but, therefore) are mined to refine these text blocks into atomic reasoning steps.
- DAG Generation: Respecting the natural generation order (topological sorting), DeepSeek-V3 evaluates preceding steps to select parent nodes for each current step based on semantic continuity. This builds a DAG where nodes represent reasoning steps and edges represent semantic dependencies, successfully capturing non-linear cognitive phenomena like merging multiple earlier insights into a single new deduction.
3. Pairwise Evaluation and Dataset Generation
To construct preference data, the authors evaluate math and STEM problems from the WebInstruct dataset, generating traces via open-source architectures including Qwen-3, DeepSeek-Distill, and GPT-OSS. DeepSeek-V3 performs pairwise comparisons from two complementary views:
- Macro View (Structural-oriented): Summarizes each node and serializes the DAG using structural tags.
- Micro View (Content-oriented): Extracts the dominant logical path and concatenates step texts along that path.
To mitigate positional bias, each pair is evaluated in both directions, retaining only consistent, non-tie labels. This yields the TRM preference dataset comprising 103,000 pairs. An 8B Thinking Reward Model (TRM) is then trained on this dataset using a Bradley-Terry objective. Crucially, training data is restricted to traces whose final answers are verified correct by rule-based packages (such as math-verify), ensuring the model learns to evaluate thinking quality rather than answer correctness.
4. Optimization via Test-Time Scaling and Gated RL
The trained TRM is deployed in two optimization regimes:
- Best-of-N Selection: For a given prompt, the model samples up to 16 traces. TRM scores the traces independently of their final answers, and the highest-scoring trace is selected.
- Gated Reward Shaping in Reinforcement Learning: The framework modifies GRPO training for policy models using a gated reward formulation:
$$\text{Reward} = R_V + \alpha R_T \cdot \mathbb{I}(R_V > 0)$$
where $R_V$ is the verifiable binary reward (0 or 1), $R_T$ is the TRM thinking reward, and $\alpha$ is a scaling hyperparameter set to $0.2$. The indicator function ensures the thinking reward is added only when the final answer is already correct, providing theoretical convergence stability while guiding the policy toward higher-quality reasoning traces.
Experimental Setup & Results
▶ Watch: Optimizing reasoning via test-time scaling and selection (7:00)
The evaluation spans rigorous mathematical and scientific benchmarks designed to test complex reasoning capabilities:
- Datasets: Math and STEM problems drawn from the WebInstruct dataset for training data generation; evaluation conducted across 10 distinct STEM and math benchmarks, prominently featuring AIME 24 and AIME 25 (American Invitational Mathematics Examination).
- Model Architectures: Evaluated using Qwen-3-8B, DeepSeek-Distill models, GPT-OSS 20B, and DeepSeek-V3 acting as the judge model.
- Training Infrastructure & Objectives: The reward model TRM 8B was trained via Bradley-Terry pairwise preference optimization on 103,000 filtered pairs. Policy models were trained using GRPO reinforcement learning.
- Headline Results:
- In test-time scaling experiments with GPT-OSS 20B on AIME 24 and AIME 25, TRM-based best-of-N selection ($N \le 16$) consistently outperformed baselines that read both the trace and final answer, despite TRM scoring traces blindly with respect to the final answer.
- In reinforcement learning evaluations across 10 benchmarks, TRM-guided reward shaping outperformed verifier-only baseline training. Win-rate evaluations under the ME-squared principle demonstrated that TRM-trained policies produced systematically superior reasoning traces compared to standard verifier-optimized models.
Practical Implications
▶ Watch: Conclusion and audience Q&A session (10:00)
For machine learning practitioners, infrastructure teams, and model deployers, this work offers actionable insights into post-training and inference optimization for reasoning models:
- Beyond Binary Verification: Relying solely on binary outcome verifiers leaves substantial performance on the table. Infrastructure teams building agentic or reasoning pipelines should incorporate process-level quality signals to differentiate between lucky guesses and robust logical derivations.
- Decoupled Reward Design: Training reward models on verified-correct traces avoids the trap of conflating stylistic verbosity with logical correctness. Deployers can safely apply thinking reward models as plug-and-play filters during test-time best-of-N generation without requiring access to ground-truth final answers during inference scoring.
- Safe Reinforcement Learning Integration: The introduction of gated reward shaping ($R_V + \alpha R_T \cdot \mathbb{I}(R_V > 0)$) provides a theoretically grounded method for shaping RL policies. Because the thinking reward is gated by answer correctness, models are never incentivized to generate eloquent but fundamentally incorrect answers.
- Tradeoffs and Limitations: Constructing DAG representations requires parsing raw text, mining discourse markers, and running LLM-based parent selection (e.g., via DeepSeek-V3), introducing non-trivial preprocessing overhead. However, this offline or pipeline-level complexity pays off significantly in downstream inference efficiency and accuracy.
Key Takeaways
- Reasoning Quality Matters: Intermediate reasoning traces dictate final performance in large reasoning models; poorly structured traces waste inference compute and degrade reliability.
- The ME-squared Principle: A structured evaluation rubric combining macro/micro evaluation levels with efficiency/effectiveness objectives provides a concrete framework for assessing thought quality.
- DAGs Capture Complex Logic: Representing reasoning steps as nodes and semantic dependencies as edges in a Directed Acyclic Graph effectively models progression, branching, and merging without cyclic errors.
- TRM Decouples Process from Outcome: Training an 8B Thinking Reward Model on verified-correct traces using Bradley-Terry objectives allows it to score reasoning quality independently of final answer correctness.
- Effective Test-Time Scaling: TRM-guided best-of-N selection ($N \le 16$) improves final accuracy on challenging benchmarks like AIME 24 and AIME 25.
- Gated Reinforcement Learning: Integrating TRM into GRPO training via gated reward shaping improves policy reasoning win rates across 10 STEM benchmarks while preserving optimal policy guarantees.
About the Speaker(s)
- Haoran Zhang (Shanghai Jiao Tong University, Shanghai AI Lab): Haoran Zhang is from Shanghai Jiao Tong University and Shanghai AI Lab, presenting work on characterizing, evaluating, and optimizing complex reasoning through the Thinking Reward Model (TRM).
Co-authors: Yafu Li, Zhi Wang, Zhilin Wang, Shunkai Zhang, Xiaoye Qu, Yu Cheng.
Reviews
→ Top-rated talks at International Conference on Machine Learning 2026
All talks from International Conference on Machine Learning 2026