betaFeedback

WorksComputer Science

DetailScale-SR: Decoupling Restoration and Continuous Detail Control for Real-World Super-Resolution

Abstract

Real-world image super-resolution often seeks the most detailed plausible reconstruction, although more detail is not always desirable. The same degraded image may require restrained restoration, faithful reconstruction, or enhanced visual detail according to user intent. We present DetailScale-SR, a preference-conditioned framework that continuously controls reconstructed detail for a fixed low-resolution input without altering the scene being restored. Rather than relying on post-processing or repeatedly rewriting prompts, it learns a continuous family of reconstructions while separating content recovery from detail preference. This enables a smooth transition from conservative restoration to richly textured results under consistent input and semantic constraints. Its controllable range also extends beyond conventional restoration: DetailScale-SR can enhance high-frequency structures and generate perceptually richer textures than the paired high-resolution reference. Text restoration is another distinct strength. For text-rich scenes, especially Chinese posters and signs, it recovers more legible and character-faithful text than prior generative SR methods under matched textual guidance. DetailScale-SR therefore unifies continuous detail control, beyond-reference enhancement, and reliable recovery of semantically important content. Our model is available at https://modelscope.cn/models/DiffSynth-Studio/Qwen-Image-2.1-SR

Qualitative results of DetailScale-SR

Figure 1. Qualitative results of DetailScale-SR. Besides recovering fine textures and structures from heavily degraded inputs, our method enables detail-controllable SR through a single scalar that denotes the desired richness of reconstructed detail, while Detail-CFG extrapolates the learned direction beyond the ground truth. More results are shown in the supplementary material.

Introduction

Real-world image super-resolution aims to reconstruct a high-resolution image from a low-resolution observation affected by unknown combinations of blur, noise, compression, and downsampling. Since these degradations inevitably remove part of the high-frequency information, the desired fine-scale structures cannot always be determined from the observed pixels alone. Recent diffusion- and flow-based methods [16, 26, 33, 47] address this challenge by introducing powerful generative priors, achieving substantial progress in both restoration fidelity and perceptual quality.

Despite this progress, most existing methods are designed to produce a single canonical restoration, implicitly assuming that the same detail preference applies to different images and users. In practice, however, the desired appearance is highly dependent on image content and user intent. For scenes containing fine and irregular structures, such as hair, animal fur, foliage, or weathered surfaces, users may prefer richer texture expression and stronger detail enhancement. For portraits, illustrations, or visually clean scenes, a smoother and more restrained result may instead be desirable. Aggressive detail synthesis can introduce distracting or semantically incorrect patterns, whereas overly conservative restoration may suppress structures that the generative prior is capable of recovering. Therefore, the goal is not simply to maximize the amount of generated detail, but to adapt it to the preference of each restoration scenario. This motivates an explicit and user-controllable detail dimension rather than a single predetermined reconstruction.

Several recent methods have introduced controllability into generative super-resolution. StableSR [26] provides a tunable quality-fidelity trade-off, ODTSR [6] adjusts fidelity and prompt controllability through noise-conditioned visual streams, and IFCSR [1] controls the balance between fidelity and realism through image-space manipulation. These advances demonstrate that users can benefit from multiple restoration preferences rather than a single predetermined output. Nevertheless, existing control variables often influence several image properties simultaneously, including degradation removal, texture strength, structural fidelity, generation stochasticity, and semantic response to prompts. Consequently, it can be difficult to interpret the control parameter specifically as a preference for the amount of image detail.

This motivates a complementary question to conventional real-world super-resolution: in addition to improving restoration quality, can a model allow users to continuously adjust the amount of expressed detail while preserving the same observed content, semantic instruction, and general restoration capability? Such a control should not require retraining a separate restoration model for every preference. More importantly, its effect should be distinguishable from simply changing the severity of the input degradation, the prompt, or the sampling randomness.

To this end, we introduce DetailScale-SR, a controllable Real-ISR framework. Our key idea is to separate general restoration capability from user-specified detail preference. We first establish a robust SR pathway for recovering clean high-resolution content, and subsequently learn continuous detail control without altering the underlying restoration instruction. Given the same low-resolution image and restoration instruction, users can adjust a scalar detail value to obtain outputs ranging from restrained reconstruction to increasingly detailed synthesis. We additionally provide an optional scale-aware guidance mechanism that further amplifies the learned detail direction when stronger enhancement is desired.

Overall, DetailScale-SR provides three complementary

capabilities. (1) It enables continuous detail control, allowing users to move from restrained restoration to increasingly detailed synthesis and optional enhancement according to their preferences. (2) It places particular emphasis on text-sensitive restoration. Character strokes, especially dense Chinese characters, are easily corrupted by blur, noise, compression, and downsampling. Existing generative SR methods may treat them as ordinary textures, producing distorted glyphs, substituted characters, or visually plausible but semantically incorrect text [6, 19, 45]. Through text-bearing training examples and optional visible-text instructions, DetailScale-SR combines degraded visual evidence with semantic cues to improve both textual content recovery and spatial placement in posters, storefronts, road signs, and other text-rich scenes. (3) It further supports layer-oriented RGBA super-resolution, extending restoration to transparent foreground content while preserving character layout, foreground appearance, transparency boundaries, and alpha-layer consistency. Together, these capabilities provide a flexible restoration interface for natural images, text-rich scenes, and layered visual content.

Our contributions are summarized as follows:

  • We extend Real-ISR with a continuous detail-preference dimension, allowing users to adjust the amount of expressed detail while preserving the same input content and restoration model.

  • We propose a two-stage controllable restoration framework that separates general super-resolution capability from detail-level modulation, together with an optional scale-aware guidance mechanism for stronger detail enhancement.

  • We emphasize prompt-assisted text restoration and extend the evaluation beyond conventional RGB images to layer-oriented RGBA content, demonstrating the potential of generative SR for text-sensitive and transparency-aware restoration scenarios.

Related Work

Generative Image Super-Resolution

Real-world image super-resolution aims to recover high-quality images under complex and unknown degradations [2, 31]. BSRGAN [42] and Real-ESRGAN [29] improve robustness through practical degradation synthesis. Pretrained diffusion models further introduce strong generative priors for recovering plausible structures and textures [23]. StableSR [26] introduces time-aware conditioning, while DiffBIR [16] separates degradation removal from information regeneration. PASD [38] and SeeSR [34] incorporate structural or semantic guidance, whereas SUPIR [41] investigates model scaling and restoration-guided sampling. DiT4SR [5] extends generative SR to diffusion transformers, while OSEDiff [33] and TSD-SR [4] improve efficiency through distillation-based restoration. Most SR methods produce results at a fixed operating point, although the preferred amount of detail may vary across scenes and users. Natural textures and animal fur may benefit from rich detail synthesis, while portraits and graphic designs may favor smoother restoration. Deep Network Interpolation [28] adjusts restoration behavior through parameter interpolation, while CFSNet [27] combines features associated with different objectives. Recent diffusion-based methods provide further control over fidelity and generative enhancement. StableSR [26] and DiffBIR [16] expose adjustable restoration guidance; PiSA-SR [24] combines specialized LoRAs with tunable guidance; OFTSR [47] and RCOD [35] control the fidelity–realism trade-off in flow or latent spaces. IFCSR [1] combines fidelity- and realism-oriented predictions, while ODTSR [6] introduces adjustable noise conditioning and fidelity-aware training. Our method instead continuously regulates detail expression within a shared restoration pathway and supports stronger enhancement through optional scale-aware guidance.

Text restoration is another important SR application, particularly for posters, signs, and advertisements. TATT [19] and DiffTSR [45] introduce text-specific priors or joint image–text modeling, while ODTSR [6] demonstrates prompt-assisted Chinese text restoration. Nevertheless, complex characters and dense layouts may still produce distorted strokes, substituted characters, or inaccurate spatial arrangements. We preserve the text-rendering prior of the pretrained image-editing model [22, 32] and further adapt it with text-rich restoration data, emphasizing the accuracy of textual content and spatial placement.

Conditional Control in Generative Models

Controllable generation commonly introduces additional conditions or lightweight components into pretrained generative models. LoRA [11] learns low-rank parameter updates for efficient task, concept, or style adaptation. ControlNet [43] and T2I-Adapter [20] inject structural conditions such as edges, depth, and pose, while IP-Adapter [39] incorporates reference-image features through an additional attention pathway. GLIGEN [14] introduces grounded spatial conditions, and Uni-ControlNet [46] combines local and global controls within a shared framework. Concept Sliders [8] instead learn scalable parameter directions for continuous semantic control.

Other methods represent control signals through feature modulation or learnable context tokens. Adaptive normalization [12, 21] converts conditions into layer-wise modulation parameters, whereas token-based methods [7] inject learned representations into attention layers. Our Scale Template follows this lightweight conditioning principle by converting a scalar detail preference into layer-wise attention conditions.

Unlike spatial control maps or concept-specific adapters, it represents a continuous restoration preference and enables different levels of detail expression without changing the shared restoration model.

Method

Problem Formulation and Overview

Let I∈RH×W×CI \in\mathbb{R}^{H \times W \times C} denote a high-resolution image and x=D(I;ω)x = \mathcal{D}(I; \omega) its low-resolution observation, where D\mathcal{D} combines spatial reduction and real-world distortions, and ω\omega denotes the sampled degradation parameters. Given xx, an optional text instruction pp, and a user-specified detail value s∈[0,1]s \in[0, 1], our goal is to reconstruct

I^s=RΘ,Δ(x;p,Φ(s)),(1)\hat{I}_s = \mathcal{R}_{\Theta,\Delta}(x; p, \Phi(s)), \tag*{(1)}

where Θ\Theta denotes the pretrained image-editing model, Δ\Delta is an SR LoRA for image restoration, and Φ\Phi is a Scale Template that maps ss to an internal detail condition.

The desired variation in I^s\hat{I}_s concerns the amount of fine structure and texture, rather than the scene identity, spatial layout, or readable text. Unlike image-space interpolation between separately generated endpoint images, our method directly produces the result associated with the requested detail value. The restoration input remains identical across different values of ss, requiring the model to learn different detail preferences for the same observed content.

As illustrated in Figure 2, our framework follows a two-stage design. The first stage trains the SR LoRA Δ\Delta to adapt the pretrained model to real-world image restoration. The second stage freezes the established restoration capability and trains the Scale Template Φ\Phi for continuous detail control. This separation enables a single shared restorer to generate different levels of detail without training separate restoration models. The training objectives and conditioning mechanism are presented in the following sections.

Overview of the proposed DetailScale-SR framework

Figure 2. Overview of the proposed DetailScale-SR framework.

Stage I: Shared Restoration Adaptation

Restoration adaptation. We adopt Qwen-Image 2.1 [22, 32] as the image-editing backbone and introduce a rank-64 LoRA [11] to establish a shared restoration capability. Following common practice in real-world SR [6, 29, 42], each high-resolution target II is transformed into a low-resolution observation xx through a combination of spatial downsampling and sampled real-world degradations. The resulting 4×4\times low-resolution image is bicubically resized to the target canvas and used as the spatially aligned restoration condition u(x)u(x). This resizing aligns the condition with the output space without recovering the lost high-frequency information.

