Relational Prompt-Based Pre-Trained Language Models for Social Event Detection

Pu Li, Xiaoyan Yu, Hao Peng, Yantuan Xian, Linqin Wang, Li Sun, Jingyun Zhang, Philip S. Yu

TL;DR

This paper introduces RPLM$_{SED}$, a novel framework that shifts social event detection from traditional Graph Neural Networks (GNNs) to Pre-trained Language Models (PLMs) using relational prompts. By modeling social messages as pairs and injecting structural information via learnable prompts, the model achieves state-of-the-art performance across offline, online, low-resource, and long-tail scenarios.

What Problem Does This Paper Address?

Social Event Detection (SED) involves grouping a stream of social media messages (like tweets) into clusters representing real-world events. For years, the gold standard has been Graph Neural Networks (GNNs). GNNs represent messages as nodes and shared attributes (hashtags, entities, users) as edges.

However, GNNs face three major hurdles:

  1. Noisy and Missing Edges: Two tweets might discuss the same event but share no common hashtags or entities, leading to a "missing edge." Conversely, a popular hashtag used in different contexts creates "noisy edges" that confuse the model.
  2. Static Embeddings: Most GNN methods initialize node features using pre-trained word embeddings before training. This prevents the model from dynamically learning from the message text and its relations simultaneously.
  3. Weak Clustering Constraints: Existing models often treat messages as individual targets to be pulled together or pushed apart, rather than optimizing for cohesive, well-separated event clusters.

Methods

The authors propose RPLM$_{SED}$, which abandons the explicit global graph in favor of a pairwise learning approach powered by PLMs (like RoBERTa).

  • Pairwise Message Modeling: Instead of building one giant graph, the model samples message pairs. It maps four types of relations—hashtags, users, entities, and temporal proximity—into a discrete multi-relational sequence.
  • Multi-relational Prompting: This sequence is treated as a "soft prompt." The PLM receives both the text of the message pair and the relational prompt. This allows the PLM to use its deep semantic understanding to "reason" about how the structural relations relate to the text.
  • Similarity-based Aggregation: To make the model robust, it generates multiple candidate representations for a message by pairing it with different neighbors, then aggregates the most confident ones.
  • Clustering Constraint: The authors designed a new loss function that optimizes for intra-cluster compactness (keeping messages of the same event tight) and inter-cluster dispersion (pushing the centers of different event clusters far apart).

Datasets

The model was evaluated on three real-world datasets:

  • Events2012: A large-scale English Twitter dataset (68,841 messages, 503 events).
  • Events2018: A French Twitter dataset (64,516 messages, 257 events).
  • Arabic-Twitter: A dataset specifically used to test performance in low-resource language scenarios.
  • Long-tail Subsets: The authors extracted 100-event subsets from the English and French data to specifically test how the model handles "tail events" (events with very few messages).

Key Insights and Ideas

  • Prompts as a Bridge: The most clever insight is using prompts to inject graph-like structural information into a language model. This bypasses the need for a rigid graph structure and allows the model to handle "missing edges" through semantic inference.
  • Pairwise > Global: By focusing on pairs, the model can be trained more flexibly. Even if two messages aren't directly connected in a graph, the pairwise sampling strategy allows the model to learn their relationship through shared context.
  • Dynamic Fusion: Unlike GNNs that use static features, RPLM$_{SED}$ fine-tunes the PLM during training. This means the message embeddings evolve to better represent both the text and the social context (who is talking to whom, which hashtags are trending, etc.).

Key Results

RPLM$_{SED}$ consistently outperformed SOTA GNN-based models (like FinEvent and KPGNN) across all metrics (NMI, AMI, ARI):

  • Massive Gains in ARI: On the Events2012 dataset, the model showed an improvement of up to 710% in Adjusted Rand Index (ARI) compared to community-detection baselines like EventX.
  • Low-Resource Excellence: In the Arabic-Twitter scenario, it outperformed the best baseline by over 10% across all metrics, proving that the semantic power of multilingual PLMs can compensate for a lack of training data.
  • Long-Tail Robustness: The model was significantly better at identifying small, rare events that GNNs typically miss due to sparse connections.

Limitations and Future Work

While powerful, the authors acknowledge a few areas for growth:

  • Computational Cost: PLMs are significantly more "heavyweight" than GNNs. Table 12 in the paper shows that training with RoBERTa-large takes considerably more time than RoBERTa-base or traditional GNNs.
  • Supervision Requirements: The current model relies on labeled data for the initial training phase. The authors suggest that future work should explore semi-supervised or unsupervised versions of RPLM$_{SED}$ to reduce the need for manual annotation.
  • Architecture Optimization: There is potential to further optimize the model architecture to make it faster for real-time, high-volume social streams.

Summary updated

BibTeX
@article{li2025relational,
  author = {Pu Li and Xiaoyan Yu and Hao Peng and Yantuan Xian and Linqin Wang and Li Sun and Jingyun Zhang and Philip S. Yu},
  title = {{Relational Prompt-Based Pre-Trained Language Models for Social Event Detection}},
  journal = {ACM Trans. Information Systems},
  year = {2025},
  doi = {10.1145/3695869},
}
Figure