Sparse Cross-Resolution Denoising: What a 4K Image Editor Really Costs
FLASH argues that high-resolution editing does not need dense target-source attention: anchoring a frozen 1K edit and letting the high-resolution branch read only local neighborhoods buys structural fidelity at 2K and 4K, at the price of global correctability on the high-resolution side.
On this page
A team has 3 vendor quotes for a 4K instruction-following image editor, but the only number that separates them is the cost of a single forward pass. The usual advice is to buy the cheapest route: edit at 1K, then bolt on a super-resolution model to rebuild detail afterwards. That advice is not wrong about cost, yet it moves detail restoration outside the editing trajectory, so textures get rebuilt after the instruction has already been applied, and source-specific content can drift. The alternative, dense native 4K editing, keeps one trajectory but pays for all-to-all attention between target and reference tokens. FLASH proposes a third route inside a single Transformer, the model block where image patches read information from each other: keep a frozen 1K branch as a structural anchor and let the high-resolution branch read only local neighborhoods [1].
The default call: edit at 1K then upscale, which moves detail outside the edit
Buyers are usually offered two routes. Dense native adaptation moves the whole denoising process onto a 4K grid, so the editing trajectory never breaks, but target and reference tokens all attend to each other. The paper supplies a number you can audit against: a dense 4K baseline takes roughly 17 seconds per Transformer forward pass, and denoising repeats that pass at every step [1]. The other route edits at 1K and applies external super-resolution, which cuts editor cost sharply but relocates detail recovery outside the editing trajectory. FLASH claims a third position, keeping both trajectories inside one Transformer and removing the expensive attention by construction.
How FLASH splits the work: 1K sets instruction and layout, high resolution adds texture
The central claim is that the two resolutions do different jobs and should not be computed the same way. The 1K branch carries instruction understanding, global layout and principal edit structure, and it is frozen, meaning its weights stay fixed and it only supplies states during the forward pass. The target-resolution branch recovers textures, thin boundaries and structures that a 1K grid simply cannot represent. The coupling is deliberately one-directional: 1K image queries never read high-resolution image keys, so attention on the high-resolution side cannot alter the 1K trajectory.
Two adaptations make a 1K-trained editor usable on a larger grid:
- Resolution-dependent timestep mapping: the same nominal noise level means a different effective denoising difficulty at a larger grid, so s = f(u; mu) maps raw step u to a resolution-specific state, with both branches sharing u and using separate mu.
- Position adaptation: spatial YaRN handles coordinates beyond the pretrained range, extrapolating high frequencies, interpolating low ones, with rotation-count thresholds (alpha, beta) = (1, 8). The failure mode without it is semantic drift or local repetition at high resolution.
Which edges sparse cross-resolution denoising keeps: five token groups and Halo support
Each Transformer block processes five token groups at once, where a token is the smallest unit the model handles and roughly corresponds to one grid position: text, the low-resolution noisy target, the low-resolution clean source, and their two high-resolution counterparts. Connectivity is not dense. The 1K branch keeps native pretrained attention, the high-resolution branch confines target-reference interaction to a local Halo, and low-to-high guidance is bounded, with each high-resolution query reading only low-resolution keys within Chebyshev radius R of its parent cell, capped at K_L = (2R+1)^2 keys.
The Halo size follows from geometry rather than tuning. One 1K parent cell maps to an n-by-n high-resolution region, expanded by h tokens on each side, and h is synchronized with R through h = R*n so both supports cover the same parent-cell neighborhood. For R = 3 that gives h = 6 at 2K and h = 12 at 4K, with support size K_H = (n+2h)^2 per high-resolution segment. Training is correspondingly cheap: the 1K weights are frozen, only the high-resolution branch is adapted with rank-32 LoRA on attention and feed-forward projections, and flow-matching regression is applied to the high-resolution velocity alone, with no auxiliary cross-resolution consistency loss.
| Token group | Resolution | Role | What it can read |
|---|---|---|---|
| T_text | n/a | Instruction text | All image tokens |
| T_LN / T_LR | 1K | Low-res noisy target / clean source | Full pretrained attention |
| T_HN / T_HR | 2K / 4K | High-res noisy target / clean source | Local Halo plus low-res parent cells |
Where 4.2x and 25.3x come from: an R=1 diagnostic, not the main configuration
The two numbers most likely to be screenshotted are 4.2x and 25.3x, and their measurement conditions have to travel with them. They come from a separate forward benchmark with R = 1, not from the main R = 3 configuration used for quality comparisons, and the paper states that these timings do not represent the main configuration [1]. Read properly, they locate the bottleneck rather than promise a product-level speedup.
| Configuration | Total forward | Attention share | Note |
|---|---|---|---|
| Dense 4K | 17.33 s | 15.2 s | Full target-reference attention |
| Sparse diagnostic (R = 1) | 4.13 s | 0.60 s | 25.3x attention, 4.2x overall |
| Main configuration R = 3 | Not reported at this granularity | n/a | The setting behind quality results |
Progressive inference: run 1K early, cut 4K latency by 30.5% at a quality cost
FLASH also removes redundancy along the time axis. Given N denoising steps and a transition index K between 1 and N-1, the model runs the 1K prefix first, forms a clean estimate from the low-resolution state and its velocity prediction, lifts it through RGB space, re-noises it at the paired high-resolution state, and finishes the remaining steps with the same cross-resolution model. This path requires no extra training. The reported benefit is a 30.5% reduction in end-to-end 4K latency, with a modest quality cost. Note that the lifted image is an intermediate state, not the output of a separate super-resolution stage, because later denoising stays conditioned on the instruction, the source image and the evolving 1K edit.
Three metrics on VINS-4KEval, and what each one actually certifies
Evaluation runs on VINS-4KEval at both 2K and 4K, where the direct model leads the compared methods on HaarPSI, keep-region mPSNR and mSSIM [1]. Each metric certifies something different:
- keep-region mPSNR measures how much of the non-edited region survives, which is about not changing what should stay fixed.
- HaarPSI is a full-image perceptual similarity score built on Haar wavelet features, sensitive to structure and edges.
- mSSIM adds a second structural similarity reading, so structure fidelity is cross-checked rather than asserted once.
- One engineering detail buyers should note: Halo support follows local geometry, so no user-supplied edit mask is required, which removes a manual masking step from acceptance testing.
What these three do not certify is instruction adherence. A model can preserve untouched regions and match structure closely while changing the wrong thing, so this metric set works as a necessary condition in acceptance and not as a sufficient one.
When this approach does not apply
There are at least four situations where these conclusions do not transfer. The speed figures come from an R = 1 diagnostic while the product runs R = 3, so that gap needs your own measurement. Quality claims cover only 2K and 4K on VINS-4KEval, with no 8K result and no instruction types outside that benchmark. The 1K branch is frozen, so the whole pipeline inherits the 1K editor's ceiling: if the anchor misreads the instruction or misplaces the main structure, the high-resolution branch can only add texture back. Finally, the high-resolution branch reads local Halo support only, so long-range consistency is carried by the 1K anchor, and an error in the anchor propagates everywhere; the saved attention is paid for with global correctability at target resolution. The progressive path adds a further quality discount on top. It is a preserve-structure and preserve-latency design, not a guarantee of fidelity at any resolution.
