[Paper Review] Not All Attention Is All You Need
This paper proposes AttendOut, a dynamic dropout method that uses self-attention to generate sample-specific, layer-wise dropout patterns in pre-trained language models, significantly improving robustness and performance on downstream NLP tasks. AttendOut achieves state-of-the-art results by learning adaptive attention regularization, outperforming fixed-probability and static dropout methods across multiple benchmarks.
Beyond the success story of pre-trained language models (PrLMs) in recent natural language processing, they are susceptible to over-fitting due to unusual large model size. To this end, dropout serves as a therapy. However, existing methods like random-based, knowledge-based and search-based dropout are more general but less effective onto self-attention based models, which are broadly chosen as the fundamental architecture of PrLMs. In this paper, we propose a novel dropout method named AttendOut to let self-attention empowered PrLMs capable of more robust task-specific tuning. We demonstrate that state-of-the-art models with elaborate training design may achieve much stronger results. We verify the universality of our approach on extensive natural language processing tasks.
Motivation & Objective
- To address over-fitting and co-adaptation in deep self-attention networks, especially during task-specific fine-tuning with limited data.
- To overcome the limitations of static, random-based dropout methods in self-attention models, which are less effective due to fixed probabilities and lack of sample-level adaptivity.
- To develop a learnable, end-to-end dropout mechanism that generates dynamic, attention-driven dropout patterns per sample and per layer.
- To demonstrate the universality and effectiveness of AttendOut across diverse NLP tasks and model architectures.
Proposed method
- AttendOut introduces a learnable attention-based dropout module (G-Net) that generates dynamic dropout masks for each attention head and sample using self-attention mechanisms.
- The method applies these learned masks to the attention matrix during training, effectively regularizing attention co-adaptation through sample-specific, layer-wise dropout.
- The dropout pattern generation is differentiable and trained end-to-end via backpropagation, allowing the model to learn optimal attention regularization patterns.
- A scheduled Bernoulli dropout baseline is introduced to approximate AttendOut’s dynamic patterns, validating the effectiveness of the learned structure.
- The approach is applied to standard pre-trained models like RoBERTa, with minimal architectural changes and no additional inference cost.
- The method is evaluated across multiple NLP tasks, including text classification and natural language inference, using standard benchmarks.
Experimental results
Research questions
- RQ1Can dynamic, attention-driven dropout patterns improve the generalization and robustness of self-attention-based pre-trained language models during fine-tuning?
- RQ2How does AttendOut compare to fixed-probability dropout and layer-level regularization methods like LayerDrop in terms of performance and stability?
- RQ3To what extent do the learned dropout patterns reflect task-specific and layer-specific regularization needs, as observed in training dynamics?
- RQ4Can a scheduled, random-based approximation of AttendOut’s patterns achieve comparable performance, indicating the validity of the learned structure?
- RQ5Is AttendOut universally effective across diverse NLP tasks with varying data scales and complexity?
Key findings
- AttendOut achieves a 4.1% absolute improvement over vanilla dropout on the CoLA benchmark, demonstrating significant gains from dynamic regularization.
- On QNLI, AttendOut improves RoBERTa’s accuracy from 92.0 to 93.1, a 1.1-point gain, showing consistent improvement across tasks.
- The method outperforms LayerDrop and Attn.LayerDrop, with a 1.0-point gain on MNLI and a 1.7-point gain on CoLA compared to RoBERTa.
- The learned dropout patterns show higher probabilities in lower layers and dynamic adaptation, especially increasing in CoLA (up to 0.9), indicating stronger regularization for smaller datasets.
- A scheduled Bernoulli dropout baseline closely approximates AttendOut’s performance (0.8-point gain on CoLA), validating the correctness of the dynamic pattern learning.
- Convergence curves show that AttendOut enables faster and more stable training, with performance steadily improving across epochs, unlike baseline models that plateau or drop.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.