All models

recbole.RecVAE

A variational autoencoder for top-N recommendation from implicit feedback, with a composite prior on the latent code.

Tabular and recommender · 38 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 (48 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
5.7M
Operations
38
Framework
PyTorch
Recurrent
No
Published
WSDM 2020
Cited by
219 (as of 22 October 2026)
Authors
Ilya Shenbin, Anton Alekseev, Elena Tutubalina and others
License
MIT
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
m8660
Graph hash
1abac38337d9274cd36b652da6c56fc2f01237fe011abaefc309a357c50c5ac3
Skeleton hash
f4217bf93a1fbfcf5737e94c1e2948fd295b587de10ea855865799e274964139
Architecture hash
c6588a1bccd1dccc14397d680e4edb4771d8ba6fa7b77107d1e86bf3e3f3e49f
Diagram SHA-256
d7306c43356016e18de1a993b06645da200e424aa2aae2f123943da752d84147
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

RecVAE, the Recommender VAE, is a variational autoencoder for collaborative filtering with implicit feedback, aimed at top-N recommendations. It builds on Mult-VAE, a variational autoencoder with a multinomial likelihood, and the paper says the model originates from the authors' research on regularization techniques for variational autoencoders.

The encoder has a new architecture that uses densely connected layers, swish activation functions and layer normalization, while the decoder is a simple linear layer with softmax activation. The prior on the latent code is a composite: a mixture of a standard Gaussian prior and the latent code distribution with parameters fixed from the previous iteration of the model. The weight β on the Kullback-Leibler term is user-specific and depends on the amount of implicit feedback available for a given user. Training alternates updates of the encoder and the decoder, which allows multiple encoder updates for every decoder update and lets corrupted inputs be used only for training the encoder.

On MovieLens-20M, the Netflix Prize Dataset and the Million Songs Dataset, the paper reports that RecVAE outperforms previously proposed autoencoder-based models, including Mult-VAE and RaCT. The authors' PyTorch code notes that its current model is slightly different from the one described in the paper.

Key idea. RecVAE improves Mult-VAE with a composite prior for the latent codes, a new way of setting the β hyperparameter, and training by alternating updates.

  • recvae
  • recommender vae
  • variational autoencoder
  • collaborative filtering
  • implicit feedback
  • top-n recommendation
  • composite prior
  • recbole recvae

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

Cite the paper

@misc{shenbin2019recvaenewvariationalautoencoder,
      title={RecVAE: a New Variational Autoencoder for Top-N Recommendations with Implicit Feedback}, 
      author={Ilya Shenbin and Anton Alekseev and Elena Tutubalina and Valentin Malykh and Sergey I. Nikolenko},
      year={2019},
      eprint={1912.11160},
      archivePrefix={arXiv},
      primaryClass={cs.IR},
      doi={https://doi.org/10.1145/3336191.3371831},
      url={https://arxiv.org/abs/1912.11160}, 
}