The editing instruction guides the model to remove degradation and recover plausible details while preserving the observed scene. Depending on the available user input, pp can be either a generic restoration instruction or an optional content-aware description. The latter can provide useful semantic cues in challenging cases, particularly for text-rich images, but is not required for standard restoration.

Content-anchored objective. We retain the standard conditional flow-matching formulation [17] of the pretrained backbone and introduce no additional objective. The low-resolution observation and optional instruction are treated as conditions of velocity field, while the high-resolution image defines the clean trajectory endpoint. Let z=E(I)z = \mathcal{E}(I) denote the latent representation of the target image, and let zt=αtz+σtϵz_t = \alpha_t z + \sigma_t \epsilon be the noisy latent at timestep tt, where ϵ∼N(0,I)\epsilon\sim\mathcal{N}(0, I). We freeze the pretrained parameters θ\theta and optimize only the restoration adapter Δ\Delta using

LSR(Δ)=EI,ω,p,t,ϵ∥vθ,Δ(zt,t∣u(x),p)−vt∗∥22,(2)\mathcal{L}_{\mathrm{SR}}(\Delta) = \mathbb{E}_{I,\omega,p,t,\epsilon} \left\|v_{\theta,\Delta}(z_t,t \mid u(x),p) - v_t^*\right\|_2^2, \tag*{(2)}

where vt∗v_t^* denotes the target trajectory velocity. The noise schedule and its coefficients αt\alpha_t and σt\sigma_t follow the original Qwen-Image training formulation. Because the objective is evaluated across sampled timesteps, the adapter learns to redirect the complete conditional trajectory from degraded observations toward clean image latents rather than matching only the final decoded output. Freezing θ\theta confines this adaptation to the low-rank restoration pathway and preserves the generative and semantic priors of the pretrained model. Stage I establishes the shared restoration function used across all detail settings. During Stage II, both θ\theta and Δ\Delta remain fixed, ensuring that variations induced by ss are learned through the detail-conditioning module rather than changes to the underlying restorer.

Stage II: Continuous Detail Conditioning

Continuous detail targets. To assign a consistent meaning to the control value ss, we construct multiple aligned targets for the same low-resolution observation. Given a high-resolution image II, we first obtain a low-detail endpoint

L=TRTV(I),(3)L = \mathcal{T}_{\mathrm{RTV}}(I), \tag*{(3)}

where TRTV\mathcal{T}_{\mathrm{RTV}} denotes relative total variation (RTV) filtering [36]. RTV suppresses small-scale textures while largely preserving prominent structures, providing a practical reference for reduced detail expression. It is used only to construct the supervision target and does not alter the low-resolution observation.

For a sampled detail value s∈[0,1]s \in[0,1], we define the corresponding target as

Is=(1−s)L+sI=L+s(I−L).(4)I_s = (1-s)L + sI = L + s(I-L). \tag*{(4)}

The two endpoints represent texture-suppressed and full-detail targets, while intermediate values form a spatially aligned and continuous supervision path. The low-resolution condition is always generated from the original image as x=D(I;ω)x = \mathcal{D}(I;\omega), independently of ss. Therefore, the model must learn the association between ss and the desired detail expression instead of inferring it from changes in the input degradation. Note that interpolation is used only to construct training targets; at inference time, the output for a given ss is generated directly by the model rather than blended from endpoint predictions.

Detail Controlling Module. We introduce a trainable Detail Controlling Module Φ\Phi to translate the scalar ss into internal attention conditions. The scalar is first encoded using a sinusoidal embedding [25],

e(s)=PE(s),(5)e(s) = \mathrm{PE}(s), \tag*{(5)}

and then mapped to block-specific key and value tokens:

Kbtmp(s)=reshape⁡(fbK(e(s))+PbK),Vbtmp(s)=reshape⁡(fbV(e(s))+PbV),(6)\begin{aligned} K_b^{\mathrm{tmp}}(s) &= \operatorname{reshape}\left(f_b^K(e(s)) + P_b^K\right),\\ V_b^{\mathrm{tmp}}(s) &= \operatorname{reshape}\left(f_b^V(e(s)) + P_b^V\right), \tag*{(6)} \end{aligned}

where fbKf_b^K and fbVf_b^V are learnable encoders for transformer block bb, and PbKP_b^K and PbVP_b^V are learned token-position embeddings. Since these mappings operate continuously on ss, the conditioning is not restricted to a predefined set of discrete detail categories. The generated Template tokens are appended to the original attention keys and values:

K~b(s)=[Kborig; Kbtmp(s)],V~b(s)=[Vborig; Vbtmp(s)],Attn⁡b(s)=softmax⁡(QbK~b(s)Td+M~b)V~b(s),(7)\begin{aligned} \widetilde{K}_b(s) &= \left[K_b^{\mathrm{orig}};\,K_b^{\mathrm{tmp}}(s)\right],\\ \widetilde{V}_b(s) &= \left[V_b^{\mathrm{orig}};\,V_b^{\mathrm{tmp}}(s)\right],\\ \operatorname{Attn}_b(s) &= \operatorname{softmax}\left(\frac{Q_b\widetilde{K}_b(s)^{\mathsf{T}}}{\sqrt{d}}+\widetilde{M}_b\right)\widetilde{V}_b(s), \tag*{(7)} \end{aligned}

where M~b\widetilde{M}_b is the attention mask extended for the additional tokens. The original image, text, and editing conditions are retained; the Template provides an additional pathway through which the requested detail preference can influence feature synthesis.

