English

On-the-Fly Attention Modulation for Neural Generation

Computation and Language 2021-10-15 v2

Abstract

Despite considerable advancements with deep neural language models (LMs), neural text generation still suffers from degeneration: the generated text is repetitive, generic, self-contradictory, and often lacks commonsense. Our analyses on sentence-level attention patterns in LMs reveal that neural degeneration may be associated with insufficient learning of task-specific characteristics by the attention mechanism. This finding motivates on-the-fly attention modulation -- a simple but effective method that enables the injection of priors into attention computation during inference. Automatic and human evaluation results on three text generation benchmarks demonstrate that attention modulation helps LMs generate text with enhanced fluency, creativity, and commonsense reasoning, in addition to significantly reduce sentence-level repetition.

Keywords

Cite

@article{arxiv.2101.00371,
  title  = {On-the-Fly Attention Modulation for Neural Generation},
  author = {Yue Dong and Chandra Bhagavatula and Ximing Lu and Jena D. Hwang and Antoine Bosselut and Jackie Chi Kit Cheung and Yejin Choi},
  journal= {arXiv preprint arXiv:2101.00371},
  year   = {2021}
}

Comments

10 pages, 3 figures

R2 v1 2026-06-23T21:41:52.660Z