Weight Averaging: A Simple Yet Effective Method to Overcome Catastrophic Forgetting in Automatic Speech Recognition
This paper proposes a simple yet effective weight averaging method, optionally enhanced with knowledge distillation, to overcome catastrophic forgetting in end-to-end automatic speech recognition by achieving high performance on both old and new tasks.
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
The Problem: The "One-Task" Brain
Imagine you hire a brilliant speech-recognition assistant (an AI) who is an expert at understanding American English. You are happy with it. Then, you decide you need it to understand Scottish accents. So, you train it on Scottish data.
The Catch: As soon as you teach it Scottish, it starts forgetting how to speak American English. This is called Catastrophic Forgetting. It's like a student who studies for a history exam so intensely that they completely forget everything they learned in math class the week before.
In the world of AI, this is a huge problem. If you want an AI to learn many languages or dialects over time, you usually have to save all the old data (like recording thousands of hours of old conversations) to re-teach it. This is expensive, slow, and sometimes impossible due to privacy rules.
The Solution: The "Blending" Trick
The authors of this paper propose a surprisingly simple solution called Weight Averaging.
Think of the AI's "brain" (its internal settings or "weights") as a recipe.
- The Old Recipe: You have a perfect recipe for American English (let's call it Recipe A).
- The New Training: You tweak Recipe A to learn Scottish, creating a new version, Recipe B.
- The Mistake: If you just use Recipe B, you lose the American flavor. If you just use Recipe A, you can't understand Scottish.
- The Fix: Instead of choosing one, you take a spoonful of Recipe A and a spoonful of Recipe B and mix them together to create Recipe C.
By mathematically averaging the "old" brain and the "newly trained" brain, the AI keeps the knowledge of the old task while still being good at the new one.
How They Tested It
The researchers tested this idea in two scenarios:
- The Dialect Test (Monolingual): They taught the AI six different English dialects (US, England, Australia, India, Scotland, Ireland) one by one.
- Result: The "Blending" method worked incredibly well. It remembered the first dialect almost perfectly while learning the sixth, beating all other methods that tried to save old data in a memory bank.
- The Language Test (Multilingual): They taught it English, then Dutch, Swedish, Polish, and Russian. These are much more different from each other than dialects are.
- Result: Forgetting is usually worse here. However, the "Blending" method still crushed the competition. It learned the new languages without wiping out the old ones, even though it didn't store a single extra sentence of data.
Two Ways to Mix the Soup
The paper suggests two ways to do this averaging:
- The 50/50 Mix: Just take equal parts of the old and new model. This works well, but sometimes the AI forgets a tiny bit of the very first task.
- The "Equal History" Mix: This is the winner. Imagine you have learned 5 tasks. Instead of just mixing the current one with the very first one, you mix the current model with all the versions of the model you've created so far. This ensures that the first task gets just as much attention as the last one.
The "Teacher" Bonus (Knowledge Distillation)
Sometimes, just mixing the recipes isn't enough, especially when the new task is very different (like switching from English to Russian).
- The authors added a "Teacher" step. Before mixing the recipes, they let the "Old AI" (the Teacher) watch the "New AI" learn.
- The Teacher says, "Hey, when you hear this sound, remember that it used to mean X, not Y."
- This helps the new model hold onto old knowledge better during the learning process. The paper calls this LWFA (Learning Without Forgetting + Averaging). It proved especially helpful when learning very different languages.
The Big Takeaway
Usually, to stop an AI from forgetting, you need a massive "memory bank" of old data to rehearse with. This paper shows that you don't need that memory bank at all.
By simply taking the average of the AI's brain before and after learning a new task, you can keep the old skills alive while mastering the new ones. It's simple, requires no extra storage space, and works better than complex methods that try to save data.
In short: Don't throw away the old recipe when you learn a new one. Just mix them together, and you get the best of both worlds.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.