Utilizing BERT Intermediate Layers for Unsupervised Keyphrase Extraction

Mingyang Song, Yi Feng, Liping JingICNLSP 2022

TL;DR

This paper explores how different layers within BERT, a powerful language model, contribute to unsupervised keyphrase extraction. By analyzing and selectively aggregating features from these intermediate layers, the authors demonstrate a significant improvement in keyphrase extraction performance compared to methods that only use BERT's final layer.

What Problem Does This Paper Address?

Unsupervised Keyphrase Extraction (UKE) aims to identify the most important words or phrases in a document without relying on labeled training data. While pre-trained language models like BERT have revolutionized NLP tasks, most UKE approaches have only leveraged BERT's final layer for text representations. This overlooks the rich linguistic information potentially encoded in BERT's earlier, intermediate layers, which are known to capture different levels of linguistic features (surface, syntactic, and semantic). The paper addresses the gap of understanding and utilizing this latent knowledge within BERT's intermediate layers to enhance UKE performance.

Methods

The authors first conduct a "model-dependent analysis" by evaluating the performance of the state-of-the-art UKE model, JointGL, using each of BERT's intermediate layers as the sole source for text representations. This analysis reveals that different layers perform better on different datasets, and no single layer consistently yields the best results.

Based on these findings, they propose a "selective feature aggregation strategy." This strategy involves:

  1. Selecting Top-K Layers: Identifying the K intermediate layers that achieve the highest performance (specifically, F1@5) on a given dataset.
  2. Weighted Pooling: Integrating the representations from these selected K layers using a weighted pooling operation. This allows for a more comprehensive representation by combining diverse linguistic knowledge.

Datasets

The paper evaluates its proposed method on three standard benchmark datasets for keyphrase extraction:

  • DUC2001
  • Inspec
  • SemEval2010

Key Insights and Ideas

  • BERT's Intermediate Layers are Valuable: Contrary to the common practice of using only BERT's final layer, the paper demonstrates that intermediate layers contain crucial information for UKE.
  • Layer Specialization Varies by Dataset: The optimal BERT layer for keyphrase extraction is not universal; it depends on the characteristics of the dataset. For instance, syntactic features from middle layers are more critical for DUC2001 and SemEval2010, while surface features are more important for Inspec.
  • Aggregation Outperforms Single Layers: Combining information from multiple intermediate layers through a selective aggregation strategy leads to better performance than relying on any single layer.
  • Anomalous Layer 11: The paper notes an interesting phenomenon where the 11th intermediate layer consistently performs poorly, achieving the worst F1, precision, and recall results. This warrants further investigation.

Key Results

The proposed selective feature aggregation strategy consistently outperforms existing embedding-based unsupervised keyphrase extraction methods across the evaluated datasets. While specific percentage improvements are not highlighted in the summary text, Table 1 shows that the "JointGL (Selective Feature Aggregation)" model achieves the best F1 scores on all three datasets for F1@5, F1@10, and F1@15, often by a noticeable margin compared to other baselines. For example, on DUC2001, the proposed method achieves an F1@15 of 36.54, compared to the next best baseline (JointGL) at 36.29. On SemEval2010, it reaches 22.23 F1@15, outperforming the next best at 21.72.

Limitations and Future Work

  • Limitations: The paper acknowledges that it primarily focuses on an empirical study of existing models and does not propose a novel UKE architecture. The analysis is "model-dependent," meaning it's tied to the specific architecture of BERT and the JointGL model.
  • Future Work:
    • Extending the work to self-supervised keyphrase extraction.
  • Investigating the reasons behind the poor performance of the 11th intermediate layer.
  • Exploring other feature aggregation strategies.

Summary updated

BibTeX
@inproceedings{song2022utilizing,
  author = {Mingyang Song and Yi Feng and Liping Jing},
  title = {{Utilizing BERT Intermediate Layers for Unsupervised Keyphrase Extraction}},
  booktitle = {ICNLSP},
  year = {2022},
  url = {https://openreview.net/forum?id=sfTJuiEadUE},
}
Figure