Editing Large Language Models with Geometry-Aware Regularization
Bingqing Liu, Wei Liu, Jun Wang, Xiaobo sun, Yuhua Li, Ruixuan Li
NeurIPS page · Open on the map
Category: LLM Reasoning, Memory & RAG › LLM Knowledge Editing · Type: new method · Keywords: knowledge editing, geometry-aware regularization, low-rank plus diagonal model, core knowledge preservation, adaptive regularization
Summary
GEdit introduces a geometry-aware framework using low-rank plus diagonal regularization to protect core knowledge and adaptively adjust regularization strength for hard/easy edits, achieving superior editing success and knowledge preservation on large language models.
Explained to a 5-year-old
When we teach a big computer brain new facts, we also want it to keep the old facts it already knows. The computer brain stores its knowledge in a special space, and we can look at how the facts are arranged. Some facts are more important, like the color of the sky, and we want to protect them from being changed. Other facts are easier to change, like a new nickname, and we can adjust how much we change them. The new method helps the computer brain remember the important facts while still learning new ones, making it more reliable.
Explained to a 5-year-old, longer
Large language models are computer programs that can talk and write like humans. They learn a lot of facts while they are being trained, like "the sky is blue." Sometimes we need to change or add new facts, like "the new capital of a country." Changing them can accidentally erase the old facts we want to keep. The old ways of editing didn't look at how the facts are arranged in the computer's memory. This makes it hard to know which facts are most important and which changes are easy or hard. The new idea looks at the shape of the memory space, like a 3-D puzzle, to understand the facts better. It separates the most important facts into a special core area that is protected. For facts that are easy to change, it tightens the protection so they stay safe. For facts that are hard to change, it relaxes the protection so the edit can succeed. This way the model can learn new information without losing the old, important knowledge. The result is a more reliable computer brain that can be updated safely.
For a technical reader
The paper identifies that current knowledge editing techniques ignore the geometric structure of transformer hidden representations, which hampers both preservation of core knowledge and handling of edits of varying difficulty. They propose a low-rank plus diagonal factor model to capture the intrinsic low-rank nature of FFN activations, enabling a clear separation of core and peripheral knowledge subspaces. Two regularization mechanisms are introduced: a low-rank regularizer that shields the core subspace and an adaptive regularizer that scales its strength based on editability estimates. Experiments across GPT-2-XL, GPT-J, and LLaMA-3-8B in large-scale batch and sequential editing scenarios demonstrate consistent gains in edit success and knowledge retention over existing baselines. The framework provides a practical recipe for building more robust editing pipelines for large language models without requiring full model fine-tuning.
Problem
Existing knowledge editing methods for large language models do not consider the geometric structure of knowledge representations, making it difficult to preserve important pre-trained knowledge while editing and to handle edits of varying difficulty.
Method
The approach models transformer FFN hidden representations with a low-rank plus diagonal factor model, applies low-rank regularization to protect a core knowledge subspace, and uses adaptive regularization that adjusts strength based on edit difficulty to balance preservation and editability.
Results
The approach achieves consistently higher editing success and better knowledge preservation compared to state-of-the-art baselines across the evaluated models.
Contributions
It introduces a geometry-aware framework that leverages low-rank plus diagonal modeling to differentiate core knowledge and edit difficulty, and provides mechanisms for targeted protection and adaptive regularization to improve both edit success and knowledge retention.
Research questions this paper is counted under
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