Mechanistic Interpretability of GPT-like Models on Summarization Tasks

Anurag Mishra
5/20/2025
cs.CLcs.AIcs.LG
transformer-attentionlora-peft-merging

No confident code implementation found for this paper.

Abstract

Mechanistic interpretability research seeks to reveal the inner workings of large language models, yet most work focuses on classification or generative tasks rather than summarization. This paper presents an interpretability framework for analyzing how GPT-like models adapt to summarization tasks.

Show full abstract

We conduct differential analysis between pre-trained and fine-tuned models, quantifying changes in attention patterns and internal activations. By identifying specific layers and attention heads that undergo significant transformation, we locate the "summarization circuit" within the model architecture. Our findings reveal that middle layers (particularly 2, 3, and 5) exhibit the most dramatic changes, with 62% of attention heads showing decreased entropy, indicating a shift toward focused information selection. We demonstrate that targeted LoRA adaptation of these identified circuits achieves significant performance improvement over standard LoRA fine-tuning while requiring fewer training epochs. This work bridges the gap between black-box evaluation and mechanistic understanding, providing insights into how neural networks perform information selection and compression during summarization.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{mishra2025mechanistic,
  title  = {Mechanistic Interpretability of GPT-like Models on Summarization Tasks},
  author = {Anurag Mishra},
  year   = {2025},
  eprint = {2505.17073},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.17073v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.17073.svg)](https://codeofpaper.com/paper/2505.17073)

Discussion