From Solving a Problem Boldly to Cutting the Gordian Knot: Idiomatic Text Generation

Jianing Zhou, Hongyu Gong, Suma BhatarXiv 2021

Abstract

Idiomatic expressions (IEs) are a cornerstone of natural language, yet they pose a significant challenge for generative models due to their non-compositional nature. This paper introduces the task of idiomatic sentence generation—automatically rewriting literal phrases into idiomatic ones. We propose a modular pipeline consisting of idiom retrieval, span extraction, and a "Guided COPYNET" architecture. Our approach outperforms standard end-to-end models, achieving high scores in both automatic metrics and human evaluations of fluency and content preservation.

Introduction

While large language models (LLMs) have become remarkably good at generating fluent English, they often struggle with Idiomatic Expressions (IEs). Idioms are "non-compositional," meaning their meaning cannot be inferred from the individual words (e.g., "kick the bucket" has nothing to do with kicking or buckets). The absence of idioms makes AI-generated text feel "robotic" or overly literal. Conversely, using them incorrectly can lead to semantic nonsense.

Prior research focused on identifying or translating idioms, but this paper tackles the generative gap: how can we take a plain, literal sentence and rewrite it to include a pragmatically appropriate idiom while keeping the rest of the context intact?

Methodology: The Modular Pipeline

The authors argue that a simple end-to-end model (like a standard Transformer) struggles to learn the complex mapping between literal and figurative meanings. Instead, they propose a three-stage pipeline inspired by psycholinguistic theories of the "mental lexicon."

The three-stage pipeline for idiomatic sentence generation, including retrieval, extraction, and generation.
  1. Idiom Retrieval: Using a RoBERTa-based classifier, the system searches a pre-built lexicon to find an idiom whose definition matches the literal meaning of the input sentence. Matching the literal sentence to the definition of the idiom rather than the idiom itself proves more effective, confirming that the literal sentence matches the meaning, not the words.
  2. Span Extraction: A RoBERTa model paired with a Conditional Random Field (CRF) identifies the specific "span" (the literal words) in the sentence that should be replaced by the idiom.
  3. Guided COPYNET: This is the core generative component. It is an encoder-decoder model (BiGRU) enhanced with a "copy mechanism." Unlike standard copy models, this version is explicitly guided by the span extractor. It uses "copy indicators" to know exactly which parts of the original sentence to keep (the context) and where to integrate the retrieved idiom, while "polishing" the final output for grammatical correctness.

Datasets

Because no benchmark existed for this task, the authors created two key resources:

  • ONLINE Dataset: A new, manually curated dataset of 5,537 parallel sentence pairs (literal vs. idiomatic) covering 876 distinct idioms. Each idiomatic sentence was rewritten by a native speaker into a literal version.
  • MAGPIE-sourced Dataset: To provide the scale needed for neural training, the authors filtered the existing MAGPIE corpus to extract 17,000 idiomatic sentences across 1,536 idioms.

Experimental Results

The proposed pipeline significantly outperformed state-of-the-art baselines across all metrics. As shown in the comparative results table, the Guided COPYNET achieved the highest performance in BLEU, ROUGE, and METEOR scores.

Performance comparison of the proposed Guided COPYNET against standard Seq2Seq and Transformer baselines.

In human evaluations, native speakers rated the model's outputs on a scale of 1–6. The Guided COPYNET scored 5.6 for content preservation and 5.1 for fluency, nearly matching human-level performance in preserving the original meaning while inserting the idiom naturally.

Analysis and Insights

  • The Modular Advantage: The pipeline approach provides better explainability. If the model fails, researchers can see if it picked the wrong idiom (retrieval error) or failed to find the right words to replace (extraction error).
  • Handling Syntactic Flexibility: Idioms range from "fixed" to "flexible" (e.g., "beef his image up"). The Guided COPYNET proved particularly effective at handling flexible idioms because it can modify the idiom's morphology to fit the sentence's grammar.

Conclusion and Future Work

The authors identify a few "Gordian knots" yet to be untied. The model sometimes picks idioms with slightly off-target meanings. Future work could explore more open-ended generation that doesn't require a fixed list of idioms and account for how "common" an idiom is in everyday speech to improve naturalness.

Summary updated

BibTeX
@misc{zhou2021from,
  author = {Jianing Zhou and Hongyu Gong and Suma Bhat},
  title = {{From Solving a Problem Boldly to Cutting the Gordian Knot: Idiomatic Text Generation}},
  year = {2021},
  eprint = {2104.06541},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2104.06541},
}
Figure