All models

DeepCTR-DIN

Deep Interest Network, a click-through rate model that weights a user’s past behaviors by the candidate ad.

Tabular and recommender · 141 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (11 KB)

Open in a new tab

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

Family
DIN
Parameters
51.4K
Operations
141
Framework
PyTorch
Recurrent
No
Published
KDD 2018
Cited by
2,120 (as of 21 October 2026)
Authors
Guorui Zhou, Chengru Song, Xiaoqiang Zhu and others
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 diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m633
Graph hash
c650c948edca463944e01aceeb3cff986b0a65bef0796e4f560b1255293d89b0
Skeleton hash
0a023b8a895dfcfc15c6307fb88ed5719b297da506d8b6311ec0cad36d121c2b
Architecture hash
2b067728634a04f7b7ba538c912e750982f82ba007f8309260549567ff9a8b54
Diagram SHA-256
dee8d8f103b3981f5ed5f31ab2329ba0fd35e4abeba243ce3b247e33774f372e
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

This model is the DIN from DeepCTR, a package of deep-learning based CTR models.

About this model's family

Deep Interest Network (DIN) is a click-through rate (CTR) prediction model for display advertising in e-commerce. It targets a limit of the common Embedding&MLP design, in which a user’s features are compressed into one fixed-length vector no matter which candidate ad is being scored.

DIN adds a local activation unit that soft-searches the user’s historical behaviors for the parts relevant to the candidate ad and pools them with a weighted sum. Behaviors more relevant to the ad get higher weights and dominate the representation of the user’s interests. The paper’s example is a female swimmer who clicks a recommended goggle mostly because she bought a bathing suit, not because of the shoes on last week’s shopping list.

The paper also introduces Dice, a data adaptive activation function that it describes as a generalization of PReLU. Dice moves the rectified point according to the distribution of the input data, setting it to the mean of the input. A second training technique, mini-batch aware regularization, computes the L2-norm only over the parameters of non-zero features that appear in each mini-batch. The paper reports online A/B testing in Alibaba’s display advertising system from 2017-05 to 2017-06. In that test, DIN trained with the proposed regularizer and activation function contributed up to 10.0% CTR and 3.8% RPM (Revenue Per Mille) improvement over the BaseModel.

Key idea. The paper designs a local activation unit that adaptively learns a user’s interest representation from historical behaviors with respect to each candidate ad, instead of one fixed-length vector.

  • din
  • deep interest network
  • click-through rate prediction
  • ctr prediction
  • display advertising
  • local activation unit
  • dice activation
  • user interest modeling
  • user behavior sequence

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{zhou2018deepnetworkclickthroughrate,
      title={Deep Interest Network for Click-Through Rate Prediction}, 
      author={Guorui Zhou and Chengru Song and Xiaoqiang Zhu and Ying Fan and Han Zhu and Xiao Ma and Yanghui Yan and Junqi Jin and Han Li and Kun Gai},
      year={2018},
      eprint={1706.06978},
      archivePrefix={arXiv},
      primaryClass={stat.ML},
      url={https://arxiv.org/abs/1706.06978}, 
}