
pytorch_widedeep.ContextAttentionMLP
Tabular and recommender48 ops7.2K params
A tabular MLP with hierarchical-attention-style context attention on top, from pytorch-widedeep.
Tabular and recommender · 48 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.
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.
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} }