NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Adversarial Binary Collaborative Filtering for Implicit Feedback

Haoyu Wang, Nan Shao, Defu Lian

Abstract

Adversarial Binary Collaborative Filtering (ABinCF) addresses the dual challenges of high-quality negative sampling and efficient retrieval in implicit feedback recommendation systems. By integrating Generative Adversarial Networks (GANs) with hashing techniques, ABinCF achieves state-of-the-art accuracy while significantly reducing storage and computation costs. The authors introduce two novel relaxation methods—Error Function Relaxation (erf) and Normal Gumbel-Softmax (Gn)—to overcome the non-differentiability of binary codes, ensuring stable and effective training via backpropagation.

Introduction: The Implicit Feedback Dilemma

Modern recommendation systems primarily rely on implicit feedback, such as clicks or views. This data presents two major hurdles. First, the Negative Sampling Problem: without explicit "dislike" signals, models often resort to random negative sampling, which fails to capture the nuances of user preferences. Adversarial models like IRGAN address this by training a generator to find difficult negative samples. Second, the Efficiency Bottleneck: real-valued latent factor models are computationally expensive for large-scale retrieval. Hashing—converting vectors into binary codes—offers a solution through fast bitwise operations, but its discrete nature makes it incompatible with standard gradient descent.

Methodology: Bridging the Discrete Gap

ABinCF utilizes a GAN framework where the generator produces binary codes. To make these discrete bits trainable, the authors propose two relaxation techniques:

  1. ABinCF-erf (Error Function Relaxation): This method uses the Gaussian error function ($erf$) to approximate the $sign$ function. By gradually decreasing a scaling parameter (annealing), the smooth curve eventually sharpens into a discrete step.
  2. ABinCF-Gn (Normal Gumbel-Softmax): Standard Gumbel-softmax can produce noisy gradients due to its infinite range. ABinCF-Gn uses a Normal distribution for noise, applying the "three-sigma rule" to strictly control noise variance and stabilize the Bernoulli distribution approximation.

Key Results and Efficiency

ABinCF-Gn consistently outperforms existing hashing methods like DCF and BCCF, particularly on sparse datasets like Amazon and Yelp. The model achieves a massive reduction in storage requirements—up to 92% (1/12th the size) compared to real-valued features—while maintaining high recommendation accuracy.

One of the primary strengths of the ABinCF-Gn approach is its ability to produce highly polarized binary values, which is essential for effective hashing. As shown in the value-range distribution, the model successfully pushes latent factors toward the discrete 0 and 1 boundaries, ensuring that the final codes are informative and retrieval-ready.

Figure 3: Probability distribution of values showing successful binarization, with values concentrated at the 0.0 and 1.0 extremes.

Discussion and Future Work

While ABinCF leads among hashing-based models, a small accuracy gap remains compared to full-precision real-valued models like IRGAN. The performance is also sensitive to the "temperature" or annealing schedule; if the transition from smooth to discrete happens too quickly, the model may converge to a sub-optimal local minimum. Future research may extend this adversarial hashing framework to other discrete optimization tasks, such as binary neural network compression and large-scale image retrieval.

Summary updated

BibTeX
@inproceedings{wang2019adversarial,
  author = {Haoyu Wang and Nan Shao and Defu Lian},
  title = {{Adversarial Binary Collaborative Filtering for Implicit Feedback}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.1609/aaai.v33i01.33015248},
}
Figure