All models

WideDeep-ContextAttentionMLP

A tabular MLP with hierarchical-attention-style context attention on top, from pytorch-widedeep.

Tabular and recommender · 48 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 (44 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

Parameters
7.2K
Operations
48
Framework
PyTorch
Recurrent
No
Published
2023, Journal of Open Source Software 8(86), 5027
Cited by
21 (as of 18 October 2026)
Authors
Javier Rodriguez Zaurin, Pavol Mulinka
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
m3392
Graph hash
20be183c249f00bf6fd1afda87a9df689949c701327122ad0bf0522fcf5a89dd
Skeleton hash
437a8e4371843ae2b9653db9c199cc0829b3403544edfed959d992d9d7d27a85
Architecture hash
3f825f3dd72b772f493a126ff96491dba9573b14bebd52d39355800a71c8a2c0
Diagram SHA-256
e008efee7837d3bd0a196706371bc15b944caf6c6d444bf4037a09f34132379a
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

ContextAttentionMLP is one of the deeptabular models in pytorch-widedeep, a flexible package for multimodal deep learning designed to combine tabular data with text and images. The library is based on Google's Wide and Deep Algorithm, adjusted for multi-modal datasets. Each component, wide, deeptabular, deeptext and deepimage, can be used independently and in isolation, so the tabular model captured here stands on its own.

The readme files it, together with SelfAttentionMLP, under two simpler attention based models. It is an MLP with an attention mechanism on top that is based on Hierarchical Attention Networks for Document Classification. The library paper lists it fourth among the deeptabular models and credits a 2016 reference by Yang and colleagues. That paper lists twelve deeptabular models in all, ending with BayesianWide and BayesianTabMlp. Self-supervised pre-training can be used for all deeptabular models with the exception of the TabPerceiver.

Key idea. ContextAttentionMLP places an attention mechanism modelled on Hierarchical Attention Networks on top of a tabular MLP, one of two simpler attention based models in pytorch-widedeep.

  • contextattentionmlp
  • context attention mlp
  • pytorch-widedeep
  • widedeep
  • deeptabular
  • tabular deep learning
  • attention mlp
  • hierarchical attention networks
  • tabular classification

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

Cite the paper

@article{Zaurin_2023, title={pytorch-widedeep: A flexible package for multimodal
deep learning}, volume={8}, ISSN={2475-9066}, url={http://dx.doi.org/10.21105/joss.05027}, DOI={10.21105/joss.05027}, number={86}, journal={Journal of Open Source Software}, publisher={The Open Journal}, author={Zaurin, Javier Rodriguez and Mulinka, Pavol}, year={2023}, month=June, pages={5027} }