NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Spatial Autoregressive Coding for Graph Neural Recommendation

Jiayi Zheng, Ling Yang, Heyuan Wang, Cheng Yang, Yinghong Li, Xiaowei Hu, Shenda HongarXiv 2022 · DOI

Graph-based recommendation systems face a persistent challenge: capturing deep, high-order relationships between users and items without succumbing to "over-smoothing." In traditional Graph Neural Networks (GNNs), stacking layers to aggregate multi-hop information often causes node embeddings to converge, making them indistinguishable—a problem particularly acute for "long-tail" items with sparse interactions.

Researchers from Peking University and ByteDance address this with Spatial Autoregressive Coding (SAC). Instead of iterative message-passing, SAC treats graph topology as a spatial autoregressive problem, using a mask-and-predict approach to learn robust structural representations.

The Challenge of High-Order Proximity

Modern recommenders model users and items in bipartite graphs. Effective recommendations require understanding direct interactions (1-hop) and indirect similarities (multi-hop). Existing methods generally fall into two categories:

  1. Shallow Random-Walk Models: These sample small sequences, often failing to capture the full proximity of neighbors and leading to biased representations.
  2. Deep GNNs: These aggregate information layer-by-layer. However, excessive stacking leads to over-smoothing, where the unique signals of long-tail items are drowned out by popular neighbors.
Comparison of neighborhood modeling paradigms: Random-walk based, GNN based, and the proposed SAC framework.

The SAC Framework

SAC shifts from layer-wise aggregation to a spatial "mask-and-predict" strategy, drawing inspiration from Masked Language Modeling (MLM) but tailored for graph structures.

1. Spatial Autoregressive Modeling

SAC samples a target node's multi-hop neighborhood and randomly masks specific neighbors. A Transformer-based encoder then integrates the remaining neighbors to "predict" the masked ones. This direct optimization of the target node embedding ensures a more robust representation for downstream tasks compared to standard MLM.

2. Neighbor Information Bottleneck (NIB)

To prevent the model from overfitting to neighborhood noise, SAC incorporates a Neighbor Information Bottleneck. This theoretical framework enforces a "minimal sufficient representation" by:

  • Maximizing Mutual Information (MI): Between the target node and the masked neighbor (sufficiency).
  • Constraining MI: Between the target node and the rest of the surrounding neighbors (minimality).

This process filters out redundant structural noise, allowing the model to generalize better to sparse data.

The SAC architecture, illustrating multi-hop neighbor modeling, spatial autoregressive coding via a Transformer encoder, and the Neighbor Information Bottleneck optimization.

3. Hard Negative Sampling

To refine decision boundaries, SAC employs a 2nd-order random walk strategy to identify "hard negatives"—nodes that are structurally similar but not actual neighbors. This forces the model to learn finer distinctions between entities.

Experimental Evaluation

The model was tested on three public benchmarks (Book-Crossing, Alibaba User-Behavior, and Yelp) and a massive real-world dataset, Douyin-Friend-Recommendation, which contains 1.5 billion users and 250 billion edges.

Key Results

  • Performance Gains: On the Yelp dataset, SAC achieved a 12.10% improvement in Recall@20 and an 18.37% improvement in NDCG@20 over the SGL baseline.
  • Long-Tail Robustness: SAC showed the most significant gains for users with very few interactions (fewer than 5 friends), demonstrating its ability to handle data sparsity where traditional GNNs fail.
  • Efficiency: Despite the use of Transformers, SAC converged faster than self-supervised GNNs due to the dense training signal provided by the autoregressive task.

Conclusion

SAC demonstrates that moving beyond iterative message-passing can significantly improve graph recommendations. By using attention to capture long-range dependencies and an information bottleneck to discard noise, it effectively mitigates over-smoothing and provides superior performance for sparse, long-tail scenarios.

Summary updated

BibTeX
@misc{zheng2022spatial,
  author = {Jiayi Zheng and Ling Yang and Heyuan Wang and Cheng Yang and Yinghong Li and Xiaowei Hu and Shenda Hong},
  title = {{Spatial Autoregressive Coding for Graph Neural Recommendation}},
  year = {2022},
  eprint = {2205.09489},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2205.09489},
}
Figure