학술

Sparse Autoencoder Attribution Graphs Are Decided at the Margin

arXiv CS.AI
CC BY
이 매체는 공공·자유 라이선스로 본문을 직접 표시합니다.

Abstract

Interpretability research writes a language model's activation as a weighted sum of learned directions, called features.

A sparse autoencoder (SAE) learns the features and gives each a coefficient, its weight in that sum.

The SAE's encoder first gives every feature a score.

A TopK SAE selects the k features with the largest positive scores and zeroes the rest.

A feature's margin is how far its score must move before the selection changes.

An intervention on one feature's coefficient changes the encoder scores of the SAE at the next layer.

An attribution graph predicts that change from the scores' derivatives with respect to the coefficient, taken before the intervention.

The graph keeps the original selection, so it misses every feature that enters or leaves.

We propose the margin graph, which adds the predicted change to every score and selects again.

When one feature is zeroed in a public pair of Pythia-70M SAEs, the median error of the predicted coefficient change, relative to the true change, falls from 0.739 for the attribution graph to 0.121 for the margin graph.

Written back into the model, the margin graph's coefficients predict the change in the model's output on subject verb agreement less accurately than the attribution graph's.

Selecting again better predicts which features change, but on the task and pair we tested, not the model's output.

관련 뉴스