Modeling Hierarchical Thinking in Large Reasoning Models

G M Shahariar, Erfan Shayegani, Ali Nazari, Nael Abu-Ghazaleh (Professor · University of California Riverside)

International Conference on Machine Learning 2026 · Oral

Overview

Large reasoning models have demonstrated remarkable performance improvements through the generation of explicit chain of thought (CoT) sequences. However, the internal dynamics governing these reasoning trajectories remain largely opaque. Models frequently get trapped in unproductive dead ends, exhibit excessive verbosity or overthinking, and lack a global structural framework to regulate how they navigate complex problem spaces. While prior optimization efforts have typically focused on localized interventions—such as suppressing reflection phases or removing token redundancies—they lack a unifying macroscopic perspective on how reasoning chains evolve.

Watch on SlidesLive

Visual summary for Modeling Hierarchical Thinking in Large Reasoning Models by G M Shahariar, Erfan Shayegani, Ali Nazari, Nael Abu-Ghazaleh
Visual summary for Modeling Hierarchical Thinking in Large Reasoning Models by G M Shahariar, Erfan Shayegani, Ali Nazari, Nael Abu-Ghazaleh

Key moments

  1. 0:00 Introduction and modeling chain of thought cognitive states
  2. 2:00 Comparison with human cognitive models and workflow overview
  3. 4:00 Advantage matrix and steering policies introduction
  4. 6:00 Steering mechanisms and gating by confidence
  5. 8:00 Experimental results and Q-value steering performance
  6. 10:00 Limitations, model transferability, and conclusions
  7. 11:00 Q&A: Dataset-specific MDPs and transition probabilities
  8. 12:00 Q&A: Comparison with explicit prompting
  9. 13:00 Q&A: Alternative intervention points beyond punctuation boundaries

Modeling Hierarchical Thinking in Large Reasoning Models

Speakers: G M Shahariar; Erfan Shayegani; Ali Nazari; Nael Abu-Ghazaleh (Professor, University of California Riverside)

Conference: ICML

YouTube: https://slideslive.com/39083661

Overview

Large reasoning models have demonstrated remarkable performance improvements through the generation of explicit chain of thought (CoT) sequences. However, the internal dynamics governing these reasoning trajectories remain largely opaque. Models frequently get trapped in unproductive dead ends, exhibit excessive verbosity or overthinking, and lack a global structural framework to regulate how they navigate complex problem spaces. While prior optimization efforts have typically focused on localized interventions—such as suppressing reflection phases or removing token redundancies—they lack a unifying macroscopic perspective on how reasoning chains evolve.

This talk, presented by Professor Nael Abu-Ghazaleh on behalf of researchers G M Shahariar, Erfan Shayegani, and Ali Nazari from the University of California Riverside, introduces a novel framework that models CoT trajectories as transitions within a finite-state machine (FSM) composed of six distinct cognitive states. By adapting concepts from human cognitive science—specifically Polya's framework and Schoenfeld's theory of cognition—the authors establish a rigorous mathematical abstraction for tracking and steering model reasoning. The resulting methodology uses empirical advantage matrices and latent space activation steering to dynamically guide models toward more successful reasoning pathways without disrupting their underlying semantic generation.

The implications of this work span both systems design and model alignment. By operating at sentence boundaries and applying orthogonal activation projections gated by model confidence, the proposed framework achieves notable performance gains on challenging reasoning benchmarks. Furthermore, the extracted steering policies demonstrate surprising cross-model transferability, indicating that certain metacognitive dynamics may be universal across different reasoning architectures.

Background

▶ Watch: Introduction and modeling chain of thought cognitive states (0:00)

The systems and machine learning communities have witnessed a paradigm shift toward inference-time compute scaling, where large language models generate extended token sequences to reason through difficult mathematical, coding, and logical tasks. Despite these advances, controlling the reasoning trajectory of autoregressive models presents a persistent engineering challenge. Unlike human thinkers who possess metacognitive oversight to step back, re-evaluate assumptions, and alter strategies, standard large models generate text sequentially based on next-token prediction, making them susceptible to local minima, runaway loops, and cumulative error propagation.

Prior attempts to remedy these failure modes typically relied on input-level prompting heuristics—instructing the model to "think step by step" or explicitly asking it to verify its work. However, these prompting strategies offer coarse-grained control, often degrade generation quality, and fail to provide systematic guarantees. In the broader machine learning systems space, intervening in model behavior usually requires computationally expensive reinforcement learning from human feedback (RLHF) or complex search-based decoding algorithms like Monte Carlo Tree Search (MCTS). This research bridges the gap between high-level cognitive science frameworks and low-level latent space manipulation, proposing a lightweight, interpretable state-machine representation that enables real-time guidance of reasoning trajectories.

Key Findings

▶ Watch: Advantage matrix and steering policies introduction (4:00)

The central discovery of this work is that successful and unsuccessful reasoning trajectories in large reasoning models exhibit markedly different transition probabilities across a universal set of cognitive states. By annotating benchmark reasoning traces, the researchers constructed empirical transition matrices that quantify these behavioral divergences.

Key findings and contributions include:

  • Cognitive State Taxonomy: The identification of six distinct reasoning states—initialization, deduction, augmentation, uncertainty estimation, backtracking, and closure—provides a comprehensive vocabulary for classifying model behavior during CoT generation.
  • Advantage Matrix Construction: Empirical comparisons between correct and incorrect reasoning paths yielded an advantage matrix that highlights which state transitions correlate with success.
  • Superiority of Q-Value Steering: Among three evaluated steering policies (greedy, weighted, and Q-value steering), Q-value steering consistently delivered the highest performance gains while requiring significantly fewer activation interventions.
  • Cross-Model Transferability: Transition vectors and steering policies derived from one model successfully transferred to other models, resulting in consistent performance improvements and suggesting shared underlying reasoning dynamics across architectures.
  • Latent vs. Input Steering Superiority: Latent space steering via orthogonal projection vastly outperformed input-level prompting interventions, which yielded flat or degraded performance.

