Skip to main content
QUICK REVIEW

[论文解读] Both Topology and Text Matter: Revisiting LLM-guided Out-of-Distribution Detection on Text-attributed Graphs

Zhu, Yinlin, Di Wu|arXiv (Cornell University)|Feb 12, 2026
Advanced Graph Neural NetworksComputer Science被引用 0
一句话总结

LG-Plug 是一种将拓扑与文本对齐的即插即用框架,在文本属性图中利用共识驱动的基于大语言模型的 OOD 曝露作为正则化,以提升拓扑驱动的 OOD 检测器性能,相较六个 TAG 基准在 OOD 检测上对 LLM 基线达到最前沿的表现。

ABSTRACT

Text-attributed graphs (TAGs) associate nodes with textual attributes and graph structure, enabling GNNs to jointly model semantic and structural information. While effective on in-distribution (ID) data, GNNs often encounter out-of-distribution (OOD) nodes with unseen textual or structural patterns in real-world settings, leading to overconfident and erroneous predictions in the absence of reliable OOD detection. Early approaches address this issue from a topology-driven perspective, leveraging neighboring structures to mitigate node-level detection bias. However, these methods typically encode node texts as shallow vector features, failing to fully exploit rich semantic information. In contrast, recent LLM-based approaches generate pseudo OOD priors by leveraging textual knowledge, but they suffer from several limitations: (1) a reliability-informativeness imbalance in the synthesized OOD priors, as the generated OOD exposures either deviate from the true OOD semantics, or introduce non-negligible ID noise, all of which offers limited improvement to detection performance; (2) reliance on specialized architectures, which prevents incorporation of the extensive effective topology-level insights that have been empirically validated in prior work. To this end, we propose LG-Plug, an LLM-Guided Plug-and-play strategy for TAG OOD detection tasks. LG-Plug aligns topology and text representations to produce fine-grained node embeddings, then generates consensus-driven OOD exposure via clustered iterative LLM prompting. Moreover, it leverages lightweight in-cluster codebook and heuristic sampling reduce time cost of LLM querying. The resulting OOD exposure serves as a regularization term to separate ID and OOD nodes, enabling seamless integration with existing detectors.

研究动机与目标

  • 识别现有基于 LLM 的 TAGs OOD 先验在可可靠性-信息性失衡和与拓扑驱动检测器兼容性差方面的局限性。
  • 提出 LG-Plug 以对齐拓扑-文本表示并生成共识驱动的基于 LLM 的 OOD 曝露。
  • 实现将基于 LLM 的先验作为正则化项无缝融入到拓扑驱动的图 OOD 检测器中。
  • 在六个 TAG 基准上证明其有效性与效率。

提出的方法

  • 用两层 GCN 作为图编码器、基于 Transformer 的文本编码器训练拓扑-文本表示对齐模块,以获得对齐的节点嵌入。
  • 使用节点级和边级对比目标函数共同优化图表示与文本表示。
  • 对未标记的节点嵌入进行簇集,并对近质心的代表样本进行共识驱动的 LLM 提示,以生成可靠的 OOD 曝露。
  • 在簇内维持一个轻量级的分类代码本,并进行迭代、分批次的 LLM 提示以最小化查询次数。
  • 从每个簇的代码本中选取前 K 个 OOD 类别,将其视为排除 ID 类别的可靠 OOD 曝露。
  • 将曝光作为分数层面的正则化项,促使 ID 与 OOD 节点之间的分离,同时不改变检测器架构。
Figure 1 . Illustration of the reliability-informativeness imbalance in LLM-based OOD prior generation: (a) Realistic ID and OOD categories on Cora (Yang et al. , 2016 ) . (b) Reliability-oriented methods avoid ID overlap but yield semantically unrealistic priors, limiting informativeness. (c) Infor
Figure 1 . Illustration of the reliability-informativeness imbalance in LLM-based OOD prior generation: (a) Realistic ID and OOD categories on Cora (Yang et al. , 2016 ) . (b) Reliability-oriented methods avoid ID overlap but yield semantically unrealistic priors, limiting informativeness. (c) Infor

实验结果

研究问题

  • RQ1Q1:LLMs 如何生成既可靠又具信息性的伪 OOD 先验,以用于 TAG OOD 检测?
  • RQ2Q2:在不牺牲与现有拓扑驱动的图 OOD 检测器的兼容性的前提下,如何使用基于 LLM 的 OOD 先验?

主要发现

  • LG-Plug 在六个 TAG 基准上始终提升拓扑驱动的 OOD 方法(≥7% 的 FPR95 降幅)。
  • LG-Plug 相较于基于 LLM 的图 OOD 基线实现了最先进的降幅(≥5% 的 FPR95 降幅)。
  • 拓扑-文本对齐加上共识驱动的 OOD 曝露比此前的纯 LLM 方法提供更可靠且信息性更强的 OOD 先验。
  • OOD 曝露作为轻量级的分数正则化,便于与 GNNSafe、GRASP 等检测器无缝整合。
  • 可视化表明 LG-Plug 降低了 ID 与 OOD 分数分布的重叠,同时保持拓扑驱动检测器的形状。
Figure 2 . Overview of the proposed LG-Plug plug-and-play framework. (a) Topology-Text Representation Alignment jointly trains a graph encoder and a text encoder to learn fine-grained and discriminative node embeddings for both ID and OOD nodes. (b) Consensus-driven OOD Exposure with LLM identifies
Figure 2 . Overview of the proposed LG-Plug plug-and-play framework. (a) Topology-Text Representation Alignment jointly trains a graph encoder and a text encoder to learn fine-grained and discriminative node embeddings for both ID and OOD nodes. (b) Consensus-driven OOD Exposure with LLM identifies

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。