TL;DR
Large Language Models (LLMs) often get "stuck" in specific behavioral states—like hallucinating or refusing to answer—based on their conversational history. This paper introduces HISTORY-ECHOES, a framework proving that this behavioral persistence is a "geometric trap" where the model's internal representations become confined to specific regions of its latent space, making it physically difficult for the model to "rotate" back to a normal state.
What Problem Does This Paper Address?
We’ve all seen LLMs "snowball": once a model makes a mistake or starts acting sycophantic, it tends to double down in subsequent turns. While researchers have documented these "carryover effects," we haven't fully understood the mechanism behind them.
Is this just a statistical quirk of token prediction, or is something happening deep within the model's "brain"? This paper addresses the gap between external behavior (what the model says) and internal geometry (how the model represents information). The authors seek to quantify how conversational history biases future generations and whether we can predict a model's "stickiness" by looking at its hidden layers.
Methods
The authors propose a dual-perspective framework called HISTORY-ECHOES:
- The Probabilistic Perspective (Black-box): The researchers model a conversation as a first-order Markov chain with two states: the phenomenon is either present ($s_{\phi^+}$) or absent ($s_{\phi^-}$). By calculating the trace of the transition matrix, they can quantify "state consistency." A trace greater than 1 indicates that the model is likely to stay in its current state (e.g., if it hallucinated last turn, it’s likely to hallucinate this turn).
- The Geometric Perspective (White-box): By accessing the model’s hidden representations (specifically at 85% depth), the authors construct low-dimensional orthogonal bases for the "present" and "absent" states. They measure the angular separation ($\theta_{ref}$) between these states.
- The "Trap" Analysis: They use the Orthogonal Procrustes method to calculate rotation angles during state transitions. If a model fails to fully rotate its internal representation toward the target state during a transition, it retains a "geometric signature" of its previous state—effectively getting trapped.
Datasets
The study evaluates three distinct phenomena across six datasets:
- Hallucination: TriviaQA and Natural Questions.
- Refusal: SORRY-Bench and Do-Not-Answer.
- Sycophancy: SycophancyEval (split into S-pos, where the user is "correct," and S-neg, where the user is "incorrect").
To test the impact of topical flow, they created two versions of these datasets: $D_{consistent}$ (questions ordered by semantic similarity to mimic a coherent conversation) and $D_{inconsistent}$ (randomly shuffled questions).
Key Insights and Ideas
- The Geometric-Probabilistic Link: There is a strong Spearman correlation (0.78) between the probabilistic trace and the geometric angle. Essentially, the more "stuck" a model is behaviorally, the further apart those behaviors are represented in its internal geometry.
- Refusal is the "Stickiest" State: Refusal exhibits the largest angular separation and the highest carryover effects. This suggests that "refusal" is a very clearly defined, singular direction in the model's latent space, making it a powerful "trap."
- Hallucination is Diffuse: Hallucinations showed the weakest carryover effects and smallest geometric separation. This is likely because "hallucination" isn't one thing; it’s a broad umbrella for many different types of failure modes that don't map to a single internal direction.
- Coherence is the Catalyst: The "geometric trap" only functions when the conversation is topically coherent. When the authors shuffled questions to be unrelated, the correlation vanished. This suggests that topical consistency is what allows the "geometric signature" of the past to persist.
Key Results
- Persistence is Universal: Across all tested models (including Qwen3-8B, LLaMA-3.1, and GPT-OSS), the transition matrix trace was consistently $>1$ (averaging 1.31), proving that carryover effects are a fundamental feature of current LLMs.
- Closed Models are Similarly Trapped: Even though we can't see the "geometry" of closed models like GPT-5 or Claude-Opus-4.5, their probabilistic behavior (trace values) closely mirrors open-weight models, suggesting they likely suffer from the same internal geometric traps.
- The "Sweet Spot" in Layers: The strongest alignment between internal geometry and external behavior occurs in the upper-middle layers (around 85% depth). This aligns with other research suggesting these layers are where the model processes high-level semantic concepts like truthfulness and safety.
Limitations and Future Work
- Correlation vs. Causality: The paper establishes a strong link but does not strictly prove that the geometry causes the behavior (though the evidence is suggestive).
- Synthetic Conversations: The study uses simulated conversations with similar, repeated questions to isolate variables. Real-world organic dialogue might show more complex dynamics.
- Single-Step Focus: While the authors touched on higher-order Markov chains (showing that history 2-3 steps back still matters), the geometric analysis focused primarily on single-step transitions.
- Future Directions: The authors suggest investigating the interplay between different phenomena—for example, does being in a "sycophantic" state make a model more or less likely to fall into a "hallucination" trap?
Summary updated