Tracking Representation Dynamics in Large Language Models with Persistent Homology

Naman Malhotra, Jay Ambadkar, Abhinav Gupta, Kushal Kasivel, Abbas Schwarz +2 more
6/17/2026
cs.LG

No confident code implementation found for this paper.

Abstract

Large language models are commonly aligned through supervised fine-tuning, yet little is known about how their internal representations evolve during this process. We study alignment dynamics using persistent homology by tracking the topology of activation spaces throughout fine-tuning.

Show full abstract

Across four transformer language models ranging from 1B to 7B parameters and three alignment objectives corresponding to helpful, harmless, and mixed training data, we find that the majority of topological reorganization occurs during the earliest stages of training. A dense checkpoint analysis reveals a transient peak in topological activity followed by rapid stabilization. We further show that different alignment objectives induce distinguishable topological trajectories, while instruction-tuned and pretrained models exhibit qualitatively different patterns of evolution. Our results suggest that persistent homology provides a complementary perspective on alignment, revealing representation-level changes that are not apparent from behavioral metrics alone.

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{malhotra2026tracking,
  title  = {Tracking Representation Dynamics in Large Language Models with Persistent Homology},
  author = {Naman Malhotra and Jay Ambadkar and Abhinav Gupta and Kushal Kasivel and Abbas Schwarz and Kamillo Ferry and Anthea Monod},
  year   = {2026},
  eprint = {2606.19542},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.19542v1}
}

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/2606.19542.svg)](https://codeofpaper.com/paper/2606.19542)

Discussion