Picking the Underused Heads: A Network Pruning Perspective of Attention Head Selection for Fusing Dialogue Coreference Information

Zhengyuan Liu, Nancy F. Chen

Introduction

Large language models (LLMs) like BART and BERT have revolutionized natural language processing, yet they are notoriously over-parameterized. These models often contain significantly more attention heads than necessary to perform a specific task effectively. While they implicitly capture some linguistic nuances, they frequently struggle with the complexities of dialogue summarization—specifically, the tracking of coreference chains (e.g., linking "he," "she," or "it" to the correct speaker or entity across multiple turns).

Traditionally, researchers have addressed this by integrating external structural information using Graph Neural Networks (GNNs). However, this approach adds millions of parameters, increases inference latency, and complicates the training pipeline. This paper proposes a more efficient alternative: instead of adding new neural components, can we repurpose the redundant "underused" heads already present within the model?

Methodology: The Identify and Inject Strategy

The researchers introduce a three-step framework that treats attention head selection through the lens of network pruning. Rather than removing unimportant heads to compress the model, they identify them as "empty slots" for explicit knowledge injection.

1. Identifying the "Underused" Heads

To determine which heads were redundant, the authors employed a gradient-based sensitivity algorithm. By calculating the change in the model's loss when a specific head was masked, they ranked heads by their importance to the primary task. Heads that had minimal impact on the loss were classified as "underused" and selected for repurposing.

2. Mapping Dialogue Structure

To provide the model with explicit coreference information, the authors performed coreference resolution on the dialogue to identify clusters of mentions. This information was encoded into a Structure-Aware Matrix. Two variations were tested:

  • Full-link: Every mention in a cluster is connected to every other mention.
  • Adjacent-link: Mentions are only connected to their immediate neighbors in the chain, a method designed to mitigate potential gradient vanishing issues.

3. Feature Injection

Rather than adding a new layer, the authors replaced the attention weights of the lowest-ranking (underused) heads with the coreference matrix. This "feature injection" allows the model to utilize explicit structural data without adding a single new parameter.

Experimental Results

The study utilized the SAMSum corpus, a benchmark dataset for abstractive dialogue summarization containing over 16,000 daily conversations. The proposed method was compared against a standard BART-large baseline and state-of-the-art GNN-based models.

Performance and Efficiency

  • Summarization Quality: The proposed method (Importance-based selection with Adjacent-link) achieved a ROUGE-L score of 50.73, significantly outperforming the BART-large baseline of 49.69.
  • Parameter Economy: By repurposing existing heads, the authors saved 10 million parameters (approximately 3.1% of the total model size) compared to traditional GNN-based methods.
  • Inference Speed: The model achieved a 17% reduction in inference time compared to GNN-augmented architectures, making it more suitable for real-time applications.

Importance-Based vs. Probing-Based Selection

A key finding was the superiority of "Importance-based" selection over "Probing-based" selection. Probing-based selection involves picking heads that already show some inherent coreference-like behavior. The authors found it is more effective to teach an underused head a new skill than to attempt to augment a head that is already partially occupied with its own learned representations.

Discussion and Key Insights

Redundancy as an Opportunity: The paper confirms that a large percentage of attention heads can be masked at inference time with negligible impact on performance. These redundant heads represent a significant opportunity for injecting specialized knowledge without increasing the model's footprint.

The Role of Layer Depth: The authors observed that manipulating heads in the higher layers of the encoder yielded better results. This suggests that high-level semantic features like coreference are most effectively integrated during the final stages of the model's internal representation process.

Validation: To ensure the model was actually utilizing the injected coreference information, the authors performed a post-training pruning of the manipulated heads. The resulting significant drop in performance confirmed that the previously "underused" heads had become vital to the model's summarization capabilities.

Conclusion

This research demonstrates that LLMs can be made "smarter" without being made larger. By viewing attention head selection as a pruning problem, the authors successfully repurposed redundant internal structures to carry explicit coreference information. This approach not only improves dialogue summarization quality but also offers a blueprint for more efficient knowledge injection in Transformers across various NLP tasks.

Summary updated

BibTeX
@inproceedings{liu2023picking,
  author = {Zhengyuan Liu and Nancy F. Chen},
  title = {{Picking the Underused Heads: A Network Pruning Perspective of Attention Head Selection for Fusing Dialogue Coreference Information}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2023},
  doi = {10.1109/icassp49357.2023.10096717},
}
Figure