From Input to Output: A Flexible Agent for Dual-End Interpretation of Sparse Autoencoder Features

Dewen Liu, Zixuan Li, Jonathan Pan, Zhao Wu, Zijun Yao +2 more
9/28/2026
cs.CL

Official code: THUAIS-Lab/DAFI (0 stars, MIT, last commit 2026-09-26).

Abstract

Sparse autoencoders (SAEs) are an important tool for mechanistic interpretability, but interpreting their many features remains challenging. Existing methods characterize input-side activation patterns and output-side intervention effects, yet often leave their functional connection implicit, while input-side evidence collection typically relies on costly large-corpus scans. We introduce functional interpretation, which characterizes an SAE feature as a mapping from its activating input semantics to its output effects under intervention, and present Dual-End Agentic Feature Interpretation (DAFI), an agent that actively gathers evidence and refines input-side, output-side, and functional interpretations through component-specific feedback. Its short-context token probing enables on-demand activation evidence collection without a full corpus scan. On GemmaScope, DAFI improves Input score by 13.1 percentage points over SAGE and Output score by 38.9 points over Token Change, while being substantially more token-efficient than a general-purpose coding agent. Skills distilled from successful refinements raise the held-out joint pass rate from 58.0% to 92.0% and improve both interpretation quality and efficiency when transferred to a new model-SAE setting. Across features with reliable endpoint interpretations, 70.7% exhibit non-equivalent input and output semantics. On AxBench, DAFI also improves steering-feature selection over output-score filtering. Code is available at https://github.com/THUAIS-Lab/DAFI.

View on arXivView PDF

Code Implementations(1)

THUAIS-Lab/DAFIOfficial100%
MIT

Automated dual-end interpretation of sparse autoencoder features

00PythonSep 17, 20263 weeks agoMIT

Similar Papers

Cite this paper

@article{liu2026from,
  title  = {From Input to Output: A Flexible Agent for Dual-End Interpretation of Sparse Autoencoder Features},
  author = {Dewen Liu and Zixuan Li and Jonathan Pan and Zhao Wu and Zijun Yao and Juanzi Li and Xiaozhi Wang},
  year   = {2026},
  eprint = {2609.35367},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.35367v1}
}

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

Discussion