Abstract
Reconstructing high-quality, high-resolution RGB images from raw sensor data is a critical task in the image signal processing (ISP) pipeline. However, cascading these processing stages often leads to error accumulation and imposes excessive computational and memory overheads, thus limiting efficient deployment on resource-constrained embedded edge devices. To address these challenges, we propose UDDSFormer—a hardware-oriented Transformer framework designed specifically for the unified RAW-to-RGB reconstruction task. First, the framework introduces an adaptive deformable sampling mechanism that aggregates features aligned with image structures by predicting offsets relative to a regular grid. Subsequently, a geometry decomposition module models horizontal and vertical dependencies through two directional branches and sums their separately normalized axial value responses for feature aggregation. Furthermore, on the Kodak24 test set, UDDSFormer achieves an 8.63× reduction in parameter count while improving PSNR by about 4.22 dB compared to the reference lightweight model, benefiting from unified modeling with deformable sampling. Finally, quantization-aware training experiments show that configurations with 8-bit or 6-bit weights and 8-bit activations achieve validation PSNR values approximately 0.2 dB below the FP32 baseline, whereas reducing activation precision to 4 bits leads to a substantial performance decrease. Overall, these results demonstrate that the unified framework achieves a favorable balance among reconstruction quality, computational efficiency, and hardware deployment potential.
1. Introduction
In computational photography, reconstructing high-quality and high-resolution red–green–blue (RGB) images from degraded RAW sensor measurements is a fundamental problem in the image signal processing (ISP) pipeline [1,2,3]. Unlike processed RGB images, RAW data retain minimally processed sensor measurements, providing greater flexibility for reconstruction. However, Bayer-pattern sensors record only one color component per pixel, requiring demosaicing to estimate the missing components and reconstruct a full-color image [4,5,6]. In practical imaging systems, RAW measurements are also affected by photon shot noise, readout noise, optical degradation, and limited sensor resolution [7,8,9,10,11]. Therefore, denoising, demosaicing, and super-resolution are closely related operations for reconstructing high-quality RGB images from noisy, low-resolution RAW images [12,13]. In traditional ISP systems, denoising, demosaicing, and super-resolution are typically implemented as independent stages executed sequentially. While this cascaded design is simple to implement and facilitates the individual optimization of each component, it fails to account for the strong dependencies among reconstruction tasks. For example, applying denoising directly to mosaiced RAW data may remove weak high-frequency signals together with sensor noise, thereby reducing the color and structural information available to the subsequent demosaicing stage. Applying demosaicing before denoising changes the original noise distribution and may introduce spatially correlated color artifacts [10,11,14,15,16,17]. When super-resolution is subsequently performed, residual noise, zipper artifacts, false colors, and interpolation errors can be further amplified. It can be concluded that reconstruction errors introduced at an early stage can propagate through the entire processing pipeline, becoming increasingly difficult to correct. Besides error accumulation, cascaded ISP pipelines may introduce redundant computation across independently designed modules. These modules may repeatedly extract similar low-level features and convert data between RAW and RGB domains, increasing computation, memory usage, and data transfer overhead. Moreover, optimizing each task independently may not achieve the best overall RAW-to-RGB reconstruction. A unified end-to-end framework can jointly optimize denoising, color reconstruction, and detail recovery while reducing unnecessary intermediate processing.
Convolutional neural networks (CNNs) have achieved substantial progress in low-level vision and have been widely applied to denoising, demosaicing, and super-resolution. Compared with conventional handcrafted ISP algorithms, learning-based methods can directly estimate complex nonlinear mappings from degraded measurements to high-quality images. Existing CNN-based studies have investigated individual or joint RAW restoration tasks, including joint demosaicing and denoising [18,19,20,21,22,23], as well as unified demosaicing, denoising, and super-resolution [12,13,24,25]. These methods demonstrate that jointly learned feature representations can reduce the incompatibility between independently optimized ISP components.
These advances also motivate compact architectures that balance spatial feature modeling with the resource constraints of embedded ISP systems. Whereas the compared CNN-based pipelines predominantly rely on convolutional backbones, UDDSFormer adopts a compact Transformer architecture with content-dependent attention. It decomposes dense window interactions into parallel horizontal and vertical branches and combines their value responses, reducing the attention-product and probability-tensor requirements at the same window size and feature width. In this paper, we compare representative recent methods in terms of backbone, restoration task, parameter count, and reconstruction quality. While traditional CNNs are effective, they primarily rely on spatially invariant convolutional kernels to extract features. Their receptive field is determined by the kernel size, network depth, and sampling strategy. Although stacking more convolutional layers can expand the effective receptive field, doing so also increases network depth and computational cost. More importantly, conventional convolutions sample features from fixed spatial locations; consequently, they may struggle to model irregular edges, spatially varying textures, and content-dependent degradations. These limitations are particularly critical in the unified RAW reconstruction task, which requires the network to simultaneously perform noise suppression, infer missing color components, and recover high-frequency spatial details. Furthermore, artificial intelligence has been widely applied across various fields [26,27,28,29,30,31], while the need for lightweight deployment has driven network designs aimed at balancing feature representation with computational efficiency. Recent restoration approaches also explore attention, modular coordination and generative priors. NOP-GAN combines noise optimization with pyramid coordinate attention for image denoising [32]. MoA-VR investigates an all-in-one video restoration system based on a mixture of agents [33]. MCLL-Diff uses multiple conditions in diffusion-based low-light enhancement [34].
Transformer architectures capture dependencies between spatially separated features through self-attention [26,35,36,37,38,39]. By integrating contextual information based on feature similarity, they have shown promise in low-level vision tasks [40,41]. Compared with local convolution, self-attention directly models long-range interactions, supporting the reconstruction of repetitive patterns, directional textures, and continuous edges. However, global self-attention incurs computational and memory costs that grow quadratically with the number of spatial tokens, making it expensive for high-resolution image reconstruction. Window-based self-attention reduces these costs by restricting feature interactions to non-overlapping local windows [42,43]. With a fixed window size, its complexity grows linearly with the number of spatial tokens. This efficiency, however, comes at the expense of interactions across window boundaries. Shifted windows enable information exchange between neighboring regions, but their fixed sampling grids offer limited adaptability to irregular image structures. Enlarging the windows captures broader context but increases computational and memory costs. These limitations motivate an attention mechanism that combines content-adaptive sampling with efficient long-range dependency modeling. Practical ISP models must also meet the resource constraints of embedded edge devices. Attention operations and large intermediate feature maps can impose substantial computational and memory costs [44]. Low-precision inference can reduce model storage and support efficient integer computation, but post-training quantization may degrade reconstruction quality through clipping and rounding errors. In addition, quantization-aware training (QAT) simulates these errors during optimization to improve robustness to low-precision inference [45].
Our previous work implemented a hardware-friendly joint denoising and demosaicing system on an FPGA [44]. Building on this experience, the present study investigates a compact Transformer architecture and its low-precision robustness. The Transformer hardware accelerator is under development; “hardware-oriented” describes the design motivation and deployment potential.
To address these challenges, we propose UDDSFormer, an efficient end-to-end Transformer framework designed to unify the tasks of denoising, demosaicing, and super-resolution. The network reconstructs high-resolution RGB images directly from noisy, low-resolution Bayer RAW images. Specifically, a RAW preprocessing module first packs the input into four channels and extracts shallow features; a backbone network based on deformable attention samples Keys and Values at content-adaptive locations while maintaining Queries on a regular grid, thereby achieving feature aggregation aligned with image structures; a geometric decomposition module further organizes spatial interactions into horizontal and vertical branches and sums their separately normalized value responses. Two local attention upsampling stages are positioned between the backbone groups to recover spatial details through content-adaptive feature reorganization; subsequently, an RGB reconstruction head generates the high-resolution output. Furthermore, we introduce quantization-aware training to evaluate reconstruction quality under reduced numerical precision, assessing the framework’s potential for deployment on resource-constrained devices.
The main contributions of this work are summarized as follows:
- We propose UDDSFormer, a lightweight end-to-end RAW-to-RGB reconstruction framework with a compact Swin-T backbone. The framework jointly optimizes denoising, demosaicing, and super-resolution within a single network, with the full model containing only 0.80 M parameters.
- We propose DDNA–GDM, which captures richer structural information through deformable key–value sampling while retaining regular-grid queries for spatial correspondence. GDM models horizontal and vertical dependencies through two parallel directional branches. Each branch aggregates the corresponding sampled values, and their responses are summed.
- The two-stage LAU strategy progressively enhances the feature resolution during upsampling. Unlike fixed feature rearrangement, LAU predicts content-dependent local weights at each position and applies them to combine neighboring low-resolution features, recovering high-resolution details.
- We systematically evaluate the reconstruction performance, computational complexity, component effectiveness, and low-precision robustness of UDDSFormer. Additionally, we conduct quantization-aware training to assess its potential for deployment on resource-constrained embedded imaging platforms.
2. The Proposed Method
In this section, we introduce UDDSFormer for unified denoising, demosaicing, and super-resolution of degraded low-resolution Bayer RAW images. The proposed method is described in detail in the following subsections.
2.1. Overall Structure
As illustrated in Figure 1, UDDSFormer reconstructs a high-resolution (HR) RGB image from a noisy low-resolution (LR) Bayer RAW input through joint denoising, demosaicing, and super-resolution. The network consists of a RAW preprocessing module (RPM), a DDNA-GDM-based feature extraction backbone, local attentional upsampling (LAU) modules, and an RGB reconstruction head, organized into four stages.
Figure 1.
Overall architecture of UDDSFormer.
In Stage 1, RPM packs the Bayer input into a four-channel representation corresponding to the R, , , and B samples. The packed input is concatenated with a noise map and projected into a shallow feature space, providing both image content and noise-level information for subsequent processing. Stages 2 and 3 form the feature extraction backbone. Each stage contains six attention blocks, alternating between deformable window blocks (D-WB) and deformable shifted-window blocks (D-SWB). D-WB supports content-adaptive feature aggregation within local windows, while D-SWB enables information exchange across window boundaries. The backbone contains blocks in total, with attention heads and a feature dimension of . The two feature extraction stages are followed by LAU1 and LAU2, respectively. These modules progressively increase spatial resolution through content-adaptive feature reassembly. This arrangement allows feature extraction and resolution recovery to be jointly optimized. In Stage 4, the RGB reconstruction head maps the refined features to the HR RGB output . The RPM, DDNA-GDM, LAU, and RGB reconstruction head are described in detail below.
The backbone is a compact restoration network that adopts Swin-style window partitioning, cyclic shifts, relative-position bias, pre-normalization, residual connections and feed-forward modules. It uses two groups of six blocks, a fixed width of , four heads, windows, alternating shifts of zero and four positions, and an MLP expansion ratio of four. It does not use the canonical Swin-T classification hierarchy, patch merging or an ImageNet classification head. The approximately 0.80 M parameter count refers to this restoration configuration; its exact value depends on the task and noise-conditioning channels.
- RPM. For a noisy LR Bayer image , RPM first rearranges the Bayer samples into a compact four-channel representation using pixel unshuffle, as follows:where denotes pixel unshuffle with a spatial reduction factor of two. The four channels correspond to the R, , , and B samples within each Bayer pattern.
The packed representation is concatenated with the spatially aligned noise map and mapped to C-channel features by a convolution.
where Concat denotes channel-wise concatenation, and denotes the convolutional projection. The resulting shallow features are fed into the feature extraction backbone network.
- DDNA-GDM. As depicted in Figure 2, DDNA-GDM integrates dual-scale offset prediction, deformable key-value sampling, a directional attention mechanism, and residual feature fusion. Sampling offsets are predicted based on the input features . Queries are generated directly from the original features while retaining their regular grid positions, whereas keys and values are derived from features sampled at the learned offset locations. Subsequently, the GDM organizes attention interactions along the horizontal and vertical axes. Thus, deformable sampling determines the locations from which key and value information is gathered, while directional decomposition dictates how queries associate with these keys and aggregate the corresponding values.Figure 2. Architecture of the DDNA-GDM module used in D-WB and D-SWB. Offsets predicted from input features guide deformable key-value sampling, while queries retain their regular grid positions. The Geometric Decomposition Mechanism (GDM) organizes interactions between queries and keys along horizontal and vertical axes. The conceptually represents the combined aggregation; the two directional branches separately aggregate sampled values and sum their responses, as detailed in Figure 3.
For the input feature , two offset prediction branches with and depthwise convolutions capture spatial context at different scales. Their outputs are fused to predict bounded sampling offsets:
where and denote the two offset predictors, and controls the sampling range.
Queries are projected from the original features on the regular reference grid , while keys and values are projected from deformably sampled features as follows:
where denotes bilinear sampling, represents the predicted sampling offsets, and , , and are learnable feature projections. The subscript d indicates features derived from deformable sampling. This formulation allows keys and values to capture information from content-adaptive locations while maintaining regular grid query positions.
Figure 3 illustrates the directional decomposition in GDM. Inspired by directional organization [46], the implementation computes horizontal and vertical attention in parallel. For each window and head, let denote a regular-grid query position, m the window side length, and the head dimension. Let be a query and and the sampled key and value features in window coordinates. The directional logits are
where and are the relative-position biases, and and are the corresponding shifted-window masks. Softmax is applied separately along each set of directional keys:
Geometric fusion adds the two value responses:
Thus, denotes response-level addition. No full learned window-attention matrix is constructed in the directional forward path. The row/column intersection contributes through both branches, and their outputs are summed without further normalization. Values do not participate in computing the logits.
Figure 3.
Parallel directional attention in GDM. Regular-grid queries and deformably sampled keys produce independent row-wise and column-wise attention weights. Each branch aggregates the corresponding sampled values. Geometric fusion sums the two value responses; it does not multiply the directional attention arrays or materialize a full learned window-attention matrix.
The aggregated features are projected, restored to their spatial positions, and added to the input:
Here is a learnable output projection and Restore restores the window-wise tokens to the regular query grid. Residual addition uses matching spatial and channel dimensions. Regular-grid queries preserve pixel-level correspondence, while deformable sampling selects the key–value locations and the two directional branches aggregate their responses.
- LAU. In unified RAW reconstruction tasks, upsampling is crucial for recovering spatial resolution. While traditional interpolation methods rely on predefined sampling rules, PixelShuffle rearranges features into a higher-resolution grid. Although these operations are highly efficient, they do not explicitly predict content-dependent aggregation weights for each output location. Inspired by the local attention mechanism in [47], we introduce Local Attention Upsampling (LAU), designed to enable the feature aggregation process to adapt to the local structure of the image.
LAU utilizes high-resolution guiding features to predict spatially varying weights within local neighborhoods. These weights are applied to adjacent low-resolution value features to reconstruct high-resolution features. Subsequently, the reconstructed features are combined with the upsampled residual branch and undergo local refinement. Furthermore, the LAU1 and LAU2 follow the two backbone groups, respectively, enabling the joint optimization of spatial resolution recovery and feature extraction.
As illustrated in Figure 4, the k-th LAU module takes the backbone feature as input. It first constructs an upsampled feature, an HR guide feature, and an LR value feature as
where denotes bilinear upsampling with scale factor , contains two convolution–GELU layers, and denotes the value projection.
Figure 4.
Architecture of the LAU module. (For super-resolution, the upsampling factor is set to 2 for both LAU modules. For super-resolution, the two upsampling factors must satisfy to account for Bayer packing. Both modules use sampling positions in a neighborhood. The guide branch contains two convolution–GELU layers followed by a convolution to predict attention logits. The value branch contains a convolution, while the skip branch is an identity mapping or a projection. The residual scale is initialized to . The refinement block consists of a depthwise convolution, a pointwise convolution, and ReLU).
The HR guide feature predicts spatially varying attention weights over the local neighborhood:
where denotes the attention-logit projection and normalizes the weights over the D local sampling positions.
The attention weights aggregate neighboring LR value features at each HR position :
where maps the HR position to its corresponding LR position, and denotes the d-th fixed sampling offset.
The aggregated feature is then combined with the upsampled skip feature and locally refined:
where denotes the skip projection, is a learnable residual scaling factor, and denotes the refinement block.
Content-dependent local reassembly is also used by CARAFE [48] and Local Attender [47]. Unlike CARAFE, which predicts reassembly kernels from LR features, LAU generates aggregation weights from an HR guide obtained through explicit upsampling. The weights aggregate a separately projected LR value branch. The result is fused with an interpolated skip branch through learnable residual scaling and local refinement. This guided residual design is integrated into two progressive RAW restoration stages.
- RGB reconstruction head. The RGB reconstruction head maps the refined features from LAU2 to three RGB channels to reconstruct the final HR image:where denotes the learnable RGB projection, and is the super-resolution scale factor relative to the original Bayer input. Since Bayer packing halves each spatial dimension, the two LAU upsampling factors satisfy .
2.2. Computational Complexity Analysis
denote the number of padded feature positions at one stage, m the window side length, C the feature channel dimension, and h the number of attention heads. There are windows. Dense window attention requires operations for query–key products and value aggregation. The directional path separately computes horizontal and vertical interactions of length m, requiring operations. Its two probability tensors contain elements in total, compared with for dense attention. For a window containing tokens, the corresponding product costs are and , respectively.
The directional path sums the separately normalized axial value responses without constructing a full learned window-attention matrix. The current shifted-window mask builder nevertheless allocates a dense mask containing elements. Projection activations, offset prediction, sampling, normalization and feed-forward layers also contribute to runtime and memory. Therefore, the reduction in stored attention probabilities does not imply the same reduction in total block memory or runtime.
For example, at a feature resolution of and a window side of 32, dense and directional FP32 attention tensors occupy 256 and 16 MiB, respectively, while the corresponding first-forward block peaks are 648.65 and 220.35 MiB. These measurements use an NVIDIA RTX 3060, batch size one, 64 channels and four heads. Peak allocation includes input/model buffers and intermediate tensors. At fixed feature resolution, doubling the window side increases dense attention storage fourfold and directional storage twofold. At fixed window size, both scale linearly with the number of feature positions.
Table 1 retains the stage-wise notation: denotes the number of windows, the number of positions per window, and the channel dimension, so that and . Deformable key–value sampling adds work for a fixed interpolation neighborhood. The analysis excludes feature projections, offset prediction, guide extraction and refinement. For LAU, local weight prediction and aggregation require operations, where n counts output positions across both modules. With and fixed channel dimensions, this term is .
Table 1.
Comparison of computational complexity for attention products, deformable sampling and LAU. GDM separately aggregates horizontal and vertical value responses and adds them. Feature projections, offset prediction, guide extraction and refinement are excluded. The dense shift-mask allocation described in the text is additional memory overhead. LAU uses a fixed neighborhood size and channel dimensions.
2.3. Three-Stage Reconstruction Loss
We construct a joint loss function for UDDSFormer that combines losses tailored to the three specific tasks: denoising (DN), demosaicing (DM), and super-resolution (SR). The loss function simultaneously supervises intermediate predictions and the final reconstruction, enabling end-to-end optimization of these three tasks.
The noisy LR Bayer image is fed into the network to obtain a denoised LR RAW prediction , a demosaiced LR color prediction , and an HR color reconstruction . Each prediction is supervised by its corresponding ground-truth target. The task-specific losses are
where denotes the mean absolute error, and the subscript denotes the ground-truth target. Each loss is averaged independently over its tensor elements to account for differences in output size.
The joint training loss function is defined as,
where each supervision switch , , and takes a value from the two-element set : 0 disables the corresponding loss, and 1 enables it. These switches enable the auxiliary losses for the intermediate predictions defined by each pipeline configuration. For example, setting jointly activates the DN, DM, and SR losses.
For instance, the denoised RAW prediction is fed into the demosaicing stage, and the resulting LR color prediction serves as input to the super-resolution stage. During training, the intermediate predictions remain connected, allowing the final reconstruction loss to be backpropagated to the preceding stages; these intermediate losses provide direct supervision for their respective outputs. Disabling a specific loss does not result in the removal of the corresponding image restoration operation. For configurations where intermediate predictions are not defined, the associated auxiliary losses are omitted. Furthermore, color supervision adopts RGB targets for Gaussian noise and camera-linear RGB targets from inverse ISP for Gaussian–Poisson noise.
3. Experiments
This section presents the implementation details and a comprehensive evaluation of UDDSFormer, including comparisons with state-of-the-art methods, ablation studies, attention visualization, and hardware-oriented quantization analysis.
3.1. Implementation Detail
All models are implemented in Python 3.7 with PyTorch 1.10.1, and experiments are conducted on an AutoDL cloud server running Ubuntu 20.04 and equipped with a single NVIDIA GeForce RTX 4090 GPU. The random seed is fixed at 0 solely to ensure that the recorded training process is reproducible; it does not imply anything about the degree of experimental fluctuation that might occur with other random seeds. The Gaussian benchmark models are trained on the DIV2K dataset, which contains 800 high-resolution training images and 100 validation images. The training images are divided into overlapping sub-images with a stride of 240, resulting in 32,207 training samples. A subset of 208 sub-images from the validation set is selected for model validation. During training, patches are randomly cropped, and data augmentation includes horizontal and vertical flips. During validation, center cropping is applied without random geometric augmentation. The UDDSFormer variants are trained from scratch for 500 epochs with the loss function and the AdamW optimizer. The hyperparameters are set to , , , and a weight decay coefficient of . The learning rate increases linearly from to a peak value of during the first 10 epochs. Cosine annealing then reduces it to over the remaining 490 epochs. The learning rate scheduler is updated at the end of each epoch. The batch size is set to 64 for UDDSFormer-V1, V2, and V4, and to 32 for UDDSFormer-V3. Four data-loading workers are employed, and gradients are clipped to a maximum norm of . The random seed is fixed at 0. Validation is performed after each epoch, and the checkpoint with the highest validation PSNR is selected for final evaluation.
- Noise conditioning and task configuration. For GP experiments, we follow the TENet/TENet++ camera-linear protocol [13]. For RGB-source datasets, inverse ISP reverses tone mapping, gamma compression, color correction and white-balance/exposure gains. The same sampled camera parameters are used for HR and LR images. PixelShift200 supplies camera-linear measurements directly; camera metadata are retained for rendering predictions and references into RGB.
The M denote clean packed LR RAW data with intensities normalized to . Gaussian noise is added as
Independent standard-normal samples are generated using torch.randn. A constant noise-level map is concatenated with the four packed RAW channels, yielding a five-channel input. For GP noise, shot/read parameters are sampled as
The noisy RAW observation and its conditioning maps are
Noise generation uses the clean signal M, whereas the four conditioning maps use the noisy observation Y. Concatenating these maps with packed RAW produces an eight-channel input in both training and evaluation. The GP model represents photon shot noise and read noise.
The configuration options in_type, mid_type, out_type, noise_model, scale and model specify the input degradation/domain, supervised intermediate targets, final target, noise model, scale and network implementation. For example, noisy_raw→raw specifies RAW denoising; lr_raw→raw specifies RAW SR; raw→linrgb specifies demosaicing; and noisy_lr_raw→linrgb specifies joint DN–DM–SR. Each configuration is trained as a separate model. For P1–P4, the common input/output pair is noisy_lr_raw→linrgb. P1 uses mid_type=lr_raw,lr_linrgb for DN→DM→SR with intermediate supervision; P2 uses lr_linrgb for joint DN+DM→SR; P3 uses lr_raw for DN→joint DM+SR; and P4 uses no intermediate target for end-to-end joint restoration. These pipeline arrangements are distinct from the task-specific V1–V4 variants.
3.2. Comparison with State-of-the-Art Method
To evaluate UDDSFormer across different RAW restoration tasks, four variants are compared with representative methods: DN (V1), DM–SR (V2), DN–DM (V3), and DN–DM–SR (V4). Table 2 represents a comparison of parameter counts and reconstruction performance on Kodak24 and Urban100. On the Kodak24 and Urban100 datasets, UDDSFormer-V1 achieves PSNR improvements of 1.00 dB and 1.00 dB, respectively, compared to RNANet [23]. Compared to FLUDNet [49], the improvements are 1.92 dB and 2.18 dB, respectively. With only 0.66 M parameters, V1 reduces the parameter count by a factor of 5.86 (an 82.95% reduction) compared to FLUDNet while improving denoising accuracy. In the joint denoising and demosaicing (DN–DM) task, UDDSFormer-V3 outperforms FlexISP [50] by 4.66 dB in PSNR on Urban100. Compared to SGNet [21], V3 achieves a PSNR gain of 0.03 dB and an SSIM increase of 0.0184 on Urban100. Its parameter count is 0.73 M, only 2.82% higher than the 0.71 M parameters of SGNet, achieving better reconstruction quality with a comparable model size. In the joint demosaicing and super-resolution (DM–SR) task, UDDSFormer-V2 reduces the parameter count from 3.39 M for JDSR-DDEB-FS-DFR [24] to 0.80 M, representing a reduction by a factor of 4.24 (76.40%). Its PSNR values on Kodak24 and Urban100 are lower by 3.12 dB and 3.90 dB, respectively, reflecting the trade-off between model size and reconstruction accuracy.
Table 2.
Comparison of reconstruction performance and parameter count for different tasks on the Kodak24 and Urban100 datasets.
In the joint DN–DM–SR task, the CNN-based methods JDDSNet [51] and FastLDN [25] employ fewer parameters than TENet [13]. However, their PSNR values on Kodak24 are lower by 4.55 dB and 4.58 dB, respectively, while their SSIM values decrease by 0.2483 and 0.1040, respectively. These comparisons illustrate a dataset-dependent trade-off between model size and reconstruction quality. UDDSFormer-V4 contains only 0.80 M parameters. Compared to Net [12], V4 reduces the parameter count by a factor of 97.75 (a 98.98% reduction). Its PSNR is lower by 0.43 dB on Kodak24 but higher by 0.09 dB on Urban100. Compared to TENet [13], V4 reduces the parameter count by a factor of 25.28 (a 96.04% reduction). On Kodak24, its PSNR and SSIM are lower by 0.33 dB and 0.0917, respectively. On Urban100, its PSNR and SSIM are higher by 0.45 dB and 0.0063, respectively. Table 2 illustrates the trade-off between reconstruction quality and model size. At fixed numerical precision, the smaller parameter count directly lowers weight-storage requirements. This is useful for embedded ISP applications with limited storage when the reconstruction meets the application’s fidelity requirements. The results demonstrate deployment potential, rather than universally superior reconstruction quality or measured target-device acceleration and energy savings.
3.3. Ablation Study
We evaluate the contributions of deformable sampling (DS) within DDNA, directional decomposition (DD) implemented by GDM, and local attentional upsampling (LAU). In this section, we conduct comprehensive ablation experiments to evaluate the task-level and architectural design choices of UDDSFormer. First, stage-wise, partially joint, and fully joint restoration strategies are compared under different noise conditions and super-resolution scale factors. Next, the individual and combined contributions of deformable sampling (DS), directional decomposition (DD), and the two LAU stages are investigated. Finally, intermediate attention responses are visualized to analyze the progressive feature refinement across successive backbone blocks.
3.3.1. Joint Restoration Strategy Analysis
Table 3 compares the performance of four restoration pipelines across five datasets, two upsampling factors ( and ), and four noise conditions. The fully joint pipeline achieved the highest PSNR and SSIM values in all 40 evaluation settings. Averaged across the five datasets and four noise conditions, the pipeline reached 28.0505 dB/0.8290 at and 23.9980 dB/0.6637 at ; compared to the staged pipeline, its performance improved by 1.6725 dB/0.0361 and 1.6020 dB/0.0452, respectively. Under Gaussian noise with , the fully joint pipeline outperforms the best-performing alternative pipeline on each dataset by an average of 0.190 dB in PSNR and 0.0090 in SSIM at . Using the same comparison criterion, the average PSNR advantage increases to 1.54 dB at but decreases to 0.71 dB at , indicating that the advantage does not increase monotonically with the intensity of Gaussian noise. For the fully joint pipeline, PSNR and SSIM values across the five datasets showed a continuous downward trend as the Gaussian noise level increased from to . At scaling, the average PSNR dropped from 29.472 dB to 25.884 dB; at scaling, it fell from 24.774 dB to 22.864 dB. Increasing the upsampling factor from to also reduced reconstruction quality across all corresponding datasets and noise conditions. Furthermore, the two partial joint pipelines each offer distinct advantages. At scaling, the pipeline achieved a slightly higher overall average PSNR, whereas the pipeline yielded a higher average SSIM. These results indicate that the relative performance of the partial joint pipelines depends on the noise model and the upscaling factor.
Table 3.
Comparison of different restoration pipelines under Gaussian noise with different super-resolution (SR) upscaling factors ( and ).
Overall, the fully joint pipeline achieves higher PSNR and SSIM than both the stage-wise and partially joint pipelines across all 40 evaluation settings, demonstrating the effectiveness of jointly modeling denoising, demosaicing, and super-resolution across the evaluated datasets, noise levels, and upsampling factors.
PixelShift200 is a real-world dataset captured using a Sony ILCE-7RM3 camera with pixel-shift technology [13]. Four spatially shifted RAW captures provide directly sampled full-color reference images, preserving camera-acquired scene textures and color information. These references support the joint reconstruction of clean HR RGB images from noisy LR Bayer inputs. The experiments add GP noise with variance to model shot and read noise.
PixelShift200 was selected because its full-color references suit joint denoising, demosaicing and SR. SID primarily addresses short-exposure low-light recovery, while FiveK provides expert photographic adjustments; their supervisory targets and native evaluation protocols differ from this controlled joint-restoration setting. Native RAW denoising benchmarks such as SIDD and DND would additionally require a defined SR degradation and compatible full-color target/rendering protocol for the complete joint task.
Table 4 summarizes the reconstruction performance and estimated operation counts of TENet and UDDSFormer. The most notable difference is the substantial reduction in the number of parameters for UDDSFormer. At the scale, UDDSFormer utilizes only 0.8017 M parameters compared to TENet’s 20.22 M, representing a reduction of approximately 96.04%. At the scale, the parameter count drops from 20.37 M to 0.80 M, a decrease of approximately 96.07%. In summary, regardless of the scale, UDDSFormer requires only about one-twenty-fifth of the parameters used by TENet.
Table 4.
The reconstruction performance and computational complexity of the joint restoration model on the real-world PixelShift200 dataset under Gaussian–Poisson (GP) noise with variance , where and denote the shot noise and read noise parameters, respectively [13].
The extended operation estimates decrease from 828.24 G for TENet to 44.15 G for UDDSFormer at , and from 2825.76 G to 156.96 G at , corresponding to reductions of 94.67% and 94.45%, respectively. These estimates use identical input dimensions and counting rules. Supplementary arithmetic counting changes the reduction relative to the reproduced fvcore baseline by only 0.27 and 0.28 percentage points at the two scales; the numerical effect on the comparative reduction is therefore small.
The reconstruction PSNR values remain 34.94 dB and 31.02 dB for UDDSFormer at and , compared with the reference TENet values of 35.90 dB and 32.03 dB. Thus, the compact model trades some reconstruction quality for substantially lower parameter and operation counts. These arithmetic estimates are distinct from measured runtime.
3.3.2. Component Ablation and Reconstruction Performance
Table 5 compares six UDDSFormer configurations on Urban100 under Gaussian noise with and super-resolution. We evaluate the contributions of deformable sampling (DS), directional decomposition (DD), and local-attention upsampling (LAU1 and LAU2) in terms of parameter count, computational cost, and the associated changes in reconstruction performance. The DS-only configuration achieves PSNR and SSIM values of 25.04 dB and 0.8257, respectively. The full configuration achieves the highest PSNR and SSIM, at 26.98 dB and 0.8935, with 0.80 M parameters. The contribution of deformable sampling (DS) was evaluated by comparing the DD-only configuration with the DS + DD configuration. Enabling DS improved PSNR from 25.21 dB to 26.69 dB and SSIM from 0.8138 to 0.8864, representing gains of 1.48 dB and 0.0726, respectively. These improvements came at the cost of an additional 0.06 M parameters and 2.08 G FLOPs. These results demonstrate the effectiveness of DS when DD is enabled and both LAU modules are disabled. Directional decomposition (DD) was evaluated by comparing the DS-only configuration with DS + DD. Adding DD reduced the parameter count from 0.97 M to 0.96 M and FLOPs from 43.16 G to 40.14 G, corresponding to reductions of 1.03% and 7.00%, respectively. Meanwhile, PSNR increased by 1.65 dB and SSIM by 0.0607. Thus, in this configuration, DD reduced computational cost while improving reconstruction quality. The two LAU modules further reduced the model size, although their effects on reconstruction quality differed. Incorporating LAU1 into DS + DD reduced the parameter count from 0.96 M to 0.78 M, an 18.75% reduction, while increasing FLOPs from 40.14 G to 40.48 G. Meanwhile, PSNR and SSIM decreased by 0.13 dB and 0.0234, respectively. Subsequently enabling LAU2 increased the parameter count by 0.02 M to 0.80 M and increased FLOPs by 0.39 G to 40.87 G, while improving PSNR by 0.42 dB and SSIM by 0.0305. Together, the two LAU modules reduced the parameter count by 16.67% relative to DS+DD at the cost of a 1.82% increase in FLOPs, with gains of 0.29 dB in PSNR and 0.0071 in SSIM. These results demonstrate that the combined LAU modules improve model compactness and reconstruction quality with additional computational cost. Compared with the original Swin-T baseline, the full UDDSFormer configuration reduced the parameter count by 33.88% and FLOPs by 2.88%, while improving PSNR by 2.94 dB and SSIM by 0.2675. Compared with the DS-only configuration, it reduced the parameter count by 17.53% and FLOPs by 5.31%, with increases of 1.94 dB in PSNR and 0.0678 in SSIM.
Table 5.
Reconstruction performance and computational complexity of different UDDSFormer component configurations on Urban100.
Overall, DS improves reconstruction quality and DD reduces computational cost, while the composite LAU module significantly lowers the parameter count and further enhances performance compared to the DS + DD configuration. UDDSFormer achieves the best PSNR and SSIM among the evaluated configurations while requiring fewer parameters and FLOPs than the baseline.
3.3.3. Qualitative Comparison and Attention Map Visualization
Figure 5 compares six selected examples, with two samples drawn from each dataset (kodim01/12, McMaster1/9, and Urban100_002/100). The evaluated checkpoints correspond to the full V4 model addressing “RGB-to-Bayer” direct degradation, Gaussian noise with at an 8-bit intensity scale, and 2× super-resolution tasks. Additionally, attention heatmaps from Stages 2 and 3 of the feature extraction backbone are displayed to illustrate the evolution of attention features. Shallower modules primarily capture local edges and repetitive high-frequency textures, whereas deeper modules progressively aggregate broader contextual information while preserving structural details. This progressive enhancement of response and improved coherence demonstrate that the stacked UDDSFormer modules effectively integrate local details with long-range dependencies, thereby facilitating accurate image reconstruction.
Figure 5.
The visualization results for each stage summarize the spatial responses of the six core DDNA modules. (Additionally, for the overlaid displays, the heatmaps are blended with the ground truth (GT) using a heatmap weight of 0.55.) All four views utilize identical cropping coordinates, and the cropped regions are not independently re-normalized. Columns (6) and (7) are used to compare responses across stages, while columns (5) and (8) facilitate a comparison of details between the reference and reconstructed images. The analysis involves examining the underlying heatmaps alongside the overlays to distinguish between object colors and response intensities. The JET colormap represents normalized attention responses, with warmer colors indicating stronger relative responses within each visualization. The heatmap and underlying image have blending weights of 0.55 and 0.45, respectively.
- Kodak24: window structures, masonry textures, and human contours. Figure 5a contains both regular window structures and irregular wall textures. In the reference image a(5), the window frames and horizontal dividers have clear boundaries; the interior of the shutters is relatively uniform, while the surrounding wall exhibits subtle textural variations. The second-stage attention map a(6) displays a broad, smooth response region around the window; in contrast, the third-stage attention map a(7) shows more concentrated responses along the vertical window frames, horizontal dividers, and the bottom edge of the window, with weaker responses inside the window. This shift indicates that attention responses in deeper stages correspond more precisely to major structural boundaries. However, the subtle wall textures do not elicit similarly distinct responses. The final reconstruction a(8) preserves the window’s primary geometry and contours, though some wall details are smoothed out compared to a(5), suggesting that the preservation of major structures is superior to the recovery of fine material textures in this sample. Figure 5b illustrates the difference in attention responses between the human figure and the water background. In the global attention maps b(2) and b(3), responses near the figure are strong, while responses across most of the water surface are weak. Close-up views reveal that the second-stage map b(6) primarily shows a broad response covering parts of the figure, whereas the third-stage map b(7) exhibits clearer localized distinctions: responses are more pronounced along the outer body contours, between limbs, and at clothing boundaries, while responses within the torso are relatively weak. This indicates that the response shifts from broad regional distributions to specific structural boundaries across the two stages, rather than uniformly enhancing the entire figure. The final reconstruction result, b(8), preserves the main contours of the body and the color of the clothing, although some subtle tonal variations are smoothed out. Thus, these visualizations demonstrate a clear spatial correspondence between the model’s attention response and structural features such as straight lines, irregular contours, and region boundaries, reflecting a selective focus on boundaries of varying morphological structures.
- McMaster: color partitions, fruit interiors, and basket boundaries. Figure 5c features bright glass areas, dark dividing lines, and slanted decorative borders. In the second stage, the attention map c(6) exhibits broad response bands near some horizontal dividing lines and slanted edges. In the third stage, c(7) displays finer local variations near these boundaries, while responses within some glass areas remain relatively low. Since the yellow glass also appears warm-toned in the overlaid image, response intensity must be assessed in conjunction with the underlying heatmap. It is evident that significant responses primarily correspond to certain dividing lines and slanted boundaries. The reconstruction result c(8) preserves the main color zones and structural boundaries, though some fine glass textures appear smoother compared to the reference image c(5). Figure 5d features a flat wall surface, plant leaves, fruit, and a basket. The global attention maps d(2) and d(3) show weak responses across most of the wall area, with more distinct responses in areas containing objects. The zoomed-in reference region d(5) includes the interiors of fruits, the boundaries between adjacent fruits, and the basket’s rim and fine structural elements. The second-stage map d(6) shows relatively scattered responses, whereas the third-stage map d(7) reveals more pronounced local variations at the basket rim and the boundaries between adjacent fruits. The underlying heatmap further indicates that responses within some fruits are lower than at their surrounding boundaries; thus, in the overlaid image, the red color of the tomatoes themselves must be distinguished from the high-response colors of the heatmap. The reconstruction result d(8) retains the general arrangement of the fruit and the basket’s outline, though some surface details are smoothed out. Figure 5c,d demonstrate a clear distinction between attention responses within objects and those at structural boundaries. The responses in Figure 5c primarily correspond to regular dividing lines and slanted edges, whereas the responses in Figure 5d correspond more to the curved boundaries of the fruit, object junctions, and the structure of the basket. These results demonstrate the selective response of attention to boundaries of different forms, as well as the more refined response distribution near these boundaries at deeper stages.
- Urban100: intersecting frameworks and repetitive curved balconies. Figure 5e shows the glass and metal framework of a curved enclosure. e(5) depicts the thicker support frame, transverse connectors, and a fine diagonal structure. The attention map e(6) displays broad response regions in the second stage, with some areas interconnected; in the third stage, e(7) reveals more detailed variations in response intensity near the framework. These responses are unevenly distributed across the various glass panels and support structures, demonstrating spatial selectivity regarding the complex intersecting geometry. The reconstruction e(8) preserves the orientation of the main support frame and some intersection points, though—compared to e(5)—finer support structures and subtler textures appear smoothed out. Figure 5f illustrates a series of repetitive balcony structures arranged along a curved path. The attention map f(6) shows broad response bands near some of the arc-shaped structures, with connections or gaps between response regions visible in the second stage. In the third stage, f(7) displays several response bands following the curvature of the balconies, separated by zones of lower response, thereby clarifying the correspondence between the response distribution and the repetitive curved forms. The reconstruction f(8) retains the arrangement, primary curvature, and overall silhouette of the balconies, although some railings and surface details are smoothed. Figure 5e,f demonstrate that distinct structural layouts correspond to different patterns of attention response. The multi-directional intersecting framework in Figure 5e corresponds to complex local response variations, whereas the repetitive arc structures in Figure 5f correspond to response bands aligned with the curves. These examples illustrate the spatial correspondence between attention responses and the orientation, intersection points, and repetitive arrangements of the underlying structures.
The six examples reveal that the attention response in the second stage is relatively smooth and broad, whereas the third stage exhibits clearer, more detailed local variations along major contours, structural boundaries, and region interfaces. Compared to the second stage, the response distribution in the third stage demonstrates a more distinct spatial correspondence with straight lines, curves, and intersecting structures, thereby better highlighting the image’s primary structural features. Comparisons between the ground truth and the reconstruction results indicate that the model effectively preserves major contours, color regions, and geometric layouts; however, some fine textures—such as wall textures, glass details, tonal variations on fruit surfaces, small support structures, and railings—are still subject to smoothing. This suggests that while the model successfully retains major structures, there remains room for improvement in the recovery of fine-grained textures.
Overall, these visualizations demonstrate the improvements in structural response distribution achieved in the third stage: compared to the second stage, the spatial correspondence between the response and regular straight lines, irregular contours, repetitive curves, and intersecting structures is clearer, allowing for better emphasis on major boundaries and regional transitions. Furthermore, the reconstruction results effectively preserve the image’s primary contours, color regions, and geometric layouts, demonstrating robust recovery capabilities across various structural types, although some fine textures and low-contrast details still undergo a degree of smoothing.
3.4. Hardware-Oriented Quantization Analysis
To evaluate the reconstruction quality of UDDSFormer at different quantization precisions, we conducted quantization-aware training (QAT) [45] using six combinations of weight and activation bitwidths. Figure 6 shows the validation PSNR curves during fine-tuning, while Table 6 summarizes the corresponding DIV2K validation set results. During fine-tuning, fake quantization operations simulated clipping and rounding errors, enabling the network parameters to adapt to perturbations introduced by low-precision representations.
Figure 6.
Validation set PSNR curves for UDDSFormer-V4 during Quantization-Aware Training (QAT) under six bit-width configurations: (a) , (b) , (c) , (d) , (e) , (f) . denotes x-bit weights and y-bit activations. Red asterisks mark the highest PSNR for each configuration. The curves represent unsmoothed validation results; each iteration corresponds to an optimizer update, and the end of the curve indicates the final recorded validation iteration.
Table 6.
Reconstruction performance of UDDSFormer-V4 on the DIV2K validation set under different QAT bit-width configurations.
QAT selectively simulates low-precision weights and input/output activations for convolutional and linear projections, including the Q/K/V projections. Normalization, attention matrix products, softmax, bilinear sampling and residual additions remain floating point. Accordingly, W8A8 denotes the selected weight/activation precision in the simulation, rather than an integer-only implementation of every operator. The and configurations achieve peak validation PSNR values of 31.53 dB and 31.51 dB, respectively, at iteration 2000. Compared to the FP32 baseline (31.72 dB), these represent drops of only 0.19 dB and 0.20 dB, demonstrating that the model effectively maintains its original reconstruction quality under higher-precision configurations. Furthermore, the PSNR difference between and is merely 0.0176 dB. This indicates that, while maintaining 8-bit activations, reducing the weight precision from 8 bits to 6 bits has a negligible impact on reconstruction quality. However, when the weight precision is further reduced to 4 bits, the peak PSNR for drops to 30.30 dB—a decrease of 1.23 dB relative to —demonstrating that performance degradation intensifies as the degree of weight compression increases.
In contrast, the performance impact of reducing activation bit-width is more pronounced. With weights maintained at 8 bits, reducing activations from 8 bits to 6 bits caused the best PSNR to drop from 31.53 dB to 30.30 dB— a decrease of 1.24 dB—which is significantly greater than the loss incurred by reducing weights from 8 bits to 6 bits. Starting from the 6-bit activation baseline, further reducing weights to 6 bits resulted in a performance of 30.11 dB, a further drop of 0.19 dB compared to . It is evident that, under the current experimental setup, preserving activation precision is more beneficial for maintaining reconstruction quality than preserving weight precision at the same bit-width.
This difference is even more striking in the 4-bit configurations. The best validation PSNR for is 30.30 dB, whereas for it was only 25.74 dB—a difference of 4.57 dB. Although both configurations reduced one type of numerical representation to 4 bits, the performance loss caused by reducing activation bit-width was far greater than that caused by reducing weight bit-width. Furthermore, achieved peak performance at the 3900th iteration, while the best checkpoint for occurred at the 20,100th iteration. Even with the extended fine-tuning observed, the 4-bit activation configuration failed to recover to the quality levels of the other configurations, indicating that increasing fine-tuning iterations is insufficient to fully compensate for the quantization loss associated with this configuration.
Overall, the six configurations demonstrate a clear trade-off regarding precision: moderately reducing weight bit-width effectively preserves reconstruction quality, whereas reducing activation bit-width requires greater caution. Among them, maintains validation performance close to that of while employing lower bit-widths for weights, making it a configuration worthy of priority consideration for subsequent low-precision hardware deployment [44,52].
Figure 7 compares the reconstruction performance of six QAT configurations across seven benchmark datasets in terms of PSNR and SSIM, using as the quantization baseline. This comparison examines the effects of weight and activation bit-widths and their variations across datasets.
Figure 7.
Quantitative analysis of UDDSFormer-V4 on seven benchmark datasets under different quantization-aware training (QAT) configurations: (a) W8A8, (b) W8A6, (c) W6A8, (d) W6A6, (e) W4A8, and (f) W8A4. WxAy denotes x-bit weights and y-bit activations. Blue and magenta bars represent PSNR (dB, left axis) and SSIM (right axis), respectively. Higher values indicate better reconstruction quality.
First, the configuration maintains reconstruction quality close to that of across all evaluated datasets. On McMaster, the respective PSNR/SSIM values are 29.12/0.8207 and 29.13/0.8213; on DIV2K, they are 29.71/0.8375 and 29.72/0.8374. On Kodak24 and Set14, the PSNR values are identical when rounded to two decimal places. Although achieves slightly higher SSIM on DIV2K and Set5, the differences are small. These results indicate that reducing weight precision from 8 bits to 6 bits while maintaining 8-bit activations has minimal impact on reconstruction quality.
Second, the comparison of 4-bit configurations highlights distinct differences in the impact of weight versus activation quantization. Compared to W8A8, the PSNR for W4A8 drops by only about 0.54–1.05 dB, whereas for W8A4, it drops by approximately 3.05–4.86 dB, with a simultaneous SSIM decline of about 0.20–0.27. Notably, the PSNR loss is greatest on the McMaster dataset, where results fall from 29.13/0.8213 to 24.27/0.5532; the loss is smallest on the Waterloo dataset, yet it still drops from 24.87/0.7572 to 21.82/0.5399. Furthermore, W4A8 outperforms W8A4 on both metrics across all datasets, indicating that under the evaluated configurations, reducing the activation bit-width is more detrimental to reconstruction quality than reducing the weight bit-width. A comparison between W6A6 and W8A6 reveals that a higher nominal weight bit-width does not necessarily yield better results. Except for Kodak24, W6A6 achieves superior PSNR and SSIM values compared to W8A6 on the other six datasets. For instance, on DIV2K, W6A6 reaches 28.78/0.7980, whereas W8A6 scores 28.12/0.7712; on Kodak24, the ranking is reversed, with scores of 27.44/0.7351 and 27.57/0.7441, respectively.
Additionally, a further comparison of the results for W4A8, W6A6, and W8A6 shows that the optimal choice among intermediate configurations depends on the dataset. On DIV2K and Set5, W4A8 outperforms the other two configurations on both metrics, achieving 28.89/0.8125 and 28.68/0.8132, respectively; on Urban100, however, W6A6 achieves better results, reaching 24.54/0.7790, surpassing W4A8’s 24.39/0.7782 and W8A6’s 24.26/0.7627. Therefore, there is no universal performance ranking for intermediate configurations that applies to all datasets. The rankings of configurations based on PSNR and SSIM are not entirely consistent. On McMaster, Waterloo, and Set14, W6A6 achieves a slightly higher PSNR than W4A8, yet W4A8 yields a higher SSIM. For instance, on the McMaster dataset, the respective values are 28.20/0.7826 and 28.08/0.7917. Kodak24 exhibits a similar pattern: W8A6 achieves a higher PSNR than W4A8 but a lower SSIM, with values of 27.57/0.7441 and 27.47/0.7510, respectively. This demonstrates that when evaluating intermediate bit-width configurations, one must consider both pixel-level fidelity and structural similarity, rather than relying on a single metric.
For Kodak24 and Urban100, we further compare the quantized results in Figure 7 with the fully joint results under Gaussian noise with and super-resolution in Table 3. On Kodak24, both W8A8 and W6A8 achieve a PSNR of 28.27 dB, which is only 0.10 dB lower than the reported fully joint result of 28.37 dB. On Urban100, W8A8 and W6A8 achieve 25.19 dB and 25.17 dB, respectively, corresponding to differences of 1.79 dB and 1.81 dB relative to the fully joint result of 26.98 dB. These comparisons show that the differences between the reported quantized and fully joint results vary across datasets. Within the QAT configurations, reducing weight precision from 8 bits to 6 bits while retaining 8-bit activations leaves the Kodak24 PSNR unchanged at two-decimal precision and reduces the Urban100 PSNR by only 0.02 dB. In contrast, retaining 8-bit weights while reducing activation precision from 8 bits to 6 bits decreases PSNR by 0.70 dB on Kodak24 and 0.93 dB on Urban100. These results further support preserving activation precision while moderately reducing weight precision.
Overall, W6A8 consistently maintains reconstruction quality close to that of W8A8 across datasets, whereas W8A4 consistently shows significant performance degradation; this supports the strategy of prioritizing activation precision while moderately reducing weight bit-widths. The variations observed in intermediate configurations indicate that final performance is jointly influenced by the dataset, evaluation metrics, and fine-tuning settings.Furthermore, the results in Figure 7 were evaluated on the complete test sets of McMaster, DIV2K, Kodak24, Waterloo, Urban100, Set5 and Set14. For large images, tiled inference uses core regions with a 64-pixel context border on each side in packed-RAW coordinates. Each forward pass processes at most input positions. Border outputs are discarded, and core outputs are stitched into the full image on the CPU, limiting the image area processed on the accelerator per pass. This controls the processed input area without changing the FP32 dtype of the measured attention tensors.
4. Conclusions
This paper proposes UDDSFormer, a lightweight Transformer model designed to unify demosaicing, denoising, and super-resolution tasks. The model captures spatial dependencies within a unified framework and facilitates joint reconstruction by sharing intermediate features across tasks. Additionally, its configurable restoration pipeline accommodates both single-task and multi-task processing, making it suitable for image restoration across varying noise levels and super-resolution scaling factors. Through component ablation studies, this paper analyzes the impact of individual modules on reconstruction quality, parameter count, and computational complexity; it also visualizes intermediate attention maps to demonstrate the spatial correspondence between responses at different stages and image structures. Furthermore, quantization-aware training (QAT) experiments reveal the distinct effects of weight and activation precision on reconstruction quality, providing a basis for bit-width configuration in subsequent low-precision deployments. Evaluations on multiple benchmark datasets validate UDDSFormer’s reconstruction capabilities across diverse restoration settings. Combined with analyses of model complexity and quantization results, UDDSFormer demonstrates potential for deployment in resource-constrained embedded ISP systems. Future work will investigate hardware-supported mixed-precision execution, operator fusion and memory-aware tiling. Building on our earlier FPGA implementation of joint denoising and demosaicing [44], we are developing a Transformer hardware accelerator. Target-device integer inference and energy measurements remain future work. Evaluation with paired authentic sensor-noise data and across camera systems will further assess generalization.
Author Contributions
Conceptualization, J.W. and X.W.; methodology, J.W.; software, J.W.; validation, J.W. and X.H.; formal analysis, J.W. and X.H.; investigation, J.W.; resources, X.W.; data curation, J.W. and X.H.; writing—original draft preparation, J.W.; writing—review and editing, J.W., X.H. and X.W.; visualization, J.W. and X.H.; supervision, X.W.; project administration, X.W.; funding acquisition, X.W. All authors have read and agreed to the published version of the manuscript.
Funding
This research was funded by the Key Research Project of the Beijing–Shunyi Joint Foundation under the project entitled “Research on Hardware–Software Co-design Technologies for Intelligent System-on-Chip Based on CNN–Transformer Architecture”, grant number L247014 (project period: October 2024–September 2027); the National Natural Science Foundation of China, grant numbers 60973106 and 81571142; and the Key Project of the National Natural Science Foundation of China, grant number 61232009.
Data Availability Statement
The datasets used in this study are available from their respective providers, as cited in the manuscript, and are subject to the corresponding access conditions and licenses. The implementation of UDDSFormer is based on the publicly available TENet codebase (https://github.com/guochengqian/TENet) accessed on 29 October 2025 by Qian et al. [13]. We plan to release the UDDSFormer implementation, training and evaluation configurations, and pretrained model checkpoints to facilitate reproducibility.
Conflicts of Interest
The authors declare no conflicts of interest. The funding source had no role in the design of this study; the collection, analysis, or interpretation of data; the writing of the manuscript; or the decision to publish the research findings.
References
- Liang, Z.; Cai, J.; Cao, Z.; Zhang, L. Cameranet: A two-stage framework for effective camera isp learning. IEEE Trans. Image Process. 2021, 30, 2248–2262. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Eboli, T.; Sun, J.; Ponce, J. Learning to jointly deblur, demosaick and denoise raw images. arXiv 2021, arXiv:2104.06459. [Google Scholar]
- Yang, G.; Jiang, Y.; Wang, S.; Chen, K. VinsFusion-Line: Binocular vision inertial navigation real-time SLAM system based on line features. Cybern. Syst. 2026, 57, 350–375. [Google Scholar] [CrossRef] [Scilit]
- Li, X.; Gunturk, B.; Zhang, L. Image demosaicing: A systematic survey. In Proceedings of the Visual Communications and Image Processing, San Jose, CA, USA, 29–31 January 2008; SPIE: California, CA, USA, 2008; Volume 6822, pp. 489–503. [Google Scholar]
- Menon, D.; Calvagno, G. Color image demosaicking: An overview. Signal Process. Image Commun. 2011, 26, 518–533. [Google Scholar] [CrossRef] [Scilit]
- Bai, C.; Li, J.; Wang, J. Spatial-frequency fusion for bayer demosaicking. IEEE Signal Process. Lett. 2024, 31, 2245–2249. [Google Scholar] [CrossRef] [Scilit]
- Ehret, T.; Facciolo, G. A study of two cnn demosaicking algorithms. Image Process. Line 2019, 9, 220–230. [Google Scholar] [CrossRef] [Scilit]
- Liu, C.; He, S.; Xu, J.; Li, J. Fine-tuning for Bayer demosaicking through periodic-consistent self-supervised learning. IEEE Signal Process. Lett. 2024, 31, 989–993. [Google Scholar] [CrossRef] [Scilit]
- Huang, T.; Wu, F.F.; Dong, W.; Shi, G.; Li, X. Lightweight deep residue learning for joint color image demosaicking and denoising. In Proceedings of the 2018 24th International Conference on Pattern Recognition (ICPR), Beijing, China, 20–24 August 2018; IEEE: New York, NY, USA, 2018; pp. 127–132. [Google Scholar]
- Jin, Q.; Facciolo, G.; Morel, J.M. A review of an old dilemma: Demosaicking first, or denoising first? In Proceedings of the 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW), Seattle, WA, USA, 14–19 June 2020; IEEE: New York, NY, USA, 2020; pp. 2169–2179. [Google Scholar]
- Guo, Y.; Jin, Q.; Morel, J.M.; Facciolo, G. How to best combine demosaicing and denoising? arXiv 2024, arXiv:2408.06684. [Google Scholar]
- Xing, W.; Egiazarian, K. End-to-end learning for joint image demosaicing, denoising and super-resolution. In Proceedings of the 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Nashville, TN, USA, 20–25 June 2021; IEEE: New York, NY, USA, 2021; pp. 3506–3515. [Google Scholar]
- Qian, G.; Wang, Y.; Gu, J.; Dong, C.; Heidrich, W.; Ghanem, B.; Ren, J.S. Rethinking learning-based demosaicing, denoising, and super-resolution pipeline. In Proceedings of the 2022 IEEE International Conference on Computational Photography (ICCP), Caltech, Pasadena, CA, USA, 1–3 August 2022; IEEE: New York, NY, USA, 2022; pp. 1–12. [Google Scholar]
- Chen, Z.; Man, Z.; Rao, S.; Zhao, J.; Wang, S.; Zhang, R.; Teng, F.; Tang, A. Rigid crosslinker-assisted nondestructive direct photolithograph for patterned QLED displays. Light. Sci. Appl. 2025, 14, 251. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Li, C.; Liu, P.; Zhao, M.; Zhang, Y.; Bao, H.; Yang, M.; Chen, Y.; Zhong, G. Regulation mechanism of dielectric constant on ion transport behavior in vinylidene fluoride-based solid composite electrolytes. Electrochim. Acta 2026, 2026, 149499. [Google Scholar]
- Guo, J.; Chen, C.; Dong, X.; Li, X.; Zhao, Q.; Zhang, M.; Yang, C. Multi-functional liquid metal/carbon nanotubes/bacterial cellulose flexible composite film, suitable for electromagnetic shielding, intelligent wearable sensors and joule heater materials. Colloids Surfaces A Physicochem. Eng. Asp. 2026, 2026, 141829. [Google Scholar] [CrossRef] [Scilit]
- Wang, Y.; Xu, Z.; Tian, Z.; Liu, W.; Yang, J.; Huang, Q. Progress in the flocculation and sedimentation mechanisms and jet mixing transportation of heavy components in crude oil storage tanks. J. Pipeline Sci. Eng. 2026, 100511. [Google Scholar] [CrossRef] [Scilit]
- Wen, S.; Zheng, Y.; Lu, F.; Zhao, Q. Convolutional demosaicing network for joint chromatic and polarimetric imagery. Opt. Lett. 2019, 44, 5646–5649. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Fsian, A.N.; Thomas, J.B.; Hardeberg, J.Y.; Gouton, P. Deep joint demosaicking and super-resolution for spectral filter array images. IEEE Access 2025, 13, 16208–16222. [Google Scholar] [CrossRef] [Scilit]
- Jiang, Y.; Liu, L.; Wu, D.; Huang, F.; Fu, Q.; An, T.; Niu, Y.; Zheng, C. Color Image Demosaicking: A Systematic Survey of Algorithms, Performance Evaluation, and Open Challenges. IEEE Access 2025, 13, 193049–193070. [Google Scholar] [CrossRef] [Scilit]
- Liu, L.; Jia, X.; Liu, J.; Tian, Q. Joint demosaicing and denoising with self guidance. In Proceedings of the 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Seattle, WA, USA, 13–19 June 2020; IEEE: New York, NY, USA, 2020; pp. 2237–2246. [Google Scholar]
- Gharbi, M.; Chaurasia, G.; Paris, S.; Durand, F. Deep joint demosaicking and denoising. ACM Trans. Graph. (ToG) 2016, 35, 1–12. [Google Scholar] [CrossRef] [Scilit]
- Zhang, Y.; Li, K.; Li, K.; Zhong, B.; Fu, Y. Residual non-local attention networks for image restoration. arXiv 2019, arXiv:1903.10082. [Google Scholar]
- Chang, K.; Li, H.; Tan, Y.; Ding, P.L.K.; Li, B. A two-stage convolutional neural network for joint demosaicking and super-resolution. IEEE Trans. Circuits Syst. Video Technol. 2021, 32, 4238–4254. [Google Scholar] [CrossRef] [Scilit]
- Niu, G. Frequency Decomposition Network for Fast Joint Image Demosaic, Denoising and Super-Resolution. In Proceedings of the 2023 3rd International Conference on Consumer Electronics and Computer Engineering (ICCECE), Guangzhou, China, 6–8 January 2023; IEEE: New York, NY, USA, 2023; pp. 571–574. [Google Scholar]
- Zhang, J.; Liu, J.; Wang, Z. Bi-Level Routing and Sparse Spatial Attention based Multi-View BEV 3D Object Detection for Autonomous Driving. In Proceedings of the 2026 9th International Conference on Computer Information Science and Application Technology (CISAT), Chengdu, China, 3–5 July 2026; IEEE: New York, NY, USA, 2026; pp. 213–216. [Google Scholar]
- Lv, H.; Li, C.; Dai, J.; Zhang, Y.; Fan, Z.; Tan, Y.; Wang, D.; Xie, B. Lightweight Framework for Underground Pipeline Recognition and Spatial Localization Based on Multiview 2-D GPR Images. IEEE Trans. Geosci. Remote Sens. 2025, 63, 5110115. [Google Scholar] [CrossRef] [Scilit]
- Gu, X.; Chen, J. Progressive Degradation-Aware Distillation for Robust Indoor Object Detection. Sci. Rep. 2026, 16, 35431. [Google Scholar] [CrossRef] [Scilit]
- Wang, J.; Deng, J.; Rashwan, T.L.; Liu, D.; Ren, S.; Qu, G.; Wang, C. Coal Spontaneous Combustion Temperature Prediction under Variable Oxygen Atmospheres Using Chameleon Swarm Algorithm-Optimized Long Short-Term Memory. Energy 2026, 363, 142304. [Google Scholar] [CrossRef] [Scilit]
- Chen, L. Beyond External Constraints: The Missing Dimension of AI Governance; Working Paper 6449738; SSRN: Rochester, NY, USA, 2026. [Google Scholar] [CrossRef] [Scilit]
- Wang, X.; Song, Y.; Yang, H.; Yao, J.; Wang, H.; Liu, Z. Koopman Neural Operator-based surrogate modelling for high-frequency dynamics of high-speed rail pantographs. Mech. Syst. Signal Process. 2026, 258, 114780. [Google Scholar] [CrossRef] [Scilit]
- Zhu, M.L.; Yuan, J.H.; Kong, E.; Zhao, L.L.; Xiao, L.; Gu, D.B. Generative adversarial networks with noise optimization and pyramid coordinate attention for robust image denoising. Int. J. Intell. Syst. 2025, 2025, 1546016. [Google Scholar] [CrossRef] [Scilit]
- Liu, L.; Cai, C.; Shen, S.; Liang, J.; Ouyang, W.; Ye, T.; Mao, J.; Duan, H.; Yao, J.; Zhang, X.; et al. Moa-vr: A mixture-of-agents system towards all-in-one video restoration. IEEE J. Sel. Top. Signal Process. 2025, 19, 1822–1837. [Google Scholar] [CrossRef] [Scilit]
- Chen, F.; Yu, Y.; Yi, J.; Zhang, T.; Zhao, J.; Jia, W.; Yu, J. MCLL-Diff: Multiconditional low-light image enhancement based on diffusion probabilistic models. IEEE Sens. J. 2025, 25, 9912–9924. [Google Scholar] [CrossRef] [Scilit]
- Zhan, D.; Wang, H.; Wei, C.; Gao, S.; Wang, H.; Song, Y.; Liu, Z. SG-AMDM: A semantic-guided adaptive mask diffusion model for catenary component defect detection in electrified railways. Int. J. Rail Transp. 2026. early online publication. [Google Scholar] [CrossRef] [Scilit]
- Chen, J.; Yin, Y.; Lu, F.; Gu, X. Class-unbalance fault diagnosis via spectral sparse enhancement and uncertainty-aware dynamically weighted adversarial transfer. IEEE Sens. J. 2026. [Google Scholar] [CrossRef] [Scilit]
- Ding, X.; Zhao, P.; Zhang, B.; Lin, R.; Song, T. MH-Transolver: A high-fidelity transformer PDE solver with hybrid multi-head attention mechanisms. Cybern. Syst. 2026, 1–24. [Google Scholar] [CrossRef] [Scilit]
- Vaswani, A.; Shazeer, N.; Parmar, N.; Uszkoreit, J.; Jones, L.; Gomez, A.N.; Kaiser, Ł.; Polosukhin, I. Attention is all you need. Adv. Neural Inf. Process. Syst. 2017, 30, 5998–6008. [Google Scholar]
- Dosovitskiy, A.; Beyer, L.; Kolesnikov, A.; Weissenborn, D.; Zhai, X.; Unterthiner, T.; Dehghani, M.; Minderer, M.; Heigold, G.; Gelly, S.; et al. An image is worth 16x16 words: Transformers for image recognition at scale. arXiv 2020, arXiv:2010.11929. [Google Scholar]
- Yuan, L.; Chen, Y.; Wang, T.; Yu, W.; Shi, Y.; Jiang, Z.H.; Tay, F.E.; Feng, J.; Yan, S. Tokens-to-token vit: Training vision transformers from scratch on imagenet. In Proceedings of the IEEE/CVF International Conference on Computer VISION, Montreal, BC, Canada, 11–17 October 2021; IEEE: New York, NY, USA, 2021; pp. 558–567. [Google Scholar]
- Xiong, Z.; Li, W.; Wang, H.; Zhang, B.; Fowler, J.E. A multi-stage progressive network for hyperspectral image demosaicing and denoising. IEEE Trans. Comput. Imaging 2024, 11, 1–10. [Google Scholar] [CrossRef] [Scilit]
- Liu, Z.; Lin, Y.; Cao, Y.; Hu, H.; Wei, Y.; Zhang, Z.; Lin, S.; Guo, B. Swin transformer: Hierarchical vision transformer using shifted windows. In Proceedings of the 2021 IEEE/CVF International Conference on Computer Vision (ICCV), Montreal, QC, Canada, 10–17 October 2021; IEEE: New York, NY, USA, 2021; pp. 9992–10002. [Google Scholar]
- Wu, G.; Jiang, J.; Jiang, K.; Liu, X.; Nie, L. Dswinir: Rethinking window-based attention for image restoration. IEEE Trans. Pattern Anal. Mach. Intell. 2025, 48, 4350–4366. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Wang, J.; Wang, X.; Shen, Y. A Hardware-Friendly Joint Denoising and Demosaicing System Based on Efficient FPGA Implementation. Micromachines 2025, 17, 44. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Jacob, B.; Kligys, S.; Chen, B.; Zhu, M.; Tang, M.; Howard, A.; Adam, H.; Kalenichenko, D. Quantization and training of neural networks for efficient integer-arithmetic-only inference. In Proceedings of the 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition, Salt Lake City, UT, USA, 18–23 June 2018; IEEE: New York, NY, USA, 2018; pp. 2704–2713. [Google Scholar]
- Yin, B.W.; Cao, J.L.; Cheng, M.M.; Hou, Q. Dformerv2: Geometry self-attention for rgbd semantic segmentation. In Proceedings of the 2025 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Nashville, TN, USA, 11–15 June 2025; IEEE: New York, NY, USA, 2025; pp. 19345–19355. [Google Scholar]
- Walmer, M.; Suri, S.; Aggarwal, A.; Shrivastava, A. UPLiFT: Efficient pixel-dense feature upsampling with local attenders. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Denver, CO, USA, 3–7 June 2026; IEEE: New York, NY, USA, 2026; pp. 41288–41298. [Google Scholar]
- Wang, J.; Chen, K.; Xu, R.; Liu, Z.; Loy, C.C.; Lin, D. CARAFE: Content-Aware ReAssembly of FEatures. In Proceedings of the IEEE/CVF International Conference on Computer Vision, Denver, CO, USA, 29 October–1 November 2019; IEEE: New York, NY, USA, 2019; pp. 3007–3016. [Google Scholar]
- Guo, Y.; Davy, A.; Facciolo, G.; Morel, J.M.; Jin, Q. Fast, nonlocal and neural: A lightweight high quality solution to image denoising. IEEE Signal Process. Lett. 2021, 28, 1515–1519. [Google Scholar] [CrossRef] [Scilit]
- Heide, F.; Steinberger, M.; Tsai, Y.T.; Rouf, M.; Pajak, D.; Reddy, D.; Gallo, O.; Liu, J.; Heidrich, W.; Egiazarian, K.; et al. FlexISP: A Flexible Camera Image Processing Framework. ACM Trans. Graph. 2014, 33, 231:1–231:13. [Google Scholar] [CrossRef] [Scilit]
- Saoudi, R.; Boudechiche, D.E.; Messali, Z.; Saidani, O.; Yousfi, A. Joint Demosaicing, Denoising, and Super-Resolution for Wireless Capsule Endoscopy Images. In Proceedings of the 2025 2nd International Conference of Advanced Technology in Electronic and Electrical Engineering (ICATEEE), M’sila, Algeria, 10–11 December 2025; IEEE: New York, NY, USA, 2025; pp. 1–6. [Google Scholar]
- Guan, J.; Lai, R.; Lu, Y.; Li, Y.; Li, H.; Feng, L.; Yang, Y.; Gu, L. Memory-efficient deformable convolution based joint denoising and demosaicing for UHD images. IEEE Trans. Circuits Syst. Video Technol. 2022, 32, 7346–7358. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.






