We present a new neighbor sampling method on temporal graphs. In a temporal graph, predicting different nodes' time-varying properties can require the receptive neighborhood of various temporal scales. In this work, we propose the TNS (Time-aware Neighbor Sampling) method: TNS learns from temporal information to provide an adaptive receptive neighborhood for every node at any time. Learning how to sample neighbors is non-trivial, since the neighbor indices in time order are discrete and not differentiable. To address this challenge, we transform neighbor indices from discrete values to continuous ones by interpolating the neighbors' messages. TNS can be flexibly incorporated into popular temporal graph networks to improve their effectiveness without increasing their time complexity. TNS can be trained in an end-to-end manner. It needs no extra supervision and is automatically and implicitly guided to sample the neighbors that are most beneficial for prediction. Empirical results on multiple standard datasets show that TNS yields significant gains on edge prediction and node classification.
翻译:我们在时间图中展示了一个新的邻居抽样方法。 在时间图中, 预测不同的节点时间变化属性可能需要不同时间尺度的可接受区块。 在这项工作中, 我们建议 TNS 方法: TNS 从时间信息中学习, 以随时为每个节点提供一个适应性可接受区块。 学习如何抽样邻居是非三角的, 因为邻居的时序指数是分散的, 无法区分的。 为了应对这一挑战, 我们通过对邻居的信息进行内插, 将邻里指数从离散值转换为连续值。 TNS 可以灵活地融入流行的时间图网络, 以提高其有效性, 同时又不增加时间的复杂度。 TNS 可以以端对端的方式接受培训。 它不需要额外的监督,并且自动和隐含性地指导对最有利于预测的邻居进行抽样。 多个标准数据集的 Epiricacal 结果表明, TNS 在边缘预测和节点分类上取得了显著的收益 。