FuxiCTR

repository·main·Indexed 23 days ago

https://github.com/reczoo/fuxictr

An open-source library for Click-Through Rate (CTR) prediction providing modular and reproducible implementations for PyTorch and TensorFlow. It includes a model zoo with implementations such as DCN (Deep & Cross Network), DMIN (Deep Multi-Interest Network), DMR (Deep Match to Rank Model), EulerNet, FinalMLP, and FinalNet (Factorized Interaction Layer).

Tokens
16.8K
Snippets
21
Records
91
Agent score
79%

What's inside fuxictr

  1. Overview of GDCN model

    main

    GDCN (Geometric Deep Cross Network) is a CTR (Click-Through Rate) prediction model designed to learn explicit and bounded-degree cross features. It is based on the paper Towards Deeper, Lighter and Interpretable Cross Network for CTR Prediction.

    Key components include:

    • CrossNet: Provides explicit feature crossing with bounded degree using the formula: $x_{l+1} = x_0x_l^Tw + b + x_l$.
    • Dynamic embedding size: Automatically computes the embedding size for each feature field using the formula: $emb_dim = 6\times(vocab_size)^{1/4}$.
  2. Overview of the DMR model

    main
    DMR (Deep Match to Rank Model) is a model designed for Personalized Click-Through Rate (CTR) prediction. It was introduced by Ze Lyu, Yu Dong, Chengfu Huo, and Weijun Ren in the paper Deep Match to Rank Model for Personalized Click-Through Rate Prediction, published in AAAI 2020.
  3. Overview of PLE (Progressive Layered Extraction)

    main
    PLE is a multi-task learning (MTL) model designed for personalized recommendations. It utilizes a structure of shared and task-specific experts for each task to mitigate negative transfer and improve performance across multiple objectives. The model architecture is based on the paper: Progressive Layered Extraction (PLE): A Novel Multi-Task Learning (MTL) Model for Personalized Recommendations (Recsys 2020).
  4. Overview of DMIN (Deep Multi-Interest Network)

    main
    DMIN (Deep Multi-Interest Network) is a model designed for Click-through Rate (CTR) prediction. It was introduced by Zhibo Xiao, Luwei Yang, Wen Jiang, Yi Wei, Yi Hu, and Hao Wang in the paper "Deep Multi-Interest Network for Click-through Rate Prediction" at CIKM 2020. The model focuses on capturing multiple interests from user behavior sequences to improve prediction accuracy.
  5. Overview of Quadratic Neural Networks (QNN) for CTR Prediction

    main

    The QNN model is designed for Click-through rate (CTR) prediction. It analyzes feature interaction mechanisms through the lens of quadratic neural networks. Key innovations include:

    • Multi-head Khatri–Rao products: An efficient alternative to the standard Hadamard product for feature interaction.
    • Self-Ensemble Loss: A method to improve model performance without increasing inference latency.
    • Interpretive Framework: Provides theoretical and empirical analysis of Hadamard product-based feature interaction.
  6. Overview of FinalMLP for CTR Prediction

    main

    FinalMLP is an enhanced two-stream MLP model designed for Click-Through Rate (CTR) prediction. It builds upon the concept of 'DualMLP' (two well-tuned MLP networks) by adding layers to better capture high-order feature interactions.

    Key architectural components include:

    • Stream-specific feature gating: Produces feature importance weights (global, user-specific, or item-specific) by conditioning on learnable parameters, user features, or item features.
    • Stream-level interaction aggregation: Fuses the outputs of the two streams using a multi-head bilinear fusion mechanism to capture complementary feature interactions.
  7. Overview of DCN (Deep & Cross Network)

    main

    DCN is a CTR (Click-Through Rate) prediction model designed to learn explicit and bounded-degree cross features. It is composed of two key components:

    1. CrossNet: Provides explicit feature crossing with bounded degree using the formula: $x_{l+1} = x_0x_l^Tw + b + x_l$.
    2. Dynamic embedding size: Automatically computes the embedding size for each feature field using the formula: $emb_dim = 6\times(vocab_size)^{1/4}$.

    DCN is highly efficient, performing similarly to a standard DNN (MLP) while providing explicit feature interactions.

  8. Overview of FinalNet for CTR Prediction

    main

    FinalNet implements FINAL (Factorized Interaction Layer), a layer designed for Click-Through Rate (CTR) prediction. It extends standard linear layers by learning quadratic feature interactions.

    Key characteristics include:

    • Factorized Interaction Layer: Capable of learning quadratic feature interactions.
    • FINAL Blocks: Multiple FINAL layers can be stacked into a 'FINAL block' (similar to MLPs) to achieve exponential growth in feature interaction degrees.
    • Unified Architecture: It unifies feature interactions and MLPs into a single block, which can serve as an effective replacement for traditional MLP blocks in recommendation models.
  9. Overview of FuxiCTR

    main
    FuxiCTR is an open-source library designed for Click-Through Rate (CTR) prediction, a critical task in online advertising, recommender systems, and sponsored search. The library is built to support both PyTorch and TensorFlow frameworks and focuses on providing a highly configurable, tunable, and reproducible environment for CTR research and industrial application.
  10. Explore the FuxiCTR Model Zoo

    main

    FuxiCTR provides a comprehensive collection of pre-implemented recommendation models categorized by their modeling approach. These models are available for research and production use, with many implementations supporting torch (PyTorch) and some supporting tf (TensorFlow).

    Model Categories

    • Feature Interaction Models: Models focused on capturing interactions between different features (e.g., LR, FM, DeepFM, DCN, xDeepFM, DLRM).
    • Behavior Sequence Modeling: Models designed to capture user interest through sequences of past actions (e.g., DIN, DIEN, BST, TransAct).
    • Long Sequence Modeling: Specialized models for handling very long-term user behavior data (e.g., SIM, ETA, SDIM, TWIN, MIRRN).
    • Dynamic Weight Network: Models that use adaptive parameter generation to personalize networks (e.g., APG, PPNet).
    • Multi-Task Modeling: Models designed to optimize multiple objectives simultaneously (e.g., ShareBottom, MMoE, PLE).
  11. MMoE Project Structure

    main

    The MMoE implementation follows this directory structure:

    • config/: Contains configuration files.
      • dataset_config.yaml: Dataset configuration.
      • model_config.yaml: Model hyper-parameters.
    • src/: Contains model source code.
      • MMoE.py: The MMoE model implementation.
    • run_expid.py: The main execution script.
    • fuxictr_version.py: Version checking and loading utilities.