Lightweight Embeddings for Graph Collaborative Filtering

Xurong Liang, Tong Chen, Lizhen Cui, Yang Wang, Meng Wang, Hongzhi Yin

Abstract

Graph Neural Network (GNN) based recommender systems face a significant "scalability wall" due to the massive memory requirements of unique embedding tables for millions of users and items. We present LEGCF (Lightweight Embeddings for Graph Collaborative Filtering), a framework that replaces traditional embedding tables with a compact pool of "meta-embeddings" and a learnable, sparse assignment matrix. By leveraging graph-aware compositional embeddings and a closed-form optimization for assignments via the Moore-Penrose pseudo-inverse, LEGCF achieves up to a 44x reduction in parameters while maintaining state-of-the-art recommendation accuracy.

Introduction: The Scalability Wall

Modern recommenders utilize GNNs to model complex user-item interactions. However, the standard practice of assigning a high-dimensional vector to every entity leads to embedding tables that can consume hundreds of gigabytes, making them difficult to deploy on edge devices or maintain in the cloud. Existing compression techniques, such as fixed hashing, often suffer from "semantic-blind" collisions where unrelated users share identical representations. LEGCF addresses these limitations by introducing a learnable, semantic-aware embedding composition framework.

Methodology

LEGCF reimagines the embedding layer through four integrated components:

The LEGCF framework: (a) Compositional entity embeddings, (b) Graph propagation, (c) Learning meta-embeddings, and (d) Learning the assignment matrix S.

1. Compositional Embeddings

Instead of a full table, LEGCF maintains a small codebook of meta-embeddings. Each entity's embedding is a weighted combination of a few meta-embeddings, defined by a learnable assignment matrix ($S$).

2. Expanded Message Passing

The framework treats meta-embeddings as "virtual nodes" within the interaction graph. This allows collaborative signals to propagate directly into the meta-embeddings, ensuring they capture the underlying community structure and latent interests of the user base.

3. Optimization via the Pseudo-Inverse Trick

To avoid the instability of optimizing discrete assignments via gradient descent, the authors derive a closed-form solution using the Moore-Penrose pseudo-inverse. This allows for efficient updates to the assignment matrix $S$ while enforcing a "semantic similarity constraint"—ensuring that entities with similar graph neighborhoods share similar meta-embedding components.

4. Dynamic Sparsification

To maintain a minimal memory footprint, the matrix $S$ is pruned on the fly. Only the top-$t$ (typically $t \le 5$) most important meta-embedding assignments per entity are kept, drastically reducing the number of stored parameters.

Experimental Evaluation

The model was evaluated on three benchmark datasets: Gowalla (location-based social network), Yelp2020 (business reviews), and Amazon-book (product interactions). These datasets provide a range of scales and densities to test the robustness of the compression framework. LEGCF was implemented as a plug-and-play layer for several GNN backbones, including LightGCN and NGCF.

Key Results and Insights

  • Massive Compression with High Fidelity: On the Gowalla dataset, LEGCF achieved a 22x to 44x reduction in parameters compared to a full embedding table, with only a marginal (~6.5%) drop in NDCG@20. It consistently outperformed other state-of-the-art compression methods like PEP and AutoEmb.
  • Semantic-Aware Hashing: By making the assignment matrix learnable and tied to the graph structure, LEGCF ensures that "neighbors" in the interest graph share similar "building blocks," effectively mitigating the collision issues inherent in random hashing.
  • Graph Priors and Initialization: The use of METIS (a graph partitioning algorithm) for initializing assignments provides a significant head start by grouping users into communities before training begins, proving far superior to random initialization.

Conclusion and Future Work

LEGCF offers a scalable solution for GNN-based recommendation by decoupling the optimization of embedding values from their assignments. While the pseudo-inverse update involves Singular Value Decomposition (SVD), which can be a bottleneck for extremely large pools, the current implementation mitigates this through batch processing. Future research may explore dynamic composition, where the number of meta-embeddings assigned to a user adapts to their activity level or the complexity of their preferences.

Summary updated

BibTeX
@inproceedings{liang2024lightweight,
  author = {Xurong Liang and Tong Chen and Lizhen Cui and Yang Wang and Meng Wang and Hongzhi Yin},
  title = {{Lightweight Embeddings for Graph Collaborative Filtering}},
  booktitle = {International ACM SIGIR Conference on Research and Development in Information Retrieval},
  year = {2024},
}
Figure