Official implementation for the paper accepted at IEEE ICDE 2023.
If you use this work in your research, please cite:
@inproceedings{Bin:ICDE:2023,
title={Bayesian Negative Sampling for Recommendation},
author={Liu Bin and Wang Bang},
booktitle={2023 IEEE 39th International Conference on Data Engineering (ICDE)},
year={2023},
pages={749-761},
doi={10.1109/ICDE55515.2023.00063}
}- numpy: For Matrix Factorization implementation (
main_MF.py) - pytorch: For LightGCN implementation (
main_lightGCN.py)
The Bayesian Negative Sampling framework operates as follows:
Randomly select candidate set
Assume
Compute empirical CDF:
Time complexity:
📊 Theoretical Foundation: By the Glivenko Theorem (1933),
$F_n(\cdot)$ uniformly converges to$F(\cdot)$ , enabling probabilistic prediction of false negatives.
Compute unbiased estimator:
Time complexity:
Select instance minimizing:
Time complexity:
- MovieLens100K & MovieLens1M: GroupLens
- Yahoo!-R3: Yahoo Webscope
💡 Flexibility: BNS is dataset-agnostic. Simply replace
train.csvandtest.csvfiles, ensuring appropriate prior probability modeling.
For questions, please contact:
- Bin Liu: binliu@swjtu.edu.cn