Training objective. Stage II follows the same flow-matching objective as Stage I, with the original target II replaced by the scale-conditioned target IsI_s. The low-resolution condition u(x)u(x), the instruction pp, and the backbone noise schedule remain identical to Stage I; the only additional conditioning signal is the scale-dependent representation Φ(s)\Phi(s). Specifically, we encode IsI_s as zs=E(Is)z_s = \mathcal{E}(I_s) and construct its noisy latent using the original backbone schedule. The pretrained parameters θ\theta and the Stage I restoration adapter Δ⋆\Delta^\star remain frozen, while only the Scale Template Φ\Phi is optimized through the conditioning Φ(s)\Phi(s). Since xx is generated independently of ss, the Template cannot infer the requested detail level from the degradation strength. Instead, it must use the scale-conditioned attention tokens to account for variations among the aligned targets. Sampling ss continuously within [0,1][0,1] exposes both endpoint and intermediate preferences to the same shared restorer, encouraging a continuous rather than categorical representation of detail. Therefore, the two stages differ in their supervision targets and trainable parameters, rather than in the underlying flow-matching formulation.

Scale-Aware Detail Guidance

The continuous detail condition enables direct inference at any requested value s∈[0,1]s \in[0,1]. At each sampling step, the scale-conditioned velocity prediction is written as

v(s)=vθ,Δ⋆,Φ(zt,t∣u(x),p;Φ(s)).(8)v(s) = v_{\theta,\Delta^\star,\Phi}(z_t,t \mid u(x),p;\Phi(s)). \tag*{(8)}

This direct mode provides continuous control using a single requested detail condition, without training separate restoration models for different values of ss.

To further amplify the detail-enhancement capability learned by the Scale Template, we introduce an optional scale-aware detail guidance mechanism. Given a target detail value s+s_+ and a lower reference value sref<s+s_{\mathrm{ref}} < s_+, we evaluate two branches using the same latent state, low-resolution observation, and text instruction. Their difference defines a detail-sensitive direction in the velocity field:

dtdetail=v(s+)−v(sref),vguide=v(s+)+(γ−1)dtdetail,(9)\begin{aligned} d_t^{\mathrm{detail}} &= v(s_+) - v(s_{\mathrm{ref}}),\\ v_{\mathrm{guide}} &= v(s_+) + (\gamma- 1)d_t^{\mathrm{detail}}, \tag*{(9)} \end{aligned}

where γ≥1\gamma\ge1 controls the guidance strength. When γ=1\gamma= 1, the formulation reduces to the direct prediction at s+s_+. Increasing γ\gamma extrapolates along the learned detail-sensitive direction, encouraging stronger fine structures and richer textures than the direct branch alone.

This formulation is inspired by classifier-free guidance [10], but the two branches differ in their detail conditions rather than their text prompts. Keeping xx, pp, ztz_t, and tt identical isolates the variation induced by the detail scale and avoids introducing an additional semantic direction. Moreover, the guidance strength γ\gamma is separated from the detail value ss: the Scale Template remains evaluated within its trained interval, while γ\gamma controls how strongly the learned detail direction is expressed.

Experiments

Experimental Settings

Implementation. We build our model upon Qwen-Image 2.1 [22, 32]. In Stage I, a rank-64 LoRA [11] is trained for real-world image restoration, while Stage II freezes the backbone and SR LoRA and optimizes only the Scale Template. Unlike patch-based training, we use complete images with their aspect ratios preserved, resizing them only to satisfy the resolution budget. We adopt AdamW [18] with a learning rate of 10−410^{-4}, and train both stages on four accelerators. At inference, we use the default sampling configuration with s=1s=1. Other details are provided in the supplementary material.

Datasets. We focus on the ×4\times4 real-world image super-resolution task. We train Stage I on 40,000 LSDIR [15] images and 2,000 text-rich samples. Unlike previous methods that train on cropped patches, we use complete images with their aspect ratios preserved. LQ inputs are synthesized using blur, downsampling, noise, and compression. In Stage II, RTV [36] is applied to construct continuous detail targets. We evaluate our method on the RealSR [2] and DRealSR [31] benchmarks.

Metrics. Following previous real-world image super-resolution works, we report PSNR and SSIM [30] on the luminance channel to measure reconstruction fidelity. LPIPS [44] and DISTS [3] evaluate full-reference perceptual similarity, while FID [9] measures the distributional discrepancy between restored images and ground-truth images. We additionally report MUSIQ [13] and MANIQA [37] as no-reference measures of perceptual image quality.

Compared Methods. We compare our method with representative real-world image super-resolution approaches, including OSEDiff [33], PiSA-SR [24], TSD-SR [4], TVT [40], SUPIR [41], DiT4SR [5], and ODTSR [6]. For each method, we use its official implementation, released checkpoint, and recommended inference settings.

Comparison with State-of-the-Art Methods

Quantitative Comparisons. Table 1 compares nine representative Real-ISR methods with our model at three detail levels on RealSR and DRealSR. All our results are produced by a single checkpoint with the backbone and restoration adapter frozen; only the detail level ss and guidance strength γ\gamma are varied. The control variable is therefore isolated from restoration capability, and the table evaluates one model over a continuous range rather than multiple separately configured systems. Our method achieves the best or second-best LPIPS, DISTS, and FID on both datasets, while its most conservative setting obtains the highest PSNR and SSIM. To summarize the reference-based performance, we average the per-metric ranks over PSNR, SSIM, LPIPS, DISTS, and FID, under which our method ranks first on both benchmarks. No-reference metrics are reported but excluded from this ranking because they measure perceived quality rather than agreement with the reference. These results show that a single scalar-conditioned restorer can provide continuous detail control without sacrificing endpoint fidelity, match specialized baselines across the fidelity–detail spectrum, and remain adjustable at inference time.

