
pytorch_widedeep.SelfAttentionMLP
Tabular and recommender75 ops10.1K params
A tabular MLP with simplified query-key self-attention blocks, from pytorch-widedeep.
Tabular and recommender · 75 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.
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.
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.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@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} }