Golden Layers and Where to Find Them: Improved Knowledge Editing for Large Language Models Via Layer Gradient Analysis
Shrestha Datta, Hongfu Liu, Anshuman Chhabra
NeurIPS page · Open on the map
Category: LLM Reasoning, Memory & RAG › LLM Knowledge Editing · Type: new method · Keywords: knowledge editing, golden layers, layer gradient analysis, LLM model editing, gradient attribution, proxy dataset
Areas: LLM Reasoning › Efficient Reasoning › Memory and Forgetting
Summary
The paper introduces Layer Gradient Analysis (LGA) to identify fixed golden layers that achieve near-optimal knowledge editing performance across LLMs.
Explained to a 5-year-old
We want to teach a big computer brain new facts without breaking what it already knows. To do this, we need to change the right part of the brain. The paper finds that some brain layers work well for many facts, like special golden layers. It uses a simple trick with gradients to find these layers without trying many possibilities. This makes updating the brain faster and more reliable.
Explained to a 5-year-old, longer
A large language model is like a computer that knows a lot of information. Sometimes we need to update a single fact without messing up everything else. The paper looks at how the model stores information in different layers. It discovers that some layers are especially good at holding many facts, calling them golden layers. By using a simple method that looks at how changes affect the model, we can find these good layers quickly. This avoids having to test many layers for each new fact. The approach works on different kinds of language models and different ways of editing knowledge. It also works on new facts that the model hasn't seen before. This makes the editing process more reliable and less time-consuming. Overall, the method helps keep the model accurate while updating it efficiently.
For a technical reader
The paper addresses the challenge of editing factual knowledge in large language models while preserving other behavior. It observes that knowledge is distributed across model layers and that a subset of layers (golden layers) can achieve near-optimal editing for many queries. To find these layers, the authors propose Layer Gradient Analysis (LGA), which uses gradient attribution on a proxy dataset to identify robust editing layers. LGA avoids the costly trial-and-error of testing many layers per query and generalizes to unseen queries. Experiments across multiple models and editing methods confirm that LGA yields consistent performance comparable to per-query optimal layer selection.
Problem
Knowledge editing in LLMs requires selecting a layer to edit for each query, but finding the optimal layer per query is costly and sample-dependent. The problem is to identify a single layer that works well for many queries without per-query optimization.
Method
The approach estimates optimal editing layers by analyzing gradient attributions across a proxy dataset, identifying layers that consistently yield high editing performance. It then uses these identified layers as golden layers for new queries, avoiding repeated editing runs.
Results
Experiments show that the identified golden layers achieve performance comparable to per-query optimal layers across multiple LLMs and editing methods.
Contributions
The paper hypothesizes and empirically validates the existence of fixed golden layers for knowledge editing, proposes a gradient-based method to identify them, and shows they generalize to unseen queries across datasets.
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction