paper-with-me

홈 › Papers

Locating and Editing Factual Associations in Mamba

2024-04-04 · Arnab Sen Sharma, David Atkinson, David Bau

We investigate the mechanisms of factual recall in the Mamba state space model. Our work is inspired by previous findings in autoregressive transformer language models suggesting that their knowledge recall is localized to particular modules at specific token locations; we therefore ask whether factual recall in Mamba can be similarly localized. To investigate this, we conduct four lines of experiments on Mamba. First, we apply causal tracing or interchange interventions to localize key components inside Mamba that are responsible for recalling facts, revealing that specific components within middle layers show strong causal effects at the last token of the subject, while the causal effect of intervening on later layers is most pronounced at the last token of the prompt, matching previous findings on autoregressive transformers. Second, we show that rank-one model editing methods can successfully insert facts at specific locations, again resembling findings on transformer LMs. Third, we examine the linearity of Mamba's representations of factual relations. Finally we adapt attention-knockout techniques to Mamba in order to dissect information flow during factual recall. We compare Mamba directly to a similar-sized autoregressive transformer LM and conclude that despite significant differences in architectural approach, when it comes to factual recall, the two architectures share many similarities.

📄 PDF Abstract BibTeX arXiv:2404.03646

Code (1)

arnab-api/romba 공식 구현 pytorch

Tasks

MambaModel Editing

Similar Papers 제목 키워드 기반

Locating and Editing Factual Associations in GPT

2022-02-10 · Kevin Meng, David Bau, Alex Andonian, Yonatan Belinkov

We analyze the storage and recall of factual associations in autoregressive transformer language models, finding evidence that these associations correspond to localized, directly-editable computations. We first develop …

counterfactualModel EditingRelation ExtractionSpecificity

Relation Also Knows: Rethinking the Recall and Editing of Factual Associations in Auto-Regressive Transformer Language Models

2024-08-27 · Xiyu Liu, Zhengxiao Liu, Naibin Gu, Zheng Lin 외

The storage and recall of factual associations in auto-regressive transformer language models (LMs) have drawn a great deal of attention, inspiring knowledge editing by directly modifying the located model weights. Most …

knowledge editingRelationSpecificity

Representation Shattering in Transformers: A Synthetic Study with Knowledge Editing

2024-10-22 · Kento Nishi, Maya Okawa, Rahul Ramesh, Mikail Khona 외

Knowledge Editing (KE) algorithms alter models' weights to perform targeted updates to incorrect, outdated, or otherwise unwanted factual associations. To better identify the possibilities and limitations of these approa…

knowledge editingMamba

ReFACT: Updating Text-to-Image Models by Editing the Text Encoder

2023-06-01 · Dana Arad, Hadas Orgad, Yonatan Belinkov

Our world is marked by unprecedented technological, global, and socio-political transformations, posing a significant challenge to text-to-image generative models. These models encode factual associations within their pa…

Image Generation

Density Field State Space Models: 1-Bit Distillation, Efficient Inference, and Knowledge Organization in Mamba-2

2026-04-28 · Chirag Shinde arxiv

We present Density Field State Space Models (DF-SSM), a framework for compressing SSMs to a 1-bit scaffold with int8 low-rank correction. Applied to Mamba-2 1.3B, we achieve a 278 MB model (9.7x smaller than the 2.7 GB F…

Intent Classification