atlas

Research map / Large language models / Retrieval and knowledge

SWEA: Updating Factual Knowledge in Large Language Models via Subject Word Embedding Altering

AAAI 2025 · Large language models › Retrieval and knowledge · approach: Knowledge editing in LLMs · 3 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes SWEA⊕OS, a detachable model-editing framework that matches subject token IDs and adds optimized, KED-suppressed editing embeddings to subject word embeddings, evaluated on CounterFact, zsRE and RippleEdits with GPT-J and Llama-2.

Problem

Local model editing methods that update FFN weights via least squares are computationally expensive, rely on unreliable vector-level matching to recognize edited knowledge, and disrupt the original parameter organization.

Approach

Instead of editing weights, it caches learnable editing embeddings keyed by subject token IDs (token-level matching) and adds them to subject word embeddings at input. Embeddings are obtained by optimizing learnable vectors, then suppressing subject-specific knowledge embedding dimensions (KEDs) identified via knowledge attribution.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use SWEA⊕OS instead of PMETGPT-J · CounterFact (10,000 edits)Score: 86.2 -> 91.2Helped
Use SWEA⊕OS instead of PMETLlama-2 · CounterFact (10,000 edits)Score: 83.2 -> 89.6Helped
Use SWEA⊕OS instead of MEMITGPT-J · zsRE (10,000 edits)Score: 50.2 -> 51.0Helped
Use SWEA⊕OS instead of PMETLlama-2 · zsRE (10,000 edits)Score: 23.9 -> 25.5Helped
Use SWEA⊕OS instead of ROMEGPT-J · RippleEdits RANDOMAvg. accuracy: 0.56 -> 0.64Helped
Use SWEA⊕OS instead of MEMITLlama-2 · RippleEdits POPULARAvg. accuracy: 0.47 -> 0.43Hurt
Use SWEA⊕OS instead of MEMITGPT-J · 10,000 edits from scratchExecution time: 28.46 -> 14.86Helped
Use SWEA⊕OS instead of MEMITLlama-2 · 10,000 edits from scratchExecution time: 33.31 -> 27.46Helped
Add the suppression step (ablation)SWEA⊕OS on GPT-J · RippleEdits RANDOMAvg. accuracy: 0.53 -> 0.64Helped
Add the suppression step (ablation)SWEA⊕OS on GPT-J · RippleEdits POPULARAvg. accuracy: 0.44 -> 0.54Helped
Add the suppression step (ablation)SWEA⊕OS on Llama-2 · RippleEdits RANDOMAvg. accuracy: 0.58 -> 0.60Helped
Add the suppression step (ablation)SWEA⊕OS on Llama-2 · RippleEdits POPULARAvg. accuracy: 0.42 -> 0.43Helped

Surprising findings

Limitations

Experimental setup

Datasets: CounterFact zsRE RippleEdits

Benchmarks: CounterFact zsRE RippleEdits

Metrics: Score Efficacy Generalization Specificity Fluency Consistency LG CI CII SA

Baselines: FT-W MEND MALMEN GRACE ROME MEMIT PMET

Builds on: MEMIT ROME PMET knowledge attribution (integrated gradients)

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy