Style Locality for Controllable Generation with kNN Language Models
Nawezi, Gilles, Flek, Lucie, Welch, Charles
–arXiv.org Artificial Intelligence
Recent language models have been improved by the addition of external memory. Nearest neighbor language models retrieve similar contexts to assist in word prediction. The addition of locality levels allows a model to learn how to weight neighbors based on their relative location to the current text in source documents, and have been shown to further improve model performance. Nearest neighbor models have been explored for controllable generation but have not examined the use of locality levels. We present a novel approach for this purpose and evaluate it using automatic and human evaluation on politeness, formality, supportiveness, and toxicity textual data. We find that our model is successfully able to control style and provides a better fluency-style trade-off than previous work.
arXiv.org Artificial Intelligence
Nov-1-2023
- Country:
- North America
- United States
- New York > New York County
- New York City (0.04)
- Louisiana > Orleans Parish
- New Orleans (0.04)
- New York > New York County
- Puerto Rico > San Juan
- San Juan (0.04)
- Canada
- Quebec > Montreal (0.05)
- British Columbia > Metro Vancouver Regional District
- Vancouver (0.04)
- United States
- Europe
- France (0.04)
- Spain > Catalonia
- Barcelona Province > Barcelona (0.04)
- Bulgaria > Sofia City Province
- Sofia (0.04)
- Asia
- China > Hong Kong (0.04)
- Middle East > UAE
- Abu Dhabi Emirate > Abu Dhabi (0.04)
- Africa > Ethiopia
- Addis Ababa > Addis Ababa (0.04)
- North America
- Genre:
- Research Report (0.84)
- Technology: