Skip to content

Code for paper "Argmax Flows and Multinomial Diffusion: Learning Categorical Distributions"

License

Notifications You must be signed in to change notification settings

didriknielsen/argmax_flows

Repository files navigation

Code for Argmax Flows

Banner

Overview

Official code for Argmax Flows and Multinomial Diffusion: Learning Categorical Distributions
by Emiel Hoogeboom, Didrik Nielsen, Priyank Jaini, Patrick Forré, Max Welling.

Code for Argmax Flows: This repo.
Code for Multinomal Diffusion: See here.

Running Experiments

This code depends on the survae library, which is available at https://github.com/didriknielsen/survae_flows.

To reproduce experiments run:

Autoregressive text8:

python train.py --lstm_size 2048 --encoder_steps 0 --num_steps 1 --batch_size 64 --lstm_layers 2 --epochs 40 --eval_every 1 --check_every 10 --input_dp_rate 0.25 --model ar --dataset text8_f256

Autoregressive enwik8:

python train.py --lstm_size 2048 --encoder_steps 0 --num_steps 1 --batch_size 64 --lstm_layers 2 --epochs 40 --eval_every 1 --check_every 10 --input_dp_rate 0.25 --model ar --dataset enwik8_f320

Coupling text8:

python train.py --lstm_size 512 --encoder_steps 0 --num_steps 8 --batch_size 16 --lstm_layers 2 --epochs 40 --eval_every 1 --check_every 1 --input_dp_rate 0.05 --parallel dp --optimizer adamax --lr 1e-3 --warmup 1000 --num_mixtures 8 --model coupling --dataset text8_f256

Coupling enwik8:

python train.py --lstm_size 768 --encoder_steps 0 --num_steps 8 --batch_size 32 --lstm_layers 2 --epochs 20 --eval_every 1 --check_every 1 --input_dp_rate 0.1 --parallel dp --optimizer adamax --lr 1e-3 --gamma 0.95 --warmup 1000 --num_mixtures 8 --model coupling --dataset enwik8_f320

Acknowledgements

The Robert Bosch GmbH is acknowledged for financial support.

About

Code for paper "Argmax Flows and Multinomial Diffusion: Learning Categorical Distributions"

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages