Manuscript Offprint
arXiv:2611.24805Edge-Efficient Joint RAW Image Compression and Restoration for Smart Wearable Devices
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Smart wearable devices, such as augmented reality glasses, increasingly rely on cameras to understand and interact with their surroundings. However, their compact sensors often capture noisy RAW images, while limited compute and power make high-quality on-device restoration difficult. This creates an emerging need to reduce both local computation and transmission cost without sacrificing image quality. Two common solutions are to offload restoration or to compress the raw data before transmission. The first makes RAW transmission costly; the second reduces the payload but can spend bitrate preserving sensor noise. We address this fundamental mismatch with an asymmetric framework for joint RAW compression and restoration that directly optimizes the transmitted representation for clean image reconstruction. A lightweight on-device encoder compresses noisy RAW measurements into a bitstream, while a higher-capacity backend decoder jointly denoises and demosaics the encoded representation. We use knowledge distillation to train a smaller encoder for tighter compute budgets. Experiments on real and synthetic data show improved rate–restoration performance over strong cascaded compression-restoration pipelines and learned compression baselines. On SIDD, our method improves PSNR by more than 1.5 dB over cascaded baselines at approximately 0.25 bits per pixel. We further validate the method on real 12 MP RAW images captured with commercial smart glasses and measure sender-side latency on both smartphone and smart-glasses hardware. The distilled encoder achieves a 27.6× NPU inference speedup over on-device NAFNet for 256×256 output patches. The code is available at https://github.com/coolsyn2000/CRAW
1 Introduction
Smart wearable devices, such as augmented reality (AR) glasses, use compact camera modules with small sensors and apertures to meet strict size and weight constraints. Head and body motion further necessitate short exposure times to limit motion blur. Together, the limited light collection and short exposure times reduce the signal-to-noise ratio (SNR) of the captured RAW images. At low SNR, conventional denoising methods can struggle to suppress noise while preserving fine image detail [9]. Deep neural networks are widely used for RAW restoration, offering improved image quality by jointly performing denoising and demosaicing [5, 31, 15]. At the same time, wearable vision benefits from high-resolution imaging to preserve fine spatial details. However, high-resolution RAW restoration remains computationally demanding, especially on smart wearable devices, considering their tight compute, memory, power, and thermal budgets.

Figure 1: Formulations for wearable RAW image restoration (IR). (a) Edge IR: restoration is performed entirely on the wearable. (b) Cascaded IR: conventional compression codecs, such as JPEG-XL (JXL) or VVC, compress the RAW image before backend restoration. (c) Proposed Joint IR: a lightweight encoder produces a compact latent representation for transmission, and a backend decoder performs reconstruction and restoration. Q/AE denotes quantization and arithmetic encoding.
This shifts the problem from designing a better restorer to deciding how the restoration workload should be split between the wearable device and a more capable backend. As illustrated in Fig. 1, fully on-device image restoration (Fig. 1(a)) avoids RAW transmission but requires the wearable to perform the entire restoration. Sending uncompressed RAW to a paired phone or cloud server shifts the restoration workload off the wearable, but transmitting full-resolution RAW frames can incur substantial latency over a bandwidth-limited wireless link. Codec-cascaded backend image restoration (Fig. 1(b)) reduces the transmission payload by compressing the noisy RAW on the wearable before restoring it at the backend. This raises a central question for wearable imaging: under a tight on-device compute budget, how can we reduce the bitrate needed to achieve a given restoration quality?
Conventional compression codecs, such as JPEG-XL (JXL) and VVC, are ill-suited to this wearable setting. They are designed to reproduce their input faithfully, so they may also encode sensor noise together with the underlying signal in low-SNR measurements. At high bitrates, many of the bits are spent on encoding useless noise that the backend restoration module will discard later, which wastes valuable bandwidth and increases transmission latency. At low bitrates, the cost is even worse: noise competes with the clean signal for the very limited bit budgets, and the signal lost in the compression stage cannot be recovered. Compression also alters the nature of the degradation itself. Sensor noise is approximately pixel-independent and is well described by a calibrated Poisson–Gaussian noise model [35], whereas quantization and partition-based transforms of conventional compression codecs convert it into spatially correlated color bias or blocking artifacts. The backend restoration algorithm therefore receives out-of-distribution noisy inputs with artifacts that a sensor noise model does not capture. Such artifacts are considerably harder to learn and remove than the original pixel-independent sensor noise [18, 25]. As shown in Fig. 2, JXL compression of a noisy RAW image introduces color artifacts and loses fine texture that cannot be recovered after restoration by NAFNet [10].