DatasetMethodPSNR↑\uparrowSSIM↑\uparrowLPIPS↓\downarrowDISTS↓\downarrowFID↓\downarrowMUSIQ↑\uparrowMANIQA↑\uparrowRank↓\downarrow
RealSROSEDiff25.150.73410.29210.2128123.4969.090.63267.70
PiSA-SR25.500.74170.26720.2044124.0970.150.65605.80
TSD-SR24.810.71720.27430.2104114.4571.190.63478.00
TVT25.810.75960.25970.2061109.9069.890.62324.40
SUPIR23.650.66200.35410.2488130.3862.090.578011.80
DiT4SR23.500.66570.32150.2251118.5567.760.656410.60
SeeSR25.150.72100.30070.2225125.6369.820.64449.10
ODTSR25.070.73610.23980.1894101.4968.290.66224.60
IFCSR (γ=0.5\gamma=0.5)25.140.70550.28660.2141110.6069.680.62938.20
Ours, s=0.2s=0.226.520.77250.24330.2029109.5861.490.58052.80
Ours, s=0.5s=0.526.250.76100.22670.183794.4063.320.61231.80
Ours, s=1.0s=1.025.480.73000.23430.183488.4065.530.63683.20
DRealSROSEDiff27.920.78350.29680.2165135.2964.650.58956.40
PiSA-SR28.320.78040.29600.2169130.4866.110.61465.00
TSD-SR27.770.75590.29660.2136135.3266.610.58507.20
TVT28.270.78990.28990.2205134.2865.560.57765.20
SUPIR25.090.64600.42430.2795169.4858.790.547112.00
DiT4SR25.400.66570.38690.2508163.0565.750.628711.00
SeeSR28.070.76830.31740.2315147.3965.090.60448.20
ODTSR28.140.77360.25920.1926119.8662.860.62272.80
IFCSR (γ=0.5\gamma=0.5)27.600.73710.32780.2361133.8466.570.59409.00
Ours, s=0.2s=0.228.910.81440.27410.2170129.6658.630.56383.20
Ours, s=0.5s=0.528.550.79430.26860.2030122.5460.670.59092.20
Ours, s=1.0s=1.027.500.75130.29080.2058120.9963.350.61305.80

Table 1. Quantitative comparison on RealSR (top) and DRealSR (bottom). Best and second-best values of each column are highlighted in bold and underlined. Rank is the average per-metric rank over PSNR, SSIM, LPIPS, DISTS and FID (1 = best, lower is better); the no-reference metrics are reported but not ranked, as they measure perceived quality rather than agreement with the reference.

Qualitative Comparisons. Figure 3 shows qualitative comparisons on natural texture, thin structures and text-rich content, all produced from the same low-resolution inputs. The first two rows show that our method produces high-quality restoration in fine-grained textures and thin high-contrast structures under severe degradation: fine detail is recovered without obvious artifacts, edges that should be straight remain straight and continuous, and the restored colours stay close to those of the reference. Besides, the third row demonstrates our capability on text-rich content, especially in Chinese scenes, where characters are restored with correct glyph shapes and connected strokes, and where small print and small graphic elements remain readable. The same behaviour is visible in the enlarged text and seal regions, which contain dense strokes and fine boundaries that are easily lost during degradation. Moreover, the quality can be further boosted with a text annotation prompt, indicating the prompt controllability of our framework.

Qualitative comparison on ×4 real-world super-resolution

Figure 3. Qualitative comparison on ×4\times4 real-world super-resolution.Our method performs favorably overall and is especially strong on text-rich content.

Continuous Detail Control and Enhancement

To observe the controllability more clearly and to verify the robustness, we conduct the controllable SR experiment under a stronger degradation setting (Figure 4). As the detail level ss increases, the ridges on crocodile armour and strands of the squirrel’s fur are progressively sharpened, while pose, geometry and colour remain unchanged. The compared methods exhibit two main limitations: their results tend to

Controllable SR results on two heavily degraded images

Figure 4. Controllable SR results on two heavily degraded images; Our method delivers clearer detail-controllable generation and preserves structure better under heavy degradation.

be over-smoothed with inconspicuous fine detail, and their robustness deteriorates markedly under severe degradation.

When the CFG mechanism is enabled, the detail condition is extrapolated along the learned direction, so that the produced texture becomes richer than the ground truth and the model performs enhancement beyond restoration. Table 2 quantifies this behaviour on both benchmarks. Sweeping ss from 0 to 1 traces a continuous path: PSNR and SSIM decrease monotonically while MUSIQ and MANIQA increase, and FID reaches its minimum at a large detail level, so the model moves smoothly from fidelity-oriented restoration to detail-oriented synthesis. LPIPS attains its best value at an intermediate scale (s=0.8s=0.8 on RealSR and s=0.4s=0.4 on DRealSR), indicating that moderate detail generation keeps the closest feature-space correspondence. Detail-CFG (last row of each block) further improves all no-reference quality metrics, extending the controllable range beyond standard restoration and enabling enhancement with perceptually richer details than the ground-truth reference.

SettingPSNR↑\uparrowSSIM↑\uparrowLPIPS↓\downarrowMANIQA↑\uparrowMUSIQ↑\uparrowFID↓\downarrow
s=0.0s=0.026.690.77230.27660.553360.94130.46
s=0.4s=0.426.560.76850.22920.603063.0098.30
s=0.8s=0.826.140.75140.22150.625164.2687.44
s=1.0s=1.025.480.73000.23430.636865.5388.40
CFG γ=2\gamma=224.060.65870.28350.665367.8698.53
s=0.0s=0.029.080.82430.29850.534657.01147.76
s=0.4s=0.428.780.80210.27150.584060.33125.92
s=0.8s=0.828.090.77360.27830.602261.65121.18
s=1.0s=1.027.500.75130.29080.613063.35120.99
CFG γ=2\gamma=225.560.66060.36080.631466.05138.63

