AlphaAnythingExtending Pretrained RGB Generators to RGBA

Qijie Wang1,2,*,‡ Zhixin Xu2,* Zhe Li3,2,‡ Haowei Zhu1 Honghao Qiao2 Bo Peng2 Dawei Li2,† Bin Wang1,†

1 Tsinghua University2 ByteDance3 Peking University

All assets in this figure are generated or extracted by AlphaAnything, including the title. The elements are manually arranged into the final composition.
Abstract

From pretrained RGB to RGBA

Existing RGBA generation methods commonly learn a transparency-specific representation through reconstruction, introducing an additional training stage and potentially altering the RGB decoding function inherited from pretrained models. We present AlphaAnything, a lightweight framework that extends pretrained RGB generators to RGBA directly in their original latent space, without RGBA reconstruction pretraining. AlphaAnything inserts LoRA modules into the generative transformer and attaches an alpha branch to the frozen RGB VAE decoder. Unidirectional RGB-to-alpha feature sharing allows opacity supervision to shape the generative latent while guaranteeing that, for any fixed latent, RGB decoding remains identical to that of the pretrained decoder. We further introduce Endpoint-Aware Alpha Loss (EA Loss), which derives opacity supervision from the complementary foreground–background weights used in compositing. It supports exact opacity endpoints and continuous partial transparency while emphasizing localized alpha errors. Experiments on text-to-RGBA and image-to-RGBA tasks across multiple pretrained RGB backbones demonstrate competitive generation quality, and controlled ablations validate the shared-latent training design and EA Loss.

01 / Image-to-RGBA

From a scene to a layer

Select an example to inspect its extraction prompt, and drag the divider to compare the input with the extracted RGBA output.

Cocktail glassTransparent glass
Background
Input image for extracting the cocktail glass; QR and platform marks locally blurred
Predicted transparent cocktail glass layer
Input RGB AlphaAnything Qwen-Image-Edit
Predicted alphaPredicted opacity of the cocktail glass, from black for transparent to white for opaque
TransparentOpaque
Prompt

Extract the object described by the text, preserving fine details and transparency: A clear long-stemmed glass holds a coral-red cocktail with large ice cubes and an orange slice. Bright reflections run down its rounded bowl and slender stem to the oval glass foot.

Selected inference results. The original RGBA colors and alpha are retained; the background is for visualization. QR and platform marks in the cocktail input are locally blurred.

02 / Text-to-RGBA

Imagine it. Generate the layer.

Glass, fabric, feathers, and more. Select a result to inspect its generation prompt and alpha channel.

03 / Layer composition

One idea. Many layers. A finished scene.

AlphaAnything generates individual RGBA elements, which are then manually arranged into a composition. Drag to explore the stack in 3D, replay the build, and inspect the layers behind each result.

Layer compositionExplore the generated layers
Full image
Completed layered composition
Replay to watch the scene come together

Drag to rotate the layers. Use arrow keys to rotate, plus and minus to zoom, and Home to reset the view. Double-click to reset. On a touchscreen, drag sideways to rotate or swipe vertically to scroll the page.

100%
100%
26 / 26 layers
CHOOSE A SCENEScroll to explore

The displayed stack contains the actual layers, manually arranged into each composition. Original generated alpha is retained; opaque backgrounds generated with the original RGB backbone and solid-color canvases are identified separately. AVENORIQ is a fictional name used in a generated example. Motion and perspective are viewing effects.

05 / Method

Appearance and opacity in the original RGB latent space

Transformer LoRA modules and a lightweight alpha branch extend a pretrained RGB generator to RGBA through generative training alone, without explicit RGBA representation pretraining.

Alpha supervision shapes the generative latent through the frozen RGB VAE decoder. Unidirectional RGB-to-alpha feature sharing preserves RGB decoding for any fixed latent.
01

Retain RGB decoding

The pretrained RGB encoder and decoder stay frozen. Unidirectional RGB-to-alpha connections preserve RGB decoding for any fixed latent.

02

Learn appearance + opacity

Transformer LoRA and the alpha branch are trained jointly with flow matching and alpha supervision in the original RGB latent space, without RGBA reconstruction training.

03

Supervise alpha directly

Endpoint-Aware Alpha Loss (EA Loss) exploits the compositing structure of alpha to jointly supervise exact opacity endpoints, soft transparency, and localized errors.

View the method figure as a vector PDF
Text-to-RGBA

RGBA result

Generation prompt

BackboneQwen-Image