Reproduce “Inseq: An Interpretability Toolkit for Sequence Generation Models” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Gabriele Sarti, Nils Feldhus, Ludwig Sickert, Oskar van der Wal, Malvina Nissim, Arianna Bisazza
Inseq is a Python toolkit designed to streamline interpretability analyses for sequence generation models, consolidating diverse feature attribution methods and optimizing them for prevalent Transformer architectures. The toolkit enables both quantitative and qualitative investigations into generative model behaviors, facilitating insights into phenomena like gender bias and the localization of factual knowledge.
Key insights
- Feature attribution methods can effectively quantify and locate sources of social biases, such as gender bias in machine translation models, by correlating attribution scores with external statistics.
- Factual knowledge within large language models can be traced and localized to specific intermediate layers and input tokens using computationally efficient contrastive attribution methods like Contrastive Attribution Tracing (CAT).
- A dedicated, user-friendly, and extensible toolkit for sequence generation interpretability is crucial for democratizing access to advanced analyses, fostering new research, and enhancing the understanding and debugging of generative AI models.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.