← Latest papers
🤖 machine learning

Beyond Hard Writes and Rigid Preservation: Soft Recursive Least-Squares for Lifelong LLM Editing

The paper introduces RLSEdit, a recursive least-squares framework for lifelong LLM editing that formulates updates as an online quadratic optimization with soft constraints to effectively balance the plasticity-stability dilemma, enabling stable sequential editing of up to 10,000 facts while preserving general capabilities.

Original authors: Xinyu Wang, Sicheng Lyu, Yu Gu, Jerry Huang, Peng Lu, Yufei Cui, Xiao-Wen Chang

Published 2026-05-12
📖 4 min read☕ Coffee break read

Original authors: Xinyu Wang, Sicheng Lyu, Yu Gu, Jerry Huang, Peng Lu, Yufei Cui, Xiao-Wen Chang

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you have a brilliant, well-read librarian (a Large Language Model) who has memorized a massive library of facts. One day, you realize a few books have outdated information. You need to update them without throwing the whole library out and rebuilding it from scratch—that would be too expensive and slow.

This is the problem of Model Editing: fixing specific facts in an AI without retraining the whole thing.

The Problem: The "Overwrite" vs. "Stiffness" Dilemma

The paper argues that current methods for updating these librarians are like using a sledgehammer or a rigid cage, and neither works well when you have to make thousands of updates over time.

  1. The "Hard Write" (The Sledgehammer): Some methods just smash the old fact and write the new one.
    • The Analogy: Imagine you are writing in a notebook. Every time you get a new fact, you scribble over the old one. If you do this 10,000 times, your notebook becomes a messy scribble. The new facts might accidentally erase old, unrelated facts you didn't mean to touch. The librarian starts forgetting things they knew perfectly well yesterday.
  2. The "Rigid Preservation" (The Stiff Cage): Other methods try to be very careful, only allowing changes in very specific, pre-approved directions.
    • The Analogy: Imagine the librarian is locked in a cage that only opens for specific updates. While this protects some things, the cage is too rigid. It might stop the librarian from learning new things naturally, or it might accidentally let "bad" changes slip through the gaps because the cage wasn't designed for every possible new fact.

The Solution: RLSEdit (The "Soft, Recursive" Approach)

The authors propose a new method called RLSEdit. Instead of a sledgehammer or a cage, they treat the editing process like balancing a scale or tuning a radio.

Here is how it works, using simple metaphors:

1. The "Soft" Constraint (The Elastic Band)

Instead of forcing the librarian to change exactly this way or not at all, RLSEdit uses "soft" rules.

  • The Analogy: Imagine the librarian is tied to their original self by a strong, stretchy elastic band. When you ask them to learn a new fact, they can stretch to reach it, but the band gently pulls them back so they don't wander too far from who they were originally. This prevents them from forgetting their core personality or general knowledge.

2. The "Anchor" (The North Star)

The method also uses a specific "Anchor" (a set of facts the librarian must definitely keep correct).

  • The Analogy: Imagine the librarian has a compass (the Anchor) that always points to "North" (the original, correct facts). Even as they stretch to learn new things, the compass ensures they don't get lost or spin in circles.

3. The "Recursive" Magic (The Magic Calculator)

The biggest innovation is how they do the math. Usually, if you update a model 10,000 times, the computer has to look back at all 10,000 previous updates to decide what to do next. This gets slower and slower, like a librarian trying to remember every single conversation they've ever had before answering a new question.

  • The Analogy: RLSEdit uses a "magic calculator" (based on something called the Woodbury identity). Instead of re-reading the whole history book every time, it only looks at the current update and a tiny summary of the past.
  • The Result: Whether you are making the 10th update or the 10,000th, it takes the same amount of time. It's like a librarian who can instantly update their knowledge base without getting slower as the library grows.

What Did They Find?

The researchers tested this on two popular AI models (Llama-3 and Qwen2.5) and made them learn 10,000 new facts in a row.

  • Success Rate: RLSEdit was much better at actually remembering the new facts it was taught compared to other methods.
  • No "Catastrophic Forgetting": While other methods started forgetting old facts or getting confused about basic logic (like math or coding) after a few thousand updates, RLSEdit stayed stable.
  • General Smarts: The librarian didn't lose their ability to write poetry, solve math problems, or understand code, even after 10,000 changes. Other methods made the librarian "dumber" in these general areas over time.

In a Nutshell

Think of RLSEdit as a smart, flexible memory system. It allows an AI to learn new things continuously without:

  1. Erasing its old memories (like a sledgehammer would).
  2. Getting stuck or rigid (like a cage would).
  3. Getting slower and slower as it learns more (like a human trying to remember every detail of their life).

It keeps the AI sharp, stable, and ready for the long haul of continuous learning.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →