NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

DualCoTs: Dual Chain-of-Thoughts Prompting for Sentiment Lexicon Expansion of Idioms

Fuqiang Niu, Minghuan Tan, Bowen Zhang, Min Yang, Ruifeng XuarXiv 2024 · DOI

Abstract

Idioms present a significant challenge for sentiment analysis due to their non-compositional nature. This paper introduces DualCoTs, a novel prompting strategy that leverages both literal usage and etymological origins to improve Large Language Model (LLM) performance in idiom sentiment classification. We also present EMOIDIOME, a large-scale bilingual dataset for sentiment lexicon expansion. Our results show that DualCoTs significantly outperforms standard prompting methods, achieving high alignment with human judgment and demonstrating robustness across different languages and model architectures.

Introduction

Idioms like "spilling the beans" or the Chinese "奉为圭臬" (holding something up as a standard) are linguistic landmines for sentiment analysis. Their meanings are non-compositional—the emotional valence of the phrase cannot be derived simply by aggregating the sentiment of its individual words.

While sentiment lexicons are vital for AI applications, existing idiom lexicons are often small, static, and struggle to keep pace with the rapid emergence of new "cyberwords." Manual labeling is prohibitively expensive and slow. This research addresses the challenge of automated sentiment lexicon expansion, utilizing LLMs to accurately assign emotional labels to idioms at scale by "reading between the lines."

Methods: Dual Chain-of-Thoughts (DualCoTs)

The authors propose DualCoTs (Dual Chain-of-Thoughts), a prompting method inspired by psycholinguistic theories suggesting that idioms are represented in the human brain both as holistic "long words" and as compositional phrases.

DualCoTs employs two distinct reasoning chains to triangulate the correct sentiment:

  1. The Literal Chain: This prompts the LLM to treat the idiom as a standard phrase, generate example sentences, and extract sentiment from those contexts. This captures the surface-level functional usage.
  2. The Etymological Chain: This chain explicitly directs the LLM to explore the idiom's origin and historical context. By understanding the "story" behind a phrase, the model gains a deeper grasp of its inherent emotional weight.
The DualCoTs prompting strategy, illustrating the Literal and Etymological reasoning chains.

A final sentiment label is determined through a voting mechanism that synthesizes the results from both reasoning paths.

The EMOIDIOME Dataset

To benchmark this approach, the researchers constructed EMOIDIOME, a comprehensive bilingual (Chinese and English) dataset.

  • Scale and Scope: The dataset contains 7,828 idioms, integrating resources such as CHID and CALO for Chinese, and IDIOMENT and SLIDE for English.
  • Structure: It includes labeled sets for training and testing, alongside an "Unlabelled" split designed to evaluate the model's ability to generalize to new linguistic territory.
  • Contextual Depth: Unlike simple word lists, EMOIDIOME pairs idioms with multiple example sentences to provide rich usage context.

Key Results and Insights

The researchers evaluated DualCoTs across several prominent models, including ChatGPT (GPT-3.5), Llama 2-70b, and ChatGLM-6b.

Performance comparison of DualCoTs against baseline prompting methods across various LLMs.

Superior Performance

As shown in the experimental results, DualCoTs achieved an average accuracy of 62.2% across all models and datasets. This significantly outperforms "Direct Inquiry" (54.0%), where the model is simply asked for a sentiment label without a reasoning chain. The method also showed high human agreement (84-86%) when tested on newly-coined internet slang.

The Power of Origin

A key finding is that etymological context drastically improves performance. Even when LLMs occasionally "hallucinated" specific historical details, they typically captured the correct idiomatic essence. For sentiment analysis, the general "vibe" of the origin proved more critical than strict factual accuracy. This dual representation acts as a "check and balance," preventing models from being misled by the literal meanings of individual words.

Conclusion and Future Work

While DualCoTs represents a significant step forward, challenges remain. Factual consistency in the etymological chain is a concern for overall reliability. Furthermore, very recent "cyberwords" may lack established etymologies in the model's training data. Future research will focus on improving the factual grounding of reasoning chains and better handling "chameleon" idioms whose sentiment is highly dependent on specific contexts.

Summary updated

BibTeX
@misc{niu2024dualcots,
  author = {Fuqiang Niu and Minghuan Tan and Bowen Zhang and Min Yang and Ruifeng Xu},
  title = {{DualCoTs: Dual Chain-of-Thoughts Prompting for Sentiment Lexicon Expansion of Idioms}},
  year = {2024},
  eprint = {2409.17588},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.17588},
}
Figure