[论文解读] PRODIGY: Enabling In-context Learning Over Graphs
PRODIGY 是首个通过引入统一的提示图表示,实现图结构上少样本学习的框架,该表示统一了节点级、边级和图级任务。它采用注意力机制的图神经网络处理提示图,并设计了一套自监督预训练目标,相比对比基线方法在少样本设置下准确率提升18%,相比有限数据下的微调方法提升33%。
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 extbf{Pr}etraining extbf{O}ver extbf{D}iverse extbf{I}n-Context extbf{G}raph S extbf{y}stems (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 \emph{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-coded adaptation by 18\% on average across all setups. Moreover, it also outperforms standard finetuning with limited data by 33\% on average with in-context learning.
研究动机与目标
- 在无需微调或参数更新的情况下,实现图机器学习任务的少样本学习。
- 将多样化的图分类任务——节点级、边级和图级——统一到单一基于提示的表示中。
- 设计一个预训练框架,使其在无需重训练的情况下,能泛化到新图和新任务。
- 开发一种专为图结构少样本学习设计的图神经网络架构和预训练目标。
- 仅通过提示样例,在未见图和任务上展示强大的少样本泛化能力。
提出的方法
- 提出提示图,一种统一图结构,将提示样例和查询中的输入节点/边与标签节点连接,形成用于少样本学习的任务特定图。
- 采用带有注意力机制的图神经网络,对提示图中的信息进行聚合,以实现预测。
- 提出一套少样本预训练目标,包括邻居匹配,用于分类节点或边的邻域。
- 在大规模引文图和知识图(如 MAG240M、Wiki)上进行自监督预训练,以学习可泛化的表征。
- 将属性预测作为关键组件,其显著提升性能,如消融研究所示。
- 在多样化图和任务上端到端训练模型,通过少量提示实现对新图和新任务的零样本适应。
实验结果
研究问题
- RQ1少样本学习能否有效从自然语言扩展到图结构数据?
- RQ2在少样本学习设置下,是否存在一种统一且通用的表示方法,用于处理多样化的图分类任务(节点级、边级、图级)?
- RQ3如何对图模型进行预训练,使其在无需微调的情况下,泛化到新图和新任务?
- RQ4哪些架构和预训练组件能够实现图结构少样本学习中的强少样本泛化能力?
- RQ5性能如何随提示样例数量和预训练数据规模而变化?
主要发现
- 在所有数据集和标签数量的少样本学习设置下,PRODIGY 平均比硬编码适应的对比基线方法高出18%。
- 在使用少样本学习时,相比标准微调方法,其性能平均提升32.6%,尤其在标注数据有限的情况下。
- 在 arXiv 数据集的5分类设置下,其论文类别分类准确率达到69.07%,超过 TENT(65.13%),尽管该模型从未在该任务上进行过训练。
- 随着提示样例的增加,性能持续提升,表明模型能有效推理提示模式,超越预训练分布。
- 扩大预训练数据规模可一致提升 PRODIGY 的性能,而对比基线方法则迅速饱和。
- 消融研究显示,属性预测是影响最大的组件,其移除导致平均性能下降7%。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。