Encoding Conversation Context for Neural Keyphrase Extraction from Microblog Posts

Yingyi Zhang, Jing Li, Yan Song, Chengzhi ZhangNAACL 2018

Introduction

Keyphrase extraction—the automated identification of salient terms within a document—is a foundational task in natural language processing. While effective for long-form content, traditional methods often struggle with microblogs (e.g., Twitter, Weibo) due to extreme data sparsity. The brevity and informal nature of individual posts frequently lack sufficient statistical or linguistic signals for accurate extraction.

This research addresses this challenge by leveraging the conversational nature of microblogs. Rather than analyzing a post in isolation, the proposed framework incorporates the surrounding conversation (replies and reposts), which often contains recurrent keywords or topical cues that clarify the original post's focus.

Methodology

The authors propose a joint neural framework comprising two primary modules: a Keyphrase Tagger and a Conversation Context Encoder.

Keyphrase Tagger

The extraction task is formulated as a sequence labeling problem. To capture multi-word phrases effectively, a granular 5-value tagset (SINGLE, BEGIN, MIDDLE, END, NOT) is employed. Among various architectures tested, Bidirectional LSTMs (BiLSTM) were found to be the most effective for this component.

Conversation Context Encoder

The core innovation lies in encoding the "pseudo-document" formed by the conversation history. Several encoder types were evaluated, ranging from simple averaged embeddings to sophisticated Memory Networks (MemNN). The MemNN approach explicitly calculates the affinity between words in the target post and the conversation history to highlight topical relevance.

The proposed joint neural framework, showing the interaction between the Context Encoder and the Keyphrase Tagger.

The entire system is trained end-to-end, allowing the tagger to dynamically consult the context representation during the labeling process.

Key Insights and Results

Evaluation on Twitter and Sina Weibo datasets demonstrated that incorporating conversation context significantly boosts performance. The MemNN-based model achieved a peak F1 score of 65.5% on Twitter, outperforming no-context baselines and traditional ranking methods like TF-IDF and TextRank by substantial margins.

Context as a Signal Booster

The model excels at distinguishing topical entities from high-energy sentiment words. Without context, models often erroneously extract emotional modifiers (e.g., "childish"). However, by aligning the target post with the conversation, the model identifies relevant entities. For instance, as shown in the alignment heatmap, seeing "obama" in a reply helps the model recognize "president duterte" as a keyphrase in the original post.

Heatmap visualization showing how the Memory Network aligns terms in the target post with related terms in the conversation context.

The Training Effect

A notable finding was that models trained with context maintained superior performance even when context was unavailable during testing. This suggests that exposure to conversational data during training helps the model develop a more robust internal representation of what constitutes a "keyphrase-like" word.

Conclusion and Future Work

By integrating conversation context via Memory Networks, this framework effectively mitigates the data sparsity inherent in microblogs. Future research will focus on refining extraction to avoid over-extending phrases with adjacent modifiers and exploring applications in conversation summarization.

Summary updated

BibTeX
@inproceedings{zhang2018encoding,
  author = {Yingyi Zhang and Jing Li and Yan Song and Chengzhi Zhang},
  title = {{Encoding Conversation Context for Neural Keyphrase Extraction from Microblog Posts}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2018},
  doi = {10.18653/v1/n18-1151},
}
Figure