Structure-Augmented Keyphrase Generation

Jihyuk Kim, Myeongho Jeong, Seungtaek Choi, Seung-won Hwang

Introduction

Keyphrase generation (KG) is a critical task in natural language processing, aimed at distilling the core essence of a document into a concise set of terms. While traditional methods perform well when keyphrases are explicitly present in the text, they struggle significantly with "absent" keyphrases—terms that are semantically relevant but do not appear verbatim in the source. This challenge is exacerbated in "context-scarce" environments, such as social media posts or scientific abstracts with minimal metadata, where the lack of structural information limits the model's ability to infer broader topical context.

The Challenge of Context Scarcity

In domains like Twitter or Weibo, documents are inherently short. A tweet mentioning a "new smartphone" might require the hashtag #technology for effective indexing, yet the word "technology" may never appear in the post. Standard sequence-to-sequence models often fail here because they lack the necessary background knowledge or structural cues (like titles) to bridge the gap between the specific text and general categories. While some existing approaches leverage document titles to provide this context, many real-world datasets are "unstructured," lacking titles or having titles that are too brief to be informative.

Methodology: The GSEnc Framework

To address these issues, researchers introduced GSEnc (Graph-based Structured Document Encoder), a two-phase framework designed to "augment" a document's structure by generating a virtual context.

1. Generating Virtual Structure

For any given document $X$, the model first retrieves the top-$K$ most relevant keyphrases ($R$) from a reference training set using the BM25 algorithm. These retrieved phrases serve as a "virtual title" or a set of suggested topics, providing the missing context that would otherwise be found in a document's metadata.

2. Graph-Based Integration and Encoding

The core innovation of GSEnc lies in how it integrates the document text with these retrieved phrases. Rather than simply concatenating them, the model constructs a graph to jointly contextualize both sources of information.

The GSEnc framework for social posts (closed set) and scientific articles (open set).

As illustrated in Figure 1, the framework adapts to different data types:

  • Closed Set (Social Media): Since hashtags and social media tags are often reused, the model treats each retrieved keyphrase as a single node. This allows the decoder to easily "copy" these established terms.
  • Open Set (Scientific Articles): In academic writing, keyphrases are often novel combinations of words. GSEnc builds a "multigraph" where nodes representing identical words in the document and retrieved phrases are merged. This enables the model to synthesize new, unseen phrases by traversing paths between the original text and the augmented context.

A Graph Convolutional Network (GCN) then encodes this integrated structure, followed by a GRU-based decoder with a copy mechanism to generate the final keyphrase sequence.

Experimental Evaluation

The model was evaluated across four diverse datasets with varying degrees of context scarcity:

  • Twitter & Weibo: Characterized by extreme brevity and high rates of absent keyphrases (over 70%).
  • StackExchange: A social Q&A dataset containing both titles and bodies.
  • KP20k: A large-scale benchmark of scientific publication abstracts.

Key Results and Discussion

GSEnc demonstrated superior performance across all benchmarks, particularly in predicting absent keyphrases.

Performance comparison of GSEnc against various baselines across four datasets.

As shown in Figure 5, the model achieved significant gains over state-of-the-art baselines:

  • Social Media: On the Weibo dataset, GSEnc reached an F1@1 of 42.8, a substantial improvement over the previous best (TAKG) at 35.0.
  • Scientific Papers: On KP20k, it achieved an F1@5 of 32.9, outperforming models like TGNet that rely on actual, manually-provided document titles.
  • Efficiency: Despite the added retrieval and graph processing steps, GSEnc remains computationally efficient, processing documents in approximately 22ms—significantly faster than complex topic-modeling alternatives.

The results suggest that "virtual structure" derived from retrieval is a powerful substitute for missing metadata. Furthermore, the joint encoding via graphs is more effective than simple sequence-based concatenation, as it allows the model to better capture the relationships between the source text and the retrieved topical cues.

Conclusion and Future Directions

The GSEnc framework provides a robust solution for keyphrase generation in context-scarce and unstructured documents. By leveraging retrieved keyphrases as a virtual structure and integrating them through a specialized graph encoder, the model significantly improves the prediction of both present and absent keyphrases.

While highly effective, the model's reliance on a domain-specific training set for retrieval poses challenges for out-of-distribution performance. Future research may explore utilizing external, open-domain knowledge sources like Wikipedia or large-scale knowledge graphs to provide even more generalized context for document augmentation.

Summary updated

BibTeX
@inproceedings{kim2021structure,
  author = {Jihyuk Kim and Myeongho Jeong and Seungtaek Choi and Seung-won Hwang},
  title = {{Structure-Augmented Keyphrase Generation}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2021},
  doi = {10.18653/v1/2021.emnlp-main.209},
}
Figure