Mechanistic Interpretability of Binary and Ternary Transformers

Jason Li
5/27/2024
cs.LGcs.CL

No confident code implementation found for this paper.

Abstract

Recent research (arXiv:2310.11453, arXiv:2402.17764) has proposed binary and ternary transformer networks as a way to significantly reduce memory and improve inference speed in Large Language Models (LLMs) while maintaining accuracy. In this work, we apply techniques from mechanistic interpretability to investigate whether such networks learn distinctly different or similar algorithms when compared to full-precision transformer networks. In particular, we reverse engineer the algorithms learned for the toy problem of modular addition where we find that binary and ternary networks learn similar algorithms as full precision networks. This provides evidence against the possibility of using binary and ternary networks as a more interpretable alternative in the LLM setting.

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{li2024mechanistic,
  title  = {Mechanistic Interpretability of Binary and Ternary Transformers},
  author = {Jason Li},
  year   = {2024},
  eprint = {2405.17703},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.17703v1}
}

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

Discussion