Table 2. Continuous detail control on RealSR (top) and DRealSR (bottom). The last row of each block applies Detail-CFG.

Prompt-Assisted Text Restoration

Our method also performs strongly on text rendering, especially for images that contain a large amount of text

and require accurate spatial correspondence. Under heavy degradation, some characters cannot be recovered precisely from the low-resolution observation alone, so we adopt a prompt-assisted strategy that supplies the text content as a prompt. In this setting our method recovers both the character content and its spatial position accurately, whereas the compared methods tend to produce blurred characters or spatially mismatched text (see Figure 5). In addition, benefiting from the four-channel RGBA generation capability of Qwen-Image 2.1 [22, 32], our approach can perform layer-wise super-resolution or editing as needed, for example in poster-style scenes.

Text restoration with prompt assistance

Figure 5. Text restoration with prompt assistance. Our method performs favorably on challenging cases containing many texts and recovers the content accurately; more examples are provided in the supplementary material.

Ablation on Two-Stage Training Strategy

Our training strategy freezes the Stage-I super resolution LoRA and optimizes only the detail template in Stage II. To justify this two-stage design, we train a joint variant that optimizes both components together, starting from the same Stage-I initialization and using identical data, targets and budget, so that the freeze is the only difference between the two models. As shown in Table 3, joint optimization degrades all fidelity metrics while yielding only slightly higher no-reference scores: the detail objective then rewrites the restoration capability instead of modulating it. Freezing the Stage-I LoRA confines the Stage-II update to the conditioning pathway, which keeps the restorer intact across detail levels.

StrategyPSNR↑\uparrowSSIM↑\uparrowLPIPS↓\downarrowDISTS↓\downarrowFID↓\downarrow
Two-stage (frozen)25.480.73000.23430.183488.40
Joint (one-stage)23.500.66050.29720.2171102.77

Table 3. Ablation on the two-stage training strategy on RealSR

Conclusion

We propose DetailScale-SR, a controllable diffusion framework for real-world image super-resolution that separates restoration capability from detail expression. Unlike existing controllable methods that entangle detail with prompts, sampling noise or degradation severity, we inject a continuous scalar into the attention layers of a frozen restoration model, so that the amount of expressed detail can be adjusted without any additional inference. Built upon this formulation, the two-stage training scheme yields a continuous and monotonic detail spectrum within a single model. Extensive experiments on RealSR and DRealSR show that DetailScale-SR is competitive in fidelity, while preserving typography in text-rich scenes.

LLM Usage Statement

OpenAI ChatGPT and Codex were used to assist with language editing, grammatical refinement, LaTeX formatting, bibliography formatting, citation placement, and the layout and labeling refinement of figures. They were not used to generate experimental data or numerical results. All references, scientific claims, equations, analyses, and final manuscript content were independently verified and approved by the authors, who take full responsibility for the submission.

