SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2508.17690 · EMNLP · 2025

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

Zi Huang, Ruihong Qiu, Danny Wang, Guangdong Bai

arXiv · PDF · Open in the Atlas

Code that ran

6 of 8 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 5 failures of our instrument; 2 no recorded run), measured 2026-11-24; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2508.17690.json · badge: /api/ran/2508.17690.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
DannyW618/TNT canonical (classifier label)
classifier basis: census
6 ran · 2 no recorded run
FunctionStatusWhere it lives
apply_character_edit Ran
ran; our contract draft was wrong, not the code
DannyW618/TNT/tntood/ood_generation.py
pointer only (licence: NONE) · get_code("e940ef080c4bb84e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, DannyW618/TNT when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_ood_metrics Ran
ran, honoured the contract we drafted
DannyW618/TNT/tntood/metrics.py
pointer only (licence: NONE) · get_code("c3d39c7db2d44b4b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, DannyW618/TNT when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_dataset Ran
ran; our contract draft was wrong, not the code
DannyW618/TNT/tntood/data_processing.py
pointer only (licence: NONE) · get_code("f6eb3ceb15cd6657")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, DannyW618/TNT when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

save_config Ran
ran; our contract draft was wrong, not the code
DannyW618/TNT/tntood/experiment_utils.py
pointer only (licence: NONE) · get_code("d447f32a5765e313")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, DannyW618/TNT when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

save_json Ran
ran; our contract draft was wrong, not the code
DannyW618/TNT/tntood/experiment_utils.py
pointer only (licence: NONE) · get_code("4baf964701b18410")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, DannyW618/TNT when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

save_results Ran
ran; our contract draft was wrong, not the code
DannyW618/TNT/tntood/experiment_utils.py
pointer only (licence: NONE) · get_code("3c896b36e888f0d1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, DannyW618/TNT when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_word_replacements Not yet run
unverified (harvested, no recorded run)
DannyW618/TNT/tntood/ood_generation.py
pointer only (licence: NONE) · get_code("04a582f495d8b918")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, DannyW618/TNT when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_wordnet_pos Not yet run
unverified (harvested, no recorded run)
DannyW618/TNT/tntood/ood_generation.py
pointer only (licence: NONE) · get_code("a670a144dfa39747")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, DannyW618/TNT when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 8 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

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 Text-TopoOOD framework for evaluating detection across diverse OOD scenarios: (1) attributelevel 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. 1

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2508.17690")
get_code_for_paper("2508.17690")
have("2508.17690")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2508.17690.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2508.17690.svg)](https://syntology.ai/paper/2508.17690)

Connect an agent — have() is free.