Abstract
Recent studies have demonstrated the potential to control paraphrase generation, such as through syntax, which has broad applications in various downstream tasks. However, these methods often require detailed parse trees or syntactic exemplars, countering human-like paraphrasing behavior in language use. Furthermore, an inference gap exists, as control specifications are only available during training but not during inference. In this work, we propose a new setup for controlled paraphrase generation. Specifically, we represent user intent as action tokens, embedding and concatenating them with text embeddings, thus flowing together into a self-attention encoder for representation fusion. To address the inference gap, we introduce an optional action token as a placeholder that encourages the model to determine the appropriate action independently when users' intended actions are not provided. Experimental results show that our method successfully enables precise action-controlled paraphrasing and preserves or even enhances performance compared to conventional uncontrolled methods when actions are not given. Our findings promote the concept of action-controlled paraphrasing for a more user-centered design.
Introduction
Paraphrase generation—the task of rewriting a sentence while preserving its semantic meaning—is a fundamental component of natural language processing, supporting applications from data augmentation to text simplification. However, "controlled" paraphrasing has traditionally been cumbersome. Existing methods often rely on complex syntax trees or specific exemplar sentences to guide the generation process, which deviates from natural human communication.
Moreover, these models frequently suffer from an inference gap. Because they are trained to depend on specific control signals (like a parse tree), their performance typically degrades significantly in real-world scenarios where such signals are unavailable. This research introduces a more intuitive, action-based framework to bridge this gap.
Methods
The proposed framework, Action Controlled Paraphrasing, replaces complex syntactic constraints with simple, token-level action signals:
- K (Keep): Retain the source token in the output.
- P (Paraphrase): Change or remove the source token.
- O (Optional): Allow the model to decide the best action autonomously.
Architecture and Training Strategy
To integrate these actions, the model uses Action Embeddings that are fused with standard word and positional embeddings before entering the Transformer encoder. This allows the model to process user intent and linguistic content simultaneously.
To eliminate the need for manual labeling, the authors automatically derive $K$ and $P$ labels by comparing source and target sentences in existing datasets. To solve the inference gap, they employ a specific training ratio: 20% of samples use true $K/P$ labels, 10% force a "copy" task (all $K$), and 70% use the $O$ (Optional) token. This multi-task approach ensures the model can follow explicit instructions when provided while remaining robust when they are absent.
Experimental Setup
The study utilized three primary benchmarks to evaluate performance:
- Quora Question Pair (QQP): A standard dataset for identifying duplicate questions.
- Quora2: A more rigorous split of the QQP data created by the authors to eliminate data leakage where source texts overlapped between training and test sets.
- Twitter URL: A real-world dataset of tweets sharing the same URLs, providing a noisier, more diverse test environment.
Key Results and Insights
The model was evaluated using iBLEU, a metric that balances semantic similarity to the reference and lexical diversity from the source.
- Superior Performance: On the Quora1 dataset, the action-enabled Transformer (TFM*) achieved an iBLEU of 18.49, outperforming the standard baseline (18.10).
- Precision Control: When provided with "Oracle" (perfect) action labels, the model's performance surged to 31.11 iBLEU, demonstrating its high sensitivity to user-defined constraints.
- The Power of "O": Surprisingly, training with the optional $O$ token actually improved the model's general paraphrasing ability compared to models with no action control at all.
Soft Constraints and Creativity
Interestingly, the model treats action tokens as "soft constraints." If a user mistakenly marks a critical entity for paraphrasing ($P$), the model often retains it to maintain sentence coherence. Furthermore, by explicitly training with $P$ actions, the model is discouraged from "lazy" copying, leading to more diverse and creative outputs.
Conclusion
While the action-controlled framework offers precise and intuitive control, it faces a limitation regarding Length Mismatch. Because the system relies on a token-to-token mapping, it may struggle with paraphrases that require significant structural expansion or contraction. Future work will explore more advanced embedding fusion techniques and search algorithms to further refine the "Optional" action mode for even greater flexibility.
Summary updated