Evade the Trap of Mediocrity: Promoting Diversity and Novelty in Text Generation via Concentrating Attention

Auteurs : Wenhao Li, Xiaoyuan Yi, Jinyi Hu, Maosong Sun, Xing Xie

Soumis à arXiv le 14 Nov. 2022
Licence : CC BY 4.0
Résumé scientifique

Recently, powerful Transformer architectures have proven superior in generating high-quality sentences. Nevertheless, these models tend to produce dull high-frequency phrases, severely hurting the diversity and novelty of generated text. In this work, we dig into the intrinsic mechanism of this problem and found that sparser attention values in Transformer could improve diversity. To understand such a phenomenon, we first conduct both empirical and theoretical analysis and then attribute it to representation degeneration caused by the attentive mixture of the hidden states during training. We term this process the Trap of Mediocrity. To escape from such a trap, we introduce a novel attention regularization loss to control the sharpness of the attention distribution, which is transparent to model structures and can be easily implemented within 20 lines of python code. We prove that this method could be mathematically regarded as learning a Bayesian approximation of posterior attention. Experiments show that our method improved the diversity and novelty of the generated text while maintaining comparable quality on a variety of conditional and unconditional generation tasks.

Les articles autour de lui, par date et par proximité

Plus haut, c’est plus proche de cet article ; à gauche, c’est plus ancien. Les traits relient les articles proches entre eux : les groupes de traits sont des sous-thèmes. Sélectionnez un point pour voir pourquoi il est là. Retour au résumé de cet article

Comment lire cette carte ? Guide illustré

Les articles les plus proches Les travaux antérieurs sur lesquels il s’appuie Les articles qui le citent

Les articles autour de celui-ci

Classés selon la proximité de leur titre et de leur résumé avec ceux de cet article. Sélectionnez-en pour les lire ensemble.

