Fantastic Expressions and Where to Find Them: Chinese Simile Generation with Multiple Constraints

Kexin Yang, Dayiheng Liu, Wenqiang Lei, Baosong Yang, Xiangpeng Wei, Zhengyuan Liu, Jun Xie

Introduction

Similes are fundamental rhetorical devices that enhance creative writing by drawing comparisons between disparate concepts. A complete simile typically comprises four components: the tenor (the subject), the vehicle (the object of comparison), the comparator (e.g., "like" or "as"), and the ground (the shared attribute). While large language models have made strides in text generation, traditional "context-free" simile generation often struggles with coherence and completeness.

This paper introduces Controllable Simile Generation (CSG), a task requiring models to generate similes that adhere to specific constraints such as context, tenor, and vehicle. To address this, the researchers present GraCe, a large-scale, fine-grained Chinese simile dataset, and Similor, a framework designed to produce figuratively rich and contextually appropriate expressions.

The Challenges of Automated Simile Generation

Previous approaches to simile generation primarily focused on style transfer or simple prefix completion. However, these methods frequently produce outputs that are either structurally incomplete or contextually mismatched. For instance, a model might fail to include a vehicle entirely or select a vehicle that contradicts the surrounding narrative (e.g., comparing "red maple leaves" to "green fans").

Examples of qualified vs. unqualified similes based on completeness and contextual matching.

Effective simile generation requires a model to understand the global context and the specific properties that justify a comparison.

The Similor Framework

To solve the CSG task, the authors developed Similor, which utilizes a pre-trained Chinese encoder-decoder architecture (e.g., ChineseBART). The framework is designed to handle various input constraints, including the tenor, vehicle, and surrounding context.

The Scorer Module: Finding the "Creative Leap"

A key innovation in Similor is the Scorer module, which identifies suitable vehicles when none are provided by the user. It follows a two-step logic to ensure comparisons are both meaningful and creative:

  1. Figurative Matching: The module queries the Cogbank dataset to find nouns that share cognitive properties with the tenor. For example, if "spring" and "painting" are both associated with the property "beautiful," "painting" becomes a candidate vehicle.
  2. Literal Distinction: To avoid mundane or literal comparisons (e.g., "the boy is like a child"), the module ranks candidates by their Euclidean distance in word embedding space. A greater distance indicates a more imaginative figurative leap.
The Similor architecture and the two-step Scorer module for vehicle selection.

The GraCe Dataset

A significant contribution of this work is the release of GraCe (Fine-Grained annotated Chinese Simile dataset). Derived from over 260,000 student compositions, GraCe contains 61.3k high-quality similes. Unlike existing datasets that only label basic components, GraCe provides annotations for eight distinct elements, including the explicit "ground" and the "context" (sentences immediately preceding and following the simile).

Human evaluation confirms the superior quality of GraCe, with a 98.9% "Is-Simile" accuracy rate, significantly higher than previous benchmarks like CMC (78.7%) and CS (29.3%).

Results and Insights

The researchers found that models fine-tuned on GraCe achieved substantially better performance than those trained on other datasets. Key results include:

  • Lower Perplexity: Similor achieved a perplexity of 10.9, compared to 30.9 for models trained on the CMC dataset.
  • High Constraint Adherence: The model demonstrated near-perfect accuracy in incorporating user-specified vehicles (99.0%) and comparators (99.9%).
  • Human Preference: In head-to-head trials, similes generated by Similor were rated higher in creativity and consistency than retrieval-based baselines.

The study also highlights the importance of the "ground." By explicitly annotating the shared properties between tenor and vehicle, GraCe enables models to learn the underlying logic of metaphors, leading to more human-like creative output.

Conclusion

The Similor framework and the GraCe dataset represent a significant step forward in controllable creative text generation. By balancing figurative relevance with literal distinctness and emphasizing contextual coherence, this work provides a robust foundation for AI-assisted creative writing. Future research will explore extending these controllable frameworks to other rhetorical devices such as hyperboles and puns.

Summary updated

BibTeX
@inproceedings{yang2023fantastic,
  author = {Kexin Yang and Dayiheng Liu and Wenqiang Lei and Baosong Yang and Xiangpeng Wei and Zhengyuan Liu and Jun Xie},
  title = {{Fantastic Expressions and Where to Find Them: Chinese Simile Generation with Multiple Constraints}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.acl-long.28},
}
Figure