Lightweight Embeddings with Graph Rewiring for Collaborative Filtering

Xurong Liang, Tong Chen, Wei Yuan, Hongzhi Yin

Abstract

Graph Neural Network (GNN) based recommender systems achieve high accuracy but are often too resource-intensive for edge devices. This paper presents LERG (Lightweight Embeddings with Rewired Graph), a framework that integrates quantized compositional embeddings with a novel graph-rewiring technique. By identifying and pruning nodes with low collaborative signal and quantizing shared meta-embeddings, LERG significantly reduces storage and computational overhead, enabling efficient on-device training and inference without substantial loss in recommendation quality.

Introduction

Modern recommendation systems increasingly leverage Graph Neural Networks (GNNs) to model intricate user-item interactions. However, deploying these models on edge devices (e.g., smartphones) is challenging due to two primary bottlenecks: massive storage requirements for high-dimensional embedding tables and high computational costs associated with graph propagation.

While previous methods like LEGCF addressed storage via compositional embeddings, they struggled under extreme memory constraints and did not mitigate the computational burden of GNN operations. LERG addresses both challenges by combining Quantization-Aware Training (QAT) with a smart graph-pruning technique to enable efficient on-device functionality.

Methodology

The LERG framework operates through a server-to-edge pipeline consisting of two main technical innovations:

  1. Quantized Compositional Codebook: Instead of unique vectors for every entity, LERG uses a small set of "meta-embeddings." User and item representations are composed from these shared vectors. To further compress the model, LERG applies quantization to convert 32-bit float meta-embeddings into low-bit integers (e.g., INT8). This compression allows for a larger number of meta-embeddings within the same memory budget, increasing representation diversity and reducing "collisions" where different users end up with identical representations.
  2. Graph Rewiring via Binary Integer Programming: LERG reduces computation by pruning the interaction graph. After pretraining on a server, a mathematical optimization problem identifies nodes that contribute the most to collaborative signals. "Weak" nodes are pruned, resulting in a sparse, rewired graph ($A'$).
  3. Efficient On-Device Fine-Tuning: Only the quantized codebook and the sparse graph are deployed. During fine-tuning, only "retained" nodes undergo full graph propagation. "Pruned" nodes are assigned to a small set of placeholder embeddings ($C_{prune}$) derived via clustering, minimizing runtime memory and compute.
The LERG framework pipeline, illustrating (a) quantization of meta-embeddings, (b) graph pruning and rewiring, (c) clustering for pruned entities, and (d) the final inference process for retained and pruned entities.

Experimental Evaluation

The authors evaluated LERG on three benchmark datasets: Yelp2020, Amazon-book, and the industry-scale Alibaba-iFashion (500k users, 1.46M items). The results demonstrate that LERG outperforms recent lightweight baselines like ESAPN and PEP across all metrics.

Key Performance Metrics

  • Storage Reduction: On the Alibaba-iFashion dataset, LERG reduced embedding storage by 97.7% (from 760.46 MB to 17.12 MB) compared to a standard full embedding table, with only a minor 15.1% drop in NDCG@10.
  • Computational Savings: By retaining only 10% of nodes for active propagation on iFashion, LERG reduced required MACs from 41 billion to 25 billion, cutting training epoch time by over 27%.
  • Memory Efficiency: Peak runtime memory during fine-tuning on iFashion was reduced from 26.22 GB to just 0.58 GB, making it highly suitable for mobile hardware.

Conclusion

LERG demonstrates that not all nodes are equal in message passing and that quantization can be leveraged to increase model expressiveness under strict hardware constraints. By mathematically identifying and pruning nodes that do not strongly influence their neighbors, LERG skips billions of calculations without destroying model accuracy. While the pipeline requires a multi-stage pre-processing phase (pretraining, clustering, and rewiring), the resulting efficiency gains make GNN-based recommendation feasible on resource-constrained edge hardware. Future work may explore applying these rewiring techniques to broader GNN architectures and dynamic streaming scenarios.

Summary updated

BibTeX
@article{liang2025lightweight,
  author = {Xurong Liang and Tong Chen and Wei Yuan and Hongzhi Yin},
  title = {{Lightweight Embeddings with Graph Rewiring for Collaborative Filtering}},
  journal = {ACM Trans. Information Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=Nh30inyvQE},
}
Figure