Efficient Neural Interaction Function Search for Collaborative Filtering

Quanming Yao, Xiangning Chen, James T. Kwok, Yong Li, Cho-Jui Hsieh

Abstract

In Collaborative Filtering (CF), the interaction function (IFC) is critical for modeling the relationship between user and item embeddings. Traditionally, these functions are manually designed through trial and error, a process that is both labor-intensive and often leads to suboptimal performance. This paper introduces SIF (Simple neural Interaction Function search), an automated framework that discovers optimal interaction mathematics for any given dataset. By utilizing a structured search space and an efficient one-shot search algorithm, SIF consistently outperforms hand-crafted models and general architecture search methods in both predictive accuracy and computational speed.

Introduction

Collaborative Filtering aims to predict missing entries in user-item rating matrices. The core of any CF model is its Interaction Function (IFC), which combines user and item embeddings to generate a prediction. While the "inner product" was long considered the standard, recent research has shown that operations like addition, concatenation, or convolution can be more effective depending on the dataset. However, there is no universal "best" function. Manually designing these functions for every new scenario is inefficient, and using large Multi-Layer Perceptrons (MLPs) as black-box approximators is often computationally expensive and difficult to optimize.

The SIF Framework

To address these challenges, SIF proposes a two-level structured search space designed specifically for CF tasks:

  1. Micro-level: A small, non-linear MLP ($g$) that transforms individual elements of the embedding vectors to capture fine-grained features.
  2. Macro-level: Vector-wise operations (such as multiplication, addition, min, and max) that combine the transformed user and item vectors into a final representation.
The structured search space of SIF, featuring micro-level element-wise transformations and macro-level vector-wise operations.

Instead of training thousands of candidate models, SIF employs a "one-shot" search strategy based on NASP (Neural Architecture Search by Proximal iterations). This approach maintains a "supernet" of all possible operations, using gradient descent to simultaneously optimize model weights on training data and architecture importance weights on validation data. This bi-level optimization ensures that the discovered architecture generalizes well to unseen data.

Experimental Evaluation

SIF was evaluated on three benchmark datasets: MovieLens-100K (small-scale), MovieLens-1M (medium-scale), and a sampled Youtube dataset (large-scale tensor data). The framework was compared against state-of-the-art hand-designed models like Neural Collaborative Filtering (NCF) and Deep & Wide, as well as other AutoML baselines.

Performance comparison (RMSE) of SIF against baseline models across different embedding dimensions on MovieLens and Youtube datasets.

Key Findings

  • Superior Accuracy: SIF consistently achieved lower Root Mean Square Error (RMSE) than all baseline models across various embedding dimensions.
  • Dynamic Optimal Operations: The search results revealed that the "best" operation is context-dependent. For instance, while "min" or "inner product" might excel with small embeddings on MovieLens-100K, additive operations often become superior as embedding sizes increase.
  • Efficiency Gains: SIF is significantly faster than traditional AutoML methods like Reinforcement Learning or Bayesian Optimization. On MovieLens-1M, SIF identified an optimal architecture in approximately 745 seconds, outperforming more complex search methods by a factor of 2 to 5.
  • Robustness: The micro-level transformations proved highly stable; performance remained consistent as long as the transformation MLP contained at least five hidden units, regardless of the specific activation function used.

Conclusion

SIF demonstrates that automating the design of interaction functions can lead to significant gains in recommendation performance. By constraining the search space with domain-specific knowledge (the micro/macro split), SIF achieves a balance between expressivity and search efficiency. Future work may extend this framework to ranking-based metrics and sequential recommendation tasks where user-item interactions evolve over time.

Summary updated

BibTeX
@inproceedings{yao2020efficient,
  author = {Quanming Yao and Xiangning Chen and James T. Kwok and Yong Li and Cho-Jui Hsieh},
  title = {{Efficient Neural Interaction Function Search for Collaborative Filtering}},
  booktitle = {The Web Conference},
  year = {2020},
  doi = {10.1145/3366423.3380237},
}
Figure