Technical Deep Dive

▶ Watch: Experimental results and Q-value steering performance (8:00)

The technical architecture of the framework relies on a six-state finite-state model designed to mirror human cognitive processing while capturing unique artifacts of machine-generated chains of thought. The states are defined as follows:

  1. Initialization: The model restates assumptions, analyzes the problem statement, and establishes its initial approach.
  2. Deduction: The core inference phase involving mathematical calculations, logical deductions, and intermediate conclusions.
  3. Augmentation: The incorporation of external information, retrieval of background knowledge, or planning of upcoming substeps.
  4. Uncertainty Estimation: Explicit expressions of doubt, internal critique, or identification of potential errors within the generated chain.
  5. Backtracking: Revising prior assumptions or retreating to an earlier logical state as a consequence of uncertainty estimation.
  6. Closure: Reaching a definitive conclusion and outputting the final answer.

To operationalize this state machine, the system monitors generation at natural sentence boundaries—detected reliably via punctuation marks such as periods and exclamation points where model confidence drops temporarily. At these boundaries, two classifiers analyze the transition vectors representing movement from a source state to a target state.

The core intervention mechanism employs latent space activation steering. Rather than modifying input prompts, the system alters the model's internal activations by applying a directional vector corresponding to the desired transition. To preserve the semantic integrity and original embedding space of the model, the intervention vector is subjected to an orthogonal projection, stripping away components aligned with the model's current hidden state and retaining only the orthogonal component that influences metacognitive strategy.

Steering is governed by three distinct policies:

  • Greedy Steering: Directly pushes the model toward the single most successful transition probability.
  • Weighted Steering: Scales adjustments proportionally based on the complete advantage matrix for both positive and negative transitions.
  • Q-Value Steering: A long-horizon approach that evaluates projected cumulative rewards rather than immediate state transitions, invoking interventions only when rewards exceed a specific threshold and model confidence is low.

Experimental Setup & Results

▶ Watch: Q&A: Dataset-specific MDPs and transition probabilities (11:00)

The evaluation framework utilized a diverse suite of reasoning models and benchmarks to validate the steering methodology:

  • Models Evaluated: Four reasoning models derived from the GPT-OSS architecture, fine-tuned specifically for low-effort and medium-effort reasoning regimes.
  • Datasets: Four established reasoning benchmarks spanning varying difficulty levels: two highly challenging advanced reasoning datasets (including AIM25), alongside Math500 and GSM8K, which provide broader statistical confidence due to their larger sample sizes.
  • Metrics: Accuracy improvements, length of the chain of thought, activation counts, perplexity scores, and output diversity metrics.

Headline results demonstrate that Q-value steering outperforms greedy and weighted policies across all evaluated models on the challenging AIM25 dataset, with performance advantages scaling with problem difficulty. Notably, Q-value steering achieved these gains with substantially fewer total activations because its threshold-gated mechanism avoids over-steering stable reasoning processes. Ablation studies confirmed that input-level prompting performed significantly worse than latent steering, and perplexity and diversity scores verified that orthogonal intervention did not induce hallucinations or suppress model creativity.

Practical Implications

▶ Watch: Q&A: Alternative intervention points beyond punctuation boundaries (13:00)

For machine learning engineers, infrastructure teams, and model deployers, this work demonstrates that fine-grained behavioral control of reasoning models is achievable at inference time without retraining or expensive reward-model fine-tuning. By intervening directly in the activation space using orthogonal projections, systems can correct struggling models mid-generation while preserving their core generative capabilities.

However, several limitations and tradeoffs warrant consideration. First, the current framework relies on a first-order Markovian process; while higher-order transition models (second and third order) were tested, they did not yield significant performance payoffs relative to their added complexity. Second, the authors observed that smaller models did not benefit as much from the technique, indicating that the primary performance bottleneck for smaller architectures lies in their fundamental representational capacity rather than their metacognitive navigation. Finally, deploying latent steering in production environments requires careful monitoring of sentence-boundary detection latencies and activation injection overhead.

Key Takeaways

  • Cognitive Abstraction: Chain-of-thought trajectories can be effectively modeled as finite-state machines comprising six distinct cognitive states adapted from human problem-solving theory.
  • Latent Steering via Orthogonal Projections: Applying steering vectors orthogonal to the model's current hidden state successfully guides reasoning strategies without corrupting semantic representations or inducing hallucinations.
  • Q-Value Superiority: Long-horizon Q-value steering outperforms greedy and weighted policies while requiring fewer activation interventions through confidence- and reward-gated activation.
  • Cross-Model Transferability: Advantage matrices and transition vectors derived from one model generalize effectively when applied to other architectures, indicating shared underlying reasoning dynamics.
  • Latent vs. Input Intervention: Latent activation steering significantly outperforms input-level prompting instructions for modifying reasoning trajectories.

About the Speaker(s)

  • G M Shahariar: PhD student of Nael Abu-Ghazaleh at the University of California Riverside, working on modeling chain of thought trajectories in reasoning models.
  • Erfan Shayegani: PhD student of Nael Abu-Ghazaleh at the University of California Riverside, working on modeling chain of thought trajectories in reasoning models.
  • Nael Abu-Ghazaleh (Professor, University of California Riverside): Professor at the University of California Riverside presenting work by his PhD students on modeling chain of thought trajectories as finite state models for reasoning in large language models.

Co-authors: Ali Nazari.

Reviews

→ Top-rated talks at International Conference on Machine Learning 2026

All talks from International Conference on Machine Learning 2026