VQVAE2 but use gumbel-softmax relaxation instead of straght-through estimator.
-
Fix $\phi$ and $\theta$
-
Learn the prior distribution over the text and image tokens by maximizing the ELB with respect to $\psi$.
-
Given a text-image pair, we BPE-encode the lowercased caption using at most $256$ tokens with vocabulary size $16,384$, and encode the image using $32\times 32 = 1024$ tokens with vocabulary size $8192$.
-
Finally, the text and image tokens are concatenated and modeled autoregressively as a single stream of data.
-
The transformer is a decoder-only model
- each image token can attend to all text tokens
- the attention masks corresponding to the text-to-text attention is the standard causal mask
- for the image-to-image attention uses either a row, column, or convolutional attention mask
Data Collection
- Will not release training data.
- preliminary experiments for models up to 1.2 billion parameters were carried out on Conceptual Captions, a dataset of 3.3 million text-image pairs that was developed as an extension to MS-COCO
- To scale up to 12-billion parameters, a dataset of a similar scale to JFT-300M is created by collecting 250 million text-images pairs from the internet. This dataset does not include MS-COCO, but does include Conceptual Captions and a filtered subset of YFCC100M
Distributed Optimization
- 12-billion parameter model consumes about 24 GB of memory when stored in 16-bit precision
- The model is trained in mixed-precision using standard (i.e., global) loss scaling on 64 16 GB NVIDIA V100 GPUs
- total of 3,000,000 updates



