Saved in:
Bibliographic Details
Main Authors: Yu, Zeping, Belinkov, Yonatan, Ananiadou, Sophia
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2502.10835
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910830657798144
author Yu, Zeping
Belinkov, Yonatan
Ananiadou, Sophia
author_facet Yu, Zeping
Belinkov, Yonatan
Ananiadou, Sophia
contents We investigate how large language models perform latent multi-hop reasoning in prompts like "Wolfgang Amadeus Mozart's mother's spouse is". To analyze this process, we introduce logit flow, an interpretability method that traces how logits propagate across layers and positions toward the final prediction. Using logit flow, we identify four distinct stages in single-hop knowledge prediction: (A) entity subject enrichment, (B) entity attribute extraction, (C) relation subject enrichment, and (D) relation attribute extraction. Extending this analysis to multi-hop reasoning, we find that failures often stem from the relation attribute extraction stage, where conflicting logits reduce prediction accuracy. To address this, we propose back attention, a novel mechanism that enables lower layers to leverage higher-layer hidden states from different positions during attention computation. With back attention, a 1-layer transformer achieves the performance of a 2-layer transformer. Applied to four LLMs, back attention improves accuracy on five reasoning datasets, demonstrating its effectiveness in enhancing latent multi-hop reasoning ability.
format Preprint
id arxiv_https___arxiv_org_abs_2502_10835
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Back Attention: Understanding and Enhancing Multi-Hop Reasoning in Large Language Models
Yu, Zeping
Belinkov, Yonatan
Ananiadou, Sophia
Computation and Language
We investigate how large language models perform latent multi-hop reasoning in prompts like "Wolfgang Amadeus Mozart's mother's spouse is". To analyze this process, we introduce logit flow, an interpretability method that traces how logits propagate across layers and positions toward the final prediction. Using logit flow, we identify four distinct stages in single-hop knowledge prediction: (A) entity subject enrichment, (B) entity attribute extraction, (C) relation subject enrichment, and (D) relation attribute extraction. Extending this analysis to multi-hop reasoning, we find that failures often stem from the relation attribute extraction stage, where conflicting logits reduce prediction accuracy. To address this, we propose back attention, a novel mechanism that enables lower layers to leverage higher-layer hidden states from different positions during attention computation. With back attention, a 1-layer transformer achieves the performance of a 2-layer transformer. Applied to four LLMs, back attention improves accuracy on five reasoning datasets, demonstrating its effectiveness in enhancing latent multi-hop reasoning ability.
title Back Attention: Understanding and Enhancing Multi-Hop Reasoning in Large Language Models
topic Computation and Language
url https://arxiv.org/abs/2502.10835