SuperAPIAI Directory

fun-rec

github.com · AI learning

fun-rec is an open-source tutorial project for recommender system learners that systematically organizes the technical evolution of recommender systems from traditional cascading architectures to generative paradigms. The content is divided into two major sections: the first part covers candidate retrieval techniques such as collaborative filtering, vector recall, and sequence recall, as well as ranking and re-ranking methods such as feature crossing, multi-objective modeling, and multi-scenario modeling; the second part focuses on the frontiers of generative recommendation, covering large model fundamentals, Scaling Law architecture exploration, end-to-end generative modeling, chain-of-thought reasoning, and diffusion model recommendation, along with a production-grade system hands-on project. The project provides an online reading address and is suitable for readers with a machine learning foundation who wish to systematically master the core principles and engineering practices of recommendation algorithms. The project is still under development, with code and content updated frequently; Pull Requests are not accepted for now, and issues can be reported via Issue.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)

About this tool

fun-rec is an introductory recommender system tutorial project maintained by the Datawhale community, released as open source and available in an online reading version. The project is positioned to systematically introduce the complete technical evolution of recommender systems from traditional cascading architectures to generative paradigms, with content organized into two major sections.

The first part focuses on traditional recommender system technologies. The candidate recall section covers collaborative filtering (item CF, user CF, matrix factorization), vector recall (I2I, U2I), and sequence recall (user interest representation, full interest modeling, and streaming indexing). The ranking and re-ranking section includes memorization and generalization, feature crossing (second-order, higher-order), sequence modeling (local activation attention mechanism, interest evolution modeling, behavior-to-session sequence modeling), multi-objective modeling (basic structure evolution, task dependency modeling, multi-objective loss fusion), multi-scenario modeling (multi-tower structure, dynamic weight modeling), and re-ranking diversity modeling, such as greedy-based maximum marginal relevance and determinantal point processes, personalized Transformer re-ranking models, and permutation-combination re-ranking models.

The second part focuses on the frontiers of generative recommendation. The content includes the evolution of recommendation paradigms and the differences between discriminative and generative modeling, the fundamentals of Transformer and Diffusion models, the three-stage paradigm of LLM modeling, and Tokenizer techniques in recommendation; HSTU architecture evolution and hardware-aware architecture design in Scaling Law architecture exploration; OneRec architecture evolution, query completion and product retrieval, bidding mechanisms, and multi-scenario advertising in end-to-end generative modeling; the unification of collaborative semantics and language semantics, the OneRec-Think thinking framework, and autonomous reasoning exploration in thinking recommendation models; data augmentation, feature augmentation, and diversity optimization in diffusion-based recommendation models; and finally the construction of a production-grade recommender system, covering project background and goals, system architecture design, offline pipelines, online processes, frontend and interaction, and deployment and operations.

In terms of usage, readers can access the tutorial content through the online reading address or view the project files in the code repository. The project description states that it is still under development, with code and content updated relatively frequently; Pull Requests are not accepted for now, and it is recommended to provide feedback or suggestions via Issue. The project has also established a learning community (WeChat groups and Knowledge Planet) and provides related videos recorded earlier.

The applicable scenarios are readers with a machine learning foundation who wish to systematically learn the core principles and engineering practices of recommendation algorithms, including introductory learning of recommender systems, review of technical evolution, and reference for production-grade system practice. In terms of limitations, the project is in the development stage, and content may change frequently; specific installation commands, coderunning methods, and pricing and fee information are not yet provided. The project uses the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools