TL;DR
Transformers often struggle to differentiate between correct and incorrect answers in factual queries. This study examines how decoder-only transformers process these answers, revealing that their hidden states diverge in direction while maintaining similar magnitudes.
✦ Why It Matters
Engineers can enhance transformer models by focusing on the rotational dynamics of hidden states to improve answer accuracy.
Key Takeaways
How It Works
The study reveals that when a transformer processes factual queries, it generates two distinct pathways in its hidden state space. Initially, both correct and incorrect token continuations maintain similar magnitudes but rotate apart in direction.
This divergence is characterized by a mid-depth phase where the angular separation increases, followed by a late-layer phase where the model commits to the correct answer, significantly favoring it over the incorrect one.
Related