Efficient and Joint Hyperparameter and Architecture Search for Collaborative Filtering

Yan Wen, Chen Gao, Lingling Yi, Liwei Qiu, Yaqing Wang, Yong Li

Introduction

In the domain of Recommender Systems, Collaborative Filtering (CF) remains a cornerstone technique for modeling user-item interactions. As neural models for CF have grown in complexity, the performance of these systems has become increasingly sensitive to two factors: the neural architecture (the structural design of the model) and the hyperparameters (the configuration of the training process).

Historically, researchers have optimized these two components in isolation. Neural Architecture Search (NAS) focuses on the arrangement of embeddings and interaction functions, while Hyperparameter Optimization (HPO) tunes variables like learning rates and weight decay. However, this decoupled approach ignores the "Dependency Principle"—the reality that a specific architecture's effectiveness is often contingent upon a specific set of hyperparameters. This paper presents a novel framework designed to tackle the joint search of architectures and hyperparameters efficiently, overcoming the combinatorial explosion that typically plagues such high-dimensional search spaces.

The Joint Search Problem

The primary challenge in joint NAS and HPO is the sheer scale of the search space. Combining dozens of architectural choices with a continuous range of hyperparameters creates a search space too vast for exhaustive exploration. Furthermore, evaluating a single configuration on large-scale recommendation datasets is computationally expensive.

To address these issues, the authors propose a framework that leverages three core strategies: Search Space Screening, Frequency-Based Sampling, and a Two-Stage Search Algorithm.

Methodology

1. Search Space Screening

Not all hyperparameters contribute equally to model performance. The authors utilize Spearman Rank-order Correlation (SRCC) to identify "consistent" hyperparameters—those that maintain their relative performance impact across different architectures. By analyzing these correlations, they can "screen" the search space, fixing low-impact parameters or narrowing the range of critical ones (like learning rate) before the main search begins. This significantly reduces the dimensionality of the problem without sacrificing the quality of the final model.

2. Frequency-Based Sampling

To accelerate the evaluation process, the framework avoids training on full datasets during the initial search phases. Instead, it employs a frequency-based sampling method on the user-item interaction matrix to construct representative subgraphs. The authors provide empirical evidence that the relative ranking of different model configurations on these subsampled datasets is highly consistent with their ranking on the full dataset. This "Ranking Consistency" allows the search algorithm to identify promising candidates using only a fraction of the total data.

3. Two-Stage Search Algorithm

The search process is divided into two distinct stages:

  • Stage 1: Exploration. A surrogate model—specifically a Random Forest regressor within a Bayesian Optimization by Density-Ratio Estimation (BORE) framework—is used to explore the reduced search space on the subsampled datasets. Random Forests are chosen for their ability to handle the categorical (one-hot) nature of architectural choices more effectively than standard Gaussian Processes.
  • Stage 2: Fine-Tuning. The knowledge captured by the surrogate model is transferred to the full dataset. A final, targeted search is performed to fine-tune the optimal configuration, ensuring the model scales effectively to the complete interaction graph.

Experimental Evaluation

The framework was tested against four major benchmarks: MovieLens-100K, MovieLens-1M, Yelp, and Amazon-Book. The search space included various input features (ID-based vs. History-based), embedding methods (NN-based vs. Graph-based like SGC), interaction functions (e.g., multiply, min, max), and prediction layers.

Key Results

The joint search framework demonstrated superior performance across all metrics:

  • State-of-the-Art Accuracy: The discovered models consistently outperformed established baselines such as LightGCN and NGCF.
  • Superiority over NAS-only Methods: Compared to AutoCF, a specialized NAS method for collaborative filtering, the joint search improved Recall@20 by margins ranging from 3.1% to 12.1%.
  • Efficiency: The entire search process is remarkably fast. For the MovieLens-1M dataset, the search concludes in approximately 3.5 to 4 hours on a single NVIDIA RTX 3090 GPU.
  • Dataset Sensitivity: The results confirmed that the "best" model is highly data-dependent. While certain components like Simple Graph Convolution (SGC) were frequently selected, the optimal combination of architecture and hyperparameters varied across datasets, justifying the need for an automated, data-specific search process.

Conclusion

This research highlights the necessity of treating neural architecture and hyperparameters as an integrated unit in the design of Recommender Systems. By combining search space screening with efficient sampling and a two-stage optimization strategy, the authors have provided a practical path toward automated, high-performance Collaborative Filtering. Future work may extend this framework to incorporate Knowledge Graphs or explore even more granular, zero-shot architecture generation techniques.

Summary updated

BibTeX
@inproceedings{wen2023efficient,
  author = {Yan Wen and Chen Gao and Lingling Yi and Liwei Qiu and Yaqing Wang and Yong Li},
  title = {{Efficient and Joint Hyperparameter and Architecture Search for Collaborative Filtering}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2023},
}
Figure