Abstract
Non-compositional expressions (NCEs), such as idioms and metaphors, are a classic "pain in the neck" for NLP systems. Unlike general language modeling tasks that are primarily compositional, generating NCEs is more challenging due to their semantic opacity and limited data resources. To make the best use of available data, we propose a dynamic curriculum learning framework that learns training examples from easy to hard. To alleviate the forgetting problem inherent in this arrangement, we integrate a continual learning method (RE-GEM) into our framework. Experiments on idiomatic expression and metaphor generation affirm the effectiveness of our proposed method in gradually improving model performance.
Introduction: The Challenge of Semantic Opacity
In standard language modeling, we rely on the principle of compositionality: the idea that the meaning of a sentence is the sum of its parts. However, non-compositional expressions (NCEs) like "catch a cold" or "pierced the night" break this rule. For a machine, "kick the bucket" usually involves a foot and a pail, not a funeral.
Current state-of-the-art models struggle with NCEs for two main reasons. First, Semantic Opacity means the literal meanings of the constituent words are often misleading. Second, Data Scarcity makes it hard for models to learn nuances, as specific figurative expressions are individually rare in training corpora. The authors aim to bridge this gap by utilizing a structured learning process that mimics human education: starting with the basics and gradually increasing difficulty.
Methodology: Dynamic Curriculum and Continual Learning
The researchers proposed a two-part framework to optimize the training of a BART-base model, combining curriculum-based data ordering with memory-based retention.
1. Dynamic Curriculum Learning
Instead of showing the model random examples, the framework ranks training data by difficulty using two metrics:
- Representation Distance: The distance between the model's contextualized representation of an expression and the static embeddings of its constituent words. A large distance suggests the model has already learned the expression is non-compositional (making it "easy").
- Perplexity (PPL): A standard measure of how "surprised" the model is by a sequence.
This process is dynamic. After every epoch, the model re-evaluates the dataset. What was "hard" in epoch one might become "easy" in epoch two, and the training order is reshuffled accordingly.
2. RE-GEM (Continual Learning)
Curriculum learning creates a gradual shift in domain difficulty, which can trigger "catastrophic forgetting." By the time the model reaches complex examples, it may forget the simpler basics. To fix this, the authors adapted the Gradient Episodic Memory (GEM) algorithm into RE-GEM. This algorithm uses an episodic memory of past examples. When calculating a gradient for a new, hard example, RE-GEM checks for conflicts with the gradients of stored easy examples. If they clash, the algorithm projects the gradient to a direction that minimizes forgetting while still allowing the model to learn the new material.
Key Results
The framework was evaluated on two primary benchmarks: MAGPIE (idioms) and MERMAID (metaphors). The proposed method significantly outperformed vanilla fine-tuning and other curriculum learning baselines:
- Idioms (MAGPIE): The model achieved 28% Accuracy (a 3-point lead over vanilla) and a 64.36 BLEU score.
- Metaphors (MERMAID): The model outperformed the vanilla baseline by nearly 4 BLEU points.
- Human Evaluation: Native speakers rated the proposed model higher across Meaning, Fitness, Fluency, and Creativity. In idiom generation, the model scored 2.98/3.0 for meaning, compared to just 1.88 for the vanilla model.
Conclusion
By treating the progression from easy to hard examples as a series of tasks, this research highlights that curriculum learning inherently involves distribution shifts. The integration of RE-GEM ensures that as models master complex figurative language, they do not lose their foundational understanding of simpler expressions. This dual approach provides a robust path forward for teaching machines the nuances of non-compositional language.
Summary updated