OmniPSD: Unified PSD Generation & Decomposition
- OmniPSD is a unified framework for generating and decomposing layered PSD files, leveraging an RGBA-VAE and diffusion transformer to achieve high-fidelity design synthesis.
- It supports both text-to-PSD and image-to-PSD tasks by encoding RGBA layers into a shared latent space, ensuring semantically coherent and hierarchically organized outputs.
- The framework demonstrates superior performance with low error metrics and high similarity scores, validated through comprehensive evaluations and user studies.
OmniPSD is a unified generative and decomposition framework for layered PSD (Photoshop Document) files, which supports both text-to-PSD generation and image-to-PSD decomposition while preserving semantically coherent and hierarchically structured RGBA layers. Built upon the Flux ecosystem and leveraging a DiT-style diffusion transformer in an RGBA-VAE latent space, OmniPSD establishes a new paradigm in editable design synthesis, enabling high-fidelity, transparency-aware layered designs from textual prompts or single input images (Liu et al., 10 Dec 2025).
1. Problem Formulation: Dual Generative and Decomposition Tasks
OmniPSD addresses two core tasks, both within a shared latent space induced by an RGBA-VAE encoder and decoder :
- Text→PSD Generation: The input is a hierarchical prompt . The output is RGBA layers , corresponding to full poster, foreground, midground, and background. These are visually arranged as
The grid is encoded via into latent tokens , and a diffusion/flow transformer is trained to map noise to this latent grid, i.e., learning .
- Image→PSD Decomposition: The input is a single flattened RGBA poster 0. The output is a stack of layers 1. Each flattened input and target layer is encoded: 2, 3. A flow-matching vector field
4
is learned for layerwise extraction and erasure via iterative LoRA-adapters.
This dual problem formulation enables both end-to-end design synthesis from descriptions and full layer decomposition for direct PSD editability.
2. Diffusion-Transformer Architecture and Attention Mechanisms
OmniPSD utilizes a two-stage DiT-style transformer operating over RGBA-VAE latent tokens:
- Token Embedding: The RGBA-VAE encodes each image into a spatial grid 5 of tokens.
- Multi-head Self-attention: Given token matrix 6:
7
with outputs concatenated and projected.
- Cross-attention: For conditional generation, queries are drawn from the diffusion stream, and keys/values from condition tokens (text or flattened images):
8
- Spatial In-context Reasoning: By arranging RGBA layers into a 9 grid, self-attention connects across all layers (e.g., foreground↔background, foreground↔full poster), increasing compositional capacity without specialized modules.
This configuration allows the same transformer backbone to serve both generation and decomposition in a unified architecture.
3. Diffusion and Flow-matching Objectives
OmniPSD employs distinct objectives depending on task:
- DDPM-style Diffusion (Text→PSD):
- Forward noising:
0
with 1. - Reverse denoising by the conditional DiT:
2 - Loss: Simplified 3 parameterization:
4
ODE Flow-matching (Image→PSD):
- Continuous trajectory: 5
- Vector field 6 is learned to match:
7 - This flow-matching approach is deterministic, enabling faster inference in decomposition.
The framework incorporates LoRA-adapters for task specialization in the iterative Image→PSD extraction/erasure pipeline.
4. RGBA-VAE Representation: Transparency Preservation
The RGBA-VAE, an “AlphaVAE” extension, is tailored to editable design with four-channel (RGBA) support:
- Encoder 8:
9
Decoder 0: decodes latent representations of color and alpha channels to reconstruct the original image.
Loss Function:
1
with 2, 3 representing patch and perceptual feature extractors; 4 an isotropic Gaussian prior.
Retraining on layered-poster data yields high PSNR/SSIM and low LPIPS, outperforming alternative Alpha-VAEs (MSE=5, PSNR=32.5 dB, SSIM=0.945) (Liu et al., 10 Dec 2025).
5. In-context Grid and Iterative Editing Algorithms
OmniPSD’s in-context learning leverages a 6 grid structure for compositional reasoning during both tasks:
- Text→PSD, Single-pass:
- Form a 7 grid 8 from the four target RGBA layers.
- Encode 9 with RGBA-VAE; apply diffusion or flow-matching process in latent space.
- Decode the recovered latent tokens to obtain all four RGBA output layers.
- Image→PSD, Multi-step Iterative Extraction (pseudocode excerpt):
4 Here, each 0 is a LoRA adapter trained via 1 on Flux-Kontext, ensuring reversible foreground/background separation.
This grid-based approach enables the transformer to reason over layer compositionality and semantic relationships directly within the attention mechanism.
6. Dataset and Empirical Evaluation
Layered Poster Dataset: Approximately 200k professionally designed PSDs, each split into RGBA text, foreground, and background layers. For evaluation, 500 hierarchical text prompts and 500 flattened test images are utilized.
Metrics:
| Task | Metric | OmniPSD | GPT-Image-1 | LayerDiffuse | |--------------|------------------|----------|-------------|--------------| | Text→PSD | FID | 30.43 | 53.21 | 89.35 | | Text→PSD | CLIP-Score (%) | 37.64 | 35.59 | 24.78 | | Text→PSD | GPT-4 Score | 0.90 | 0.84 | 0.66 | | Image→PSD | MSE | 1.14e-3 | 2.48e-2 | N/A | | Image→PSD | PSNR (dB) | 24.0 | N/A | N/A | | Image→PSD | SSIM | 0.952 | N/A | N/A | | Image→PSD | GPT-4 Score | 0.92 | 0.86 | 0.84 |
- Ablation Studies:
- RGBA-VAE: MSE=2, PSNR=32.5 dB, SSIM=0.945 vs. Alpha-VAE: 3/26.9dB/0.739.
- Hierarchical prompts: Removal increases Text→PSD FID to 38.56 and reduces the GPT-4 score to 0.78.
User studies (18 participants) confirm the semantic coherence and practical editability of OmniPSD-generated and -decomposed layers. This suggests that transparency-aware latent representations and in-context transformer architectures are effective for editable design generation and decomposition at scale (Liu et al., 10 Dec 2025).