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
Full Summary
In the context of natural language processing, transformers are widely used for generating text based on input queries. This research investigates how decoder-only transformers handle factual queries with both correct and incorrect single-token continuations.
By analyzing the hidden-state space of the model, the study finds that the displacement vectors from the query representation maintain similar magnitudes but rotate apart in direction, with increasing angular separation through mid-depth layers. Late layers demonstrate a pronounced preference for correct answers, as indicated by a logit-lens preference metric, which significantly outperforms naive predictions.
These insights suggest that the model's architecture allows it to effectively reject incorrect answers by leveraging the rotational dynamics of its hidden states. This understanding can inform future improvements in transformer design and training methodologies.
Related