Manuscript Offprint

arXiv:2608.29956

Detecting Hidden Chain-of-Thought in Large Language Models with Linguistic, Behavioral, and Mechanistic Indicators

Armaan Singh, Ryan Trinh Le, Jasmine Kaur, Abdullah Sultan, Edward Lue Chee Lip, Kiran Nijjer, Adnan Ahmed, Vasu Sharma

Abstract

Large language models often answer complex reasoning questions without revealing intermediate steps, raising whether they reason latently or complete patterns. We propose the Hidden CoT Detection Score (HCDS), a comparative behavioral and mechanistic signal measuring whether neutral-prompt behavior aligns more closely with explicit CoT or explicit no-CoT. Here, hidden CoT operationally denotes this neutral-prompt CoT-like alignment; HCDS does not directly observe or prove an unexposed reasoning trace. On GSM8K, HCDS is significantly positive for both Qwen3-4B variants (Thinking +1.87, p=1.2×10−7p = 1.2 \times 10^{-7}; Instruct +1.41, p=1.9×10−4p = 1.9 \times 10^{-4}), replicates across a different inference stack and quantization within 0.08 (+1.80 and +1.45), and is not significantly positive in seven of eight length-adjusted calibration-control cells. The unadjusted score produces large positive scores on single-step arithmetic and numeric factual lookup. The variants also respond differently to no-CoT instructions: Instruct complies from the prompt alone, whereas Thinking continues reasoning and requires intervention. These findings show stronger, less prompt-conditional CoT-like behavior in the reasoning-tuned model, consistent with but not proof of latent reasoning. HCDS thus investigates latent reasoning without relying on models’ self-reported traces.

1 Introduction

Explicit Chain-of-Thought (CoT) prompting can substantially improve LLM performance on complex reasoning tasks while producing steps that appear to expose the model's reasoning [Wei et al., 2022]. This raises whether models perform similar multi-step computation internally when not explicitly asked to reason. The distinction matters for interpretability: reasoning-like text need not faithfully reflect the computations producing an answer [Turpin et al., 2023], while genuine intermediate computation may occur without visible traces.

We study latent reasoning through behavioral identification. HCDS measures whether neutral-prompt behavior more closely resembles explicit CoT or explicit no-CoT behavior; this alignment is evidence consistent with latent reasoning, not direct observation of an internal trace. It compares three prompt conditions through six linguistic, behavioral, and mechanistic features: mean token entropy, entropy slope, latency per output token, paraphrase consistency, perturbation sensitivity, and the accuracy cost of suppressing steps identified by gradient×activation attribution. Within each backend and (model, dataset) group, raw features are first residualised on log generation length and the residuals are then z-scored before Euclidean distances are computed. HCDS subtracts the neutral prompt's distance to the CoT pole from its distance to the no-CoT pole.

Code: https://github.com/a4maan/detecting-hct

Correspondence to: Armaan Singh armaan.singh@griffinschool.org.

1^{1}Stanford University, 2^{2}York University, 3^{3}Facebook

Two design choices are critical. First, reasoning-tuned models may ignore no-CoT instructions: in a separate un-intervened GSM8K n=500n = 500 diagnostic with a 1024-token cap, Qwen3-4B Thinking produced a mean of 575 output tokens (median 490.5) when instructed not to reason. For the primary n=50n = 50 analysis, we force-close its reasoning block to obtain an answer-only comparison pole with median output of 6 tokens. Second, because most HCDS features correlate with output length, we residualise each on log generation length; length serves only for adjustment and diagnostics, never as a feature.

We evaluate HCDS on Qwen3-4B Instruct and Thinking using GSM8K and StrategyQA. On GSM8K, HCDS is significantly positive under neutral prompting for both variants (Table 2), indicating that neutral behavior is closer to explicit CoT than to explicit no-CoT. StrategyQA is reported separately (Appendix F) because its boolean answer format leaves the no-CoT pole above chance, weakening the resulting contrast. The variants also differ in instruction following: Instruct complies with no-CoT prompting, whereas Thinking does not.

Together, these results provide a framework combining behavioral alignment with mechanistic interventions to study reasoning not explicitly exposed in model outputs [Chen et al., 2025] and test whether identified internal computations influence those outputs [Meng et al., 2022].

References (43)