deepctr_torch.MLR
LS-PLM, Alibaba's piece-wise linear CTR model: a softmax over regions gating a logistic regression per region.
Tabular and recommender · 790 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Parameters
- 29.7K
- Operations
- 790
- Framework
- PyTorch
- Recurrent
- No
- Published
- 2017
- Cited by
- 107 (as of 22 November 2026)
- Authors
- Kun Gai, Xiaoqiang Zhu, Han Li and others
- Source
- deepctr-torch 0.3.0
- License
- Apache-2.0
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m4138
- Graph hash
- 22c4ba1b518f7d76d56c22cf658737abb7281c6e137071734972898a89d009e6
- Skeleton hash
- 8f0e55be43067396c00bd341039f98ad051c6543b771a7a9739531f49e442475
- Architecture hash
- 89b6f4760bbb8230e5d66bcb6404ae99f7d795cf385af6b59ccb942dbc475b8a
- Diagram SHA-256
- 7cacafc72fd5c75214193f4ba5e3c2c1e019ca4a73d0c69093ea493358d37068
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
The model traced here as MLR is the Large Scale Piece-wise Linear Model (LS-PLM), an industrial click-through-rate predictor that divides the feature space into local regions, fits a linear model in each, and outputs a weighted combination of those linear predictions. The two steps, dividing and fitting, are learned simultaneously under one supervised loss rather than clustered first and fitted second. In the form used in practice, a softmax over regions acts as the dividing function and a sigmoid logistic model as the fitting function in each region. The number of regions m sets the capacity, and the paper settles on m = 12 after trying 6, 12, 24 and 36.
The motivation is that plain logistic regression needs hand feature engineering to catch nonlinearity, which the authors describe as both time and humanity consuming. With enough regions, they argue, LS-PLM can fit any complex nonlinear function. Training adds L1 and L2,1 regularizers for sparsity and feature selection, which makes the objective non-convex and non-smooth. The authors solve it with an algorithm based on directional derivatives and a quasi-Newton method. A common-feature trick exploits the fact that in one page view a user sees several ads at once, so user features can be shared across those samples. In their measurement that trick cut memory per node from 89.2 GB to 31 GB and iteration time from 121s to 10s.
Against LR on Alibaba's own datasets the average AUC improvement was 1.44%, and the authors stress that the gain is stable. The traced member is DeepCTR-Torch's implementation, which lists the model as the Piece-wise Linear Model. Since 2012 LS-PLM has been the main CTR prediction model in Alibaba's online display advertising system, serving hundreds of millions of users every day.
Key idea. A piece-wise linear CTR model that learns a partition of the feature space and a linear predictor per region jointly, under L1 and L2,1 sparsity, so nonlinearity comes from the mixture rather than hand-built feature crosses.
- MLR
- LS-PLM
- Large Scale Piece-wise Linear Model
- Mixed Logistic Regression
- piece-wise linear model
- mixture of logistic regressions
- CTR prediction
- ad click prediction
- Alibaba CTR model
- DeepCTR-Torch
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{gai2017learningpiecewiselinearmodels,
title={Learning Piece-wise Linear Models from Large Scale Data for Ad Click Prediction},
author={Kun Gai and Xiaoqiang Zhu and Han Li and Kai Liu and Zhe Wang},
year={2017},
eprint={1704.05194},
archivePrefix={arXiv},
primaryClass={stat.ML},
url={https://arxiv.org/abs/1704.05194},
}