Add dataset card and link to paper
#3
by nielsr HF Staff - opened
README.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
task_categories:
|
| 3 |
+
- graph-ml
|
| 4 |
+
---
|
| 5 |
+
|
| 6 |
+
# LoReC: Rethinking Large Language Models for Graph Data Analysis
|
| 7 |
+
|
| 8 |
+
This repository contains data associated with the paper [LoReC: Rethinking Large Language Models for Graph Data Analysis](https://huggingface.co/papers/2604.17897).
|
| 9 |
+
|
| 10 |
+
[**GitHub Repository**](https://github.com/Git-King-Zhan/LoReC)
|
| 11 |
+
|
| 12 |
+
## Introduction
|
| 13 |
+
LoReC (Look, Remember, Contrast) is a novel plug-and-play method for the GraphLLM paradigm. It enhances the understanding of graph data in Large Language Models through three stages:
|
| 14 |
+
1. **Look**: Redistributing attention to the graph.
|
| 15 |
+
2. **Remember**: Re-injecting graph information into the Feed-Forward Network (FFN).
|
| 16 |
+
3. **Contrast**: Rectifying the vanilla logits produced in the decoding process.
|
| 17 |
+
|
| 18 |
+
This method improves performance on graph-related tasks without requiring extra fine-tuning.
|
| 19 |
+
|
| 20 |
+
## Usage
|
| 21 |
+
The graph data in this project is typically stored in PyTorch Geometric (PyG) format within `.pt` files. You can load the data as follows:
|
| 22 |
+
|
| 23 |
+
```python
|
| 24 |
+
import torch as th
|
| 25 |
+
|
| 26 |
+
# Load the graph data
|
| 27 |
+
graph_data = th.load('all_graph_data.pt')
|
| 28 |
+
|
| 29 |
+
# Access specific dataset components (e.g., 'arxiv')
|
| 30 |
+
arxiv_graph = graph_data['arxiv']
|
| 31 |
+
```
|
| 32 |
+
|
| 33 |
+
## Citation
|
| 34 |
+
```bibtex
|
| 35 |
+
@misc{zhan2026lorecrethinkinglargelanguage,
|
| 36 |
+
title={LoReC: Rethinking Large Language Models for Graph Data Analysis},
|
| 37 |
+
author={Hongyu Zhan and Qixin Wang and Yusen Tan and Haitao Yu and Jingbo Zhou and Shuai Chen and Jia Li and Xiao Tan and Jun Xia},
|
| 38 |
+
year={2026},
|
| 39 |
+
eprint={2604.17897},
|
| 40 |
+
archivePrefix={arXiv},
|
| 41 |
+
primaryClass={cs.LG},
|
| 42 |
+
url={https://arxiv.org/abs/2604.17897},
|
| 43 |
+
}
|
| 44 |
+
```
|