Mitigating Idiom Inconsistency: A Multi-Semantic Contrastive Learning Method for Chinese Idiom Reading Comprehension

Mingmin Wu, Yuxue Hu, Yongcheng Zhang, Zhi Zeng, Guixin Su, Ying ShaAAAI 2024

Abstract

Chinese idioms pose a significant challenge for machine reading comprehension due to their metaphorical meanings often diverging from their literal counterparts, leading to metaphorical inconsistency. Furthermore, the same idiom can have different meanings in different contexts, resulting in contextual inconsistency. Although deep learning-based methods have achieved some success in idioms reading comprehension, existing approaches still struggle to accurately capture idiom representations due to metaphorical inconsistency and contextual inconsistency of idioms. To address these challenges, we propose a novel model, Multi-Semantic Contrastive Learning Method (MSCLM), which simultaneously addresses metaphorical inconsistency and contextual inconsistency of idioms. To mitigate metaphorical inconsistency, we propose a metaphor contrastive learning module based on the prompt method, bridging the semantic gap between literal and metaphorical meanings of idioms. To mitigate contextual inconsistency, we propose a multi-semantic cross-attention module to explore semantic features between different metaphors of the same idiom in various contexts. Our model has been compared with multiple current latest models (including GPT-3.5) on multiple Chinese idiom reading comprehension datasets, and the experimental results demonstrate that MSCLM outperforms state-of-the-art models.

Introduction

Chinese idioms (chengyu) are a cornerstone of the language, yet they present two major obstacles for natural language processing: metaphorical inconsistency and contextual inconsistency. Metaphorical inconsistency occurs when the literal meaning of an idiom's constituent characters differs significantly from its figurative meaning (e.g., "对牛弹琴" literally means "playing the piano to a cow" but metaphorically refers to "talking to unreasonable people"). Contextual inconsistency arises when a single idiom possesses multiple meanings that shift based on the surrounding text (e.g., "不翼而飞" can mean "suddenly disappeared" or "news spread quickly").

While large language models (LLMs) like GPT-3.5 have shown prowess in general tasks, they frequently struggle with these nuanced linguistic structures. Previous attempts to integrate idiom definitions as external knowledge often failed to capture how meanings adapt to specific scenarios. To address this, we present the Multi-Semantic Contrastive Learning Method (MSCLM).

Methodology: The MSCLM Framework

The MSCLM architecture is divided into two primary modules designed to handle the dual inconsistencies of idioms through contrastive learning and advanced attention mechanisms.

The architecture of MSCLM, featuring the Metaphor Contrastive Learning and Multi-Semantic Cross-Attention modules.

Metaphor Contrastive Learning Module

This module addresses metaphorical inconsistency by aligning the "Contextual Dynamic Representation" of an idiom (how it appears in a sentence) with its "Metaphorical Static Representation" (its dictionary definition). Using a prompt-based approach (e.g., "The definition of [idiom] is [definition]"), the model employs a SimCSE-style contrastive learning objective. This pulls the contextual representation closer to the metaphorical definition in the semantic space, effectively filtering out the "noise" of literal character meanings.

Multi-Semantic Cross-Attention Module

To resolve contextual inconsistency, this module utilizes a "double fusion" strategy combining 2D Convolutional Neural Networks (CNNs) and cross-attention. While CNNs capture local phrase structures, the cross-attention mechanism focuses on global context. Unlike traditional models that evaluate candidate idioms in isolation, MSCLM examines the entire set of candidates simultaneously to learn mutual semantic relationships, which is particularly effective for distinguishing between synonyms.

Experimental Evaluation

We evaluated MSCLM on several benchmarks:

  • ChID & ChID-Competition: Large-scale idiom cloze test datasets.
  • CCT: A challenging dataset with diverse idioms and a smaller training set.
  • CIDT (Chinese Idiom Definition Test): A new dataset introduced in this work, containing 3,600 samples requiring models to match definitions to correct idioms among synonyms.

Results and Discussion

MSCLM achieved state-of-the-art (SOTA) performance across all tested datasets. On the ChID test set, it reached 96.8% accuracy, surpassing previous benchmarks. Notably, on the ChID-Sim subset—where candidates are semantically similar—MSCLM achieved 98.8% accuracy.

On our new CIDT dataset, MSCLM's accuracy of 98.8% significantly outperformed BERT (24.7%) and GPT-3.5 (84.8%), demonstrating a superior understanding of metaphorical nuances.

t-SNE visualization showing the successful alignment of idiom representations with their corresponding definition representations after training.

Visualization using t-SNE plots confirms the efficacy of the contrastive learning module. As shown in the aligned representation space, the distance between an idiom's representation and its actual definition is significantly reduced, indicating that the model has successfully learned to map idioms into a robust metaphorical feature space.

Conclusion

MSCLM effectively addresses the core challenges of Chinese idiom comprehension by bridging the gap between literal and metaphorical meanings and accounting for contextual shifts. Future work will explore integrating these specialized modules with the broader reasoning capabilities of LLMs and extending the multi-semantic contrastive approach to other metaphor-heavy linguistic structures.

Summary updated

BibTeX
@inproceedings{wu2024mitigating,
  author = {Mingmin Wu and Yuxue Hu and Yongcheng Zhang and Zhi Zeng and Guixin Su and Ying Sha},
  title = {{Mitigating Idiom Inconsistency: A Multi-Semantic Contrastive Learning Method for Chinese Idiom Reading Comprehension}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  url = {https://openreview.net/forum?id=U5B3UJV15a},
}
Figure