PRODIGY: Enabling In-context Learning Over Graphs
Qian Thanks: indicates equal contribution. Affiliation: Stanford University Hongyu Affiliation: Stanford University Peng Affiliation: Stanford University Gregor Affiliation: University of Ljubljana Daniel Affiliation: Stanford University Percy Affiliation: Stanford University Jure Affiliation: Stanford University
Abstract
In-context learning is the ability of a pretrained model to adapt to novel and diverse downstream tasks by conditioning on prompt examples, without optimizing any parameters. While large language models have demonstrated this ability, how in-context learning could be performed over graphs is unexplored. In this paper, we develop Pretraining Over Diverse In-Context Graph Systems (PRODIGY), the first pretraining framework that enables in-context learning over graphs. The key idea of our framework is to formulate in-context learning over graphs with a novel prompt graph representation, which connects prompt examples and queries. We then propose a graph neural network architecture over the prompt graph and a corresponding family of in-context pretraining objectives. With PRODIGY, the pretrained model can directly perform novel downstream classification tasks on unseen graphs via in-context learning. We provide empirical evidence of the effectiveness of our framework by showcasing its strong in-context learning performance on tasks involving citation networks and knowledge graphs. Our approach outperforms the in-context learning accuracy of contrastive pretraining baselines with hard-co
原文 arXiv:2305.12600;中英对照 + 大白话阅读 https://aha.fim.ai/paper/2305.12600v1