TAG: Toward Accurate Social Media Content Tagging with a Concept Graph

Jiuding Yang, Weidong Guo, Bang Liu, Yakun Yu, Chaoyue Wang, Jinwen Luo, Linglong Kong, Di Niu, Zhen Wen

Introduction

Tagging social media content is essential for modern search and recommendation systems. However, traditional knowledge bases like DBpedia often fail to capture the specific, evolving interests of social media users. While a standard knowledge base might offer a generic tag like "British actors," social media users are often interested in more nuanced, fine-grained concepts such as "highly educated comedians." Furthermore, simple keyword matching often fails to grasp the logical sentiment or context of a post, leading to inaccurate tagging.

The Graph-Graph Matching Framework

To address these challenges, this paper proposes TAG, a novel Graph-Graph matching framework. Unlike traditional sequence-to-sequence models that treat text as a linear string, TAG models the structural relationships within both the sentence and the target concept.

The Graph-Graph matching framework integrates syntactic dependency graphs with a hierarchical concept graph to perform accurate tagging.

The methodology consists of several key steps:

  1. Syntactic Parsing: The input sentence is converted into a syntactic dependency graph using tools like Stanford CoreNLP, capturing grammatical logic.
  2. Concept Graph Integration: The target concept is situated within a massive, real-world concept graph mined from user search logs, including its superordinate and subordinate neighbors.
  3. Heterogeneous Graph Construction: These two graphs are fused. Entities shared between the text and the concept graph are linked (e.g., via isVital relations), and virtual "hub" nodes are introduced to aggregate semantic information across the structure.
  4. Relational GCN and Prediction: A Relational Graph Convolutional Network (R-GCN) processes the fused graph, passing messages across different edge types. Finally, a Multi-Layer Perceptron (MLP) determines if the concept is a valid tag for the sentence.

The TAG Dataset

The authors introduced the TAG dataset to evaluate this approach. It contains 10,000 manually labeled pairs from Chinese social media (QQ Browser). The associated concept graph includes over 5,000 fine-grained concepts and 230,000 relations. Crucially, the dataset includes a "non-overlapped" split to test zero-shot generalization, where the model must tag sentences with concepts it never encountered during training.

Experimental Results

The Graph-Graph matching model demonstrates significant improvements over existing methods. It achieved an F1 score of 76.04% on the standard split and 69.77% on the zero-shot split.

Experimental results show that the TAG model (G-G) outperforms both traditional neural matching models and large-scale pre-trained transformers like BERT.

Key findings include:

  • Efficiency: With only 2.66 million parameters, the TAG model outperformed BERT-based models that have over 110 million parameters. This represents a 40x reduction in size with superior performance.
  • Structural Necessity: Ablation studies confirmed that both the syntactic dependency graph and the hierarchical concept graph are vital; removing either component led to a significant drop in accuracy.
  • Zero-Shot Capability: By leveraging explicit structural knowledge, the model generalizes effectively to new concepts, outperforming models that rely solely on implicit linguistic patterns.

Conclusion and Future Work

TAG demonstrates that explicitly modeling the structure of language and knowledge is more effective for social media tagging than relying on the brute-force scale of large language models. While the model currently struggles with deep implicit reasoning (e.g., distinguishing between a movie and a game with the same title based on subtle slang), future work aims to enhance reasoning by comparing specific entity attributes within the graph structure.

Summary updated

BibTeX
@inproceedings{yang2021tag,
  author = {Jiuding Yang and Weidong Guo and Bang Liu and Yakun Yu and Chaoyue Wang and Jinwen Luo and Linglong Kong and Di Niu and Zhen Wen},
  title = {{TAG: Toward Accurate Social Media Content Tagging with a Concept Graph}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2021},
  doi = {10.1145/3534678.3539077},
}
Figure