Uncovering Why LLMs Fail: From Internal Mechanisms to Adversarial Reasoning Trajectories
Organizations: Institute of Computing Technology, Chinese Academy of Sciences · University of Chinese Academy of Sciences · University of the Chinese Academy of Sciences · State Key Laboratory of AI Safety, Institute of Computing Technology, Chinese Academy of Sciences ·
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.
Figures & tables
| Seven States | Functional Roles | Questions |
|---|---|---|
| Premise Binding ( ) | Bind entities, conditions, and prompt constraints | Que.I |
| Knowledge Retrieval ( ) | Activate relevant factual or commonsense knowledge | Que. I |
| Reasoning Composition ( ) | Compose evidence across hops or intermediate claims | Que. I |
| Operational Computation ( ) | Execute numerical or symbolic operations | Que. I |
| Formal Rule Tracking ( ) | Maintain task rules, labels, and output constraints | Que. I |
| Answer Commitment ( ) | Select and stabilize a candidate answer | Que. II |
| Model | Label | |||
|---|---|---|---|---|
| Qwen2.5-14B | Correct | 0.076 | -0.015 | -0.560 |
| Qwen2.5-14B | Full Hall. | 0.125 | -0.160 | -0.600 |
| Qwen2.5-7B | Correct | -0.009 | 0.009 | -0.568 |
| Qwen2.5-7B | Full Hall. | 0.019 | -0.056 | -0.625 |
| Qwen2.5-3B | Correct | 0.023 | 0.029 | -0.500 |
| Qwen2.5-3B | Full Hall. | 0.041 | -0.050 | -0.950 |
| Model | : support–commitment gap negative = early commitment; shift = change | : verification–commitment gap large shift / sign flip = disrupted checking | : verification/commitment ratio lower ratio = less relative verification activity |
|---|---|---|---|
| All models | , | , | , |
| Qwen2.5-1.5B | , | not significant after FDR correction | , |
| Qwen2.5-3B | , | , | , |
| Qwen2.5-7B | , | not significant after FDR correction | , |
| Qwen2.5-14B | , | , | , |
| Dataset | Model | Pairs | BSR | AFR | PFR | Cond.PFR | TAR@1 | TAR@3 |
|---|---|---|---|---|---|---|---|---|
| Reasoning Interfered | Qwen2.5-1.5B | 500 | 23.8% | 34.0% | 6.2% | 26.1% | 16.6% | 49.8% |
| Qwen2.5-3B | 500 | 18.0% | 14.0% | 1.8% | 10.0% | 15.2% | 41.8% | |
| Qwen2.5-7B | 500 | 26.6% | 21.0% | 4.8% | 18.0% | 16.6% | 48.4% | |
| AdvBench/HarmBench | Qwen2.5-1.5B | 300 | 73.3% | 37.0% | 22.3% | 30.5% | – | – |
| Qwen2.5-3B | 300 | 69.3% | 33.3% | 14.7% | 21.2% | – | – | |
| Qwen2.5-7B | 300 | 86.0% | 18.0% | 12.7% | 14.7% | – | – |
| Dataset | Model | Dominant State Shift | Strongest Flip-Associated Signal | Strongest Paired QKV Signal |
|---|---|---|---|---|
| Reasoning Interfered | Qwen2.5-1.5B | Premise Binding | cascade ( ) | K pairwise cosine ( ) |
| Qwen2.5-3B | Reasoning composition | Formal Rule Tracking onset delay ( ) | Q stable rank ( ) | |
| Qwen2.5-7B | Reasoning Composition | state ( ) | V–O norm correlation ( ) | |
| AdvBench /HarmBench | Qwen2.5-1.5B | Answer commitment | Commitment cascade strength ( ) | O consecutive cosine ( ) |
| Qwen2.5-3B | Answer commitment | Commitment peak-layer shift ( ) | Q pairwise-cosine dispersion ( ) | |
| Qwen2.5-7B | Answer commitment | Commitment peak-layer shift ( ) | O row-norm dispersion ( ) |
Appendix figures & tables14 assets
Supplementary material from the paper’s appendix.
Appendix
| Dataset | Size | Judge | Dataset | Size | Judge | Dataset | Size | Judge |
|---|---|---|---|---|---|---|---|---|
| TruthfulQA | 120 | semantic | HotpotQA | 7,400 | support | MuSiQue | 242 | support |
| GSM8K | 880 | numeric | MATH | 1,250 | math | FOLIO | 150 | label |
| ProofWriter | 600 | label | StrategyQA | 250 | yes/no | CommonsenseQA | 1,200 | mcq |
| judge_type | Output Form | Constraint |
|---|---|---|
| label_match | Label | entailment/contradiction/unknown |
| yesno_match | Binary answer | yes/no |
| mcq_match | Option | A/B/C/D/E |
| numeric_match | Number | Final number only |
| math_answer_match | Mathematical answer | Final expression or result only |
| semantic | Short answer | Concise, comparable answer |
| Model | w1 | w2 | w4 | w8 | w16 | w32 | w64 | fused |
|---|---|---|---|---|---|---|---|---|
| Qwen2.5-1.5B | 0.9006 | 0.9253 | 0.9501 | 0.9715 | 0.9843 | 0.9901 | 0.9918 | 0.9950 |
| Qwen2.5-3B | 0.9038 | 0.9311 | 0.9570 | 0.9793 | 0.9902 | 0.9939 | 0.9952 | 0.9972 |
| Qwen2.5-7B | 0.9557 | 0.9752 | 0.9880 | 0.9950 | 0.9973 | 0.9977 | 0.9979 | 0.9957 |
| Qwen2.5-14B | 0.9794 | 0.9916 | 0.9974 | 0.9985 | 0.9992 | 0.9990 | 0.9989 | 0.9979 |
| Parameter | Setting |
|---|---|
| Epochs | 40 |
| Batch size | 4096 |
| Learning rate | |
| Weight decay | |
| Patience | 6 |
| Train/Val | 0.9 / 0.1 |
| Dimension | Concise | Analysis | Potential Failure Mode |
|---|---|---|---|
| Output length | Short | 2–4 steps | May induce Verbose Unsupported Continuation outputs |
| Observability | Low | High | Rationale text is not always faithful verification |
| Commitment risk | Medium | Potentially higher | Early Commitment or Verification without Overwrite |
| Parsing stability | High | Medium | Invalid parsing if final-line format is violated |
| Target State | Process Role | Perturbation Focus |
|---|---|---|
| Premise Binding | Bind entities, roles, context, and constraints. | False premises, role confusion, conflicting context bindings. |
| Knowledge Retrieval | Retrieve relevant facts or supporting evidence. | Plausible but wrong facts, source bias, retrieval decoys. |
| Reasoning Composition | Organize multi-step inference and intermediate claims. | Shortcut reasoning, chain reordering, incompatible intermediate claims. |
| Operational Computation | Execute numerical or symbolic operations. | Wrong scratch work, expression substitution, arithmetic interference. |
| Formal Rule Tracking | Maintain formal rules, safety policies, and task boundaries. | Rule-priority inversion, forged exceptions, constraint override. |
| Answer Commitment | Stabilize an answer after sufficient support. | Premature conclusion, forced single answer, uncertainty compression. |
| Score Variant | Perturbation | Rank Stability | Separation Delta | Decision Stability |
|---|---|---|---|---|
| default | none; equal weights | 1.000 | +0.014 | 1.000 |
| ablation | support/value components leave-one-out | 1.000 [1.000, 1.000] | +0.014 [+0.000, +0.018] | 0.812 [0.250, 1.000] |
| random weights | Dirichlet random weights | 1.000 [1.000, 1.000] | +0.014 [+0.000, +0.050] | 1.000 [1.000, 1.000] |
| default | none; equal weights | 1.000 | -0.022 | 1.000 |
| ablation | process components leave-one-out | 0.790 [0.633, 0.887] | -0.022 [-0.046, +0.006] | 0.827 [0.767, 0.933] |
| random weights | Dirichlet random weights | 0.696 [0.022, 0.987] | -0.022 [-0.107, +0.061] | 0.811 [0.567, 1.000] |
| Model | |||||
|---|---|---|---|---|---|
| LLaMA-3.2-1B | -0.052 | -0.000 | +0.001 | -0.058 | -13.085 |
| LLaMA-3.2-3B | -0.022 | +0.075 | +0.002 | +0.050 | -13.558 |
| LLaMA-3.1-8B | -0.042 | +0.073 | +0.007 | -0.018 | -15.519 |
| Qwen1.5-MoE | -0.012 | +0.000 | -0.000 | +0.057 | -1.102 |
| Model | Track | Correct | Partial | Full | Abstain | Invalid | Len. |
|---|---|---|---|---|---|---|---|
| 1.5B | Concise | 19.7 | 0.5 | 54.4 | 24.7 | 0.7 | 16.0 |
| 1.5B | Analysis | 32.9 | 1.2 | 43.7 | 21.9 | 0.2 | 76.5 |
| 3B | Concise | 12.1 | 0.3 | 20.1 | 65.1 | 2.3 | 25.5 |
| 3B | Analysis | 32.2 | 1.2 | 26.2 | 40.1 | 0.3 | 67.5 |
| 7B | Concise | 15.8 | 0.4 | 12.7 | 71.1 | 0.0 | 6.0 |
| 7B | Analysis | 34.4 | 1.3 | 20.3 | 44.0 | 0.0 | 41.3 |
| Task group | Size | Correct | Failure | Abstain | Invalid |
|---|---|---|---|---|---|
| Calculation | 7032 | 0.445 | 0.380 | 0.090 | 0.085 |
| Formal math | 10000 | 0.240 | 0.718 | 0.042 | 0.000 |
| Multi-hop QA | 61176 | 0.137 | 0.185 | 0.678 | 0.000 |
| Knowledge QA | 656 | 0.110 | 0.494 | 0.396 | 0.000 |
| Logic/rule | 5952 | 0.252 | 0.177 | 0.486 | 0.086 |
| Commonsense MCQ | 9680 | 0.721 | 0.263 | 0.013 | 0.003 |
| Trajectory | Metric Signature | Diagnostic Interpretation |
|---|---|---|
| Early Commitment | or | Answer commitment becomes dominant before support is sufficiently established. |
| Fragmented Support | , , unstable | Support-related states activate but do not form a stable, continuous chain. |
| Rule Failure | with weak / state scores | The trace approaches an answer without preserving formal rules, output constraints, or symbolic/numerical consistency. |
| Verification without Overwrite | , | Verification follows commitment but remains too weak to revise the stabilized answer. |
| Verbose Unsupported Continuation | with and | Generation continues without a corresponding increase in support or effective verification. |
| Normal Convergence | , bounded , | Support precedes commitment, constraints remain active, and verification can confirm or revise the candidate. |
| Condition | Adv. fail | Clean good | Fail |
|---|---|---|---|
| Baseline | 76.0 | 26.0 | – |
| Unified CauTrace | 71.0 | 31.0 | -5.0 |
| Generic review | 72.0 | 32.0 | -4.0 |
| Topology-conditioned | 73.0 | 29.5 | -3.0 |
| Wrong topology | 73.5 | 30.5 | -2.5 |
| Condition | Adv. fail | Clean | |||
|---|---|---|---|---|---|
| Baseline | 100.0 | 100.0 | 0 | 0 | 0 |
| Aligned | 66.7 | 91.7 | -0.008 | +0.011 | +0.021 |
| Random | 66.7 | 100.0 | 0.000 | +0.002 | 0.000 |
| Reversed | 66.7 | 91.7 | +0.015 | -0.014 | -0.019 |
| Wrong state | 66.7 | 91.7 | +0.010 | -0.007 | -0.026 |
LLM Auditing
Large language model auditing tests models and deployed systems for bias, safety, privacy, reliability, and provenance using behavioral and internal evidence.
See all 639 papers