the.ai

Graphs / Systems

verified

Neighborhood Sampling

A node's two-hop neighbourhood on a social graph can be most of the graph, so computing one node's representation exactly can mean touching millions. Sampling fixes a budget instead: take a handful of neighbours per hop, accept that the answer is an estimate, and get a model that trains on graphs too large to hold at once.

Viz primitive · loss-curvesteps = 2000 · lr = 0.002 · batch = 4 · params = 1
loss
step 02000

Loss over 2000 training steps, starting near 7.1. It falls to about 1.98, with 93% of the total improvement arriving in the first half.

Training loss under sampled neighbourhoods. Drag the sample size up to watch the run steady — every gradient here is an estimate from a subgraph, and the noise is the price of never touching the whole thing.

4

Reviewed by opendroid · 2026-08-18