SigLIP out in the open - these are some of the most capable discriminative image-text models around, give them a go!
And most importantly, the test images feature this glorious unplanned accidental wardrobe coordination from @giffmana and I ☕🤗
Ross has done it again! Try NaViT* style training next time you're training an open_clip/timm model, and experience freedom from the tyranny of square images 🤗
* arxiv.org/abs/2307.06304
Replying to @wightmanr
Packed vision transformer PR is github.com/huggingface/pytor… ... currently testing the model by (re)packing normal fixed size batches to iron out masking bugs. Still need to add variable size / aspect image support and pre-patching to the dataloader / collation pipeline...
Note that there's also a mutual information based auxiliary loss in LIMoE (see appendix B.1. or section 2.2.2), lovingly crafted by @RJenatton - big fan of this approach!
4
134
NaViT can be evaluated at many resolutions, giving a smooth compute/performance tradeoff. This is also evident after finetuning where a single NaViT finetuned at mixed resolutions matches fixed-res finetuning - no more single resolution adaptation!
Smaller images = fewer patches = shorter sequence lengths = less compute per image.
Is it better to train on many small images, or fewer large/detailed images?
NaViT says: Mix them both. Benefits of low compute on small images and high performance of large images.
This is enabled by packing multiple images into one sequence, a paradigm inspired by LLMs. One of the best features of this is the ability to process variable resolutions during training and inference, which I'll talk about here.
You’re training a computer vision model.
Want improved efficiency? Or maybe arbitrary aspect ratios? Perhaps process any resolution?
…why not all the above? We’re thrilled to present NaViT, so you can have your cake & eat it (at any size or aspect ratio)
arxiv.org/abs/2307.06304
This hit us after scaling past 8B parameters, where the often used solution of reducing learning rate stopped helping. We found this works fantastically at all scales however, enabling much larger learning rates and consequently better performance
(Ti ~6M params, L = ~300M)
Pop quiz: Why must we reduce learning rate as we scale transformers?
@jmgilmer has the answer - and the solution!
Attention logits can grow uncontrollably, destabilizing training. The fix: Layer norm on queries and keys!
(Follow Justin and 👀 for upcoming paper on this topic!)
I'm in the Zürich @Google office where all the meeting rooms are named after youtubers and happen to have booked the @Kurz_Gesagt room while wearing a matching hoodie 🥰🤓
I guess they wanted to call it "moving average gated attention", but didn't want to wear the hat
Mega: Moving Average Equipped Gated Attention
Mega outperforms Transformer and S4 over Long Range Area, NMT, ImageNet, Wikitext-103 and raw speech classification.
arxiv.org/abs/2209.10655
I typically spend my day refreshing training loss curves (don't tell my manager) but TODAY i am obsessively refreshing my brother's kickstarter (? !)
kck.st/3QQt7nK
electric inline skates. madness? the future? I'm incredibly proud either way.
1
8

