Les articles les plus proches

  1. Proche
    DiffSampling: Enhancing Diversity and Accuracy in Neural Text Generation
    Giorgio Franceschelli, Mirco Musolesi · 2025 · Trans. Mach. Learn. Res. · cité 6 fois · Pas encore résumé
    Résumé scientifique

    Despite their growing capabilities, language models still frequently reproduce content from their training data, generate repetitive text, and favor common grammatical patterns and vocabulary. A possible cause is the decoding strategy: the most common strategies either consider only the most probable tokens, which reduces output diversity, or increase the likelihood of unlikely tokens, compromising output accuracy and correctness. In this paper, we propose DiffSampling, a new decoding method that leverages a mathematical analysis of the token probability distribution to ensure the generation of contextually appropriate text. In particular, the difference between consecutive, sorted probabili…

  2. Proche
    Diversity-Promoting GAN: A Cross-Entropy Based Generative Adversarial Network for Diversified Text Generation
    Jing-Jing Xu, Xuancheng Ren, Jun-Yang Lin et al. · 2018 · Conference on Empirical Methods in Natural Language Processing · cité 154 fois · Pas encore résumé
    Résumé scientifique

    Existing text generation methods tend to produce repeated and ”boring” expressions. To tackle this problem, we propose a new text generation model, called Diversity-Promoting Generative Adversarial Network (DP-GAN). The proposed model assigns low reward for repeatedly generated text and high reward for ”novel” and fluent text, encouraging the generator to produce diverse and informative text. Moreover, we propose a novel language-model based discriminator, which can better distinguish novel text from repeated text without the saturation problem compared with existing classifier-based discriminators. The experimental results on review generation and dialogue generation tasks demonstrate that …

  3. Proche Cité par cet article Utilisé en profondeur par cet article Une méthode qu’il utilise
    On-the-Fly Attention Modulation for Neural Generation
    Yue Dong, Chandra Bhagavatula, Ximing Lu et al. · 2021 · Findings · cité 17 fois · Pas encore résumé
    Résumé scientifique

    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 …

  4. Proche Cité par cet article
    TILGAN: Transformer-based Implicit Latent GAN for Diverse and Coherent Text Generation
    Shizhe Diao, Xinwei Shen, Kashun Shum et al. · 2021 · Findings · cité 29 fois · Pas encore résumé
    Résumé scientifique

    Conventional autoregressive models have achieved great success in text generation but suffer from the exposure bias problem in that token sequences in the training and in the generation stages are mismatched. While generative adversarial networks (GANs) can remedy this problem, existing implementations of GANs directly on discrete outputs tend to be unstable and lack diversity. In this work, we propose TILGAN , a T ransformer-based I mplicit L atent GAN , which combines a Transformer autoencoder and GAN in the latent space with a novel design and distribution matching based on the Kullback-Leibler (KL) divergence. Specifically, to improve local and global coherence, we explicitly introduce a …

  5. Proche Cité par cet article
    Generating Diverse Translation by Manipulating Multi-Head Attention
    Zewei Sun, Shujian Huang, Hao-Ran Wei et al. · 2019 · AAAI Conference on Artificial Intelligence · cité 37 fois · Pas encore résumé
    Résumé scientifique

    Transformer model (Vaswani et al. 2017) has been widely used in machine translation tasks and obtained state-of-the-art results. In this paper, we report an interesting phenomenon in its encoder-decoder multi-head attention: different attention heads of the final decoder layer align to different word translation candidates. We empirically verify this discovery and propose a method to generate diverse translations by manipulating heads. Furthermore, we make use of these diverse translations with the back-translation technique for better data augmentation. Experiment results show that our method generates diverse translations without a severe drop in translation quality. Experiments also show …

  6. Proche
    Diversity regularized autoencoders for text generation
    Hye-Jung Ko, Junhyuk Lee, Jinhong Kim et al. · 2020 · ACM Symposium on Applied Computing · cité 2 fois · Pas encore résumé
    Résumé scientifique

    In this paper, we propose a simple yet powerful text generation model, called diversity regularized autoencoders (DRAE). The key novelty of the proposed model lies in its ability to handle various sentence modifications such as insertions, deletions, substitutions, and maskings, and to take them as input. Because the noise-injection strategy enables an encoder to make the latent distribution smooth and continuous, the proposed model can generate more diverse and coherent sentences. Also, we adopt the Wasserstein generative adversarial networks with a gradient penalty to achieve stable adversarial training of the prior distribution. We evaluate the proposed model using quantitative, qualitati…

  7. Proche
    Breaking the Attention Bottleneck
    Kalle Hilsenbek · 2024 · arXiv.org · preprint, non relu par les pairs · cité 2 fois · Pas encore résumé
    Résumé scientifique

    Attention-based transformers have become the standard architecture in many deep learning fields, primarily due to their ability to model long-range dependencies and handle variable-length input sequences. However, the attention mechanism with its quadratic complexity is a significant bottleneck in the transformer architecture. This algorithm is only uni-directional in the decoder and converges to a static pattern in over-parametrized decoder-only models. I address this issue by developing a generative function as attention or activation replacement. It still has the auto-regressive character by comparing each token with the previous one. In my test setting with nanoGPT this yields a smaller …

  8. Proche
    Attention with Markov: A Framework for Principled Analysis of Transformers via Markov Chains
    Ashok Vardhan Makkuva, Marco Bondaschi, Adway Girish et al. · 2024 · Machine Learning · preprint, non relu par les pairs · cité 46 fois · Résumé IA disponible
    Résumé scientifique

    In recent years, attention-based transformers have achieved tremendous success across a variety of disciplines including natural languages. A key ingredient behind their success is the generative pretraining procedure, during which these models are trained on a large text corpus in an auto-regressive manner. To shed light on this phenomenon, we propose a new framework that allows both theory and systematic experiments to study the sequential modeling capabilities of transformers through the lens of Markov chains. Inspired by the Markovianity of natural languages, we model the data as a Markovian source and utilize this framework to systematically study the interplay between the data-distribu…

