TL;DR
Splitting a flat image into editable, transparent Photoshop-style layers using generative AI is notoriously slow because the model must denoise every layer simultaneously. Existing "shortcut" methods that predict future steps from past momentum fail miserably here—performing worse than doing nothing clever at all—because multi-layer trajectories actually zig-zag rather than move smoothly. FastLayered solves this without any retraining, using the original input image as a guiding compass to achieve a 5.44× speedup with virtually zero loss in visual quality.
What Problem Does This Paper Address?
Imagine handing a flat JPEG of a poster to an AI and getting back separate, clean RGBA layers: background texture on Layer 1, graphics on Layer 2, and text on Layer 3. Recent Image-to-Layer (I2L) models like Qwen-Image-Layered do exactly this using Flow Matching—a cousin of diffusion that transforms random noise into clean data by following learned "velocity" vectors step-by-step.
The catch? Jointly denoising a composite image alongside multiple output layers is computationally brutal. Generating four layers takes over two minutes on an enterprise-grade NVIDIA A800 GPU, and the cost scales steeply as you add more layers.
In standard Text-to-Image (T2I) generation, researchers speed up Flow Matching without retraining by skipping full model evaluations and forecasting velocities from recent steps (similar to extrapolating a ball's path from its last two positions). Surprisingly, when the authors applied state-of-the-art velocity forecasters (like MeanCache and VDE) to I2L, they performed worse than naive velocity reuse—just blindly copying the previous step's velocity. The authors set out to discover why I2L breaks standard forecasting, and how to fix it.
Key Insights and Ideas
- I2L trajectories zig-zag, whereas T2I trajectories cruise: In standard T2I generation, consecutive velocity changes point in roughly the same direction (positive cosine similarity). In I2L, consecutive velocity increments are predominantly negatively correlated across all layers. Extrapolating a trend when the trajectory is actively oscillating sends predictions flying in the wrong direction.
- Two zig-zags make a reliable trend: While consecutive increments oppose each other, summing the velocities from the two most recent full evaluations cancels out the local oscillation and aligns closely with the true net direction.
- You already have the finish line for the composite: Unlike T2I—where the final image is unknown until step 50—I2L starts with the original input image. The model's internal "composite" branch is trying to reconstruct something very close to this input. That makes the encoded input image a remarkably accurate endpoint compass throughout the denoising journey.
- Layers move in lockstep magnitude: Even though individual layers contain totally different content (e.g., a tiny logo vs. a full background), the ratio of each layer's velocity speed (magnitude) to the composite's velocity speed stays nearly constant across denoising steps.
Methods
Built on these insights, the authors introduce FastLayered, a training-free inference accelerator driven by Composite-Guided Velocity Calibration (CGVC). Instead of running the heavy neural network 50 times, FastLayered runs only 9 full model evaluations (the first two steps, the final step, and fixed intervals in between) and predicts the skipped steps in two stages:
- Composite Velocity Prediction: At a skipped step, FastLayered doesn't guess the composite image's trajectory from history. Instead, it draws a straight reference vector from the current noisy composite state directly toward the known input-image latent, scaled by the remaining noise level.
- Output Layer Velocity Prediction (Decoupling Direction & Magnitude):
- Direction: For each transparent layer, it adds the velocities from the two most recent full model evaluations and normalizes the result into a unit vector, smoothing out the step-to-step zig-zag.
- Magnitude: It calculates how much the composite velocity's magnitude changed relative to the last full evaluation, and uses that exact ratio as a shared scaling factor to calibrate the speed of every output layer.
Datasets
Because FastLayered is entirely training-free, datasets are used strictly for evaluation:
- Crello Dataset: 1,954 test images of graphic design templates (posters, social media cards) with ground-truth layer structures.
- Figma Dataset: 909 test images introduced by ReDesign, featuring UI/UX and complex vector-style layouts.
Key Results
Tested on Qwen-Image-Layered (generating 4 RGBA layers at 640 resolution on an A800 GPU):
- 5.44× Speedup: Per-image latency drops from ~128.6 seconds (50 vanilla steps) down to 23.6 seconds, outpacing both feature-caching methods (TeaCache, DiCache) and velocity forecasters (VDE, MeanCache).
- Quality Parity (and Occasional Gains): On Crello, FastLayered actually beats 50-step vanilla inference on global reconstruction (27.70 dB PSNR vs. 27.57 dB; 0.0707 LPIPS vs. 0.0712) while improving layer mask accuracy (Alpha soft IoU). On Figma, it stays virtually neck-and-neck with 50-step vanilla (25.48 vs. 25.60 dB PSNR).
- Apples-to-Apples Dominance: When locked into the exact same sampling schedules as competing velocity forecasters (VDE and MeanCache) across 2, 3, and 4 output layers, FastLayered wins across the board—boosting PSNR by up to 1.95 dB and reducing perceptual error (LPIPS) by up to 14.68%.
- Practical Editing: In downstream workflows like replacing text or resizing characters on isolated layers, FastLayered cuts total end-to-end editing pipeline time by 1.60×–1.62× without introducing ragged edges or alpha-channel artifacts.
Limitations and Future Work
Not discussed in the paper. (Note: While the authors do not include a dedicated limitations section, FastLayered inherently relies on the presence of an input-image latent as an endpoint anchor and a jointly denoised composite branch, tailoring it specifically to Image-to-Layer architectures rather than unconditional or pure Text-to-Layer generation.)
Summary updated