arXiv:2603.29644cs.LG2026-03中稿 · publication in IEE…

用解耦图提示提升模型对分布外样本的识别能力

Disentangled Graph Prompting for Out-Of-Distribution Detection

  • 通过两类提示生成器,分别提取类别相关与无关的图结构特征
  • 在10个数据集上相对最优基线提升3.63%的AUC性能
  • 适合需要高安全性的工业级模型部署场景

当测试数据与训练数据来自不同分布时,深度神经网络在实际应用中将面临重大安全风险。因此,亟需能够在测试阶段识别分布外(OOD)样本并触发警报的检测技术。现有图结构的OOD检测方法通常从多个角度刻画分布内(ID)模式,并训练端到端图神经网络进行预测。然而,由于训练阶段缺乏分布外数据,缺少显式监督信号可能导致端到端编码器性能不佳。为此,我们采用预训练+提示范式,利用预训练的图神经网络编码器,提出解耦图提示(DGP),借助分布内图标签捕捉细粒度的分布内模式。具体而言,设计两个提示生成器,分别通过修改输入图的边权重生成类别相关的和类别无关的提示图。同时设计多种有效损失函数以训练提示生成器并防止平凡解。在十个数据集上进行的大量实验表明,所提DGP显著优于现有最优基线,相对AUC提升达3.63%。消融研究与超参数实验进一步验证了DGP的有效性。代码已开源:https://github.com/BUPT-GAMMA/DGP。

原文摘要 · Abstract (English)

When testing data and training data come from different distributions, deep neural networks (DNNs) will face significant safety risks in practical applications. Therefore, out-of-distribution (OOD) detection techniques, which can identify OOD samples at test time and alert the system, are urgently needed. Existing graph OOD detection methods usually characterize fine-grained in-distribution (ID) patterns from multiple perspectives, and train end-to-end graph neural networks (GNNs) for prediction. However, due to the unavailability of OOD data during training, the absence of explicit supervision signals could lead to sub-optimal performance of end-to-end encoders. To address this issue, we follow the pre-training+prompting paradigm to utilize pre-trained GNN encoders, and propose Disentangled Graph Prompting (DGP), to capture fine-grained ID patterns with the help of ID graph labels. Specifically, we design two prompt generators that respectively generate class-specific and class-agnostic prompt graphs by modifying the edge weights of an input graph. We also design several effective losses to train the prompt generators and prevent trivial solutions. We conduct extensive experiments on ten datasets to demonstrate the superiority of our proposed DGP, which achieves a relative AUC improvement of 3.63% over the best graph OOD detection baseline. Ablation studies and hyper-parameter experiments further show the effectiveness of DGP. Code is available at https://github.com/BUPT-GAMMA/DGP.

图神经网络OOD检测提示学习

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。