Taking the PULSE of Medical Reasoning: Step-Level Retrieval Timing for Knowledge-Grounded Inference

Danyang Zhao, Sendong Zhao, Yanrui Du, Haochun Wang, Ming Ma, Wenhao Li, Jingbo Wang, Jiatong Liu, Bing QinarXiv 2026

TL;DR

PULSE is a lightweight probing method that monitors an LLM's internal hidden-state trajectories to detect factual errors in real-time during multi-step reasoning. By triggering external knowledge retrieval only when these "internal pulses" signal instability, PULSE matches the accuracy of exhaustive per-step retrieval while slashing retrieval calls by up to 72%.

What Problem Does This Paper Address?

Retrieval-Augmented Generation (RAG) is essential for specialized domains like medicine, where Large Language Models (LLMs) often lack the most up-to-date or niche factual knowledge. However, RAG faces a significant "timing" challenge.

If a model retrieves information indiscriminately at every reasoning step, it introduces unnecessary latency and risks "retrieval noise"—irrelevant data that can distract the model and lead to errors. Conversely, retrieving only at the start of a question often misses errors that emerge during intermediate reasoning steps. Existing adaptive triggers usually rely on surface-level signals like token probability (confidence) or entropy. The authors argue these are poor proxies for actual knowledge gaps, as a model can be confidently wrong or linguistically uncertain without lacking factual grounding.

Methods

The authors propose PULSE (Probing Ungrounded reasoning via Layer-wise State Evolution), which shifts the focus from output confidence to internal activation dynamics.

  1. Trajectory Analysis: The researchers first performed a posterior analysis using PCA to visualize how hidden states evolve across Transformer layers. They discovered that factually erroneous steps exhibit significantly higher inter-layer volatility than correct ones.
  2. Geometric Feature Extraction: PULSE extracts two compact geometric features from the hidden-state trajectories of a reasoning step:
  3. Angular Change: Measures the directional reorientation between adjacent layers ("in what direction" the representation turns).
  4. Magnitude Change: Measures the scale of displacement between layers ("how far" the representation moves).
  5. Lightweight Probing: These features are fed into a small Multi-Layer Perceptron (MLP) probe. If the probe detects a high probability of a factual error upon the completion of a reasoning step, it triggers a retrieval call.
  6. Adaptive Regeneration: When triggered, the system retrieves relevant passages and regenerates only the flagged step, keeping prior correct steps intact.
Figure 2: Overview of PULSE. Layer-wise geometric trajectory features of each reasoning step are fed into an MLP probe to detect factual errors. Flagged steps trigger retrieval, whose accuracy gain interventionally validates the detection. Output-level signals (purple) serve as baselines.

Datasets

The study utilizes several challenging benchmarks to train and evaluate the probe:

  • Training/Validation: MedMCQA (medical entrance exams) and AfriMedQA (pan-African medical questions).
  • In-Distribution (ID) Testing: A held-out set of MedMCQA.
  • Out-of-Distribution (OOD) Testing: MMLU-Pro (Biology) and JAMA Clinical Challenge (case-based medical questions).
  • Cross-Domain Generalization: MMLU-Pro (Law), used to test if the "instability" signal transfers to non-medical fields.

Key Insights and Ideas

  • Internal Knowledge Instability: Factual errors leave a distinct "geometric footprint." When a model lacks internal grounding for a claim, its internal representations undergo unstable transitions across layers.
  • The "Middle Layer" Sweet Spot: The strongest signals for error detection reside in the middle layers. Early layers are often preoccupied with token-level syntax, while late layers begin committing to the final output distribution, washing out the discriminative signal.
Figure 4: Layer-interval AUROC on the MedMCQA training-validation split (Qwen2.5-7B-Instruct).
  • Domain-Agnostic Signal: Perhaps most surprisingly, a probe trained exclusively on medical data generalized zero-shot to the legal domain. This suggests that inter-layer volatility is a general computational signature of failed internal knowledge retrieval, rather than a dataset-specific artifact.
  • Complexity Independence: The authors confirmed that this volatility persists even when controlling for reasoning complexity (e.g., step length), proving it is a genuine signal of factual grounding failure.
Figure 1: Layer-wise PCA trajectories of hidden states. Bold lines: group means; faint lines: individual samples. (a) Unmatched. (b) Complexity-matched.

Key Results

PULSE demonstrates a superior accuracy-efficiency trade-off compared to both no-retrieval and exhaustive-retrieval baselines.

  • Efficiency: On Llama 3.1-8B, PULSE matched the accuracy of exhaustive per-step retrieval (IRCoT) while reducing retrieval calls by 72%.
  • Accuracy Gains: Compared to vanilla Chain-of-Thought (CoT), PULSE improved accuracy by +24.67% on MedMCQA and +8.53% on JAMA with Qwen2.5-7B.
  • Superior Detection: PULSE consistently outperformed output-level baselines (like Perplexity and Entropy) in error detection, particularly in OOD settings where surface-level signals often degrade.
Figure 3: Accuracy–efficiency Pareto front on the four medical QA benchmarks (averaged). Top: Qwen2.5- 7B-Instruct; Bottom: Llama3.1-8B-Instruct. The x-axis reports the mean number of retrieval calls per question and the y-axis reports average accuracy.

Limitations and Future Work

  • Model Access: PULSE requires access to intermediate hidden states, meaning it is currently limited to open-weight models and cannot be used with black-box APIs like GPT-4.
  • Step Structure: The method assumes the model generates reasoning in explicit, delimited steps. Applying this to free-form, single-paragraph generation would require more flexible segmentation strategies (e.g., semantic chunking).
  • Future Directions: The authors suggest extending these trajectory-based signals as process-level rewards for reinforcement learning in agentic settings. They also aim to verify if these geometric signatures persist as models scale to even larger parameter counts.

Summary updated

Abstract

Reliable medical reasoning requires LLMs to dynamically access external biomedical evidence to improve factual trustworthiness and reasoning accuracy. However, indiscriminate retrieval can introduce noise and latency, raising a critical retrieval-timing problem: at each reasoning step, the system must decide whether the model's internal knowledge is reliable or external evidence is needed. We propose PUlSE, a lightweight probing method that uses the model's internal representations as intrinsic signals for step-level retrieval control. Our posterior trajectory analysis reveals that erroneous steps exhibit substantially higher inter-layer volatility than correct ones, suggesting unstable internal knowledge. Based on this finding, PUlSE trains a compact probe on inter-layer geometric features to detect factual errors upon step completion, and uses it as an adaptive trigger for retrieval and step regeneration. Across four medical benchmarks, PUlSE-timed retrieval matches exhaustive per-step retrieval in accuracy while reducing retrieval calls by 72%, and can transfer to an unseen legal domain, indicating potential domain-agnostic generality. Overall, our study provides an initial step toward shifting retrieval-trigger design from surface-level confidence estimates to internal activation dynamics for adaptive access.
BibTeX
@misc{zhao2026taking,
  author = {Danyang Zhao and Sendong Zhao and Yanrui Du and Haochun Wang and Ming Ma and Wenhao Li and Jingbo Wang and Jiatong Liu and Bing Qin},
  title = {{Taking the PULSE of Medical Reasoning: Step-Level Retrieval Timing for Knowledge-Grounded Inference}},
  year = {2026},
  eprint = {2610.20292},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.20292},
}
Figure