References

  1. [1]Jonghee Back, Jongju Kim, Jeong-Uk Kim, Eunjin Kim, and Minyong Jeon. IFCSCR: Inference-free fidelity-realism control for one-step diffusion-based real-world image super-resolution. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 38187–38197, 2026.
  2. [2]Jianrui Cai, Hui Zeng, Hongwei Yong, Zisheng Cao, and Lei Zhang. Toward real-world single image super-resolution: A new benchmark and a new model. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 3086–3095, 2019.arxiv.org/abs/1904.00523
  3. [3]Keyan Ding, Kede Ma, Shiqi Wang, and Eero P. Simoncelli. Image quality assessment: Unifying structure and texture similarity. IEEE Transactions on Pattern Analysis and Machine Intelligence, 44(5):2567–2581, 2022.
  4. [4]Linwei Dong, Qingnan Fan, Yihong Guo, Zhonghao Wang, Qi Zhang, Jinwei Chen, Yawei Luo, and Changqing Zou. TSD-SR: One-step diffusion with target score distillation for real-world image super-resolution. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 23174–23184, 2025.arxiv.org/abs/2411.18263
  5. [5]Zheng-Peng Duan, Jiawei Zhang, Xin Jin, Ziheng Zhang, Zheng Xiong, Dongqing Zou, Jimmy S. Ren, Chunle Guo, and Chongyi Li. DiT4SR: Taming diffusion transformer for real-world image super-resolution. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 18948–18958, 2025.arxiv.org/abs/2503.23580
  6. [6]Yushun Fang, Yuxiang Chen, Shibo Yin, Qiang Hu, Jiangchao Yao, Ya Zhang, Xiaoyun Zhang, and Yanfeng Wang. One-step diffusion transformer for controllable real-world image super-resolution. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 23440–23450, 2026.arxiv.org/abs/2511.17138
  7. [7]Rinon Gal, Yuval Alaluf, Yuval Atzmon, Or Patashnik, Amit H. Bermano, Gal Chechik, and Daniel Cohen-Or. An image is worth one word: Personalizing text-to-image generation using textual inversion. In International Conference on Learning Representations, 2023.arxiv.org/abs/2208.01618
  8. [8]Rohit Gandikota, Joanna Materzynska, Tingru Zhou, Antonio Torralba, and David Bau. Concept sliders: LoRA adaptors for precise control in diffusion models. In European Conference on Computer Vision, pages 172–188, 2024.arxiv.org/abs/2311.12092
  9. [9]Martin Heusel, Hubert Ramsauer, Thomas Unterthiner, Bernhard Nessler, and Sepp Hochreiter. GANs trained by a two time-scale update rule converge to a local nash equilibrium. In Advances in Neural Information Processing Systems, 2017.
  10. [10]Jonathan Ho and Tim Salimans. Classifier-free diffusion guidance. arXiv preprint arXiv:2207.12598, 2022.arxiv.org/abs/2207.12598
  11. [11]Edward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuezhang Li, Shean Wang, Lu Wang, and Weizhu Chen. LoRA: Low-rank adaptation of large language models. In International Conference on Learning Representations, 2022.arxiv.org/abs/2106.09685
  12. [12]Xun Huang and Serge Belongie. Arbitrary style transfer in real-time with adaptive instance normalization. In Proceedings of the IEEE International Conference on Computer Vision, pages 1501–1510, 2017.arxiv.org/abs/1703.06868
  13. [13]Junjie Ke, Qifei Wang, Yilin Wang, Peyman Milanfar, and Feng Yang. MUSIQ: Multi-scale image quality transformer. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 5148–5157, 2021.arxiv.org/abs/2108.05997
  14. [14]Yuheng Li, Haotian Liu, Qingyang Wu, Fangzhou Mu, Jianwei Yang, Jianfeng Gao, Chunyuang Li, and Yong Jae Lee. GLIGEN: Open-set grounded text-to-image generation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 22511–22521, 2023.arxiv.org/abs/2301.07093
  15. [15]Yawei Li, Kai Zhang, Jingyun Liang, Jiezhang Cao, Ce Liu, Rui Gong, Yulun Zhang, Hao Tang, Yun Liu, Denis Deman-dolx, Rakesh Ranjan, Radu Timofte, and Luc Van Gool. LS-DIR: A large scale dataset for image restoration. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops, pages 1775–1787, 2023.
  16. [16]Xinqi Lin, Jingwen He, Ziyan Chen, Zhaoyang Lyu, Bo Dai, Fanghua Yu, Yu Qiao, Wanli Ouyang, and Chao Dong. DiffBIR: Toward blind image restoration with generative diffusion prior. In European Conference on Computer Vision, pages 430–448, 2024.DOI
  17. [17]Yaron Lipman, Ricky T. Q. Chen, Heli Ben-Hamu, Maximilian Nickel, and Matt Le. Flow matching for generative modeling. In International Conference on Learning Representations, 2023.arxiv.org/abs/2210.02747
  18. [18]Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. In International Conference on Learning Representations, 2019.
  19. [19]Jianqi Ma, Zhetong Liang, and Lei Zhang. A text attention network for spatial deformation robust scene text image super-resolution. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 5911–5920, 2022.arxiv.org/abs/2203.09388
  20. [20]Chong Mou, Xintao Wang, Liangbin Xie, Yanze Wu, Jian Zhang, Zhongang Qi, Ying Shan, and Xiaohu Qie. T2I-Adapter: Learning adapters to dig out more controllable ability for text-to-image diffusion models. arXiv preprint arXiv:2302.08453, 2023.arxiv.org/abs/2302.08453
  21. [21]Ethan Perez, Florian Strub, Harm de Vries, Vincent Dumoulin, and Aaron Courville. FiLM: Visual reasoning with a general conditioning layer. In Proceedings of the AAAI Conference on Artificial Intelligence, 2018.arxiv.org/abs/1709.07871
  22. [22]Qwen Team. Qwen-Image 2.1. https://qwen.ai/blog?id=qwen-image-2.1, 2026. Official release blog.
  23. [23]Robin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser, and Bjorn Ommer. High-resolution image synthesis with latent diffusion models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 10684–10695, 2022.arxiv.org/abs/2112.10752
  24. [24]Lingchen Sun, Rongyuan Wu, Zhiyuan Ma, Shuaizheng Liu, Qiaosi Yi, and Lei Zhang. Pixel-level and semantic-level adjustable super-resolution: A dual-LoRA approach. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 2333–2343, 2025.arxiv.org/abs/2412.03017
  25. [25]Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in Neural Information Processing Systems, pages 5998–6008, 2017.arxiv.org/abs/1706.03762
  26. [26]Jianyi Wang, Zongsheng Yue, Shangchen Zhou, Kelvin C. K. Chan, and Chen Change Loy. Exploiting diffusion prior for real-world image super-resolution. International Journal of Computer Vision, 132:5929–5949, 2024.arxiv.org/abs/2305.07015
  27. [27]Wei Wang, Ruiming Guo, Yapeng Tian, and Wenming Yang. CFSNet: Toward a controllable feature space for image restoration. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 4140–4149, 2019.arxiv.org/abs/1904.00634
  28. [28]Xintao Wang, Ke Yu, Chao Dong, Xiaoou Tang, and Chen Change Loy. Deep network interpolation for continuous imagery effect transition. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 1692–1701, 2019.arxiv.org/abs/1811.10515
  29. [29]Xintao Wang, Liangbin Xie, Chao Dong, and Ying Shan. Real-ESRGAN: Training real-world blind super-resolution with pure synthetic data. In Proceedings of the IEEE/CVF International Conference on Computer Vision Workshops, pages 1905–1914, 2021.arxiv.org/abs/2107.10833
  30. [30]Zhou Wang, Alan C. Bovik, Hamid R. Sheikh, and Eero P. Simoncelli. Image quality assessment: From error visibility to structural similarity. IEEE Transactions on Image Processing, 13(4):600–612, 2004.pubmed.ncbi.nlm.nih.gov/15376593
  31. [31]Pengxu Wei, Ziwei Xie, Xue Han, Lu Zongyuan Zhan, Qixiang Peng, Wangmeng Zuo, and Liang Lin. Component divide-and-conquer for real-world image super-resolution. In European Conference on Computer Vision, pages 101–117, 2020.arxiv.org/abs/2008.01928
  32. [32]Chenfei Wu, Jiahao Li, Jingren Zhou, Junyang Lin, Kaiyuan Gao, Kun Yan, Sheng ming Yin, Shuai Bai, Xiao Xu, Yilei Chen, Yuxiang Chen, Zecheng Tang, Zekai Zhang, Zhengyi Wang, An Yang, Bowen Yu, Chen Cheng, Dayiheng Liu, Deqing Li, Hang Zhang, Hao Meng, Hu Wei, Jingyuan Ni, Kai Chen, Kuan Cao, Liang Peng, Lin Qu, Minggang Wu, Peng Wang, Shuting Yu, Tingkun Wen, Wensen Feng, Xiaoxiao Xu, Yi Wang, Yichang Zhang, Yongqiang Zhu, Yujia Wu, Yuxuan Cai, and Zenan Liu. Qwen-Image technical report. arXiv preprint arXiv:2508.02324, 2025.arxiv.org/abs/2508.02324
  33. [33]Rongyuan Wu, Lingchen Sun, Zhiyuan Ma, and Lei Zhang. One-step effective diffusion network for real-world image super-resolution. In Advances in Neural Information Processing Systems, 2024.arxiv.org/abs/2406.08177
  34. [34]Rongyuan Wu, Tao Yang, Lingchen Sun, Zhengqiang Zhang, Shuai Li, and Lei Zhang. SeeSR: Towards semantics-aware real-world image super-resolution. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 25456–25467, 2024.arxiv.org/abs/2311.16518
  35. [35]Zongliang Wu, Siming Zheng, Peng-Tao Jiang, and Xin Yuan. Realism control one-step diffusion for real-world image super-resolution. arXiv preprint arXiv:2509.10122, 2025.
  36. [36]Li Xu, Qiong Yan, Yang Xia, and Jiaya Jia. Structure extraction from texture via relative total variation. ACM Transactions on Graphics, 31(6):139:1–139:10, 2012.DOI
  37. [37]Sidi Yang, Tianhe Wu, Shuwei Shi, Shanshan Lao, Yuan Gong, Mingdenq Cao, Jiahao Wang, and Yujiu Yang. MANIQA: Multi-dimensional attention network for no-reference image quality assessment. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops, pages 1191–1200, 2022.
  38. [38]Tao Yang, Rongyuan Wu, Peiran Ren, Xuansong Xie, and Lei Zhang. Pixel-aware stable diffusion for realistic image super-resolution and personalized stylization. In European Conference on Computer Vision, pages 74–91, 2024.arxiv.org/abs/2308.14469
  39. [39]Hu Ye, Jun Zhang, Sibo Liu, Xiao Han, and Wei Yang. IP-Adapter: Text compatible image prompt adapter for text-to-image diffusion models. arXiv preprint arXiv:2308.06721, 2023.arxiv.org/abs/2308.06721
  40. [40]Qiaosi Yi, Shuai Li, Rongyuan Wu, Lingchen Sun, Yuhui Wu, and Lei Zhang. Fine-structure preserved real-world image super-resolution via transfer VAE training. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 12415–12426, 2025.
  41. [41]Fanghua Yu, Jinjin Gu, Zheyuan Li, Jinfan Hu, Xiangtao Kong, Xintao Wang, Jingwen He, Yu Qiao, and Chao Dong. Scaling up to excellence: Practicing model scaling for photorealistic image restoration in the wild. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 25669–25680, 2024.arxiv.org/abs/2401.13627
  42. [42]Kai Zhang, Jingyun Liang, Luc Van Gool, and Radu Timofte. Designing a practical degradation model for deep blind image super-resolution. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 4791–4800, 2021.arxiv.org/abs/2103.14006
  43. [43]Lvmin Zhang, Anyi Rao, and Maneesh Agrawala. Adding conditional control to text-to-image diffusion models. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 3836–3847, 2023.arxiv.org/abs/2302.05543
  44. [44]Richard Zhang, Phillip Isola, Alexei A. Efros, Eli Shechtman, and Oliver Wang. The unreasonable effectiveness of deep features as a perceptual metric. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 586–595, 2018.arxiv.org/abs/1801.03924
  45. [45]Yuzhe Zhang, Jiawei Zhang, Hao Li, Zhouxia Wang, Luwei Hou, Dongqing Zou, and Liheng Bian. Diffusion-based blind text image super-resolution. arXiv preprint arXiv:2312.08886, 2023.arxiv.org/abs/2312.08886
  46. [46]Shihao Zhao, Dongdong Chen, Yen-Chun Chen, Jianmin Bao, Shaozhe Hao, Lu Yuan, and Kwan-Yee K. Wong. UniControlNet: All-in-one control to text-to-image diffusion models. arXiv preprint arXiv:2305.16322, 2023.arxiv.org/abs/2305.16322
  47. [47]Yuanzhi Zhu, Ruiqing Wang, Shilin Lu, Junnan Li, Hanshu Yan, and Kai Zhang. OFTSR: One-step flow for image super-resolution with tunable fidelity-realism trade-offs. arXiv preprint arXiv:2412.09465, 2024.arxiv.org/abs/2412.09465

Paper details

vlnc:W_7jgtnbrp
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 10

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

OpenAI ChatGPT, Codex

View statement
Looking for related papers…
Contents