LLM-Enhanced Energy Contrastive Learning for Out-of-Distribution Detection in Text-Attributed Graphs
Not on the map. Why?
Abstract (arXiv)
Text-attributed graphs, where nodes are enriched with textual attributes, have become a powerful tool for modeling real-world networks such as citation, social, and transaction networks. However, existing methods for learning from these graphs often assume that the distributions of training and testing data are consistent. This assumption leads to significant performance degradation when faced with out-of-distribution (OOD) data. In this paper, we address the challenge of node-level OOD detection in text-attributed graphs, with the goal of maintaining accurate node classification while simultaneously identifying OOD nodes. We propose a novel approach, LLM-Enhanced Energy Contrastive Learning for Out-of-Distribution Detection in Text-Attributed Graphs (LECT), which integrates large language models (LLMs) and energy-based contrastive learning. The proposed method involves generating high-quality OOD samples by leveraging the semantic understanding and contextual knowledge of LLMs to create dependency-aware pseudo-OOD nodes, and applying contrastive learning based on energy functions to distinguish between in-distribution (IND) and OOD nodes. The effectiveness of our method is demonstrated through extensive experiments on six benchmark datasets, where our method consistently outperforms state-of-the-art baselines, achieving both high classification accuracy and robust OOD detection capabilities.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 37 of its 52 references that are in the map. First posted on arXiv 19 Mar 2026.
Builds on
37 of 52 references.
References · 37
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2016Semi-Supervised Classification with Graph Convolutional Networkscited by 11,282
- 2017Graph Attention Networkscited by 8,854
- 2017Inductive Representation Learning on Large Graphscited by 6,284
- 2016A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networkscited by 2,362
- 2024Gemma 2: Improving Open Language Models at a Practical Sizecited by 1,928
- 2020MiniLM: Deep Self-Attention Distillation for Task-Agnostic Compression of Pre-Trained Transformerscited by 1,414
- 2017Enhancing The Reliability of Out-of-distribution Image Detection in Neural Networkscited by 1,325
25 more
- 2020Energy-based Out-of-distribution Detectioncited by 1,296
- 2021Generalized Out-of-Distribution Detection: A Surveycited by 796
- 2023Exploring the Potential of Large Language Models (LLMs) in Learning on Graphscited by 271
- 2023One for All: Towards Training One Graph Model for All Classification Taskscited by 239
- 2024LLaGA: Large Language and Graph Assistantcited by 177
- 2022Learning on Large-scale Text-attributed Graphs via Variational Inferencecited by 153
- 2021GraphFormers: GNN-nested Transformers for Representation Learning on Textual Graphcited by 143
- 2021Node Feature Extraction by Self-Supervised Multi-scale Neighborhood Predictioncited by 137
- 2023GraphText: Graph Reasoning in Text Spacecited by 110
- 2021Graph Posterior Network: Bayesian Predictive Uncertainty for Node Classificationcited by 79
- 2024A Survey of Large Language Models for Graphscited by 71
- 2024Efficient Tuning and Inference for Large Language Models on Textual Graphscited by 54
- 2024A Survey of Graph Neural Networks in Real world: Imbalance, Noise, Privacy and OOD Challengescited by 54
- 2023A Survey on Out-of-Distribution Detection in NLPcited by 31
- 2023Learning on Graphs with Out-of-Distribution Nodescited by 29
- 2024Large Language Models for Anomaly and Out-of-Distribution Detection: A Surveycited by 24
- 2024Supervised Algorithmic Fairness in Distribution Shifts: A Surveycited by 23
- 2021Fairness-Aware Online Meta-learningcited by 19
- 2022Towards OOD Detection in Graph Classification from Uncertainty Estimation Perspectivecited by 13
- 2025SolverLLM: Leveraging Test-Time Scaling for Optimization Problem via LLM-Guided Searchcited by 10
- 2025Multi-Modal Foundation Models for Computational Pathology: A Surveycited by 9
- 2024Learning Fair Invariant Representations under Covariate and Correlation Shifts Simultaneouslycited by 7
- 2025Bounded and Uniform Energy-based Out-of-distribution Detection for Graphscited by 6
- 2023Contrastive Representation Learning Based on Multiple Node-centered Subgraphscited by 3
- 2025Face4FairShifts: A Large Image Benchmark for Fairness and Robust Learning across Visual Domainscited by 1
Built on by
Citing papers per year: 2026: 1.
1 paper.