arXiv

Both Topology and Text Matter: Revisiting LLM-guided Out-of-Distribution Detection on Text-attributed Graphs

Title: The Interplay of Structure and Semantics: Re-evaluating LLM-Driven Out-of-Distribution Detection in Text-Attributed Graphs

Abstract

Text-attributed graphs (TAGs) combine node-level textual data with graph topology, allowing Graph Neural Networks (GNNs) to simultaneously capture semantic and structural nuances. While GNNs perform well on in-distribution (ID) samples, they frequently struggle with out-of-distribution (OOD) nodes that exhibit unfamiliar structural or textual patterns. This deficiency often results in high-confidence yet incorrect predictions, highlighting a critical need for robust OOD detection mechanisms.

Current topology-centric methods attempt to counteract node-level bias by leveraging neighborhood structures; however, they typically treat text as shallow features, thereby failing to fully exploit semantic depth. Conversely, recent approaches utilizing Large Language Models (LLMs) generate pseudo OOD priors based on textual knowledge but face two primary challenges: (1) a dilemma between reliability and informativeness, where generated OOD exposures either drift from genuine OOD semantics or inject significant ID noise, and (2) a reliance on specialized architectures that hinders compatibility with topology-level advancements established in earlier research.

To resolve these constraints, we introduce LG-Plug, a plug-and-play framework guided by LLMs for OOD detection in TAGs. LG-Plug harmonizes topological and textual representations to derive granular node embeddings, subsequently building a consensus-based OOD exposure via clustered, iterative LLM prompting. To minimize the computational cost of LLM queries, the framework employs lightweight in-cluster codebooks alongside heuristic sampling. The resulting OOD exposure serves as a regularizer that effectively distinguishes between ID and OOD nodes, allowing for easy integration with existing detection models. Our experiments across six TAG benchmarks reveal that LG-Plug consistently enhances the performance of topology-driven OOD detectors, achieving a reduction in FPR95 of over 7%, while also outperforming previous LLM-based methods by more than 5% in FPR95 reduction.


Source: arXiv Generated at: 2026-06-02 00:00:00 UTC

Related Articles

Withings Debuts New Smart Scale Marketed Toward GLP-1 Users
Bloomberg

Withings Debuts New Smart Scale Marketed Toward GLP-1 Users

Withings launched a new smart scale targeting GLP-1 users, offering advanced body composition analysis. This device help...

TechCrunch

Rocket engine startup Impulse raises $500 million to hire people, not AI

Rocket engine startup Impulse Space raised $500 million to hire 200 engineers, prioritizing human expertise over AI for ...

Startup Impulse Space Raises $500 Million, Valued at $4 Billion
Bloomberg

Startup Impulse Space Raises $500 Million, Valued at $4 Billion

Impulse Space secured $500 million in funding, achieving a $4 billion valuation. This investment supports the developmen...

Walmart’s Answer to Apple Pay Wants to Be Your Favorite Financial App
Bloomberg

Walmart’s Answer to Apple Pay Wants to Be Your Favorite Financial App

Walmart’s new financial app aims to rival Apple Pay, positioning itself as a preferred digital payment and banking solut...

Nvidia Is Bigger, Stronger, and Trying to Slay the Laptop Dragon Again
Bloomberg

Nvidia Is Bigger, Stronger, and Trying to Slay the Laptop Dragon Again

Nvidia unveiled the RTX Spark Superchip at Computex 2026, aiming to challenge Intel’s PC dominance and modernize hardwar...

TechCrunch

Pacific Fusion’s latest prototype packs 440 gigawatts into an 80-nanosecond burst

Pacific Fusion’s new prototype delivers 440 gigawatts in 80 nanoseconds, securing over $1 billion in funding and enablin...