All models

WideDeep-SelfAttentionMLP

A tabular MLP with simplified query-key self-attention blocks, from pytorch-widedeep.

Tabular and recommender · 75 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 (41 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
10.1K
Operations
75
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
m3395
Graph hash
48d9dcc99a2bbfdbf9ec34e57f307010de07b21e017522b6ba9bdc8131ec2353
Skeleton hash
c2d57311b65ab9b5ad378c2664fd85b9fa0d5205fd8a1296d261bd853afb21d2
Architecture hash
5629220a3ae5fb4701d8ad59ce875abec30c15a32e411a09a1343bb4bc68b7d3
Diagram SHA-256
584615d0ce0e70798e249ad4c21621d7d96318ec130672cf9eb9349fa1be6b80
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

SelfAttentionMLP 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 ContextAttentionMLP, under two simpler attention based models. It is an MLP with an attention mechanism that is a simplified version of a transformer block, which the authors refer to as query-key self-attention. The library paper lists it fifth among the deeptabular models and credits a 2020 reference by Huang and colleagues, the same one it gives for TabTransformer. 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. SelfAttentionMLP pairs a tabular MLP with a simplified transformer block the authors call query-key self-attention, one of two simpler attention based models in pytorch-widedeep.

  • selfattentionmlp
  • self attention mlp
  • pytorch-widedeep
  • widedeep
  • deeptabular
  • tabular deep learning
  • attention mlp
  • query-key self-attention
  • 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} }