Lightweight Embeddings with Graph Rewiring for Collaborative Filtering

Xurong Liang, Tong Chen, Wei Yuan, Hongzhi Yin

TL;DR

LERG (Lightweight Embeddings with Rewired Graph) is a novel framework designed to bring powerful Graph Neural Network (GNN) recommender systems to resource-constrained edge devices. By combining quantized compositional embeddings with a "graph rewiring" strategy that prunes low-contribution nodes, LERG slashes storage and computation costs (MACs) while maintaining state-of-the-art recommendation accuracy.

What Problem Does This Paper Address?

GNN-based collaborative filtering is highly effective because it captures high-order relationships in user-item interaction graphs. However, these models are notoriously "heavy," presenting two major hurdles for deployment on edge devices (like smartphones or IoT hardware):

  1. Storage Bottleneck: Embedding tables for millions of users and items are massive, often requiring gigabytes of memory.
  2. Computation Bottleneck: Graph propagation involves billions of Multiply-Accumulate (MAC) operations. This leads to high runtime latency and prevents efficient on-device fine-tuning.

Existing solutions like pruning or dimension search often sacrifice too much accuracy or fail to address the actual runtime computation costs. The authors' previous work, LEGCF, reduced storage but struggled under strict memory limits and didn't solve the computation latency issue.

Methods

LERG introduces a multi-pronged approach to optimize GNNs:

  • Quantized Compositional Codebook: Instead of storing a unique vector for every user, LERG uses a small "codebook" of meta-embeddings. Each user/item is represented as a sparse combination of these meta-embeddings. To further compress this, LERG employs Learned Step Size Quantization (LSQ), storing meta-embeddings as low-bit integers (INT8/INT16) rather than 32-bit floats.
  • Graph Rewiring via Binary Integer Programming (BIP): To reduce computation, LERG identifies which entities contribute the least to the "collaborative signal." They frame this as a BIP problem (relaxed to Linear Programming for efficiency). Entities with low impact are pruned from the propagation process, resulting in a "rewired" sparse graph that requires far fewer MACs.
  • Placeholder Imputation: Pruned nodes aren't ignored entirely; their embeddings are imputed from a tiny set of "placeholder" meta-embeddings generated via K-means clustering. This preserves some uniqueness for pruned entities without the storage cost of full vectors.
  • Two-Stage Pipeline: The model is pretrained on a resource-rich server. Then, the quantized codebook, rewired graph, and placeholder assignments are transferred to the edge device for lightweight fine-tuning and inference.

Datasets

The authors evaluated LERG on three public benchmarks:

  • Yelp2020: A medium-scale dataset of business reviews.
  • Amazon-book: A medium-scale dataset of book ratings.
  • Alibaba iFashion: An industry-scale dataset containing over 26 million interactions among 2 million users and items, used to test the model's scalability.

Key Insights and Ideas

  • The "Collision" Solution: In compositional embeddings, tight storage limits often lead to "collisions" (different users getting identical embeddings). By using quantization, LERG makes each meta-embedding smaller, allowing the model to store more of them in the same memory budget, which significantly improves model expressiveness and uniqueness.
  • Not All Nodes Propagate Equally: The "aha moment" for graph efficiency is that a large portion of nodes in a recommender graph contribute very little to the overall signal. Pruning these "quiet" nodes from the propagation step (rewiring) allows for massive speedups with negligible loss in accuracy.
  • Fixed Assignments for Speed: Unlike LEGCF, which updated assignments dynamically (adding heavy computation), LERG fixes the assignment matrix after an intelligent initialization using METIS graph partitioning. This ensures high-quality initial representations while keeping the on-device workload light.

Key Results

  • Superior Performance: LERG consistently outperformed recent lightweight baselines (like PEP, CIESS, and ESAPN) across all datasets.
  • Massive Compression: On the industry-scale iFashion dataset, LERG reduced embedding storage by 97.7% compared to a standard full-embedding model, while only seeing a 15.1% dip in NDCG@20.
  • Computation Efficiency: The graph rewiring technique reduced runtime memory usage and training time per epoch by approximately 27% on the largest dataset compared to the full-graph pretraining stage.
  • On-Device Viability: LERG achieved the lowest peak runtime memory (MEM) across all tested methods, making it the most robust choice for hardware with strict RAM limits.

Limitations and Future Work

While LERG is highly efficient, the graph rewiring step (solving the BIP/LP problem) still requires a server-side pre-computation because it relies on the full interaction graph.

The authors suggest that future research could explore more dynamic rewiring—allowing the graph to adapt on-device as new user interactions occur, without needing to "call home" to a central server. Additionally, exploring even lower-bit quantization (e.g., 4-bit or 2-bit) for the codebook could push the boundaries of compression even further.

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