Les travaux antérieurs sur lesquels il s’appuie

  1. Proche Utilisé en profondeur par cet article Une méthode qu’il utilise
    The Curious Case of Neural Text Degeneration
    Ari Holtzman, Jan Buys, Li Du et al. · 2019 · International Conference on Learning Representations · cité 4 752 fois · Pas encore résumé
    Résumé scientifique

    Despite considerable advancements with deep neural language models, the enigma of neural text degeneration persists when these models are tested as text generators. The counter-intuitive empirical observation is that even though the use of likelihood as training objective leads to high quality models for a broad range of language understanding tasks, using likelihood as a decoding objective leads to text that is bland and strangely repetitive. In this paper, we reveal surprising distributional differences between human text and machine text. In addition, we find that decoding strategies alone can dramatically effect the quality of machine text, even when generated from exactly the same neura…

  2. Proche Utilisé en profondeur par cet article Une méthode qu’il utilise
    A Simple, Fast Diverse Decoding Algorithm for Neural Generation
    Jiwei Li, Will Monroe, Dan Jurafsky · 2016 · arXiv.org · preprint, non relu par les pairs · cité 261 fois · Pas encore résumé
    Résumé scientifique

    In this paper, we propose a simple, fast decoding algorithm that fosters diversity in neural generation. The algorithm modifies the standard beam search algorithm by adding an inter-sibling ranking penalty, favoring choosing hypotheses from diverse parents. We evaluate the proposed model on the tasks of dialogue response generation, abstractive summarization and machine translation. We find that diverse decoding helps across all tasks, especially those for which reranking is needed. We further propose a variation that is capable of automatically adjusting its diversity decoding rates for different inputs using reinforcement learning (RL). We observe a further performance boost from this RL t…

  3. Apparenté Utilisé en profondeur par cet article Une méthode qu’il utilise
    Generating Long Sequences with Sparse Transformers
    Rewon Child, Scott Gray, Alec Radford et al. · 2019 · Machine Learning · preprint, non relu par les pairs · cité 2 780 fois · Résumé IA disponible
    Résumé scientifique

    Transformers are powerful sequence models, but require time and memory that grows quadratically with the sequence length. In this paper we introduce sparse factorizations of the attention matrix which reduce this to $O(n \sqrt{n})$. We also introduce a) a variation on architecture and initialization to train deeper networks, b) the recomputation of attention matrices to save memory, and c) fast attention kernels for training. We call networks with these changes Sparse Transformers, and show they can model sequences tens of thousands of timesteps long using hundreds of layers. We use the same architecture to model images, audio, and text from raw bytes, setting a new state of the art for dens…

  4. Apparenté Utilisé en profondeur par cet article Une méthode qu’il utilise
    Representation Degeneration Problem in Training Natural Language Generation Models
    Jun Gao, Di He, Xu Tan et al. · 2019 · International Conference on Learning Representations · cité 438 fois · Pas encore résumé
    Résumé scientifique

    We study an interesting problem in training neural network-based models for natural language generation tasks, which we call the \emph{representation degeneration problem}. We observe that when training a model for natural language generation tasks through likelihood maximization with the weight tying trick, especially with big training datasets, most of the learnt word embeddings tend to degenerate and be distributed into a narrow cone, which largely limits the representation power of word embeddings. We analyze the conditions and causes of this problem and propose a novel regularization method to address it. Experiments on language modeling and machine translation show that our method can …

  5. Apparenté Utilisé en profondeur par cet article Une méthode qu’il utilise
    On the Relation between Quality-Diversity Evaluation and Distribution-Fitting Goal in Text Generation
    Jianing Li, Yan-Yan Lan, Jia-Feng Guo et al. · 2020 · International Conference on Machine Learning · cité 8 fois · Pas encore résumé
    Résumé scientifique

    The goal of text generation models is to fit the underlying real probability distribution of text. For performance evaluation, quality and diversity metrics are usually applied. However, it is still not clear to what extend can the quality-diversity evaluation reflect the distribution-fitting goal. In this paper, we try to reveal such relation in a theoretical approach. We prove that under certain conditions, a linear combination of quality and diversity constitutes a divergence metric between the generated distribution and the real distribution. We also show that the commonly used BLEU/Self-BLEU metric pair fails to match any divergence metric, thus propose CR/NRR as a substitute for qualit…

