TL;DR
PRISM is a novel diagnostic framework that jointly analyzes large language model (LLM) reasoning from two complementary angles: explicit semantic flow (the sequence of text steps) and implicit latent computation (hidden states across layers). By modeling reasoning trajectories as structured processes, PRISM uncovers why models fail, revealing distinct behavioral modes like unproductive verification loops, overthinking, and premature commitment.
What Problem Does This Paper Address?
When LLMs tackle complex mathematical or scientific problems, they generate multi-step reasoning traces (like Chain-of-Thought). However, standard evaluations rely almost entirely on final-task accuracy, which only tells us if a model arrived at the correct answer, not how it got there or why it failed.
Existing interpretability methods typically look at reasoning through a single lens: either explicitly by analyzing the generated tokens over time, or implicitly by probing hidden-state vectors across layers within a single step. These two dimensions are rarely integrated. The authors introduce PRISM to bridge this gap, providing a unified, two-dimensional view of how reasoning evolves across both steps and layers.
Methods
The PRISM framework consists of three main components that link a reasoning step's semantic role to its internal network dynamics:
- Explicit Stage (Semantic Flow): The generated text is segmented into distinct reasoning steps. Each step is classified into one of four semantic categories using an instructor LLM: Setup & Retrieval (SR), Analysis & Computation (AC), Uncertainty & Verification (UV), or Final Answer (FA). The progression of these categories is modeled as an $m$-th order Markov chain to capture text-level transitions.
- Implicit Stage (Latent Computation): For each step, PRISM extracts the hidden representations from every transformer layer. After normalization and PCA compression, a category-specific Gaussian Mixture Model (GMM) clusters these vectors into a small number of latent computational "regimes," mapping how information transforms across model depth.
- Cross-Step Bridge: To connect the two stages, PRISM learns a bridge matrix using an Expectation-Maximization (EM) procedure. This matrix models how the internal computational state at the final layer of a previous step influences the starting computational state and semantic category of the next step.
Datasets
The authors evaluated PRISM across four open-source reasoning models (Bespoke-Stratos-7B, OpenThinker-7B, Qwen3-1.7B, and Llama-3.1-Nemotron-Nano-4B-v1.1) using four diverse benchmarks:
- MATH-500: Competition-level mathematics.
- AIME-2024: American Invitational Mathematics Examination problems.
- GPQA-Diamond: High-difficulty, graduate-level science questions.
- WebInstruct-Verified: A cleaned sample of diverse, real-world problems.
Key Insights and Ideas
- The "Sticky" Verification Trap: Correct and incorrect reasoning paths diverge significantly during verification. Failed trajectories enter the Uncertainty & Verification (UV) stage more readily but struggle to exit back into computation, turning verification into a "sticky state" that stalls progress in unproductive loops.
- Overthinking vs. Premature Commitment: PRISM distinguishes between two failure modes based on path length. "Long-failing" trajectories exhibit overthinking—they reach a candidate answer early but repeatedly revisit it, spending 90% of their remaining steps in non-answer states. Conversely, "short-failing" trajectories exhibit premature commitment, jumping to a final answer late in the generation and stopping immediately without sufficient verification.
- Prompting Reshapes Internal Mechanics: Prompting strategies alter a model's internal behavior far beyond aggregate accuracy. For example, adding a "be concise" instruction fragments the reasoning process, breaking computation into shorter blocks that alternate rapidly with verification. Meanwhile, a "multi-path exploration" prompt successfully encourages bidirectional cycling between computation and verification, preventing the model from getting stuck in dead ends.
Key Results
- Semantic Baseline: Across all models and datasets, reasoning is heavily dominated by Analysis & Computation, which accounts for roughly 50.1% of the long-run stationary distribution. Nearly all reasoning chains (98.2%) successfully begin with Setup & Retrieval.
- Internal Regime Divergence: PRISM successfully isolates hidden-state differences between successful and failed steps. For instance, when analyzing the Uncertainty & Verification steps of Bespoke-Stratos-7B on GPQA-Diamond, incorrect paths consistently activate different latent regimes in the early and late transformer layers compared to correct paths.
Limitations and Future Work
PRISM relies on an external LLM for semantic labeling and unsupervised clustering for latent regimes, which can introduce noise or ambiguity into category assignments. Additionally, the evaluation was restricted to four specific open-source models and benchmarks; further validation on broader architectures (such as proprietary models or non-transformer variants) is needed. Finally, PRISM is currently designed as a diagnostic and analytical tool rather than an online intervention method, though the authors note that its insights could inspire future steering or optimization techniques to actively correct reasoning failures.
Summary updated