Graph-based Alignment and Uniformity for Recommendation

Liangwei Yang, Zhiwei Liu, Chen Wang, Mingdai Yang, Xiaolong Liu, Jing Ma, Philip S. Yu · DOI

Abstract

Recent advancements in recommendation systems have highlighted the importance of the geometric properties of embeddings, specifically alignment and uniformity. However, existing methods like DirectAU primarily focus on first-order interactions, struggling with the inherent data sparsity of real-world recommendation graphs. This paper introduces GraphAU, a framework that leverages Graph Neural Networks (GNNs) to incorporate high-order neighborhood information into the alignment and uniformity paradigm. By aligning base embeddings with aggregated neighborhood summaries, GraphAU captures complex structural dependencies without the exponential computational overhead of traditional multi-hop methods. Experimental results on four benchmark datasets show that GraphAU consistently outperforms state-of-the-art baselines, achieving up to a 16.64% improvement in Recall@20 on sparse datasets.

Introduction

Modern recommender systems (RecSys) aim to learn high-quality representations for users and items. Theoretical studies suggest that optimal embeddings should reside on a hypersphere and satisfy two key properties: alignment (similar entities are close) and uniformity (embeddings are evenly distributed). While the DirectAU method successfully implemented these properties for direct user-item interactions, it fails to account for the high-order connectivity essential for overcoming data sparsity. Calculating alignment for every possible high-order connection is computationally prohibitive. GraphAU addresses this by integrating neighborhood aggregation with the alignment-uniformity framework.

Methodology

GraphAU introduces two primary innovations to capture high-order signals efficiently:

Multi-hop Neighborhood Alignment

Instead of performing pairwise alignment for every high-order connection, GraphAU utilizes a neighborhood aggregator (e.g., LightGCN) to generate a single "summary" vector for a neighborhood at a specific hop distance. The model then aligns the user’s base embedding directly with this dense representation. This approach captures the essence of the neighborhood while maintaining a constant number of alignment operations per user/item.

The GraphAU framework architecture, illustrating the flow from graph interactions to neighborhood aggregation and layer-wise alignment pooling.

Layer-wise Alignment Pooling

Recognizing that different hops carry varying levels of relevance, GraphAU calculates independent alignment losses for each layer. These losses are integrated via a pooling module using a modification factor ($\alpha$). This allows the model to adaptively weight local versus global structural information based on the specific characteristics of the dataset.

Experimental Results

GraphAU was evaluated against several baselines, including Matrix Factorization (MF-BPR), NGCF, LightGCN, and DirectAU, across four datasets: Amazon Office, Toys, Beauty, and Gowalla.

Performance and Efficiency

GraphAU achieved state-of-the-art results across all benchmarks. Notably, on the Amazon Office dataset, it delivered a 16.64% improvement in Recall@20 over DirectAU. This gain is attributed to the model's ability to "pull" embeddings toward their high-order neighborhoods, providing a richer training signal for sparse users.

Critically, GraphAU maintains high efficiency. As the number of layers (hops) increases, the number of high-order edges grows exponentially. However, by aligning with aggregated representations rather than individual edges, GraphAU's training time remains nearly constant, whereas a naive high-order extension of DirectAU would face a computational explosion.

Comparison of training time and high-order edge growth, demonstrating GraphAU's scalability compared to a direct high-order alignment approach.

Hyperparameter Sensitivity

The study found that the trade-off parameter $\gamma$ (balancing alignment and uniformity) and the layer weight $\alpha$ are crucial. For instance, the Office dataset benefited from a broader view ($\alpha > 1$), while the Toys dataset performed better with a focus on local neighbors ($\alpha < 1$).

Conclusion

GraphAU effectively bridges the gap between geometric embedding properties and graph-based structural learning. By utilizing neighborhood aggregation, it captures vital high-order signals to combat data sparsity without sacrificing scalability. Future work may explore more sophisticated attention-based aggregators and the adaptation of this framework to explicit feedback or multi-behavior recommendation tasks.

Summary updated

BibTeX
@inproceedings{yang2023graph,
  author = {Liangwei Yang and Zhiwei Liu and Chen Wang and Mingdai Yang and Xiaolong Liu and Jing Ma and Philip S. Yu},
  title = {{Graph-based Alignment and Uniformity for Recommendation}},
  booktitle = {ACM International Conference on Information and Knowledge Management},
  year = {2023},
  doi = {10.1145/3583780.3615185},
}
Figure