Abstract
Paraphrase generation requires a delicate balance between maintaining semantic equivalence and achieving stylistic diversity. Traditional methods often struggle with "lazy" paraphrasing or semantic drift. This paper introduces VQPrompt, a novel framework that leverages discrete prompt learning to guide a frozen pre-trained language model. By utilizing a vector-quantized (VQ) codebook to represent abstract transformation rules, VQPrompt effectively constrains the generation process to produce high-quality, diverse paraphrases. Experimental results across multiple benchmarks, including QQP and MSCOCO, demonstrate that VQPrompt achieves state-of-the-art performance while providing improved interpretability through its discrete latent space.
Introduction
Paraphrase generation—the task of rewriting a sentence to convey the same meaning using different wording—is a fundamental challenge in natural language processing. The primary difficulty lies in the "holy grail" of the field: achieving high expression diversity without sacrificing semantic preservation.
Existing neural models frequently fall into two traps. Some models are overly conservative, making minor lexical swaps (synonym replacement) that fail to change the sentence structure. Others, in an attempt to be creative, lose the original meaning entirely. Furthermore, while Large Language Models (LLMs) have shown immense potential, fine-tuning them for specific structural transformations is computationally expensive and often leads to models that simply mimic the input style. VQPrompt addresses these issues by using a discrete bottleneck to learn and apply abstract transformation rules.
Methodology
The VQPrompt Framework
VQPrompt consists of two primary components: a Prompt Encoder and a Generative Language Model (specifically, a frozen Flan-T5). Instead of using continuous vectors, which can represent an infinite and often noisy space of transformations, the model employs Vector Quantization (VQ).
- Discrete Prompt Learning: The model maintains a "codebook" of discrete vectors. The Prompt Encoder analyzes an input sentence and selects the most appropriate "codes" from this book to serve as a prompt for the frozen LM.
- Abstract Transformation Rules: The core hypothesis is that there are a finite number of ways to transform a sentence (e.g., converting a "What is the reason..." structure into a "Why does..." structure). The discrete codebook is designed to capture these abstract rules rather than specific lexical content.
- The Information Bottleneck: By forcing the prompt through a discrete codebook, the authors create a bottleneck. This prevents the model from passing every detail of the input through the prompt; instead, it must extract only the necessary style or transformation rule, leaving the frozen LM to handle the actual linguistic realization.
Overcoming Index Collapse
A common failure mode in VQ models is "index collapse," where the model utilizes only a small fraction of the available codebook, rendering the rest of the vectors useless. To mitigate this, the authors implemented a two-stage training strategy:
- Warm-up Phase: The model is initially trained using continuous prompts to establish a baseline for the latent space.
- K-means Update Strategy: The authors periodically identify "dead" codes and reset them to the centers of active clusters. This ensures the entire codebook is utilized and the model explores a wider variety of transformation rules.
Experimental Setup
Datasets
The performance of VQPrompt was evaluated on three widely recognized benchmarks:
- Quora Question Pairs (QQP): A dataset of community-labeled duplicate questions.
- Paralex (WikiAnswers): A large-scale, noisy dataset of questions scraped from the web.
- MSCOCO: An image captioning dataset where multiple captions for the same image serve as natural paraphrases.
Metrics
The primary metric used was iBLEU, which penalizes models for simply copying the input sentence, thereby providing a better measure of true paraphrasing ability than standard BLEU scores.
Results and Analysis
Quantitative Performance
VQPrompt outperformed previous state-of-the-art (SOTA) models, including HRQ-VAE, across all tested datasets. On the Quora benchmark, VQPrompt achieved an iBLEU score of 20.01, compared to the previous SOTA of 18.42. On Paralex, it reached 25.67.
Human Evaluation
In blind tests, human annotators rated VQPrompt higher than its competitors in both semantic relevance and fluency. This confirms that the model's improvements in automated metrics translate to more natural and accurate language generation.
Interpretability and Ablation
Visualizing the learned prompts using t-SNE revealed that sentences with similar syntactic structures naturally clustered together in the latent space. This suggests that the model successfully learned to categorize different "ways of speaking." Additionally, ablation studies confirmed that the K-means update strategy was vital; without it, performance dropped significantly as the model succumbed to index collapse.
Conclusion and Future Work
VQPrompt represents a significant step forward in controlled paraphrase generation. By combining the power of frozen LLMs with the structural constraints of vector quantization, it achieves a superior balance of diversity and accuracy.
However, limitations remain. The reliance on a large pre-trained model like Flan-T5 results in higher computational costs compared to smaller, specialized architectures. Furthermore, while the K-means strategy is empirically successful, the underlying mathematical theory regarding its effectiveness in text generation warrants further investigation. Future work will focus on expanding the diversity of learned transformation rules and reducing the memory footprint of the framework.
Summary updated