lukaslaobeyer/token-opt

Code for ICML 2025 Paper "Highly Compressed Tokenizer Can Generate Without Training"

Jupyter Notebook

206

1 commits

updated Jun 10, 2025

See the code

README

Highly Compressed Tokenzier Can Generate Without Training

Tokenizers with highly compressed latent spaces -- such as TiTok, which compresses 256x256 px images into just 32 discrete tokens -- can be used to perform various image generative tasks without training a dedicated generative model at all. In particular, we show that simple test-time optimization of tokens according to arbitrary user-specified objective functions can be used for tasks such as text-guided editing or inpainting.

CLIP-guided optimization Inpainting

This repo includes the simple test-time optimization algorithm used in our ICML 2025 paper, "Highly Compressed Tokenzier Can Generate Without Training", under the tto/ directory.

For convenience, we include the TiTok implementation copied from the official code release under titok/.

Examples

Running Locally: If you use Nix, you can enter a shell with all dependencies via nix develop.

Significant stargazers

Someone

239 followers · starred Jun 2025

lukaslaobeyer/token-opt

Code for ICML 2025 Paper "Highly Compressed Tokenizer Can Generate Without Training"

Jupyter Notebook

206

1 commits

updated Jun 10, 2025

See the code

README

Highly Compressed Tokenzier Can Generate Without Training

Tokenizers with highly compressed latent spaces -- such as TiTok, which compresses 256x256 px images into just 32 discrete tokens -- can be used to perform various image generative tasks without training a dedicated generative model at all. In particular, we show that simple test-time optimization of tokens according to arbitrary user-specified objective functions can be used for tasks such as text-guided editing or inpainting.

CLIP-guided optimization Inpainting

This repo includes the simple test-time optimization algorithm used in our ICML 2025 paper, "Highly Compressed Tokenzier Can Generate Without Training", under the tto/ directory.

For convenience, we include the TiTok implementation copied from the official code release under titok/.

Examples

Running Locally: If you use Nix, you can enter a shell with all dependencies via nix develop.

Significant stargazers

Someone

239 followers · starred Jun 2025

Languages

Jupyter Notebook

99.2%