SWING: Unlocking Implicit Graph Representations for Graph Random Features
Abstract
Lay Summary
Graph kernels are a powerful way to use relational information in machine learning, but applying them can be computationally expensive. Existing approximations, such as Graph Random Features (GRF), can provide large speedups, but they still require explicitly building the graph, which becomes a bottleneck at scale. We propose SWING, a new method that combines Gumbel-softmax sampling with kernel linearization to avoid graph materialization altogether for implicitly defined graphs. This allows graph-kernel computations to scale linearly with the number of nodes. Furthermore, it is natively accelerator-friendly and seamlessly adapts to hardware like GPUs and TPUs. Empirically, we observe that SWING produces speedups exceeding one order of magnitude while matching the approximation accuracy of GRFs.