Skip to main content
QUICK REVIEW

[Paper Review] Bandit Samplers for Training Graph Neural Networks.

Ziqi Liu, Zhengwei Wu|arXiv (Cornell University)|Jan 1, 2020
Advanced Graph Neural NetworksComputer Science3 citations
TL;DR

This paper proposes a bandit-based sampling method for training graph neural networks (GNNs) that dynamically balances exploration and exploitation to minimize variance in gradient estimation. By modeling sampling as an adversarial bandit problem, the method adapts to changing node embeddings and learned weights, achieving asymptotic optimality within a factor of 3 of the theoretical minimum variance.

ABSTRACT

Several sampling algorithms with variance reduction have been proposed for accelerating the training of Graph Convolution Networks (GCNs). However, due to the intractable computation of optimal sampling distribution, these sampling algorithms are suboptimal for GCNs and are not applicable to more general graph neural networks (GNNs) where the message aggregator contains learned weights rather than fixed weights, such as Graph Attention Networks (GAT). The fundamental reason is that the embeddings of the neighbors or learned weights involved in the optimal sampling distribution are changing during the training and not known a priori, but only partially observed when sampled, thus making the derivation of an optimal variance reduced samplers non-trivial. In this paper, we formulate the optimization of the sampling variance as an adversary bandit problem, where the rewards are related to the node embeddings and learned weights, and can vary constantly. Thus a good sampler needs to acquire variance information about more neighbors (exploration) while at the same time optimizing the immediate sampling variance (exploit). We theoretically show that our algorithm asymptotically approaches the optimal variance within a factor of 3. We show the efficiency and effectiveness of our approach on multiple datasets.

Motivation & Objective

  • Address the suboptimality of existing sampling methods in Graph Convolution Networks (GCNs) due to intractable optimal sampling distributions.
  • Overcome the limitation of current variance-reduction samplers that rely on fixed weights and cannot be applied to GNNs with learned aggregators like Graph Attention Networks (GAT).
  • Formulate the sampling variance optimization as an adversarial bandit problem where rewards depend on dynamic node embeddings and learned weights.
  • Develop a method that adaptively explores neighbor information while exploiting immediate variance reduction to improve training efficiency and convergence.

Proposed method

  • Model the sampling process as an adversarial bandit problem, where each neighbor selection corresponds to an arm with stochastic rewards tied to gradient variance.
  • Use contextual bandit algorithms to balance exploration (gathering variance information from unseen neighbors) and exploitation (selecting neighbors that minimize immediate variance).
  • Dynamically update sampling policies based on partial observations of node embeddings and learned weights during training, enabling adaptation to changing model states.
  • Theoretical analysis shows that the method asymptotically approaches the optimal sampling variance within a factor of 3, even as model parameters evolve.
  • Integrate the bandit sampler into the forward and backward passes of GNNs without modifying the underlying architecture or aggregation mechanisms.

Experimental results

Research questions

  • RQ1Can a sampling strategy be designed that adapts to the changing embeddings and learned weights in GNNs during training to reduce gradient variance?
  • RQ2How can variance reduction be achieved in GNNs with learned aggregators like GAT, where optimal sampling distributions are intractable due to dynamic dependencies?
  • RQ3To what extent can a bandit-based approach balance exploration and exploitation to approach the theoretical lower bound on sampling variance?
  • RQ4Does the proposed method outperform existing sampling baselines in terms of training speed and model accuracy across diverse graph datasets?

Key findings

  • The proposed bandit sampler asymptotically approaches the optimal sampling variance within a factor of 3, providing a theoretical guarantee on performance.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.