Reproduce “Massive Editing for Large Language Models via Meta Learning” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Chenmien Tan, Ge Zhang, Jie Fu

MALMEN (MAssive Language Model Editing Network) introduces a meta-learning approach for large language models, demonstrating the ability to synchronously edit thousands of factual statements. It achieves this by employing a regularized least squares method to optimally aggregate parameter shifts and a memory-economic training strategy, enabling efficient and effective knowledge updates on a single GPU across various LLM architectures.

Key insights

  • Aggregating parameter shifts via a regularized least squares formulation, as opposed to simple summation, is critical for effectively combining updates from numerous simultaneous edits and significantly reducing contradictory impacts.
  • Decoupling the back-propagation process between the hyper-network and the language model during training is key to enabling memory-efficient massive editing, allowing operations on thousands of facts with limited hardware.
  • Selecting the second linear layer in the FFN for editing consistently yields superior performance compared to editing the first linear layer, highlighting the importance of target layer choice.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.