arXiv:2610.37369cs.AIOct 2026

Manuscript Offprint

arXiv:2610.37369

Uncovering Why LLMs Fail: From Internal Mechanisms to Adversarial Reasoning Trajectories

Zirui Ding, Xinxin Fan, Hao Yuan, Shaoye Luo, Men Niu, Yunfeng Lu

Abstract

Large language models (LLMs) are usually evaluated by final-output correctness or safety, yet an endpoint label does not reveal how a failure develops throughout the reasoning process. We therefore ask whether ordinary reasoning failures and adversarially induced failures can be characterized using the same internal coordinates. Towards this end, we in this paper study a white-box diagnostic framework CauTrace to disclose the root-cause of why LLM fails from three fundamental inspections: Functional States, Propagation of Representation, Temporal-State Coordination and Reasoning Trajectory. First, seven functional states are creatively defined to represent the support and constraint processing in LLMs. Second, the propagation of representation change measures how the changes among the seven states persist across subsequent Transformer blocks. Third, temporal-state coordination and trajectory topology characterize when the commitment and verification occur relative to the support, and how the dominant state sequence evolves over the full inference process. Finally, we evaluate CauTrace on both clean reasoning failures and paired adversarial perturbations. Across Qwen and LLaMA-family models, the failed traces show weaker Attention–MLP agreement on support-state updates and less verification activity relative to commitment, while the exact representation-level signatures and timing shifts vary by architecture. Held-out repair and steering tests demonstrate consistent operational signals that were in line with our claims for certain models and specific settings, with aligned steering producing the predicted directional changes in process measures. Overall, CauTrace provides a unified diagnostic framework for analyzing failure dynamics through changes in support, commitment, and verification, which would shed light on the in-depth research on LLM security.

1 Introduction

Hallucinations and harmful generations can make large language models (LLMs) appear certain while producing unsupported facts, fabricated evidence, or invalid reasoning, as documented by recent hallucination and factuality surveys [13,43]. In ordinary use, such outputs can propagate misinformation and mislead downstream decisions. In security-sensitive settings, HarmBench [28] and JailbreakBench [6] standardize the measurement of whether manipulated prompts turn safety-aligned models from refusal to harmful compliance. The cost is therefore not limited to a wrong answer: a fluent but ungrounded explanation can also make the failure difficult for users or automated detectors to identify [22,27].

Research on trustworthy and safe LLMs has identified several non-exclusive sources of these failures. TruthfulQA shows that models can reproduce popular misconceptions learned from their training distribution [23]. Lost-in-the-middle analyses [24] and distraction tests [38] show that task-relevant evidence can be overlooked when it is embedded in long or irrelevant context. Calibration studies examine whether models can estimate the correctness of their own answers [18,47], whereas SelfCheckGPT detects unsupported passages through disagreement among sampled responses [27]. Reasoning traces introduce another gap: biasing features can change an answer without being acknowledged in the generated chain of thought [41], and intervention-based studies find that textual rationales do not always mediate the final prediction [20,36]. In safety-aligned models, adversarial prompts can redirect intermediate hidden-state processing [51], exploit safety signals concentrated in the chat-template region [21], alter refusal-related representations [2], or hijack attention from safety-relevant template tokens [4]. These findings suggest that hallucination and unsafe compliance can involve interacting failures of evidence use, reasoning coordination, and internal control rather than one isolated defect.

Nevertheless, LLM trustworthiness and safety are still commonly evaluated from endpoint outputs, and an endpoint label alone does not reveal how the result was produced through successive Transformer layers and generation steps [43,51]. Prior studies show that the same endpoint failure label can arise from heterogeneous failure patterns: task-relevant premises may be overlooked when evidence is embedded in long or distracting contexts [24, 38]; parametric falsehoods or unsupported associations may dominate a response [23]; multi-hop reasoning may omit a required inference or fail to integrate the final supporting fact [11, 36]; and explicit task constraints may be violated [17]. Moreover, answer commitment may be driven by shortcut features rather than by the stated support, with the reported reasoning merely rationalizing that choice [41]; a later self-check may then fail to repair the answer or may even degrade it [12]. The same ambiguity arises in safety evaluation: an unsafe completion establishes that a safeguard failed, but not which part of the internal generation process was reorganized by the adversarial prompt [6,51]. Consequently, endpoint evaluation alone leaves a fundamental diagnostic question unanswered: how can failures be traced to changes within the model's internal generation pipeline?

Existing research therefore provides four important but partial analytic views. Endpoint benchmarks measure factuality through learned misconceptions in TruthfulQA [23], generated and human-annotated hallucinations in HaluEval [22], or standardized harmful-behavior evaluation in HarmBench [28] and JailbreakBench [6]. Calibration and consistency methods estimate whether an answer is unreliable [18,27]; chain-of-thought studies test whether textual rationales faithfully mediate predictions [36,41]; and mechanistic methods decode hidden representations [3,10] or localize safety-relevant directions [2]. These views are rarely connected by a common process-level unit. Endpoint scores can merge distinct failure routes, textual rationales need not expose the operative computation, and a localized representation does not by itself explain when support, commitment, and verification become miscoordinated over an entire generation. A unified analysis therefore needs to connect where a change persists, when functional roles switch or lose coordination, and which whole-trace route produces the endpoint.

In this work, our goal is therefore not to propose another endpoint detector or a stronger attack, but to ask a nontrivial question: Can non-adversarial reasoning failure and adversarially-induced reasoning failure be described with a common set of reasons? Surrounding this question, we treat a well-formed generation as a reasoning trajectory in which task-relevant support and constraint are established before answer commitment becomes dominant, and later verification remains able to confirm or revise the candidate answers. Failures can therefore appear as weak support continuity, shifted commitment/verification timing, frequent state switching, or low verification activity relative to commitment, which offers an operational and quantitative criterion for analyzing reasoning failures.

Generally, the final LLM-output answers whether the response is incorrect, unsupported, or unsafe, but cannot locate which part of the internal process changed; the same output label can also hide different state-transition routes. Our proposed CauTrace first maps each generation to seven functional-state coordinates describing support/constraint processing, answer commitment, and verification. It then analyzes three complementary properties: whether representation changes persist across subsequent Transformer blocks, whether the timing of support, commitment, and verification remains coordinated, and which trajectory topology emerges over the full generation trace. In a nutshell, three main contributions are involved:

• Reasoning-Process Formulation. We creatively define seven radical functional-state coordinates to abstract the entire reasoning process, by which the support/constraint processing, answer commitment, and verification can be formulated appropriately.

• Three-Level Failure-Diagnostic Analytics. We construct the propagation of representation mechanism across Transformer blocks, temporal coordination among functional states, and whole-trace trajectory topology, by which the fine-grained representation changes can be captured microscopically.

• Empirical Verification. Multi-facet experiment-oriented evidences across the popular Qwen and LLaMA-family models demonstrate that: i) the failed traces differ from successful traces in support-state update agreement and relative verification activity; ii) that even the same output label can follow different reasoning trajectory chains; and iii) that harmful-benign-paired adversarial flips are accompanied by larger internal-state change.

References (49)