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.