TL;DR
Researchers have introduced TOTAL RECALL (TR), a customized continual learning framework for neural semantic parsers. By integrating a diversity-aware memory sampling technique (DLFS) with a two-stage "Fast-Slow" training procedure (FSCL), the method achieves state-of-the-art performance in sequential task learning while operating 3–6 times faster than retraining from scratch.
The Challenge: Catastrophic Forgetting in Semantic Parsing
Semantic parsing involves translating natural language queries into machine-executable logical forms (LFs). As commercial AI assistants scale, they must learn new "skills" or tasks sequentially. The standard solution—retraining on all data from scratch—is computationally prohibitive at scale. Conversely, standard deep learning models suffer from catastrophic forgetting, where learning a new task causes an abrupt loss of performance on previously learned ones. General-purpose continual learning (CL) algorithms often fail here because they do not account for the unique structural properties of the code-like outputs generated by semantic parsers.
The TOTAL RECALL (TR) Framework
The authors propose TOTAL RECALL, which addresses forgetting through two primary innovations:
1. Diversified Logical Form Selection (DLFS)
Instead of random memory sampling, DLFS ensures the model retains a representative set of old examples. It clusters logical forms based on structural similarity (using the Smatch metric) to preserve a wide variety of templates. It then employs iterative optimization to balance specific "actions" (the building blocks of the code) within the memory, preventing bias toward common commands.
2. Fast-Slow Continual Learning (FSCL)
Inspired by cognitive neuroscience, FSCL uses a two-stage training process:
- Fast Stage: When a new task arrives, the model first updates only the embeddings for brand-new actions. This provides these components with a "warm start."
- Slow Stage: The model then updates all parameters using both new task data and memory replay from previous tasks, regulated by Elastic Weight Consolidation (EWC) to protect important weights.
Key Results
TOTAL RECALL was evaluated on the OVERNIGHT and NLMapV2 benchmarks. It consistently outperformed competitive baselines such as GEM, EMR, and ARPER by 4–9% in exact match accuracy.
Beyond accuracy, the method achieved a 3–6x speedup compared to the "Oracle" approach (retraining from scratch). In sequential testing, TR maintained a much flatter performance curve, demonstrating significantly higher stability on early tasks even after learning many subsequent ones.
Insights and Future Directions
- Model Capacity and Forgetting: Surprisingly, larger models like BERT were found to forget faster than simpler GloVe-based models, likely because their higher capacity makes them more prone to overwriting old knowledge.
- Action Anatomy: Forgetting is not uniform; while general syntax ("cross-task" actions) is often reinforced, unique predicates for new domains ("task-specific" actions) are the primary victims of forgetting.
- Scaling Challenges: While TR is the current state-of-the-art for this task, a ~3% gap remains between its performance and the "Oracle" retraining method. Future work will focus on closing this gap and testing the framework's behavior at the extreme scale of 10,000+ tasks.
Summary updated