Figure 2: JXL compression of noisy RAW. At 0.44 bpp, JXL introduces color artifacts and removes fine texture that NAFNet fails to recover in this LSDIR example at ISO 3200.
Instead of treating compression and restoration as separate stages, we formulate wearable RAW imaging as a joint compression–restoration problem under an on-device compute constraint (Fig. 1(c)). By optimizing the transmitted representation for clean linear RGB reconstruction, our joint design improves the trade-off between communication cost and restored image quality, leading to higher restoration quality at the same bitrate as cascaded compression and restoration. In our proposed framework, an edge-efficient encoder model maps the noisy RAW measurements to a compact latent on the front-end. A higher-capacity decoder at the paired phone or cloud server then decompresses the latents and jointly denoises, demosaics, then reconstructs the clean linear RGB image at the backend. This design meets the emerging need for high-quality wearable imaging under tight compute and bandwidth constraints. Our contributions are summarized as follows:
- Problem formulation. We formulate wearable noisy-RAW restoration as a joint computation–restoration problem, under an explicit on-device compute budget, jointly accounting for reconstruction quality, transmitted bitrate, and on-device inference cost.
- Edge-efficient architecture. We propose a joint RAW compression and restoration architecture that pairs a distilled, edge-efficient encoder with a high-capacity decoder, trained end-to-end from noisy RAW to clean linear RGB targets. It outperforms codec-adapted cascades and learned compression baselines on realistic and synthetic noisy RAW image datasets.
- On-device evaluation. We deploy our framework on real-world devices and report the latency for sender devices, including NPU inference, data I/O, CPU coding, and transmission. Evaluations are performed with 12 MP () RAW images on both smartphone (Xiaomi 13) and AR glasses (Rokid Glasses) platforms.
2.1 Hardware-aware learned image compression
For wearable imaging, compression must reduce transmission cost without adding too much computation at the sender. Learned image codecs are attractive because they optimize compression end to end with a differentiable rate–distortion objective, using learned priors to model the latents [4, 30, 20]. RAW-oriented codecs extend this idea to high-bit-depth sensor data [27]. Stronger context models, however, improve compression at the cost of serial dependence and additional computation. This has motivated designs that keep entropy coding parallel [21] or distribute computation asymmetrically across the two endpoints [37, 43, 34]. PICO further evaluates accelerator execution together with the cost of entropy coding [33], and CoDiSP partitions camera-image signal processing (ISP) through a task-oriented compressed representation [41]. These studies establish the value of hardware-aware evaluation, but their objective is still to reconstruct the encoder input or a task-specific representation. As a result, valuable bitrate can be spent preserving sensor noise, while the sender may still be too expensive for a wearable device.
2.2 Efficient RAW restoration
Beyond compression, the restoration stage must also recover image quality from noisy sensor measurements. RAW restoration recovers a full-color image from mosaiced, signal-dependent measurements. The RAW domain is attractive because sensor noise is well characterized before the nonlinear stages of the ISP, so the degradation can be modeled accurately. Early work therefore focused on joint demosaicing and denoising directly [22, 17]. As learning-based restoration became more data-driven, progress increasingly depended on both training data and network design. SIDD provides paired real smartphone captures [1], although real acquisition is expensive and the resulting scene diversity is limited. To broaden training data, Unprocessing synthesizes realistic RAW pairs from clean sRGB images [5], which makes training on more diverse content practical. On the model side, Restormer and NAFNet achieve strong quality through long-range modeling or simplified convolutional blocks [39, 10], but their inference cost is far beyond a wearable budget. This has motivated mobile-oriented designs that reduce arithmetic and memory traffic and restrict the network to NPU-friendly operators [38, 29, 14, 16], at a measurable cost in restoration quality. As a result, efficient RAW restoration for wearable devices remains challenging: the model must preserve restoration quality while operating under tight on-device compute and memory budgets. These constraints motivate architectures that shift more of the restoration workload away from the wearable while keeping the transmitted representation compact.
2.3 Joint Compression and Restoration
A natural way to reduce both transmission and restoration cost is to optimize the two tasks together. Joint compression and restoration focuses the transmitted information on what is needed to recover a clean image, while avoiding unnecessary coding of the degraded input. Early methods optimize denoising and compression under a shared rate–distortion objective [7, 12, 8]. Later work introduces noise-adaptive variational coding [23] or merges decompression and denoising inside a single decoder [11]. More recently, CLEANS [28] compresses the clean signal from noisy RAW in a self-supervised manner using a calibrated physical noise model. All-in-One Compression and Restoration [40] extends joint compression and restoration to multiple degradation types. These methods show the benefit of optimizing compression for clean reconstruction. However, smart wearable device-based cameras pose a largely unexplored challenge: balancing bitrate and reconstruction quality under tight sender-side compute constraints. We address this with the asymmetric design described in Sec. 3.
3 Method
3.1 Problem Formulation
We first define how the noisy RAW image is represented and compressed on the wearable. Let be a normalized noisy Bayer measurement and its clean linear RGB target. We pack the four Bayer phases into separate channels using a fixed invertible operator , giving . On the device, an analysis transform produces the main latent , and a hyper-analysis transform produces side information , coded under a learned prior. A hyper-synthesis transform then predicts the Gaussian parameters of every main-latent element in a single pass:
The main latent is mean-centered, quantized with a fixed step , and coded under the predicted Gaussian; the backend reconstructs:
Both rounding operators are hard at inference and relaxed during training, where uses a straight-through estimator (STE), and uses the additive uniform noise that matches its unit step. Because supplies the probability model, it runs at both endpoints. The entropy-coded streams are the only representation of the image that crosses the link.
We denote by the sender, comprising , , , and the entropy-coding path, and train it jointly with the backend synthesis under
where is a pixel-wise fidelity term, the code length per Bayer sample, and selects an operating point.
Two properties separate Eq. 3 from conventional compression. Fidelity is measured against the clean target rather than against the encoder input: given the underlying scene, the noise realization in is independent of , so bits that describe it cannot reduce in expectation while they necessarily increase . Unlike the differentiable rate term, the edge compute constraint is satisfied by explicit architectural design and verified through rigorous on-device profiling.

