CLCL: Non-compositional Expression Detection with Contrastive Learning and Curriculum Learning

Jianing Zhou, Ziheng Zeng, Suma BhatACL 2023

Introduction

Natural language is rich with non-compositional expressions, such as idioms ("kicking the bucket") and metaphors ("the city never sleeps"), where the meaning of the phrase is not a simple sum of its parts. Detecting these expressions is a significant challenge for NLP systems due to two primary hurdles: context-dependent ambiguity (e.g., "clean house" can be literal or figurative) and the scarcity of labeled data, particularly for "unseen" expressions not encountered during training.

To address these issues, the authors propose CLCL, a dual-strategy framework that combines Contrastive Learning and Curriculum Learning to improve the representation and detection of figurative language.

Methodology: The CLCL Framework

The CLCL framework employs two complementary strategies to enhance model performance in data-scarce and context-sensitive scenarios.

1. Contrastive Learning (CL)

To solve the representation problem, the model uses a contrastive objective. For a given sentence containing a target expression (the Anchor), the model identifies Positive Examples (sentences where the expression has the same sense) and Negative Examples (sentences where the expression has the opposite sense). The model is trained to "pull" the anchor closer to positive examples and "push" it away from negative ones in the embedding space. This forces the encoder to learn sense-specific representations rather than a generic average for the phrase.

2. Curriculum Learning (CL)

To handle data scarcity and improve generalization, the authors implement an "easy-to-hard" training strategy. The difficulty of an example is dynamically measured using the Contrastive Objective itself. If the model can easily separate literal and figurative embeddings for a specific case, it is considered "easy." The curriculum is updated after every epoch, progressively introducing more nuanced and difficult cases as the model matures.

The CLCL framework architecture, integrating Contrastive Learning and Curriculum Learning for non-compositional expression detection.

Experimental Setup

The framework was evaluated on six benchmarks across two tasks:

  • Idiom Usage Recognition: MAGPIE, SemEval5B, and VNC. Testing included both random splits and "type-based" splits, where idioms in the test set never appeared in training.
  • Metaphor Detection: VUA-18 and MOH-X.

Results and Discussion

CLCL consistently outperformed vanilla RoBERTa and previous state-of-the-art (SOTA) models like DISC and MelBERT.

Separability and Visualization

A key insight from the research is that vanilla models often cluster literal and figurative uses together, making classification difficult. As shown in the t-SNE visualizations below, the combination of contrastive and curriculum learning (cts and cl) successfully creates two distinct, non-overlapping clusters.

t-SNE visualization showing how CLCL (d) creates distinct clusters for metaphorical (red) and literal (blue) instances compared to vanilla fine-tuning (b).

Key Performance Gains

  • Unseen Idioms: On the SemEval5B type-based split, CLCL achieved an F1-fig score of 92.65, a massive leap from the previous SOTA of 58.82. This suggests the model develops a "meta-skill" for sense separation that generalizes to new expressions.
  • Metaphor Detection: On the MOH-X dataset, CLCL reached an F1 of 83.4, outperforming previous benchmarks.
  • Low-Resource Efficiency: The framework showed the highest gains on smaller datasets, proving its effectiveness when labeled data is limited.

Conclusion

CLCL demonstrates that the synergy between contrastive and curriculum learning is highly effective for non-compositional expression detection. By explicitly pushing literal and figurative representations apart and structuring the learning process from easy to hard, the model achieves superior generalization, particularly for unseen idioms. Future work may explore more granular scheduling and the extension of this framework to the interpretation and generation of figurative language.

Summary updated

BibTeX
@inproceedings{zhou2023clcl,
  author = {Jianing Zhou and Ziheng Zeng and Suma Bhat},
  title = {{CLCL: Non-compositional Expression Detection with Contrastive Learning and Curriculum Learning}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.acl-long.43},
}
Figure