正在加载视频...

视频加载失败

Energy-Based Models can now scale better than Diffusion models. Introducing TEM: Transformer Energy-based Models TLDR: • TEM outscales Diffusion without guidance • First scalable contrastive Energy-Based Models • Better generalization, test-time scaling, and OOD detection than Diffusion 🧵

68,098 次观看 • 23 小时前 •via X (Twitter)

50 条评论

Alexi Gladstone 的头像
Alexi Gladstone23 小时前

[1/N] First, what are Energy-Based Models (EBMs)? EBMs learn a scalar energy E(x) for each data point, with low energy for real data, and high energy for fake data. This energy landscape defines generation, which starts from random noise and minimizes the energy until reaching a local minimum.

Alexi Gladstone 的头像
Alexi Gladstone23 小时前

[2/N] Why formulate generative modeling with EBMs? It's easier to judge whether an image looks real, than to produce one in a single shot. EBMs learn this verifier (energy scalar) directly, then generate by optimizing against it, which enables: • Test-time scaling: more optimization steps → better samples • Compositional generalization: add energies to compose • Likelihoods and OOD detection: the energy acts as a verifier

Alexi Gladstone 的头像
Alexi Gladstone23 小时前

[3/N] Despite these benefits, contrastive EBMs have struggled with scalability… so how can we scale them? To solve this we created Transformer Energy Models (TEMs). TEMs involve two key ingredients: • Multi-layer energies: sum energy predictions from early, middle, and final Transformer layers • Positive representation alignment: align EBM image features with a pretrained foundation model

Alexi Gladstone 的头像
Alexi Gladstone23 小时前

[4/N] TEMs scale better than diffusion without guidance. TEM-XL's curve drops steeply with training compute and passes DiT, SiT and SiT+REPA, reaching a 3.82 FID with less compute than other diffusion baselines.

Alexi Gladstone 的头像
Alexi Gladstone23 小时前

[5/N] Because TEM learns an energy landscape, they unlock capabilities diffusion models have traditionally struggled with. For example, TEMs enable compositional generation, OOD detection, and zero-shot inpainting. Here, we simply add the energies for compositional generation and TEM succeeds zero-shot over Compositional Diffusion.

Alexi Gladstone 的头像
Alexi Gladstone23 小时前

[6/N] The energy also works as a verifier, enabling OOD detection that works better than Diffusion. Across four ImageNet OOD benchmarks, TEM averages 0.717 AUROC, vs. 0.55–0.60 for DiT, SiT, and SiT+REPA.

Alexi Gladstone 的头像
Alexi Gladstone23 小时前

[7/N] Diffusion models struggle with generation tasks they weren’t trained on like inpainting. But TEMs handle these tasks zero-shot due to leveraging an energy landscape.

Alexi Gladstone 的头像
Alexi Gladstone23 小时前

[8/N] TEMs can also do test-time scaling past the number of sampling steps they were trained with. Despite being trained with 40 sampling steps, we can run 120 inference steps and performance keeps improving.

Alexi Gladstone 的头像
Alexi Gladstone23 小时前

[9/N] TEMs demonstrate the promise of Energy-Based Models as a generative modeling paradigm. More EBM work is coming soon so stay tuned! Thanks to the amazing @intlee0609 for leading this work and @du_yilun 🌐 Project page: 📄 Paper: 💻 Code: Jungsoo's thread:

ali 的头像
ali23 小时前

how does the method without representation alignment perform relative to diffusion-based methods (without representation alignment)?

Alexi Gladstone 的头像
Alexi Gladstone23 小时前

yah this is a great question and we will need to test it!

Gravity Research 的头像
Gravity Research22 小时前

LeCun has been hammering on energy landscapes forever, cool to see contrastive EBMs actually scale with transformers

Alexi Gladstone 的头像
Alexi Gladstone22 小时前

definitely! i am now extremely confident the future of EBMs will be a mix of reconstructive + contrastive :)

Yann LeCun 的头像
Yann LeCun20 小时前

EBM FTW

Jayden Teoh 的头像
Jayden Teoh23 小时前

cool work Alexi, looking forward to more EBM works :)

Alexi Gladstone 的头像
Alexi Gladstone23 小时前