Les articles qui le citent

  1. Apparenté
    Breaking the Likelihood Trap: Variance-Calibrated Modulation for Large Language Model Decoding
    Yuanhao Ding, Meimingwei Li, E. Arias et al. · 2026 · Proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing · cité 4 fois · Pas encore résumé
    Résumé scientifique

    In open-ended generation, LLMs frequently fall into the"likelihood trap", characterized by repetitive degeneration and vocabulary dullness, resulting in a discrepancy between machine-generated and human-written text. While post-hoc tail truncation (e.g., Top-p, Min-p) avoids sampling from the unreliable tail, it can misalign generation with human lexical preferences by over-sampling from the uncalibrated head; fixed scalar repetition penalties, in turn, ignore how the scale of the logit distribution varies across inference steps, which can disrupt semantic coherence. To address both shortcomings, we propose Variance-Calibrated Modulation (VCM), a training-free pre-decoding intervention. VCM …

  2. Apparenté
    A survey of diversity quantification in natural language processing: The why, what, where and how
    Louis Estève, Marie-Catherine de Marneffe, Nurit Melnik et al. · 2025 · arXiv.org · preprint, non relu par les pairs · cité 10 fois · Pas encore résumé
    Résumé scientifique

    The concept of diversity received increasing attention in natural language processing (NLP) in recent years. It became an advocated property of datasets and systems, with many measures used to quantify it, but also many cross-paper inconsistencies. To address this fragmentation, we take inspiration from other scientific fields where diversity has been more thoroughly conceptualized. We build upon (Sarkar, 2010) and (Stirling, 2007), two unified cross-domain frameworks inspired from ecology, economy and other domains. The first one advocates explicit justification of diversity endorsement. The latter distinguishes three dimensions of diversity: variety, balance, and disparity. Surveying over …

  3. Apparenté
    Prompting Test-Time Scaling Is A Strong LLM Reasoning Data Augmentation
    S. Mahmoud Bsharat, Zhi-Qiang Shen · 2025 · Annual Meeting of the Association for Computational Linguistics · cité 3 fois · Pas encore résumé
    Résumé scientifique

    Large language models (LLMs) have demonstrated impressive reasoning capabilities when provided with chain-of-thought exemplars, but curating large reasoning datasets remains laborious and resource-intensive. In this work, we introduce Prompting Test-Time Scaling (P-TTS), a simple yet effective inference-time data augmentation strategy for enhancing LLM reasoning through finetuning. Rather than collecting thousands or even millions of examples, P-TTS leverages a small pool of only 90 manually selected reasoning instances and systematically varies exemplar augmentation through principled instruction prompting intensities at test time to synthesize diverse reasoning trajectory contexts. Then we…

  4. Apparenté
    Putting on the Thinking Hats: A Survey on Chain of Thought Fine-tuning from the Perspective of Human Reasoning Mechanism
    Xiao-Shu Chen, Si-Hang Zhou, K. Liang et al. · 2025 · arXiv.org · preprint, non relu par les pairs · cité 8 fois · Pas encore résumé
    Résumé scientifique

    Chain of thought (CoT) fine-tuning aims to endow large language models (LLMs) with reasoning capabilities by training them on curated reasoning traces. It leverages both supervised and reinforced fine-tuning to cultivate human-like reasoning skills in LLMs, including detailed planning, divergent thinking, intuitive judgment, timely reflection, internal thinking, and fact perception, etc. As CoT fine-tuning has advanced, LLMs have demonstrated substantial improvements in tasks such as mathematical reasoning and code generation. However, existing surveys about CoT fine-tuning primarily focus on technical aspects and overlook a systematic analysis from the perspective of human reasoning mechani…

Comment ces articles sont-ils trouvés ?

Nous comparons le titre et le résumé de cet article avec ceux de tous les articles résumés sur ce site, et avec les articles que Semantic Scholar recommande, ceux qu’il cite et ceux qui le citent (pour un article très cité, ses citations les plus récentes et, depuis OpenAlex, les plus citées). Parmi les travaux antérieurs et les suites, les articles qui s’utilisent en profondeur, une méthode qu’il utilise et les suites très citées remontent un peu. Les niveaux (très proche, proche, apparenté) viennent de la similarité des textes, pas d’un jugement de qualité ; * signale un article sans résumé, comparé par son titre. La phrase sous un article est écrite par une IA à partir des deux résumés : vérifiez-la dans les articles. Un article jugé hors sujet par trois lecteurs quitte la liste.

Mis à jour le 6 novembre 2026.

Le guide illustré des articles autour d’un article