Figure 3: Proposed asymmetric joint RAW compression and restoration framework. The on-device encoder applies a lightweight analysis transform, a parallel hyperprior, quantization, and arithmetic coding to packed noisy Bayer data. The backend decodes the latents and uses a higher-capacity synthesis transform to jointly decompress, denoise, demosaic, and reconstruct clean linear RGB.
3.2 Asymmetric Architecture
Edge-efficient encoder. Figure 3 gives an overview of the system. We build the analysis transform from dense convolutions with static shapes for efficient NPU execution. Ours-M downsamples in three stages, each opening with a 33 stride-2 convolution and ReLU and followed by 1, 3, and 5 residual bottleneck blocks at widths of 224, 448, and 640. Each bottleneck applies 11, 33, and 11 convolutions over a half-width hidden representation with a residual connection, which keeps most of the arithmetic in the two pointwise layers. A final 11 projection produces the 320-channel latent, which together with Bayer packing places at 1/16 of the sensor resolution. The sender contains no autoregressive loop [30, 13], dynamic routing [19], or operators unsupported by mobile NPUs such as GDN [3], so the whole path compiles to a single static graph.
Table 1: Sender-only comparison. Totals include the analysis transform and parallel hyperprior. MACs are normalized by the output pixel.
| Component | Ours-M | Ours-S |
|---|---|---|
| Analysis widths | 224/448/640 | 160/256/320 |
| Residual blocks | 1/3/5 | 1/3/5 |
| Sender parameters | 18.84M | 9.97M |
| Sender MACs/pixel | 108.33K | 47.15K |
Ours-S narrows the three analysis stages of the sender while keeping its topology, the latent shape, and the backend decoder architecture unchanged. Sender capacity thus varies without changing the coding interface: both variants produce latents in the same shape and incur the same backend cost. This also allows Ours-M to serve as both the initialization and the alignment target when distilling Ours-S (Sec. 3.3). At deployment, both variants use the same backend network architecture with their own fine-tuned weights.
Parallel entropy model. To fully exploit the parallelism of the mobile NPU, we keep the sender’s probability model free of serial dependencies. This matters because the sender needs the predicted mean and scale of to entropy-code it, so runs on the device as well as on the backend. Context models improve compression by conditioning each element on previously coded neighbors [30]; even parallel-friendly variants [21, 20] still require multiple sequential passes, which underutilize the NPU. We instead rely on a mean–scale hyperprior alone [4, 30]. The hyper-analysis transform maps to a 192-channel , and two upsampling layers then predict the 320-channel mean and scale maps for the entire main latent from in a single pass. is coded with an entropy bottleneck, and with a Gaussian conditional model under a fixed quantization step . Finally, the CPU performs rANS entropy coding using the predicted distributions.
Backend-heavy reconstruction. The cost of a convolution grows with its spatial resolution, and the high-resolution layers near the output are also where fine detail is recovered. We therefore keep the sender to lightweight downsampling and place all high-resolution upsampling operations on the backend. Starting from the 320-channel latent, the synthesis transform stacks three stages of NAFBlocks [10] and attention, with an upsampling step between consecutive stages. A final transposed convolution produces 12 output channels, which a 2 PixelShuffle [32] rearranges into three-channel linear RGB images at full sensor resolution.
3.3 Optimization and Distillation
We instantiate and of Eq. 3 as
with both terms normalized per sample so that keeps the same meaning across image sizes. Ours-M first trains as one shared joint model for 200k steps, and each rate branch then loads the shared weights and is fine-tuned for 100k steps under its own , which lets the analysis transform specialize to its rate without re-learning the mapping to clean linear RGB.
Ours-S is distilled from the matching rate-specific Ours-M teacher in two stages. A 20k-step alignment stage initializes the narrow analysis transform by slicing the teacher’s channels and freezes the backend decoder, so that the student converges toward a fixed target while matching the teacher’s quantized latent and reconstruction under initial weights and . The loss function of distillation is described as
where and are the losses of compression latents and final reconstructions, respectively. A 180k-step joint stage then unfreezes the full model and sets and . Ours-M covers eight rate weights from to and Ours-S five points over the same range.
4 Experiments
4.1 Experimental Settings
Real and synthetic data. SIDD [1] is our primary real smartphone image restoration dataset. We use 144 training scenes and 16 disjoint validation scenes from all five phone cameras over ISO 50–10000, converting each native Bayer pattern to canonical RGGB by a whole-image rotation or flip before packing. To improve the diversity of natural textures, we synthesize training pairs from LSDIR [26] in addition. Following Brooks et al. [5], we invert the sRGB transfer function, color correction, and white balance, and remosaic the camera-linear image. Then calibrated Poisson–Gaussian noise is added with parameters from recalibrated SIDD camera noise profiles [44]. Table 2 summarizes the resulting splits and patch counts of our training datasets.
Table 2: Summary of the datasets and splits used in our experiments. Patch counts denote linear RGB targets with corresponding noisy RAW inputs. Synthetic RAW patches are generated online from LSDIR.
| Dataset | Split | Sources | Noise | Patches | ISO Range |
|---|---|---|---|---|---|
| SIDD [1] | Train | RAW | Real | 27,504 | 50–10,000 |
| Test | RAW | Real | 1,024 | 100–3,200 | |
| LSDIR [26] | Train | sRGB | Synthetic | 84,171 | 100–6,400 |
| Test | sRGB | Synthetic | 1,024 | 100–6,400 |
Both sources follow a 10-bit sensor-code convention with a black level of 32 and a white level of 1024. We retain this offset throughout the RAW-to-RGB pipeline, since a deployed system receives sensor codes directly rather than idealized black-subtracted input. Inputs are packed RAW and targets are linear RGB.
Table 3: Comparison of results on the SIDD dataset (BPP 0.25) and the LSDIR dataset (BPP 1.0). The best and second-best performing methods at targeted BPP in the benchmark are indicated in bold and underlined, respectively.
| Dataset | Metric | Uncompressed | Cascaded (w/ NAFNet) | Joint Compression and Restoration | |||||
|---|---|---|---|---|---|---|---|---|---|
| NAFNet [10] | Restormer [39] | JXL [2] | VVC [6] | Ballé18[4] | ELIC[20] | Ours-M | Ours-S | ||
| SIDD [1] | BPP | 10.0 | 10.0 | .2516 | .2561 | .3084 | .2464 | .2509 | .3026 |
| PSNR | 53.95 | 53.72 | 51.34 | 51.18 | 50.02 | 52.67 | 52.90 | 52.82 | |
| MS-SSIM | .99587 | .99578 | .99319 | .99389 | .99282 | .99515 | .99529 | .99527 | |
| LPIPS | .10899 | .10969 | .16223 | .17254 | .18103 | .14147 | .13392 | .13690 | |
| LSDIR [26] | BPP | 10.0 | 10.0 | .9872 | 1.0344 | 1.0015 | .9925 | .9841 | .9497 |
| PSNR | 47.61 | 47.61 | 44.63 | 45.77 | 41.81 | 44.45 | 45.82 | 45.45 | |
| MS-SSIM | .99631 | .99631 | .99334 | .99456 | .98841 | .99372 | .99508 | .99481 | |
| LPIPS | .06780 | .06718 | .14556 | .13078 | .26629 | .13292 | .10936 | .11818 |