thanks jayden :) when can we get next EBM prediction?

Aidan Guo 的头像
Aidan Guo23 小时前

really cool

Alexi Gladstone 的头像
Alexi Gladstone23 小时前

thank you!

Ir rev 的头像
Ir rev21 小时前

I have my doubts about its generality until I see a pixel-space version

Alexi Gladstone 的头像
Alexi Gladstone21 小时前

im confident we can make it happen!

Lulzx - τ/ia 的头像
Lulzx - τ/ia22 小时前

Doing god's work!

Jason Wang 的头像
Jason Wang23 小时前

thank u for sharing, will definitely read it!!!

Raghav Tirumale 的头像
Raghav Tirumale22 小时前

@choang333 Nice work Alexi. Looking forward to reading!

AI Ferryman Alex 的头像
AI Ferryman Alex22 小时前

TEM-XL hitting 3.82 FID with less compute than the diffusion baselines is striking. A single energy score that also works as a verifier could make OOD detection feel built in, not bolted on. After years shipping large systems, how does that score hold up when real data drifts?

Samip 的头像
Samip19 小时前

very cool!

Aayush Karan 的头像
Aayush Karan20 小时前

So cool to finally see this out!! Congrats!

Alexi Gladstone 的头像
Alexi Gladstone20 小时前

thanks aayush :)

AI Quanting 的头像
AI Quanting23 小时前

Outscaling without guidance is the claim I want to see hold. Where does the compute go at sample time compared with a diffusion model of the same size?

Alexi Gladstone 的头像
Alexi Gladstone23 小时前

mostly towards similar things as diffusion, denoising from the prior to the data distribution worth mentioning that more of the compute is gradients at inference-time than with diffusion (2/3rds here, vs none with diffusion)

AI Quanting 的头像
AI Quanting22 小时前

That lines up. One third of 14.48T over 60 steps is about 0.08T of forward per step. A DiT-XL step is 0.12T. So the forward net is the cheaper part and the gradients are the surcharge.

BeastTitanHunter 的头像
BeastTitanHunter22 小时前

@beffjezos

Ammar 的头像
Ammar23 小时前

You became my bucket list author

Alexi Gladstone 的头像
Alexi Gladstone23 小时前

thank you! although @intlee0609 deserves most of the credit here

Ammar 的头像
Ammar22 小时前

@intlee0609 I guess my next plan to be pursue you and him for a paper in audio modality with energy models (because I never explored energy models and have no co-authors in this field)

Jonathan Jacobi 的头像
Jonathan Jacobi23 小时前

super cool work!!!

Alexi Gladstone 的头像
Alexi Gladstone23 小时前

thanks jonathan!!

Yash Dagade 的头像
Yash Dagade23 小时前

@du_yilun 🚀🔥

Alexi Gladstone 的头像
Alexi Gladstone23 小时前

@du_yilun EBM memory🤫

Yash Dagade 的头像
Yash Dagade22 小时前

@du_yilun 💙

Aaron Lou 的头像
Aaron Lou23 小时前

Interesting work!

Alexi Gladstone 的头像
Alexi Gladstone23 小时前

thank you means a lot! big fan of your work on discrete diffusion :)

Lev Stambler 的头像
Lev Stambler22 小时前

Awesome!

Alexi Gladstone 的头像
Alexi Gladstone22 小时前

thanks lev :)

vxnuaj 的头像
vxnuaj19 小时前

thank you.

静夜思人。(赚钱版) 的头像
静夜思人。(赚钱版)19 小时前

EBM finally getting its scalability moment — the no-guidance test-time scaling is the killer feature. Curious whether the contrastive training cost stays competitive at frontier scale, or only at the current sizes.

Tommy 的头像
Tommy21 小时前

Multi-layer energy still scales the EBM

Otabek Boymirzayev 的头像
Otabek Boymirzayev21 小时前

appreciate your work

Otabek Boymirzayev 的头像
Otabek Boymirzayev21 小时前

did you release product based on this? i wanna see

Pedro 的头像
Pedro23 小时前

really cool work!

Alexi Gladstone 的头像
Alexi Gladstone22 小时前

thank you!

相关视频