Abstract
This paper introduces Writing Polishment with Simile (WPS), a novel natural language processing task aimed at enhancing plain text through the interpolation of creative similes. Unlike traditional text polishing that focuses on rephrasing, WPS requires identifying optimal insertion points and generating contextually coherent comparisons. To support this task, we present the Chinese Simile (CS) Dataset, a large-scale collection of 5.5 million similes. We propose a two-stage Locate&Gen framework that utilizes a BERT-based encoder for positioning and a Transformer-based decoder with an insertion bias for generation. Experimental results demonstrate that our model significantly outperforms retrieval-based baselines in both automatic metrics and human evaluation, achieving a positioning accuracy of 76.9%.
Introduction
While artificial intelligence has made significant strides in grammar correction and style transfer, most "text polishing" tasks remain limited to rephrasing existing sentences. This paper addresses a more creative challenge: interpolation. In human literature, a simile is not merely a decorative addition but a functional ingredient that makes prose more evocative.
The task of Writing Polishment with Simile (WPS) involves "vivifying" a plain sentence by inserting a creative comparison. This presents three primary hurdles:
- Locating: Identifying the precise position where a simile adds value without disrupting the narrative flow.
- Coherence: Ensuring the generated comparison is semantically and stylistically aligned with the surrounding context.
- Data Scarcity: The lack of large-scale datasets specifically designed for the interpolation of figurative language.
The Chinese Simile (CS) Dataset
To address the data scarcity issue, the authors introduced the Chinese Simile (CS) Dataset. This dataset is significantly larger and more complex than previous benchmarks, containing approximately 5.5 million similes extracted from 60GB of online fiction across various genres.
Analysis of the dataset reveals critical insights into human writing patterns. Notably, 82.3% of similes in the dataset appear in the middle of sentences, often involving complex structures like attributive clauses. This distribution validates the necessity of a dedicated "Locate" stage, as similes are rarely placed at the simple start or end of a sentence.
The Locate&Gen Framework
The proposed Locate&Gen framework treats simile interpolation as a two-step process.
Simile Positioning
The "Locate" stage employs a BERT-based encoder to process the input sequence. Every position between words is treated as a candidate for insertion. A pointer network, implemented as a softmax over the sequence axis, predicts the most likely insertion point ($i_{insert}$).
Simile Generation
The "Gen" stage utilizes a Transformer-based decoder. To ensure the generated simile is contextually grounded, the authors introduce an Insertion Bias. The hidden vector from the predicted insertion point in the encoder is projected into the decoder's embedding layer. This mechanism signals to the decoder exactly which part of the sentence it is intended to describe, maintaining high coherence.
Experimental Results
The Locate&Gen model was evaluated against several baselines, including traditional retrieval methods like BM25 and neural retrieval models like MatchBERT.
As detailed in the performance metrics, the Locate&Gen model achieved a positioning accuracy of 76.9%. In generation tasks, it significantly outperformed retrieval-based methods. For instance, the base model achieved a BLEU1 score of 38.96, nearly doubling the 20.00 score of the BM25 baseline. Further refinements using beam search (beam size 20) pushed the BLEU1 score to 41.28.
Human evaluations further supported these findings, with judges rating the model's outputs highly for fluency (0.95) and coherence (0.77). While human-written "Ground Truth" remains superior in creativity, the model demonstrates strong potential as a writing assistant.
Conclusion and Future Work
The WPS task represents a significant step toward more sophisticated AI writing tools. By framing simile generation as an interpolation problem and providing a massive, high-quality dataset, this work enables models to move beyond literal descriptions.
Future research will focus on improving the explainability of the model—specifically identifying the "tenor" or object being compared—and extending the framework to other figurative forms such as metaphors and irony. The ultimate goal is a comprehensive AI writing assistant capable of handling the full spectrum of creative figurative language.
Summary updated