Introduction
Controllable Text Generation (CTG) has traditionally focused on "what" is being said (semantics) or "how" it is structured (syntax). However, these methods often struggle with high-level narrative objectives like pacing. For instance, explaining a concept to a PhD student requires a high-speed, high-volume delivery, whereas a middle-schooler might benefit from a slower, more "circuitous" path to aid understanding.
CEV-LM (Controlled Edit Vector Language Model) bridges this gap by quantifying the "shape" of a narrative and providing a precise mechanism to manipulate it using a lightweight, semi-autoregressive framework.
Methodology: Prototype-then-Edit
The authors build upon the Prototype-then-Edit framework. Instead of generating text from scratch, the model takes a "prototype" sentence and applies an edit vector in a continuous latent space to transform it into a new sentence that meets specific criteria.
The core innovations include:
- Constrained Neighborhood Creation: During training, the model selects sentence pairs where the difference (Δ) in a target attribute matches a desired value.
- Controlled Edit Vector Perturbation: The model conditions an inverse neural editor on the target attribute change, allowing the latent edit vector to act as a precise steering mechanism.
Quantifying Narrative Shape
To enable numerical control, the authors define three geometric metrics by treating a sequence of words as a trajectory through a high-dimensional embedding space:
- Speed: How quickly content changes (distance between consecutive word embeddings).
- Volume: The total semantic space covered (the size of the minimum ellipsoid containing the embeddings).
- Circuitousness: How indirectly content is presented (the ratio of the actual path taken to the shortest possible path).
Key Results and Insights
CEV-LM was evaluated primarily on the Yelp Restaurant Reviews Corpus, as well as standard benchmarks for toxicity and formality.
- Precision of Control: CEV-LM achieved a percent error of only ~14.9% across target deltas for speed, volume, and circuitousness. In contrast, GPT-3 (Davinci) had an error rate of 90.4%, frequently failing to alter the attribute at all.
- Semantic Preservation: Despite significant structural changes, CEV-LM maintained a high BERTScore (~0.93), ensuring the generated text remained fluent and on-topic.
- Efficiency: A specialized model with roughly 76 million parameters provided significantly more precise control than general-purpose giants like GPT-3, demonstrating that targeted architecture can outperform sheer scale for specific stylistic tasks.
Limitations and Future Work
While effective, the current model requires separate training for different attributes. Future work aims to explore "weighted composition" to achieve arbitrary attribute combinations without retraining. Additionally, while the current metrics are mathematically defined, the authors plan to investigate how these proxies correlate with more subjective human experiences like readability and persuasiveness.
Summary updated