Blockwise Feature Interaction in Recommendation Systems

Weijie Zhao, Ping LiarXiv 2023 · DOI

Abstract

Modern recommendation systems rely on capturing complex feature interactions, often using architectures like the Deep & Cross Network (DCNv2). However, the quadratic computational and memory costs of DCNv2's cross-layers pose significant scalability challenges for large-scale production environments. This paper introduces Blockwise Feature Interaction (BFI), a practical optimization that partitions feature vectors into blocks to reduce resource requirements. By employing shuffling mechanisms to maintain cross-block interactions, BFI achieves competitive accuracy with a fraction of the parameters and computational overhead. Our evaluation on public datasets demonstrates that BFI enables higher-order feature modeling within strict latency and memory constraints.

Introduction

In recommendation systems, capturing dependencies between features—such as user demographics and item categories—is crucial for predictive performance. DCNv2 has emerged as a state-of-the-art solution for automatically learning these interactions. Despite its effectiveness, the cross-layer operation in DCNv2 involves a weight matrix that scales quadratically ($D^2$) with the feature dimension $D$. In industrial applications with massive feature vectors, this leads to prohibitive memory bottlenecks and high inference latency, making real-time deployment difficult.

Methods

The core innovation is Blockwise Feature Interaction (BFI). Instead of performing one massive $D \times D$ matrix multiplication, the authors partition the $D$-dimensional feature vector into $K$ smaller blocks, each of size $D/K$. Each block is processed by its own smaller weight matrix of size $(D/K) \times (D/K)$, reducing the total parameter count and computation from $O(D^2)$ to $O(D^2/K)$.

To prevent features from being "trapped" in their own blocks, BFI incorporates a Shuffle & Split mechanism. Shuffling the feature vector before splitting ensures that over multiple layers, any feature can potentially interact with any other feature. Additionally, an interaction weight sharing variant allows all $K$ blocks to share the same weight matrix, further reducing memory usage to $O(D^2/K^2)$.

Comparison of the standard DCNv2 cross-layer and the proposed Blockwise Feature Interaction (BFI) architecture.

Results

The researchers evaluated BFI on the Covertype and YouTube Multiview Video Games (YSpectro) datasets. A key insight is that BFI offers a "budget advantage": for a fixed computational cost, one can run multiple BFI layers instead of a single expensive DCNv2 layer, capturing higher-order interactions.

Furthermore, the authors identified that a deep Multi-Layer Perceptron (MLP) acts as a "safety net." If the cross-network is followed by a sufficiently deep MLP, the performance gap between BFI and the baseline narrows significantly. On the Covertype dataset, BFI with $K=3$ achieved accuracy almost identical to the full DCNv2 baseline. As shown in the experimental results, increasing the MLP depth ($L$) significantly improves the test accuracy across different numbers of cross layers.

Test accuracy on the Covertype dataset across different numbers of cross layers and MLP depths (L).

Conclusion

Blockwise Feature Interaction (BFI) provides a scalable alternative to standard cross-layers in DCNv2, making high-order feature interaction modeling feasible for large-scale systems. By trading off a small amount of theoretical interaction capacity for significant gains in efficiency, and leveraging shuffling and deep MLP layers to recover performance, BFI offers a robust solution for production-grade recommendation engines.

Summary updated

BibTeX
@misc{zhao2023blockwise,
  author = {Weijie Zhao and Ping Li},
  title = {{Blockwise Feature Interaction in Recommendation Systems}},
  year = {2023},
  eprint = {2306.15881},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2306.15881},
}
Figure