GeoEdit: Geometric Knowledge Editing for Large Language Models

Yujie Feng, Liming Zhan, Zexin Lu, Yongxin Xu, Xu Chu +4 more
2/27/2025
cs.CL

No confident code implementation found for this paper. 2 possible matches can be shown below.

Abstract

Regular updates are essential for maintaining up-to-date knowledge in large language models (LLMs). Consequently, various model editing methods have been developed to update specific knowledge within LLMs. However, training-based approaches often struggle to effectively incorporate new knowledge while preserving unrelated general knowledge. To address this challenge, we propose a novel framework called Geometric Knowledge Editing (GeoEdit). GeoEdit utilizes the geometric relationships of parameter updates from fine-tuning to differentiate between neurons associated with new knowledge updates and those related to general knowledge perturbations. By employing a direction-aware knowledge identification method, we avoid updating neurons with directions approximately orthogonal to existing knowledge, thus preserving the model's generalization ability. For the remaining neurons, we integrate both old and new knowledge for aligned directions and apply a "forget-then-learn" editing strategy for opposite directions. Additionally, we introduce an importance-guided task vector fusion technique that filters out redundant information and provides adaptive neuron-level weighting, further enhancing model editing performance. Extensive experiments on two publicly available datasets demonstrate the superiority of GeoEdit over existing state-of-the-art methods.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 2 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{feng2025geoedit,
  title  = {GeoEdit: Geometric Knowledge Editing for Large Language Models},
  author = {Yujie Feng and Liming Zhan and Zexin Lu and Yongxin Xu and Xu Chu and Yasha Wang and Jiannong Cao and Philip S. Yu and Xiao-Ming Wu},
  year   = {2025},
  eprint = {2502.19953},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.19953v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.19953.svg)](https://codeofpaper.com/paper/2502.19953)

Discussion