Text Meets Topology: Rethinking Out-of-distribution Detection in Text-Rich Networks

Danny Wang, Ruihong Qiu, Guangdong Bai, Zi Huang
8/25/2025
cs.CLcs.LG

No confident code implementation found for this paper.

Abstract

Out-of-distribution (OOD) detection remains challenging in text-rich networks, where textual features intertwine with topological structures. Existing methods primarily address label shifts or rudimentary domain-based splits, overlooking the intricate textual-structural diversity. For example, in social networks, where users represent nodes with textual features (name, bio) while edges indicate friendship status, OOD may stem from the distinct language patterns between bot and normal users. To address this gap, we introduce the TextTopoOOD framework for evaluating detection across diverse OOD scenarios: (1) attribute-level shifts via text augmentations and embedding perturbations; (2) structural shifts through edge rewiring and semantic connections; (3) thematically-guided label shifts; and (4) domain-based divisions. Furthermore, we propose TNT-OOD to model the complex interplay between Text aNd Topology using: 1) a novel cross-attention module to fuse local structure into node-level text representations, and 2) a HyperNetwork to generate node-specific transformation parameters. This aligns topological and semantic features of ID nodes, enhancing ID/OOD distinction across structural and textual shifts. Experiments on 11 datasets across four OOD scenarios demonstrate the nuanced challenge of TextTopoOOD for evaluating OOD detection in text-rich networks.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{wang2025text,
  title  = {Text Meets Topology: Rethinking Out-of-distribution Detection in Text-Rich Networks},
  author = {Danny Wang and Ruihong Qiu and Guangdong Bai and Zi Huang},
  year   = {2025},
  eprint = {2508.17690},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2508.17690v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2508.17690.svg)](https://codeofpaper.com/paper/2508.17690)

Discussion