Non-compositional Expression Generation and its Continual Learning

Jianing Zhou, Suma BhatACL 2024

Abstract

Idioms present a significant challenge for natural language processing due to their non-compositional nature, where the meaning of the whole cannot be derived from its parts. This paper introduces CLoNE (Continual Learning of Non-compositional Expressions), a benchmark designed to evaluate how Large Language Models (LLMs) learn and generate idioms in a streaming data environment. Our findings indicate that state-of-the-art models struggle with idiom generation and suffer from severe catastrophic forgetting when learning new expressions sequentially.

Introduction

In NLP, idioms are often described as a "pain in the neck." Because they are non-compositional—for instance, "kick the bucket" has no literal connection to kicking or buckets—models cannot rely on standard compositional strategies to build meaning. While previous research has largely focused on idiom detection, this work addresses the more complex task of generation within a Continual Learning (CL) framework. As language evolves with new slang and expressions, robust models must be capable of learning new idioms today without losing previously acquired knowledge.

The CLoNE Benchmark

The researchers formulated idiom generation as a mask infilling task. Given a context, the model must predict the correct idiomatic expression to fill a missing segment.

Overview of the CLoNE benchmark task and data stream configurations.

The benchmark utilizes three primary datasets: SemEval-2013 Task 5, Verb-Noun Compounds (VNC), and MAGPIE. To specifically study forgetting, the authors created VNC-CL and MAGPIE-CL, filtering for idioms that models are capable of learning in an offline setting. This ensures that performance drops in a CL setting are attributable to memory issues rather than inherent model limitations.

Baseline Performance of LLMs

The study evaluated several models, including BART, T5, T0, and flan-T5, alongside zero-shot testing with GPT-4. Even in the "Offline Training" upper-bound scenario—where all data is shuffled together—performance remained surprisingly low.

Performance of various LLMs on the CLoNE benchmark in an offline setting.

As shown in the results, the highest accuracy achieved on SemEval was 0.68, while performance on VNC and MAGPIE often fell below 0.50. Notably, GPT-4 performed poorly in zero-shot settings, frequently failing to produce the exact idiomatic match required by the task.

Continual Learning and Catastrophic Forgetting

The core of the investigation compared three training setups: Offline Training (the upper bound), Vanilla Continual Learning (sequential training without memory preservation), and specialized CL Algorithms like Experience Replay (ER) and Average Gradient Episodic Memory (AGEM).

In the vanilla CL setting, accuracy plummeted by 26-45% compared to offline training, illustrating the severity of catastrophic forgetting. While specialized algorithms like AGEM offered some improvement, they still exhibited high forgetting scores (up to 0.52), suggesting that current SOTA continual learning methods are not yet optimized for the idiosyncratic nature of idioms.

Analysis and Insights

Attention analysis revealed a "keyword trap": LLMs often over-focus on specific trigger words in the context rather than the global semantic meaning. For example, a model might see the word "struggle" and incorrectly force an idiom related to "getting stuck," ignoring the broader logic of the sentence.

Furthermore, the study found that models performed better on "No-boundary" data streams, where tasks transition gradually, compared to "Boundary" streams with strict separations. The gradual shift appears to act as a natural buffer against the shock of new information.

Conclusion

The CLoNE benchmark highlights a critical gap in the capabilities of current LLMs. Idioms, being independent and idiosyncratic units of language, serve as a rigorous stress test for memory-based learning. Future work should explore more sophisticated evaluation metrics beyond n-gram overlap and investigate curriculum-based learning approaches to better mimic the human acquisition of figurative language.

Summary updated

BibTeX
@inproceedings{zhou2024non,
  author = {Jianing Zhou and Suma Bhat},
  title = {{Non-compositional Expression Generation and its Continual Learning}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.findings-acl.166},
}
Figure