Figure 4: Results visualization on a real Rokid Glass IMX681 capture at ISO 800. The reference is the average of 32 RAW frames. Insets show uncompressed NAFNet, VVC/NAFNet, Ours-M, and Ours-S. Labels report measured bpp and full-frame sRGB PSNR against this mean reference; All results are visualized under sRGB domain with the same transform.
Figure 5: Restoration rate–distortion curves on the fixed 1024-image SIDD (top) and LSDIR (bottom) testing sets. RAW+NAFNet is an uncompressed image restoration reference.
Baselines and rate matching. Uncompressed NAFNet [10] and Restormer [39] restore the clean linear RGB image directly from uncompressed packed RAW. For JPEG-XL [2] and VVC [6], we rearrange the Bayer RAW into a single-channel CFA-tiled representation before encoding, and invert the rearrangement after decoding. The cascades compress the same Bayer samples with JPEG-XL or VVC before restoration, where each rate point uses a single global integer codec setting over the full validation set, without per-image tuning, mixed QPs, or interpolated curve points.
Figure 6: Effect of codec-aware backend adaptation on the fixed SIDD (left) and LSDIR (right) validation sets. Dashed curves apply the shared 200k-step RAW NAFNet directly to decoded inputs; solid curves use a separate NAFNet fine-tuned for each codec and rate point.
Applying a RAW restorer to decoded input without adaptation understates what a cascade can achieve, since codec artifacts shift its input distribution. We therefore fine-tune a separate NAFNet for every codec and rate point, especially on SIDD (see Fig. 6). All main comparisons use these adapted backends. Ballé18 [4] and ELIC [20] are trained under the same noisy-RAW-to-clean-RGB objective as our models, so the comparison isolates the coding architecture rather than the training target. Every curve point comes from a checkpoint that completed both fixed 1024-image validations, and all rates are measured from the resulting bitstreams rather than taken from nominal codec labels.
Metrics and implementation. PSNR and MS-SSIM on SIDD and LSDIR are computed in linear camera RGB. LPIPS [42] instead operates on displayed images, so reconstruction and target pass through the same metadata-derived white balance, color correction, and gamma correction before LPIPS is computed. All metrics are evaluated in Float32. For deployment measurements only, graphs are compiled to FP16 with QNN O3 and profiled on a Snapdragon 8 Gen 2 device (Xiaomi 13); Rokid Glass (AR1 Gen 1) uses a separately profiled W8A8 INT8 sender on QNN HTP.
4.2 Rate–Restoration Performance
Target-rate comparison. Table 3 fixes one operating point on each dataset. On SIDD near 0.25 bpp, Ours-M reaches 52.90 dB and leads every compressed system on all three metrics, improving on the adapted cascades by more than 1.5 dB; the residual gap to uncompressed NAFNet is 1.05 dB, obtained at one-fortieth of the transmitted rate. Ours-S attains 52.82 dB with less than half the sender MACs, though at 0.3026 bpp (bits per pixel) it falls outside the same-rate window and is left unranked rather than treated as a competitor at this point. On LSDIR near 1.0 bpp the margin is narrower in fidelity but not in perceptual quality.
Figure 4 shows a real capture from a Rokid Glass (IMX681, ISO 800), processed with the original FP32 checkpoints and no sensor-specific fine-tuning. At about 0.028 bpp, Ours-M and Ours-S retain text and fine texture, whereas VVC+NAFNet spends 0.038 bpp yet reaches a lower PSNR (31.95 vs. 32.45 dB for Ours-M). Here PSNR is measured in sRGB against a 32-frame mean reference, rather than the clean linear-RGB targets used above.
Curve-level comparison. Comparisons at a single operating point are biased toward whichever method happens to land closest to the target rate. Table 4 therefore reports BD-rate over the full rate–quality curves, anchored on JXL+NAFNet, the only method whose quality range overlaps with all others. Ours-M achieves the best BD-rate on all six dataset–metric combinations, and Ours-S ranks second on five, outperforming ELIC there at roughly half its encoder latency (see Tab. 5). The two learned baselines further show that the training objective alone is not sufficient: although Ballé18 and ELIC are trained on the same noisy-RAW-to-clean-RGB objective as our models, Ballé18 exceeds +100% on SIDD (PSNR), whereas ELIC reaches -66%. Architecture therefore matters as well, and since Ours-M surpasses ELIC on every metric without a context model, our gains do not rely on serial entropy coding that the sender cannot afford.
Table 4: BD-rate () benchmark relative to JXL+NAFNet. The best and second-best performing methods in the benchmark are indicated in bold and underlined, respectively.
| Method | SIDD BD-rate () | LSDIR BD-rate () | ||||
|---|---|---|---|---|---|---|
| PSNR | MS-SSIM | LPIPS | PSNR | MS-SSIM | LPIPS | |
| JXL+NAFNet | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 |
| VVC+NAFNet | -5.88 | -35.87 | +5.33 | -39.30 | -34.61 | -21.24 |
| Ballé18 | +107.93 | +17.72 | +70.05 | +20.59 | -6.32 | +55.69 |
| ELIC | -66.00 | -82.08 | -61.36 | -44.09 | -53.31 | -46.84 |
| Ours-M | -72.27 | -83.85 | -69.51 | -50.21 | -58.41 | -49.95 |
| Ours-S | -68.97 | -83.21 | -63.86 | -46.93 | -56.73 | -45.77 |
Operating region. Our gains are largest where wearable capture operates. On SIDD, whose noisy, texture-sparse scenes compress to low rates, Ours-M leads the strongest cascade, VVC+NAFNet, by 70.5% BD-rate in PSNR; on texture-rich LSDIR the margin is 18%. This trend follows the argument in Sec. 1: At low bitrates, bits spent encoding noise leave fewer bits for the underlying signal. At the high bitrate region (toward 1.0 bpp) of the LSDIR dataset, the cascade keeps improving towards the uncompressed baseline while our models saturate (see Fig. 5), consistent with the capacity saturation of compact learned transforms [36, 24]. This is a deliberate trade-off: the edge budget keeps the sender small, and such rates exceed what wearable links typically sustain.
4.3 Performance Across Noise Levels
Figure 7 isolates the effect of input SNR by holding scene content fixed. We corrupt 128 paired LSDIR scenes with one calibrated SIDD S6 profile at five ISO levels, and every system keeps a single checkpoint and a single global codec setting throughout. For the rate panel, VVC and JPEG-XL are matched to Ours-M once at the lowest ISO and then frozen. Because the coded rates diverge with ISO, the quality panel should be read as a robustness trend rather than as a same-rate comparison at every point.
Figure 7: Controlled-noise behavior on 128 paired LSDIR scenes at ISO 200–3200. Left: mean linear-RGB PSNR. Right: measured bpp after VVC and JPEG-XL are matched to Ours-M once at ISO 200 and then frozen. Bands are 95% paired-scene bootstrap confidence intervals.
All systems degrade smoothly as SNR falls, and Ours-M follows the trend of uncompressed NAFNet while staying closer to it than the cascade at every level. Its gap to that uncompressed reference narrows from 3.07 dB at ISO 200 to 1.45 dB at ISO 3200, which indicates that compression accounts for a smaller share of the total error once the observation is strongly noise limited. The rate panel shows the mechanism from the other side: over the same range Ours-M contracts from 0.414 to 0.346 bpp, a 16.5% reduction, whereas fixed-QP VVC expands from 0.420 to 0.701 bpp, a 66.9% increase, and the direction holds across nearly all scenes. This is the behavior Eq. 3 predicts, since our training objective function gives no credit for coding meaningless and high-entropy noise whereas conventional codecs are designed to reproduce the noisy input faithfully.
4.4 Edge Efficiency
We deploy our joint compression and restoration models on edge devices and report parameter counts and MACs for both the encoder and the decoder, along with sender-side NPU latency for patches and full-resolution frames (Tab. 5). We also report a breakdown of full-frame sender latency (Tab. 6). For NAFNet and Restormer the full restoration model runs on devices, whereas for the distributed methods the cost covers only the sender NPU. Ours-S runs that sender in 0.96 ms per patch, 27.6 faster than NAFNet, and the narrower Ours-S halves the sender latency of Ours-M at a cost of 3.3% BD-rate points on SIDD PSNR. Restormer has fewer parameters than NAFNet yet is much slower on the same NPU, which indicates that model parameters and MACs cannot predict real-world latency reliably.
Table 5: Inference cost and FP16 NPU latency on a Xiaomi 13, for a output patch and a full (12.58 MP) frame. MACs are normalized by output pixels. Dashes indicate that the full-resolution graph did not execute on device.
| Params. (M) | MACs (K/pixel) | Latency (ms) | ||||
|---|---|---|---|---|---|---|
| Method | Enc. | Dec. | Enc. | Dec. | Patch | 12 MP |
| NAFNet | 115.99 | 242.85 | 26.56 | – | ||
| Restormer | 26.12 | 539.89 | 362.81 | – | ||
| Ballé18 | 9.04 | 6.68 | 23.91 | 94.79 | 1.234 | 249.42 |
| ELIC | 26.45 | 24.09 | 85.20 | 156.07 | 2.091 | 396.45 |
| Ours-M | 18.84 | 16.42 | 108.33 | 273.65 | 1.894 | 455.65 |
| Ours-S | 9.97 | 16.42 | 47.15 | 273.65 | 0.961 | 240.70 |
Table 6: Sender latency for one 12 MP RAW frame on XM.13 (Xiaomi 13, FP16) and RK.G (Rokid Glass, INT8). The first row gives the uncompressed Bayer transmission time. Uncompressed RAW is stored in UINT16. Bandwidth: 50 Mbps
| Sender | NPU (ms) | I/O (ms) | CPU (ms) | Trans. (ms) | Total (ms) |
|---|---|---|---|---|---|
| Uncomp. RAW | – | – | – | 4027.0 | 4027.0 |
| Ours-M (XM.13) | 457.74 | 15.56 | 45.46 | 35.08 | 553.84 |
| Ours-S (XM.13) | 236.45 | 15.82 | 43.98 | 46.72 | 342.98 |
| Ours-S (RK.G) | 967.73 | 23.13 | 250.62 | 49.35 | 1290.8 |
4.5 Distillation Ablation
Table 7 compares the distilled Ours-S with an identical student trained from scratch under the same schedule and rate weights. Distillation reduces BD-rate in three of the four settings: by 6.2% on SIDD and 9.6% on LSDIR in PSNR, and by 7.8% on LSDIR in MS-SSIM. In PSNR, it closes about a third of the gap to the Ours-M teacher on LSDIR but only a sixth on SIDD, suggesting that distillation helps most on texture-rich content, where the narrow student is more capacity-limited. Ours-M remains stronger, but at 2.3 the sender MACs and 2.0 the NPU latency (see Tabs. 1 and 5).
Table 7: Ablation study of knowledge distillation. BD-rate is computed using three RD points, with Ours-S trained from scratch as the anchor. For MS-SSIM, is used as the quality axis.
| SIDD BD-rate (%) | LSDIR BD-rate (%) | ||||
|---|---|---|---|---|---|
| Model | Distill. | PSNR | MS-SSIM | PSNR | MS-SSIM |
| Ours-S | 0.00 | 0.00 | 0.00 | 0.00 | |
| Ours-S | ✓ | -6.20 | +1.94 | -9.55 | -7.75 |
| Ours-M | – | -35.69 | -20.54 | -25.89 | -21.65 |
5 Conclusion
We proposed a joint RAW compression and restoration framework for resource-constrained smart wearable devices. Our asymmetric architecture keeps only a lightweight encoder on the edge-device and offloads the computationally intensive decoder to the backend. Because the model is trained end-to-end against clean targets, the encoder learns to preserve the signal needed for reconstruction instead of spending bits on noise, as conventional codecs do, which improves both compression efficiency and reconstruction quality. We further deployed and evaluated the system on commercial smartphone and smart-glasses hardware, demonstrating its practicality under real device constraints.
LLM Usage Statement
The authors take full responsibility for all submitted content. We used ChatGPT (OpenAI), Claude (Anthropic), and Gemini (Google) to obtain reviewer-style feedback that supported internal manuscript revision and editing.
We used Claude to polish author-written text and assist with identifying related work, data simulation, and interpretation of experimental results. We used ChatGPT (Codex) to assist with coding for model training and experimental analysis. No LLMs or other generative AI tools were used to prepare figures, diagrams, or other visual material.
Acknowledgment
We thank Jiang Li, Ling Ouyang and Stan Jin for inspiring us to investigate image restoration under real smart-glasses device constraints.
References
[1] A. Abdelhamed, S. Lin, and M. S. Brown (2018) A high-quality denoising dataset for smartphone cameras. In 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 1692–1700. Cited by: §2.2, §4.1, Table 2, Table 3.
[2] J. Alakuijala, R. Van Asseldonk, S. Boukortt, M. Bruse, I. Comșa, M. Firsching, T. Fischbacher, E. Kliuchnikov, S. Gomez, R. Obryk, et al. (2019) JPEG xl next-generation image compression architecture and coding tools. In Applications of digital image processing XLII, Vol. 11137, pp. 112–124. Cited by: §4.1, Table 3.
[3] J. Ballé, V. Laparra, and E. P. Simoncelli (2016) End-to-end optimized image compression. arXiv preprint arXiv:1611.01704. Cited by: §3.2.
[4] J. Ballé, D. Minnen, S. Singh, S. J. Hwang, and N. Johnston (2018) Variational image compression with a scale hyperprior. In International Conference on Learning Representations, Cited by: §2.1, §3.2, §4.1, Table 3.
[5] T. Brooks, B. Mildenhall, T. Xue, J. Chen, D. Sharlet, and J. T. Barron (2019) Unprocessing images for learned raw denoising. In 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 11028–11037. Cited by: §1, §2.2, §4.1.
[6] B. Bross, Y. Wang, Y. Ye, S. Liu, J. Chen, G. J. Sullivan, and J. Ohm (2021) Overview of the versatile video coding (vvc) standard and its applications. IEEE Transactions on Circuits and Systems for Video Technology 31 (10), pp. 3736–3764. Cited by: §4.1, Table 3.
[7] B. Brummer and C. De Vleeschouwer (2023) On the importance of denoising when learning to compress images. In 2023 IEEE/CVF Winter Conference on Applications of Computer Vision (WACV), pp. 2439–2447. Cited by: §2.3.
[8] B. Brummer and C. De Vleeschouwer (2025) Learning joint denoising, demosaicing, and compression from the raw natural image noise dataset. arXiv preprint arXiv:2501.08924. Cited by: §2.3.
[9] C. Chen, Q. Chen, J. Xu, and V. Koltun (2018) Learning to see in the dark. In 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 3291–3300. Cited by: §1.
[10] L. Chen, X. Chu, X. Zhang, and J. Sun (2022) Simple baselines for image restoration. In European conference on computer vision, pp. 17–33. Cited by: §1, §2.2, §3.2, §4.1, Table 3.
[11] Y. Chen, K. Ho, S. Tsai, G. Lin, A. Gnutti, W. Peng, and R. Leonardi (2024) Transformer-based learned image compression for joint decoding and denoising. In 2024 Picture Coding Symposium (PCS), pp. 1–5. Cited by: §2.3.
[12] K. L. Cheng, Y. Xie, and Q. Chen (2022) Optimizing image compression via joint learning with denoising. In European Conference on Computer Vision, pp. 56–73. Cited by: §2.3.
[13] Z. Cheng, H. Sun, M. Takeuchi, and J. Katto (2020) Learned image compression with discretized gaussian mixture likelihoods and attention modules. In 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 7936–7945. Cited by: §3.2.
[14] H. Choi, C. Na, J. Oh, S. Lee, J. Kim, S. Choe, J. Lee, T. Kim, and J. Yang (2024) Reciprocal attention mixing transformer for lightweight image restoration. In 2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW), pp. 5992–6002. Cited by: §2.2.
[15] M. Conde, R. Timofte, Z. Lu, X. Kong, X. Xing, F. Wang, S. Han, M. Park, T. Hao, Y. He, et al. (2025) NTIRE 2025 challenge on raw image restoration and super-resolution. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 1148–1171. Cited by: §1.
[16] R. Flepp, A. Ignatov, R. Timofte, and L. Van Gool (2024) Real-world mobile image denoising dataset with efficient baselines. In 2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 22368–22377. Cited by: §2.2.
[17] M. Gharbi, G. Chaurasia, S. Paris, and F. Durand (2016) Deep joint demosaicking and denoising. ACM Transactions on Graphics (ToG) 35 (6), pp. 1–12. Cited by: §2.2.
[18] S. Guo, Z. Yan, K. Zhang, W. Zuo, and L. Zhang (2019) Toward convolutional blind denoising of real photographs. In 2019 IEEE/CVF conference on computer vision and pattern recognition (CVPR), pp. 1712–1722. Cited by: §1.
[19] Y. Han, G. Huang, S. Song, L. Yang, H. Wang, and Y. Wang (2021) Dynamic neural networks: a survey. IEEE transactions on pattern analysis and machine intelligence 44 (11), pp. 7436–7456. Cited by: §3.2.
[20] D. He, Z. Yang, W. Peng, R. Ma, H. Qin, and Y. Wang (2022) Elic: efficient learned image compression with unevenly grouped space-channel contextual adaptive coding. In 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 5708–5717. Cited by: §2.1, §3.2, §4.1, Table 3.
[21] D. He, Y. Zheng, B. Sun, Y. Wang, and H. Qin (2021) Checkerboard context model for efficient learned image compression. In 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 14766–14775. Cited by: §2.1, §3.2.
[22] F. Heide, M. Steinberger, Y. Tsai, M. Rouf, D. Pająk, D. Reddy, O. Gallo, J. Liu, W. Heidrich, K. Egiazarian, et al. (2014) Flexisp: a flexible camera image processing framework. ACM Transactions on Graphics (ToG) 33 (6), pp. 1–13. Cited by: §2.2.
[23] Y. Huang, Z. Duan, and F. Zhu (2023) Narv: an efficient noise-adaptive resnet vae for joint image compression and denoising. In 2023 IEEE International Conference on Multimedia and Expo Workshops (ICMEW), pp. 188–193. Cited by: §2.3.
[24] W. Jiang, Y. Zhai, J. Yang, F. Gao, and R. Wang (2026) Mlicv2: enhanced multi-reference entropy modeling for learned image compression. ACM Transactions on Multimedia Computing, Communications and Applications 22 (4), pp. 1–23. Cited by: §4.2.
[25] W. Lee, S. Son, and K. M. Lee (2022) Ap-bsn: self-supervised denoising for real-world images via asymmetric pd and blind-spot network. In 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 17704–17713. Cited by: §1.
[26] Y. Li, K. Zhang, J. Liang, J. Cao, C. Liu, R. Gong, Y. Zhang, H. Tang, Y. Liu, D. Demandolx, et al. (2023) Lsdir: a large scale dataset for image restoration. In 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW), pp. 1775–1787. Cited by: §4.1, Table 2, Table 3.
[27] Z. Li, M. Lu, X. Zhang, X. Feng, M. S. Asif, and Z. Ma (2024) Efficient visual computing with camera raw snapshots. IEEE Transactions on Pattern Analysis and Machine Intelligence 46 (7), pp. 4684–4701. Cited by: §2.1.
[28] Z. Li, Y. Wang, A. Kot, and B. Wen (2024) Compress clean signal from noisy raw image: a self-supervised approach. In Forty-first International Conference on Machine Learning, Cited by: §2.3.
[29] Z. Liu, M. Jin, Y. Chen, H. Liu, C. Yang, and H. Xiong (2023) Lightweight network towards real-time image denoising on mobile devices. In 2023 IEEE International Conference on Image Processing (ICIP), pp. 2270–2274. Cited by: §2.2.
[30] D. Minnen, J. Ballé, and G. D. Toderici (2018) Joint autoregressive and hierarchical priors for learned image compression. In Advances in Neural Information Processing Systems, Vol. 31. Cited by: §2.1, §3.2, §3.2.
[31] E. Schwartz, R. Giryes, and A. M. Bronstein (2018) Deepisp: toward learning an end-to-end image processing pipeline. IEEE Transactions on Image Processing 28 (2), pp. 912–923. Cited by: §1.
[32] W. Shi, J. Caballero, F. Huszár, J. Totz, A. P. Aitken, R. Bishop, D. Rueckert, and Z. Wang (2016) Real-time single image and video super-resolution using an efficient sub-pixel convolutional neural network. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 1874–1883. Cited by: §3.2.
[33] K. Tatwawadi, P. Rahimzadeh, Z. Sun, Z. Chen, Z. Yang, S. Nair, D. Hasteer, and O. Rippel (2026) What matters in practical learned image compression. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 12095–12105. Cited by: §2.1.
[34] G. Wang, J. Li, B. Li, and Y. Lu (2023) EVC: towards real-time neural image compression with mask decay. arXiv preprint arXiv:2302.05071. Cited by: §2.1.
[35] K. Wei, Y. Fu, J. Yang, and H. Huang (2020) A physics-based noise formation model for extreme low-light raw denoising. In 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 2755–2764. Cited by: §1.
[36] Y. Yang, R. Bamler, and S. Mandt (2020) Improving inference for neural image compression. Advances in Neural Information Processing Systems 33, pp. 573–584. Cited by: §4.2.
[37] Y. Yang and S. Mandt (2023) Computationally-efficient neural image compression with shallow decoders. In 2023 IEEE/CVF International Conference on Computer Vision (ICCV), pp. 530–540. Cited by: §2.1.
[38] L. D. Young, F. A. Reda, R. Ranjan, J. Morton, J. Hu, Y. Ling, X. Xiang, D. Liu, and V. Chandra (2022) Feature-align network with knowledge distillation for efficient denoising. In 2022 IEEE/CVF Winter Conference on Applications of Computer Vision Workshops (WACVW), pp. 709–718. Cited by: §2.2.
[39] S. W. Zamir, A. Arora, S. Khan, M. Hayat, F. S. Khan, and M. Yang (2022) Restormer: efficient transformer for high-resolution image restoration. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 5728–5739. Cited by: §2.2, §4.1, Table 3.
[40] H. Zeng, J. Li, Z. Zheng, and Z. Xiong (2025) All-in-one image compression and restoration. In 2025 IEEE/CVF Winter Conference on Applications of Computer Vision (WACV), pp. 609–619. Cited by: §2.3.
[41] M. Zhang, S. Majee, C. Wang, S. Lee, and H. Sheikh (2024) Codisp: exploring compressed domain camera isp with rgb-guided encoder. In 2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW), pp. 5878–5888. Cited by: §2.1.
[42] R. Zhang, P. Isola, A. A. Efros, E. Shechtman, and O. Wang (2018) The unreasonable effectiveness of deep features as a perceptual metric. In 2018 IEEE/CVF conference on computer vision and pattern recognition, pp. 586–595. Cited by: §4.1.
[43] T. Zhang, D. Liu, and C. W. Chen (2026) Ultra-low bitrate perceptual image compression with shallow encoder. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 12118–12128. Cited by: §2.1.
[44] Y. Zhang, H. Qin, X. Wang, and H. Li (2021) Rethinking noise synthesis and modeling in raw denoising. In 2021 IEEE/CVF International Conference on Computer Vision (ICCV), pp. 4573–4581. Cited by: §4.1.