AutoLossGen: Automatic Loss Function Generation for Recommender Systems
Zelong Li, Jianchao Ji, Yingqiang Ge, Yongfeng Zhang
Abstract
In recommendation systems, the choice of loss function is critical since a good loss may significantly improve the model performance. However, manually designing a good loss is a big challenge due to the complexity of the problem. A large fraction of previous work focuses on handcrafted loss functions, which needs significant expertise and human effort. In this paper, inspired by the recent development of automated machine learning, we propose an automatic loss function generation framework, AutoLossGen, which is able to generate loss functions directly constructed from basic mathematical operators without prior knowledge on loss structure. More specifically, we develop a controller model driven by reinforcement learning to generate loss functions, and develop iterative and alternating optimization schedule to update the parameters of both the controller model and the recommender model. One challenge for automatic loss generation in recommender systems is the extreme sparsity of recommendation datasets, which leads to the sparse reward problem for loss generation and search. To solve the problem, we further develop a reward filtering mechanism for efficient and effective loss generation. Experimental results show that our framework manages to create tailored loss functions for different recommendation models and datasets, and the generated loss gives better recommendation performance than commonly used baseline losses. Besides, most of the generated losses are transferable, i.e., the loss generated based on one model and dataset also works well for another model or dataset. Source code of the work is available at https://github.com/rutgerswiselab/AutoLossGen.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext e2e3c2cf-7f94-43cc-882d-808ae479e85aCited by top-tier papers7
- Automated Knowledge Distillation via Monte Carlo Tree SearchLujun Li, Peijie Dong, Zimian Wei, Ya YangICCV 2023 · 54 citations
- Exploration and Regularization of the Latent Action Space in RecommendationShuchang Liu, Qingpeng Cai, Bowen Sun, Yuhao Wang et al.WWW 2023 · 54 citations
- Explainable Fairness in RecommendationYingqiang Ge, Juntao Tan, Yan Zhu, Yinglong Xia et al.SIGIR 2022 · 53 citations
- KD-Zero: Evolving Knowledge Distiller for Any Teacher-Student PairsLujun Li, Peijie Dong, Anggeng Li, Zimian Wei et al.NeurIPS 2023 · 49 citations
- Advancing Loss Functions in Recommender Systems: A Comparative Study with a Rényi Divergence-Based SolutionShengjia Zhang, Jiawei Chen, Changdong Li, Sheng Zhou et al.AAAI 2025 · 6 citations
Builds on8
- Neural Collaborative ReasoningHanxiong Chen, Shaoyun Shi, Yunqi Li, Yongfeng ZhangWWW 2021 · 100 citations
- AM-LFS: AutoML for Loss Function SearchChuming Li, Xin Yuan, Chen Lin, Minghao Guo et al.ICCV 2019 · 75 citations
- Loss Function Search for Face RecognitionXiaobo Wang, Shuo Wang, Cheng Chi, Shifeng Zhang et al.ICML 2020 · 51 citations
- Loss Function Discovery for Object Detection via Convergence-Simulation Driven SearchPeidong Liu, Gengwei Zhang, Bochao Wang, Hang Xu et al.ICLR 2021 · 30 citations
- Auto Seg-Loss: Searching Metric Surrogates for Semantic SegmentationHao Li, Chenxin Tao, Xizhou Zhu, Xiaogang Wang et al.ICLR 2021 · 26 citations
Related papers
- AutoField: Automating Feature Selection in Deep Recommender SystemsYejing Wang, Xiangyu Zhao, Tong Xu, Xian WuWWW 2022 · 89 citations
- ORSO: Accelerating Reward Design via Online Reward Selection and Policy OptimizationChen Bo Calvin Zhang, Zhang-Wei Hong, Aldo Pacchiano, Pulkit AgrawalICLR 2025
- Learning to Shape Rewards Using a Game of Two PartnersDavid Mguni, Taher Jafferjee, Jianhong Wang, Nicolas Perez Nieves et al.AAAI 2023 · 17 citations
- Efficient Data-specific Model Search for Collaborative FilteringChen Gao, Quanming Yao, Depeng Jin, Yong LiKDD 2021 · 13 citations
- AutoLoss-Zero: Searching Loss Functions from Scratch for Generic TasksHao Li, Tianwen Fu, Jifeng Dai, Hongsheng Li et al.CVPR 2022 · 21 citations
