Manuscript Offprint
arXiv:2610.24400Spatons: Spatiotonally Localized Building Blocks for Efficient XR Predistortion
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Mohammadjavad Maheronnaghsh
Department of Electrical and Computer Engineering
University of Toronto
mj.maheronnaghsh@mail.utoronto.ca
Sushant Kondguli
Meta Reality Labs
Steve Mann
Department of Electrical and Computer Engineering
University of Toronto
Andreas Moshovos
Department of Electrical and Computer Engineering
University of Toronto
Vector Institute
Abstract
We present Spatons, a family of compositional, spatially localized neural operators for computationally-efficient XR (eXtended reality) predistortion and distortion compensation. XR displays (AR, VR, and MR) suffer from a mix of systematic spatial (e.g., geometrical) and tonal (e.g., colour) distortions. To compensate for these distortions, frames can be pre-reverse-distorted so that the projected frame looks as intended. Since the distortions vary due to manufacturing tolerances and across projection systems, and since many XR systems are untethered and battery operated, a programmable, low energy solution is desirable. Low latency is also desirable to avoid inducing motion sickness. A Spaton is a hybrid patch-to-pixel block that combines tiny Multi-Layer Perceptrons (MLPs) with fixed-function interpolation. Using Spatons as building blocks we demonstrate effective, programmable, and computationally efficient pipelines for a variety of distortion scenarios. On the full spatiotonal Scenario 5, Sequential-5' matches CompenNet++ in SSIM (0.944 versus 0.944) and closely matches it in PSNR (27.5 versus 27.7 dB), while remaining substantially more lightweight. We demonstrate a flexible Spaton solution using 6× fewer FLOPs and 106× fewer parameters vs. CompenNet++, and 4–10× fewer memory transfers vs. UNet++. We characterize several efficient software implementations and analytical hardware estimates of Spaton pipelines along with appropriate optimizations and across several target XR platforms. We consider distortions drawn mostly from see-through, near-eye displays, where the spatial light path directly governs local intensity and spectral response. Testing Spatons on a wider range of real XR devices is left to future work. Accordingly, we present this as an early, systems-level exploration: models are trained and evaluated on closed-form differentiable distortions and one real projector–camera capture set, not through-the-optics measurements. Chromatic dispersion (color fringes) remains the main artifact where Spatons trail the monolithic baselines.
1 Introduction
XR systems (AR, VR (virtual reality), MR (mixed reality), etc.) are moving from niche prototypes to mass-market platforms, yet a persistent obstacle to visual fidelity is distortion introduced by the optical sensing and projection hardware. There are three broad categories of such distortions encountered in practice: (1) Spatial (geometric, topological, warping, local stretching, etc.); (2) Tonal (photometric, radiometric, quantigraphic, or image-based tonescale adjustments, such as pixel quantity or contrast shifts, color casts / color-correction, etc.), and (3) Spatiotonal (e.g., vignetting and spatially-varying color shifts) Mann (1993; 1998; 2000; 2001); Tuan (2006); Ali & Mann (2012); Banterle et al. (2012); Antunes-Santos et al. (2022; 2025). The distortions vary across different hardware and often across different instances of the same hardware due to variations in manufacturing.
The standard remedy is predistortion: apply an inverse transformation to the rendered frame so that the observed image appears correct after passing through the optics. Ideally, the predistortion system would be programmable to allow it to adapt to changes in the projection system and to variations due to manufacturing tolerances. Moreover, it would be low energy allowing deployment even in untethered, battery operated applications. Low latency is also desirable to avoid introducing motion-to-photon latency that induces user nausea Stauffert et al. (2020); Jerald (2009).
Past pre-distortion approaches fall in the following categories: Closed-form parametric approaches are efficient but inherently rigid, and struggle with complex or coupled spatiotonal effects in real deployments. These motivated data-driven methods which repurpose monolithic img2img neural models (e.g., UNet++, CompenNet++ Zhou et al. (2018); Huang & Ling (2019)). They are programmable, enabling adaptation to different projection systems and even device instance variations. Although accurate, a UNet++-Large baseline requires 12.1 GFLOPs and 1392 MB of memory transfers per frame, far exceeding the representative ( 2 W) compute budget of wearable devices and requiring high-performance compute hardware to maintain acceptable latency.
We formulate predistortion as a learned patch-to-pixel transformation: for each output pixel, a small input neighborhood provides the local context needed to compute the corrected output. Based on this formulation, we introduce Spatons, spatial-tonal operators for AR predistortion that reduce compute and memory costs while enabling effective and programmable distortion compensation. A Spaton is a compact, programmable module built around a tiny machine-learning model. This model allows each Spaton to learn and compensate for spatial, tonal, or coupled spatiotonal distortions. Multiple Spatons can be composed into a short pipeline. This compositional structure allows spatial and tonal correction to be optimized separately while still supporting coupled AR distortion pipelines Mann (2000; 2001); Tuan (2006); Chapiro et al. (2024).
Spatons are trained offline for each device using paired undistorted reference frames and their corresponding distorted frames. This allows them to learn the device-specific behavior of the projection subsystem. Because they operate directly on local patches, Spatons avoid the dense intermediate feature maps of conventional image-to-image pipelines, substantially reducing compute and memory-transfer.
Each Spaton is implemented as a tiny multilayer perceptron (MLP), with up to three layers and up to 64 hidden features. A Spaton may predict either (i) a continuous sampling coordinate for spatial correction, or (ii) a local tonal RGB adjustment for photometric, radiometric, or image-based correction. A hardware-friendly fixed-function bilinear interpolation unit performs the final resampling. When distortions are spatiotonally inseparable, specialized Spatons are composed sequentially to provide holistic correction without sacrificing efficiency.
We characterize the performance and costs of measured software implementations and analytically modelled hardware configurations across a variety of distortions and target platforms.
The main contributions of this work are:
-
Compositional local neural architectures: We introduce and characterize a family of tiny MLPs (C-Res and Patch2Pixel-v2 for non-geometric, G-Res and G-Hybrid for spatial distortions) and demonstrate that they can effectively compensate expected distortions while being extremely lightweight in terms of number of operations, memory footprint and memory transfers.
-
Joint spatiotonal correction via composition: We demonstrate that sequential pipelines of 2 models (3.4-10.8K parameters, 0.44-1.41 GFLOPs) match monolithic quality. Our characterization shows that our
Large language models were used for revising code and text.
Sequential-5' pipeline (G-Res→Patch2Pixel-v3) is effective in compensating for a variety of distortion scenarios including tonal, spatial, and spatiotonal ones. Our preferred Sequential-5' pipeline achieves SSIM 0.944 / PSNR 27.5 dB, matches CompenNet++ (0.944 / 27.7 dB) while having 6× fewer FLOPs and 106× fewer parameters vs. CompenNet++, and 4–10× fewer memory transfers vs. UNet++-Large.
-
We evaluate across a diverse set of multiple mixed-distortion scenarios on Images.cv. G-Res achieves average SSIM 0.984 vs. 0.892 for UNet++-Large on five geometric types ( FLOPs); C-Res / Patch2Pixel-v2 match or exceed UNet++-Large photometrically at fewer FLOPs.
-
Implementation Optimizations: Decoupling geometric mapping from color synthesis enables implementing the geometric predistortion model as a lookup table that reduces G-Res inference to operations per pixel (99.99% compute reduction) which is not directly available to conventional img2img architectures because their outputs depend on image content and dense intermediate activations.
-
Video workload characterization. We consider taking advantage of the expected few differences across consecutive frames to reduce how often the MLPs of Spatons need to be invoked, and demonstrate that our lookup-table optimization renders this inter-frame reuse ineffective in practice.
We use “geometric” and “spatial” interchangeably. We use “non-geometric” to denote tonal and spatiotonal distortions that do not involve coordinate warping.
Scope and limitations. This is an early, systems-level study of learnable predistortion. Training and evaluation use closed-form differentiable distortion generators together with one real projector–camera capture set (Sec. F.2). We do not claim through-the-optics validation under real device variation, sensor noise, calibration error, or temporal drift, and we treat these as future work (Sec. 8). While the distortions we study are drawn mostly from see-through, near-eye displays, predistortion is a general distortion-compensation problem, and the Spaton pipeline is not tied to a specific display type: It may therefore be applicable to different XR devices. We evaluate it here using closed-form distortions motivated primarily by see-through displays and one real projector–camera capture set. Testing on physical XR devices, including AR and VR headsets, is left to future work.
Digital compensation and neural predistortion: Early LUT-based (Lookup Table) methods lack flexibility for device-specific or dynamic variations Li et al. (2020). Data-driven approaches such as CompenNet++ Huang & Ling (2019) and UNet++ Zhou et al. (2018) achieve high reconstruction quality by treating compensation as an end-to-end img2img task, but their monolithic architectures require >12 GFLOPs and >1392 MB of memory transfers per frame which is prohibitive for untethered headsets where compute budgets are severely constrained (e.g., <2 W). Existing methods also typically address geometric or photometric correction in isolation Huang & Ling (2019); Li et al. (2020). Our patch-to-pixel framework jointly corrects coupled spatiotonal distortions with substantially less computation and a smaller memory footprint, enabling real-time performance on resource-constrained hardware.
Spatiotonal distortion modeling: We consider a variety of distortions common to XR systems. Fig. 1 presents our taxonomy which is informed by the AR-DAVID dataset Chapiro et al. (2024) and ColorVideoVDP Mantiuk et al. (2024). Tonal (e.g. photometric, radiometric, quantigraphic, image color, etc.) effects such as Waveguide Non-Uniformity (WGNU) from interference patterns and Elevated Black Level from ambient-light mixing, are grounded in comparametric imaging theory Mann (2000); Ali et al. (2013). Spatial (geometric or topological) errors (keystone, fisheye, barrel, mustache) are modeled with established optical formulations Hornacek et al. (2022); Li et al. (2020); Liu et al. (2021); Fitzgibbon (2001). Unlike general corruption benchmarks Hendrycks & Dietterich (2019), we focus strictly on the coupled artifacts intrinsic to near-eye displays. Appendix B (Table 6) lists the distortions considered in this work and how they were modeled.
Synthetic distortion as an evaluation protocol: Training and quantitatively evaluating predistortion on algorithmically generated distortions is established practice when large paired real datasets are unavailable. Blind geometric distortion correction Li et al. (2019), FishEyeRecNet Yin et al. (2018) (which also evaluates on real fisheye images), and QueryCDR Guo et al. (2024) build training and test data from parametric radial/projective models overlapping those in Table 6; Kageyama et al. Kageyama et al. (2024) synthesize geometric distortion and defocus for dynamic projection mapping. The XR display-quality datasets AR-DAVID Chapiro et al. (2024) and XR-DAVID Mantiuk et al. (2024) algorithmically synthesize blur, color fringes, and waveguide non-uniformity, and their perceptual impact was measured on a physical OST-AR testbed. Our geometric models follow the optical formulations cited above. To our knowledge, no prior near-eye XR predistortion work jointly evaluates spatial, tonal, and coupled spatiotonal distortions with a modular, sequentially composed pipeline designed for untethered compute budgets: the closest projector–camera baseline, CompenNet++, uses the parameters and the FLOPs of our Sequential-5' under the common accounting of Table 4.
3 Problem Formulation
The objective of neural predistortion is to find an inverse mapping of the system distortion such that
where is the predistorted input and E is the expected image obtained by resizing the source image I into the system's Region of Interest (ROI) to account for projection fields that exceed the optical combiner's usable area.
Forward Distortion Process: The optical pipeline (light engine + viewing optic) applies n sequential distortion stages:
We assume a priori calibration: the type, order, and strength of each stage are known. This assumption matches the common per-device calibration setting for near-eye displays, where optical correction parameters are estimated during manufacturing or device calibration. Knowing these parameters does not make a closed-form inverse sufficient: the coupled spatiotonal term in Equation 3 is not analytically invertible in general, and per-unit optical variation (constraint (i)) means no single closed-form inverse transfers across devices. The learned predictor absorbs both the coupling and the per-device residual while remaining a fixed-cost per-pixel operation. For our study we initially use this known-distortion setting: we use the calibrated forward model to generate clean/distorted image pairs and train the predistortion model through it. We follow these studies by emulating scenarios where the forward model is not known in closed form. We do so by training the model from image pairs instead, using the two-phase scheme of Section 4.2.
Spatiotonal Coupling and System Constraints: In waveguide-based AR, the spatial light path directly dictates photometric response. A distorted pixel at coordinate is modelled as
where encodes geometric warping (e.g., Fisheye, Keystone) and encodes photometric shifts (e.g., WGNU, Color Fringes). Inverting must satisfy three constraints: (i) Manufacturing variance: per-device calibration is required due to unit-to-unit optical differences; (ii) Hardware envelope: the solution must fit within a typical compute budget to prevent latency-driven motion sickness. A <2 W power budget is used here as a representative envelope; and (iii) Environmental dynamics: tonal distortions such as elevated black level vary with ambient light, requiring real-time adaptation.
XR Spatiotonal Distortion Taxonomy
Spatial
coordinate-domain distortion
Subclasses: geometric, topologic
Examples: shift, rotate, shear; perspective/keystone; radial lens effects: fisheye, barrel/pincushion, mustache
Tonal
pixel-value/response-domain distortion
Subclasses: photometric, radiometric, quantigraphic, image
Examples: exposure, HDR; brightness, contrast, gamma; black-level and white-level shifts
Spatiotonal
position-dependent tonal distortion
Subclasses: spatially varying photometric/radiometric/image effects
Examples: vignetting, blur; optical blur, chromatic aberration, image blur
Figure 1: Taxonomy of XR spatiotonal distortions. Spatial, tonal, and spatiotonal distortions are sibling families acting on coordinates, pixel values, or position-dependent tonal response.

Figure 2: End-to-end training overview.
4 Spatons
Spatons are compact pre-distortion building blocks built around tiny neural networks so that they can be trained to compensate for device-specific distortion characteristics. Section 4.1 describes the Spaton training methodology and Section 4.3 details the various Spatons we considered.
4.1 Training Procedure
A clean source image is passed through model to produce a predistorted frame , which is then subjected to the differentiable distortion pipeline to yield . Gradients are back-propagated through to minimise the discrepancy between and the expected image (Fig. 2). When geometric distortions are present, is defined as the largest axis-aligned square inscribed within the distorted boundary (found in ) and then resized via bilinear interpolation, ensuring the model compensates for both pixel-level distortion and the global ROI mapping. Without geometric distortion, .
Our loss function combines pixel-level fidelity (MSE, Hodson (2022)) with perceptual quality (LPIPS Zhang et al. (2018) with the AlexNet Krizhevsky et al. (2012) backbone):
The dataset and training hyperparameters are detailed in Section 5.1.
4.2 Formula-Agnostic Two-Phase Training
The procedure above back-propagates through a known, differentiable distortion pipeline . Spatons do not require this. When only paired clean/distorted images are available (e.g., real projector–camera captures or a black-box renderer) we train in two phases. In Phase 1 a forward-model network is fit to reproduce
Algorithm 1: Sequential 5': G-Res→ Patch2Pixel-v3
Input: Image ; patch size ; trained weights of and
Intermediate: Image ; geometric correction
Output: predistorted image
// Stage 1: Geometric Correction (G-Res)
1 for each pixel of do
2 // predict sub-pixel source coords
3 ;
4
5
6 end
// Stage 2: Tonal Refinement (Patch2Pixel-v3)
7 for each pixel of do
8
9 // residual
10
11 end
12 return
the distortion from image pairs alone, clean → NN₁ → distorted; NN₁ may be arbitrarily large since it is used only at training time. In Phase 2 we freeze NN₁ and train the compact deployable predistortion model NN₂ through it, clean → NN₂ → NN₁(frozen) → clean. Because gradients flow through the learned NN₁, the true forward process need not be differentiable or known in closed form, while Phase 2 retains a fully differentiable path for training NN₂.
4.3 Spaton Block Architecture
Our framework recasts predistortion as a patch-to-pixel transformation: each output pixel is predicted independently from a small neighbourhood, avoiding the dense intermediate feature maps of img2img pipelines. We propose two composable model families respectively for geometric and non-geometric distortions. Here, we focus on pipelines that apply geometry compensation first, followed by tonal compensation.
Algorithm 1 shows an example of such a pipeline comprising two stages and Fig. 3 shows an example pipeline using our preferred MLPs (described in the next section): G-Res and Patch2Pixel-v3. The first pipeline stage processes the input frame I compensating for geometric distortions producing the intermediate frame . The second stage, processes to compensate for tonal distortions producing the final output frame .
The loop of line 1 implements the first stage. It iterates over the output pixels producing the intermediate frame . For each output pixel the model predicts the input frame coordinates that should be used to generate it (colour values are irrelevant because warping is image-independent). These coordinates are continuous and are used to fetch the four nearest discrete pixels from . Those pixels are used by the fixed-function interpolation unit (lines 4-5) to produce the output pixel. Lines 7-10 implement the second stage. For each output pixel of (the final output frame), it fetches a patch of pixels centered at (for the evaluation we use which we found, empirically, to work well). The coordinates and the pixels (RGB values) are fed as a flattened vector input to this stage's MLP. The MLP produces an RGB pixel that, along with the input pixels, is used to produce the final pixel value at of .
4.3.1 Geometric Distortion Compensation
We evaluate two geometric compensation models. G-Res is a tiny 3-layer residual MLP that maps followed by the bilinear interpolation above (4,482 parameters at ; we also use ), and

Figure 3: The Sequential-5' pipeline: a G-Res geometric predistortion stage followed by a Patch2Pixel-v3 tonal predistortion stage. RGB residuals are normalized to . Data types: int8 = 8-bit integer pixel index; FP32 = 32-bit float; RGB = one 3-channel pixel.
G-Hybrid is a another variant adding a shallow CNN branch. G-Res is the geometric stage of our featured Sequential-5' pipeline. Full descriptions are in Appendix E.
Applying the geometric compensation model produces an intermediate frame which becomes the input to the tonal compensation model.
4.3.2 Tonal models
We evaluate several tonal models, all 3-layer MLPs operating per pixel. All tonal models process pixels independently and ingest spatial coordinates alongside colour values to handle spatially-varying artifacts such as WGNU. C-Res takes a single pixel and predicts a normalized residual ; C-Hybrid adds a shallow CNN branch. The Patch2Pixel family instead ingests a patch: predicts absolute RGB (an ablation of residual learning), predicts a normalized residual with per-pixel coordinates , and reduces the spatial input to center coordinates only , removing inputs with negligible quality loss (Table 3). Patch2Pixel-v3 is the tonal stage of our featured Sequential-5' pipeline. Full descriptions are in Appendix E.
Residual ( ) learning consistently outperforms direct colour prediction, particularly in multi-distortion scenarios. Patch context improves blur correction but offers diminishing returns beyond P=3; P=5 adds cost without meaningful quality gain.
4.4 Implementing Spatial Correction as a LUT
Once the geometry model is trained, it effectively implements a mapping function . This allows us to implement any of them as a lookup table (LUT) which is indexed by and where each entry contains two floating point values. For a output frame, a 64K-entry LUT is sufficient. Each entry contains two FP32 values, resulting in a 512 KB table. This eliminates geometric MLP computation by replacing the network evaluation with a simple table lookup. Lines 1-7 of Algorithm 1 implement this optimization where the lookup table is pre-loaded from precomputed memory.
Implementing functions using a LUT is a standard, widely used implementation method. Our contribution here is the method that learns how to populate the LUT from paired data. This in contrast to typical LUT deployments that use analytic LUT construction. This approach requires a closed-form inverse of the full geometric transformation, which is expected to be unavailable for the unknown or coupled geometric-photometric distortions we target (e.g., Scenario 5). The learned formulation fills the table directly from data whether or not an analytic inverse exists. Monolithic img2img baselines such as CompenNet++ cannot be reduced to a coordinate LUT because their output depends on image content.
4.5 Sequential Composition for Spatiotonal Correction
When geometric and tonal distortions are inseparable, we use a sequence of models. A composition of k models inherits the pixel-independence of its components, so LUT implementation and parallelization remain applicable to each stage. For example, Sequential-3 (G-Res→C-Res→Patch2Pixel-v2) first corrects geometry, then applies a global tonal residual, and finally refines neighbourhood-dependent artefacts. We empirically find that the ordering of stages has negligible impact on quality (e.g., Sequential-3 vs. Sequential-4 reversed have an SSIM difference ≈0.003), suggesting the pipeline is modular and robust to reordering. Appendix C (Table 7) lists combinations of geometric and tonal distortion correction models we considered.
5 Results and Analysis
We first consider single frame pre-distortion and evaluate single-distortion compensation first, then multi-distortion scenarios that simulate real XR pipelines. Unless otherwise noted, the models use h = 64.
5.1 Methodology
Dataset. Images.cv (26k images, , two categories) is our primary benchmark with a 70/15/15% train/val/test split. CelebA-HQ 256 Karras et al. (2017); Liu et al. (2015) (28k faces) provides a zero-shot cross-dataset generalization test; models are evaluated on it without any fine-tuning of the Images.cv-trained weights.
Hyperparameters. To train our models we use AdamW Loshchilov & Hutter (2017) with cosine annealing and warm restarts Loshchilov & Hutter (2016); AMP (automatic mixed precision) Micikevicius et al. (2017) enabled. On Images.cv at : batch 32, lr , min-lr , weight decay , warmup 5 epochs, 100 total epochs.
Evaluation Metrics. We report SSIM (structural similarity index) Wang & Bovik (2002) and PSNR (peak signal-to-noise ratio) for perceptual and signal quality (higher is better), LPIPS (learned perceptual image patch similarity) Zhang et al. (2018) and RMSE (root mean square error) for perceptual and pixel error (lower is better), per-frame MAC (multiply-accumulate) count (one MAC counted as two FLOPs (floating-point operations)) for inference cost, and model parameter count for static memory footprint. All FLOPs are computed for a input and include the MLPs, LUTs, and the fixed-function bilinear interpolation.
5.2 Single Distortion Compensation
We evaluate SSIM and PSNR for the best proposed model against UNet++-Large and CompenNet++ across all single-distortion types; the full per-model, per-distortion breakdown is in Appendix J (Tables 18–21). In the interest of space, we summarize the key takeaways for the single distortion scenarios, and present detailed measurements only for the multi-distortion experiments.
5.2.1 Geometric distortions
G-Res outperforms UNet++-Large on all geometric distortions (full per-distortion measurements in Appendix J, Table 18). For example, for Fisheye it achieves 40.6 dB / SSIM 0.993 vs. 30.3 dB / 0.923 for UNet++-Large (a ≈35% PSNR gain) with 99.93% fewer parameters (4.5K vs. 6.8M) and 95.2% fewer FLOPs (581 MFLOPs vs. 12.1 GFLOPs). G-Res processes (x, y) through a 3-layer MLP (8,862 ops/pixel, 580.78 MFLOPs total, 135.27 MB memory transfers) and is on par with CompenNet++ while enabling LUT caching reducing geometric inference to O(1) per pixel (a 99.99% compute reduction).
5.2.2 Non-geometric (tonal & spatiotonal) distortions
C-Res and Patch2Pixel-v2 (P=3) match or exceed UNet++-Large across most tonal distortions (for example, WGNU and Color Balance; full per-distortion measurements in Appendix J, Tables 19–21), at only 616–967 MFLOPs (vs. 12,129 MFLOPs) and 142–169 MB transfers (vs. 1,392 MB). One application-critical exception is Color Fringes (chromatic aberration), where our best model (0.916 / 29.5 dB) trails both
UNet++-Large (0.941 / 32.3 dB) and CompenNet++ (0.938 / 31.9 dB). Because chromatic dispersion is the dominant artifact in diffractive waveguides, we report this as a known limitation: the per-pixel tonal MLP lacks the multi-scale spatial support a dispersion correction requires, and a wider-context tonal stage is left to future work. C-Res processes 9,398 ops/pixel via its input; Patch2Pixel-v2 (P=3) uses 14,758 ops/pixel, providing the neighbourhood context needed for blur-like artefacts. Negative result: Patch2Patch variants (patch-to-patch output) underperform single-pixel delta models on most distortions and are excluded from Sequential pipelines.
5.3 Multiple Distortion Scenarios
We next evaluate systems with multiple simultaneous distortions. We define five representative scenarios (referred to as “Scenario #” or “Sc. #”): Sc. 1–2 are non-geometric, Sc. 3–4 are geometric, and Sc. 5 is the full spatiotonal mix (ten coupled distortions). The exact distortion composition of each scenario is given in Appendix D (Table 8).
5.3.1 Non-geometric mixed (Scenarios 1–2)
Table 1 shows results for two tonal-only multi-distortion scenarios. Patch2Pixel-v2 (P=3) is the best single-stage model (SSIM 0.857 / 27.4 dB, Scenario 1), matching UNet++-Medium and approaching UNet++-Large / CompenNet++ (SSIM 0.894 / 29.4 dB).
5.3.2 Geometric mixed (Scenarios 3–4)
Table 2 shows results for compound geometric distortions. G-Res maintains near-perfect correction (SSIM ≥0.975) on both scenarios, matching CompenNet++ (0.991 / 0.983) while using >100× fewer parameters.
5.3.3 Spatiotonal-Mixed (Scenario 5)
Table 3 presents our main result. Sequential compositions of pixel-to-pixel models consistently outperform monolithic baselines. Sequential-5' with G-Res (h=64) and Patch2Pixel-v3 (p=3, h=64) achieves SSIM 0.944 / PSNR 27.5 dB, matching CompenNet++ (0.944 / 27.7 dB) at 106× fewer parameters and 6× fewer FLOPs. The lighter Sequential-5' (h=64, 48) reaches SSIM 0.943 / PSNR 27.4 dB with negligible quality loss, and the smallest (h=32) still attains SSIM 0.940 / PSNR 27.2 dB. Ablations Sequential-9/10 (omitting the Patch-based tonal stage) confirm that the patch-based tonal stage is important: SSIM drops to 0.896.
Across all Sequential compositions and hidden dimensions, the ordering of stages has negligible effect on quality (e.g., Sequential-3 vs. Sequential-4 reversed: SSIM difference 0.003), confirming the pipeline's modularity.
5.3.4 Conclusion
For best quality we recommend Sequential-5' with G-Res (h=64) and Patch2Pixel-v3 (h=64): 10.8K parameters, 1,407 MFLOPs, SSIM 0.944 / PSNR 27.5 dB matching CompenNet++ at 6× lower FLOPs and two orders of magnitude fewer parameters. The lighter Patch2Pixel-v3 at h=48 (8.5K parameters, the configuration used in the Section 6; Section 7 studies h=32 and h=64) trades 0.001 SSIM / 0.1 dB PSNR for a noticeable reduction in compute, making it the balanced choice for embedded deployment. The smallest configuration tested, Patch2Pixel-v3 at h=32 (6.7K parameters), still reaches SSIM 0.940 / PSNR 27.2 dB, useful where the parameter budget is tighter than the quality requirement.
5.4 Formula-Agnostic, Real-Data, and Non-Uniform Validation
The training procedure above back-propagates through a known differentiable distortion pipeline, but Spatons do not require one. Using the two-phase scheme of Sec. 4.2 (fit a forward-mimic from image pairs, then train the deployable through the frozen mimic), we validate predistortion in three settings,
Table 1: Non-geometric mixed distortions.
| Model | Sc. 1 | Sc. 2 | ||
|---|---|---|---|---|
| S↑ | P↑ | S↑ | P↑ | |
| Pure XR | .416 | 8.3 | .655 | 17.3 |
| C-Res | .691 | 22.3 | .735 | 21.4 |
| Patch2Pixel-v2 () | .857 | 27.4 | .863 | 23.0 |
| Patch2Pixel-v2 () | .844 | 27.3 | .873 | 23.3 |
| UNet++-Small | .507 | 8.6 | .617 | 19.3 |
| UNet++-Medium | .835 | 27.6 | .840 | 22.9 |
| UNet++-Large | .894 | 29.4 | .888 | 23.5 |
| CompenNet++ | .894 | 29.4 | .870 | 23.3 |
Sc. 1: color balance, Br&Ct, elevated black, vignetting, blur, color fringes. Sc. 2: elevated black, brightness±, contrast, blur, color fringes, vignetting, WGNU.
Table 2: Geometric mixed distortions.
| Model | Sc. 3 | Sc. 4 | ||
|---|---|---|---|---|
| S↑ | P↑ | S↑ | P↑ | |
| Pure XR | .704 | 15.3 | .650 | 14.9 |
| G-Hybrid h=16 | .982 | 35.8 | .968 | 32.9 |
| G-Hybrid | .987 | 37.4 | .974 | 34.8 |
| G-Res | .987 | 37.5 | .975 | 34.9 |
| UNet++-Small | .857 | 24.1 | .834 | 23.7 |
| UNet++-Medium | .877 | 27.1 | .858 | 26.9 |
| UNet++-Large | .914 | 29.2 | .895 | 28.7 |
| CompenNet++ | .991 | 39.1 | .983 | 36.3 |
Sc. 3: keystone + fisheye. Sc. 4: keystone + barrel + fisheye. G-Res leads all UNet++ variants by ≈8 dB PSNR and comes within ≈1.5 dB of CompenNet++ at ≈250× fewer parameters (Table 4).
detailed in Appendix F. (i) On the full spatiotonal Scenario 5, the 8.5K-parameter NN trained through a frozen CompenNet++ mimic reaches 26.59 dB / 0.926 SSIM which is within 0.9 dB of the known-formula upper bound and performs comparably through a tiny Sequential-5' mimic, showing the deployable model does not depend on a hand-derived differentiable pipeline. (ii) On real projector-camera captures Huang & Ling (2019) (lavender_np, 700 pairs), the same network raises the uncorrected baseline (10.3 dB) to 22.23 dB / 0.816 SSIM, a large, stable correction from a network two to three orders of magnitude smaller than the mimic. (iii) Under a spatially non-uniform four-regime operator (keystone/fisheye × blur/contrast), NN recovers a 13 dB baseline to 25.22 dB / 0.915 SSIM in formula mode and up to 28.86 dB / 0.941 SSIM through a frozen learned mimic. Across all three, achievable predistortion is bounded by the invertibility of the forward model rather than its raw fidelity, a smoother learned operator can be easier for a tiny corrector to pre-invert than the exact formulas.
5.5 Higher Resolution Training and Zero-Shot Cross-Dataset Generalization
We evaluate two distinct settings. For the FFHQ image experiments, models are trained directly on FFHQ at 1024 × 1024 and evaluated on Scenarios 2 and 4 to assess higher-resolution performance. Separately, Images.cv-trained models are evaluated zero-shot on CelebA-HQ-256 without fine-tuning for the full spatiotonal Scenario 5. On CelebA-HQ-256, Sequential-5' and Sequential-7' match CompenNet++ (0.948 / 29.1 dB and 0.949 / 29.2 dB versus 0.948 / 29.3 dB). Full results are reported in Appendix H (Tables 14 and 15).
Table 3: Mixed geometric + non-geometric distortions, Scenario 5 (↑higher better, ↓lower better). Full h-sweep, all Sequential compositions, and the complete baseline ladder are in Table 24; Sequential 9/10 ablate the patch-tonal stage.
| Model | SSIM↑ | PSNR↑ | LPIPS↓ | RMSE↓ | |
|---|---|---|---|---|---|
| Pure XR | - | .641 | 14.6 | .635 | .186 |
| Sequential-5' () | 64,64 | .944 | 27.5 | .082 | .043 |
| Sequential-5' () | 64,48 | .943 | 27.4 | .085 | .043 |
| Sequential-5' () | 32,32 | .939 | 27.1 | .091 | .044 |
| Sequential-7' () | 64,64,64 | .944 | 27.6 | .083 | .042 |
| Sequential-9/10 (no patch-tonal) | 64,64 | .896 | 25.8 | .172 | .051 |
| UNet++-Large | - | .868 | 25.8 | .058 | .052 |
| CompenNet++ | - | .944 | 27.7 | .033 | .041 |
Pipeline compositions defined in Table 7. Full pipeline: projector colour artefacts (elevated black, Br±v2, contrast, blur, vignetting) → keystone → glass artefacts (color fringes, WGNU-v2) → barrel + fisheye.
We note that at matched SSIM, Sequential-5' has higher (worse) LPIPS than CompenNet++ (0.082 vs. 0.033, Table 3): the per-pixel tonal stage matches structural and signal fidelity but does not reproduce the
Table 4: Model efficiency summary (3×256×256 input). Full per-model breakdown in Appendix I (Table 17).
| Model | Params | FLOPs (M) | Transfer (MB) | SSIM Sc5 |
|---|---|---|---|---|
| CompenNet++ | 1.15M | 8,526 | 162 | .944 |
| UNet++-Large | 6.83M | 12,129 | 1392 | .868 |
| Sequential-5' (h=32, 32) | 3.4K | 443 | 169 | .939 |
| Sequential-5' (h=64, 64) | 10.8K | 1,407 | 297 | .944 |
deep-feature statistics a convolutional backbone captures. For a predistortion operator judged primarily on geometric and photometric accuracy under a strict compute budget we treat SSIM/PSNR as the operative metrics, and report the LPIPS gap as a known trade-off of the lightweight design.
5.6 Quantization
Since energy and implementation costs are primary concerns in XR, we consider quantization as it can reduce computation and memory costs. Here we study its effect on output quality. We quantize with symmetric, whole-tensor scaling with FP32 scale and bias. We did not study per-group quantization as this would require additional support in hardware and software. We sweep weight bits from 32 down to 4 to find the minimum precision within dB PSNR and 0.01 SSIM of the FP32 baseline, then fix weights and sweep activation bits over the same 32–4 range for (same criterion). Quantization is studied here purely for its effect on output quality; the resource and latency estimates of Sec. 7 assume none of these reduced precisions.
Spatons tolerate low-bit fixed-point quantization with negligible quality loss; per-model weight/activation bits are reported in Appendix L (Table 25).
5.7 Computation and Memory Efficiency Summary
Table 4 provides a concise efficiency comparison. Our single-stage models are cheaper in FLOPs and lower in memory transfers than UNet++-Large. Sequential pipelines add minimal overhead; the recommended Sequential-5' () requires only 443 MFLOPs and 169 MB total memory transfers and over less compute than CompenNet++. In the rest of this work we focus on Sequential-5'.
6 Video Pre-distortion
The preceding sections evaluated Spatons as image-level predistortion operators. AR displays, however, process continuous frame streams. Video introduces temporal coherence: many pixels remain unchanged across adjacent frames. We evaluate whether this can avoid full frame model evaluation by invoking Spatons only for output pixels that may change given the differences across adjacent frames. We exploit this with an inter-frame reverse-cache (lutrevcache) that recomputes only outputs whose source pixels changed; its CSR construction, fan-in statistics, and hardware mapping are in Appendix M.3.
We benchmark the Sequential-5' video pipeline across five targets (RTX 3090/Ryzen 5900X, Jetson Orin Nano Super CPU and iGPU, Raspberry Pi 5) and two datasets (YouTube-UGC Wang et al. (2019), UVG Mercat et al. (2020)), sweeping all nine G-Res×Patch2Pixel-v3 operation modes (Table 26; Appendix M). For these video experiments, we use the Images.cv-trained model weights without video-specific training or fine-tuning. Three findings hold across platforms. First, because G-Res depends only on coordinates, replacing its MLP with a LUT preserves quality (within 0.01 dB PSNR / SSIM) while giving a speedup on CPUs (e.g., ms at UVG-1080 on Ryzen) and on GPUs. Second, once G-Res is a lookup, Patch2Pixel-v3 dominates the workload (95–99% of model compute on CPUs, 47–57% on the RTX 3090), so video predistortion reduces to one content-dependent per-pixel MLP evaluation per output pixel. Third, and contrary to the usual motivation for temporal caching, the inter-frame reverse cache (lutrevcache) helps only in a narrow regime (x86 CPU at with high coherence) and otherwise regresses, adding 124–515% G-Res latency at because the 4.66M-edge CSR walk outweighs the reuse
Table 5: Peak FPS (throughput model above), assuming 16-PE MLP instances with 1 MAC/cycle/PE. Dashes indicate configurations exceeding device resources.
| h | Device (Freq) | N = 1 | N = 2 | N = 4 | N = 8 | N = 16 | N = 32 |
|---|---|---|---|---|---|---|---|
| 32 | Lattice CrossLink-NX (200 MHz) Lattice Semiconductor (2024) | 22.25 | 44.51 | - | - | - | - |
| AMD Zynq ZU3EG (600 MHz) AMD (2025) | 66.76 | 133.52 | 267.04 | 534.08 | 1068.15 | - | |
| 64 | Lattice CrossLink-NX (200 MHz) Lattice Semiconductor (2024) | 7.72 | 15.44 | - | - | - | - |
| AMD Zynq ZU3EG (600 MHz) AMD (2025) | 23.16 | 46.33 | 92.66 | 185.32 | 370.64 | - |
savings; our LUT optimization therefore renders inter-frame reuse ineffective in practice. Quality is numerically portable: within each (dataset, resolution) cell all five targets agree to dB / (Table 27 reports the fastest configuration per target).
7 Analytical Resource and Latency Model
This section estimates the throughput and latency of a hardware implementation of Spatons over several target device platforms. Unlike the measured results of Sec. 6 (real C++/OpenMP/CUDA executions), this section presents a first-order analytical model that estimates throughput and latency from per-frame arithmetic work and published device specifications; a synthesized hardware implementation is left to future work. This section and Appendix N assume FP32 storage and arithmetic throughout for weights, activations, the coordinate lookup table, and all frame buffers and do not apply the reduced precisions of Sec. 5.6: quantization is an orthogonal optimization, and an FP32 baseline keeps these estimates independent of it.
We model a hardware implementation of Sequential-5'. Stage 1 (G-Res) is memory-bound: after LUT substitution, the coordinate table occupies 512 KB and the remaining work is only 1.97 MFLOPs of fixed-function bilinear interpolation. Stage 2 (Patch2Pixel) is compute-bound: N parallel MLP instances process disjoint pixel partitions, allowing throughput to scale with N until device resources are exhausted. Full dataflow (Fig. 6), per-stage resource accounting (Table 52), the FPGA processing-element mapping, and the latency derivation are given in Appendix N.
Peak throughput is estimated from total per-frame arithmetic work, , giving 287.6 MFLOPs (h=32) and 828.8 MFLOPs (h=64) per frame after LUT substitution.
Latency is the end-to-end delay from the first input pixel entering Stage 1 to the last output pixel leaving Stage 2. Unlike throughput, it is directly tied to XR comfort: latencies above 20 ms can become perceptible and contribute to cybersickness, while sub-20 ms is widely used as a comfort target Stauffert et al. (2020); Jerald (2009).
Using the latency model of Appendix N, the Zynq ZU3EG at N=16 and 600 MHz achieves ms, while low-power CrossLink-NX at N=2 and 200 MHz achieves ms. The Zynq ZU3EG thus meets XR latency targets at 1,068 FPS (h=32, N=16); the CrossLink-NX (44 FPS, N=2) is an attractive low-power point despite latency slightly above the 20 ms threshold. The pixel-independent Spaton pipeline therefore spans high-throughput FPGA and very low-power embedded accelerators.
8 Conclusion
This work characterizes Spatons as lightweight building blocks for XR predistortion under controlled, paired-data conditions, using closed-form distortion generators—including constructed spatiotonal couplings—to study correction quality, model cost, and deployment feasibility in a model-matched setting. Spatons efficiently capture spatial, tonal, and coupled distortions while remaining compatible with practical XR constraints. We do not claim through-the-optics validation or perceptual adequacy under real device variation, sensor noise, calibration error, or temporal drift; rather, this establishes a systems-level foundation and workload characterization for efficient learnable predistortion, motivating future validation on measured optical pipelines and perceptual metrics.
We also note that the formula-agnostic two-phase scheme is bounded by the fidelity of its Phase 1 forward mimic: when the mimic cannot fully reproduce the true distortion system, the Phase 2 corrector inherits that error (a 0.9 dB gap to known-formula training on Scenario 5). A fuller discussion of limitations and future work is given in Appendix O.
Broader Impact Statement
This work targets efficient, low-latency distortion correction for XR displays at substantially lower compute and memory cost than monolithic baselines, which is expected to lower energy use on untethered devices and improve viewing comfort; the method is application-specific with little potential for misuse. The same pre-compensation principle has been applied to correcting a viewer's own refractive errors (Huang et al., 2014), where an efficient per-pixel corrector like ours may also be applicable.
References
A. Ali and S. Mann. Computationally efficient HDR. In ICASSP, pp. 913–916. IEEE, 2012.
Mir Adnan Ali, Tao Ai, Akshay Gill, Jose Emilio, Kalin Ovtcharov, and Sebastian Mann. Comparametric HDR (High Dynamic Range) imaging for digital eye glass, wearable cameras, and sousveillance. In ISTAS, pp. 107–114. IEEE, 2013.
AMD. Zynq UltraScale+ MPSoC Data Sheet: Overview, 2025. URL https://docs.amd.com/api/khub/documents/sbPbXcMUiRSJ205STvuGNQ/content.
Felipe Antunes-Santos, Carlos Lopez-Molina, Arnau Mir-Fuentes, Maite Mendioroz, and Bernard De Baets. Content-aware image smoothing based on fuzzy clustering. In International Conference on Information Processing and Management of Uncertainty in Knowledge-Based Systems, pp. 443–454. Springer, 2022.
Felipe Antunes-Santos, Carlos Lopez-Molina, Maite Mendioroz, and Bernard De Baets. Cas-sfcm: Content-aware image smoothing based on fuzzy clustering with spatial information. Journal of Imaging, 11(6):173, 2025.
Francesco Banterle, Massimiliano Corsini, Paolo Cignoni, and Roberto Scopigno. A low-memory, straightforward and fast bilateral filter through subsampling in spatial domain. In Computer Graphics Forum, volume 31, pp. 19–32. Wiley Online Library, 2012.
Alexandre Chapiro, Dongyeon Kim, Yuta Asano, and Rafał K Mantiuk. Ar-david: Augmented reality display artifact video dataset. ACM Transactions on Graphics (TOG), 43(6):1–11, 2024.
Yuqiang Ding, Qian Yang, Yannanqi Li, Zhiyong Yang, Zhengyang Wang, Haowen Liang, and Shin-Tson Wu. Waveguide-based augmented reality displays: perspectives and challenges. eLight, 3(1):24, 2023.
Andrew W Fitzgibbon. Simultaneous linear estimation of multiple view geometry and lens distortion. In Proceedings of the 2001 IEEE Computer Society Conference on Computer Vision and Pattern Recognition. CVPR 2001, volume 1, pp. I–I. IEEE, 2001.
Pengbo Guo, Chengxu Liu, Xingsong Hou, and Xueming Qian. Querycdr: Query-based controllable distortion rectification network for fisheye images. In European Conference on Computer Vision, pp. 266–284. Springer, 2024.
Dan Hendrycks and Thomas Dietterich. Benchmarking neural network robustness to common corruptions and perturbations. arXiv preprint arXiv:1903.12261, 2019.
Timothy O Hodson. Root mean square error (rmse) or mean absolute error (mae): When to use them or not. Geoscientific Model Development Discussions, 2022:1–10, 2022.
Michael Hornacek, Hans Küffner-McCauley, Majesa Trimmel, Patrick Rupprecht, and Sebastian Schlund. A spatial ar system for wide-area axis-aligned metric augmentation of planar scenes. CIRP Journal of Manufacturing Science and Technology, 37:219–226, 2022.
Bingyao Huang and Haibin Ling. Compennet++: End-to-end full projector compensation. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 7165–7174, 2019.
Fu-Chung Huang, Gordon Wetzstein, Brian A Barsky, and Ramesh Raskar. Eyeglasses-free display: towards correcting visual aberrations with computational light field displays. ACM transactions on graphics (TOG), 33(4):1–12, 2014.
Jason J. Jerald. Relating scene-motion thresholds to latency thresholds for head-mounted displays. In IEEE Virtual Reality Conference (VR), pp. 211–218, Lafayette, LA, 2009. doi: 10.1109/VR.2009.4811025.
Yuta Kageyama, Daisuke Iwai, and Kosuke Sato. Efficient distortion-free neural projector deblurring in dynamic projection mapping. IEEE Transactions on Visualization and Computer Graphics, 30(12):7544–7557, 2024.
Tero Karras, Timo Aila, Samuli Laine, and Jaakko Lehtinen. Progressive growing of gans for improved quality, stability, and variation. arXiv preprint arXiv:1710.10196, 2017.
Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. Advances in neural information processing systems, 25, 2012.
Lattice Semiconductor. CrossLink-NX Family Data Sheet, 2024. URL https://www.latticesemi.com/-/media/LatticeSemi/Documents/DataSheets/CrossLink/FPGA-DS-02049-2-1-CrossLink-NX-Family.ashx?document_id=52780.
Haili Li, Haifeng Li, Liang Xu, and Xu Liu. Distortion correction and image registration of ultralarge field of view near-eye display device. Applied Optics, 59(14):4422–4431, 2020.
Xiaoyu Li, Bo Zhang, Pedro V Sander, and Jing Liao. Blind geometric distortion correction on images through deep learning. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 4855–4864, 2019.
Yue Liu, Dewen Cheng, Qiwei Wang, Qichao Hou, Luo Gu, Hailong Chen, Tong Yang, and YongTian Wang. Optical distortion correction considering radial and tangential distortion rates defined by optical design. Results in Optics, 3:100072, 2021.
Ziwei Liu, Ping Luo, Xiaogang Wang, and Xiaoou Tang. Deep learning face attributes in the wild. In Proceedings of the IEEE international conference on computer vision, pp. 3730–3738, 2015.
Ilya Loshchilov and Frank Hutter. Sgdr: Stochastic gradient descent with warm restarts. arXiv preprint arXiv:1608.03983, 2016.
Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. arXiv preprint arXiv:1711.05101, 2017.
Steve Mann. Compositing multiple pictures of the same scene. In IS&T's 46th Annual Conference, pp. 50–52, 1993.
Steve Mann. Headmounted wireless video: computer-supported collaboration for photojournalism and everyday use. IEEE Communications Magazine, 36(6):144–151, 1998.
Steve Mann. Comparametric equations with practical applications in quantigraphic image processing. IEEE transactions on image processing, 9(8):1389–1406, 2000.
Steve Mann. Intelligent Image Processing. John Wiley and Sons, Nov. 2 2001.
Rafal K Mantiuk, Param Hanji, Maliha Ashraf, Yuta Asano, and Alexandre Chapiro. Colorvideovdp: A visual difference predictor for image, video and display distortions. arXiv preprint arXiv:2401.11485, 2024.
Alexandre Mercat, Marko Viitanen, and Jarno Vanne. Uvg dataset: 50/120fps 4k sequences for video codec analysis and development. In Proceedings of the 11th ACM multimedia systems conference, pp. 297–302, 2020.
Paulius Micikevicius, Sharan Narang, Jonah Alben, Gregory Diamos, Erich Elsen, David Garcia, Boris Ginsburg, Michael Houston, Oleksii Kuchaiev, Ganesh Venkatesh, et al. Mixed precision training. arXiv preprint arXiv:1710.03740, 2017.
Jan-Philipp Stauffert, Florian Niebling, and Marc Erich Latoschik. Latency and cybersickness: Impact, causes, and measures. A review. Frontiers in Virtual Reality, 1:582204, 2020. doi: 10.3389/fvir.2020.582204.
Pham Quang Tuan. Spatiotonal adaptivity in super-resolution of under-sampled image sequences. Requirements for the Degree of Doctor, Technische Universiteit Delft, 2006.
Yilin Wang, Sasi Inguva, and Balu Adsumilli. Youtube ugc dataset for video compression research. In 2019 IEEE 21st International Workshop on Multimedia Signal Processing (MMSP), pp. 1–5. IEEE, 2019. doi:10.1109/MMSP.2019.8901772.
Zhou Wang and Alan C Bovik. A universal image quality index. IEEE signal processing letters, 9(3):81–84, 2002.
Jianghao Xiong, En-Lin Hsiang, Ziqian He, Tao Zhan, and Shin-Tson Wu. Augmented reality and virtual reality displays: emerging technologies and future perspectives. Light: Science & Applications, 10(1):216, 2021.
Xiaoqing Yin, Xinchao Wang, Jun Yu, Maojun Zhang, Pascal Fua, and Dacheng Tao. Fisheyerecnet: A multi-context collaborative deep network for fisheye image rectification. In Proceedings of the European conference on computer vision (ECCV), pp. 469–484, 2018.
Richard Zhang, Phillip Isola, Alexei A Efros, Eli Shechtman, and Oliver Wang. The unreasonable effectiveness of deep features as a perceptual metric. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 586–595, 2018.
Zongwei Zhou, Md Mahfuzur Rahman Siddiquee, Nima Tajbakhsh, and Jianming Liang. Unet++: A nested u-net architecture for medical image segmentation. In International workshop on deep learning in medical image analysis, pp. 3–11. Springer, 2018.
Appendix
A Baseline Training Details
UNet++ (all variants) and CompenNet++ were trained and evaluated under identical conditions to our models: the same loss (Eq. 4, MSE + 0.5L₁ + 0.3LPIPS), the same 70/15/15 Images.cv split at 256×256, the same expected-image/ROI target E (Sec. 3), the same distortion pipeline and scenarios, the same AdamW optimizer with cosine annealing and warm restarts and AMP, the same budget (100 epochs, batch 32, lr 10⁻³, min-lr 10⁻⁶, weight decay 10⁻⁴, 5 warmup epochs), and identical validation-based checkpoint selection.
UNet++-Large's weaker geometric performance (Table 2) is architectural, not a training artifact: a dense img2img network must synthesize spatially displaced content through its feature maps, whereas large geometric displacements are more naturally handled by coordinate resampling—the motivation for our separate geometric stage. Consistent with this, UNet++-Large is competitive on tonal scenarios (Appendix J, Table 1) while CompenNet++, which contains a dedicated WarpingNet, performs well on the geometric scenarios (0.991/0.983).
B Distortion Formulas
Table 6: AR distortions.
| Distortion | Formula |
|---|---|
| Spatial | |
| Keystone | Perspective transform. |
| Fisheye | |
| Barrel/Pincushion | ; |
| Mustache | |
| Tonal | |
| Brightness-v1 | |
| Contrast-v1 | |
| Br. & Contrast | |
| Elevated Black | |
| Color Balance | |
| Spatiotonal | |
| Gaussian Blur | |
| Vignetting | |
| WGNU-v1 | |
| WGNU-v2 | |
| WGNU-v3 | Same as v2; |
| Brightness-v2 | |
| Brightness-v3 | Same as v2; ; |
| Contrast-v2 | |
| Contrast-v3 | Same as v2; ; |
| Color Fringes | ; ; |
Notation. are normalized spatial coordinates; ; and are input and output pixel values; indexes RGB channels; are scalar distortion parameters; are the per-image mean and standard deviation of ; are spatial frequency and phase; is the Gaussian standard deviation and its kernel; is a multi-frequency spatial blend pattern; is a fixed-frequency spatial pattern; and maps image statistics to frequency and phase.
C Sequential Model Definitions
Table 7: Sequential model definitions.
| Model | Pipeline Definition |
|---|---|
| Sequential-1 | G-Res Patch2Pixel-v2 () |
| Sequential-2 | Patch2Pixel-v2 () G-Res |
| Sequential-3 | G-Res C-Res Patch2Pixel-v2 () |
| Sequential-4 | C-Res Patch2Pixel-v2 () G-Res |
| Sequential-5 | G-Res Patch2Pixel-v2 () |
| Sequential-5' | G-Res Patch2Pixel-v3 () |
| Sequential-5'' | G-Res Patch2Patch (, ) |
| Sequential-6 | Patch2Pixel-v2 () G-Res |
| Sequential-7 | G-Res C-Res Patch2Pixel-v2 () |
| Sequential-7' | G-Res C-Res Patch2Pixel-v3 () |
| Sequential-7'' | G-Res C-Res Patch2Patch (, ) |
| Sequential-8 | C-Res Patch2Pixel-v2 () G-Res |
| Sequential-9 | G-Res C-Res |
| Sequential-10 | C-Res G-Res |
D Evaluation Scenario Definitions
Table 8: Summary of evaluation scenarios.
| Sc. | Type | Distortions |
|---|---|---|
| 1 | Non-Geometric | Color balance, Brightness (Br)&Contrast (Ct), elev. black, vignetting, blur, color fringes |
| 2 | Non-Geometric | Elev. black, Br±-v2, contrast-v2, blur, color fringes, vignetting, WGNU-v2 |
| 3 | Geometric | Keystone, fisheye |
| 4 | Geometric | Keystone, barrel, fisheye |
| 5 | Spatiotonal | Elev. black, Br±-v2, contrast-v2, blur, vignetting, keystone, color fringes, WGNU-v2, barrel, fisheye |
E Additional Architecture Details
Geometric models
-
G-Res: a tiny 3-layer residual MLP; maps followed by pixel interpolation. We consider hidden dimensions of 64, 32, and 16. For the model has 4482 parameters in total.
-
G-Hybrid: augments G-Res with a shallow CNN branch over a 3×3 coordinate neighbourhood to capture local distortion gradients with marginally higher cost than G-Res.
Tonal models
-
C-Res: 3-layer MLP with residual skip; inputs ; predicts a normalized via a sigmoid-scaled output.
-
C-Hybrid: dual-branch design fusing a single-pixel MLP with a shallow 3-layer CNN branch; provides the strongest per-pixel tonal capacity at higher cost.
-
Patch2Pixel v1: a 3-layer residual MLP that ingests a patch in which each of the pixels carries its RGB values and its own spatial coordinates, giving . Predicts absolute RGB output values directly rather than a residual correction. It is included as an ablation of residual learning. Direct colour prediction consistently underperforms residual () learning, particularly in multi-distortion scenarios where the correction signal is small relative to the input.
-
Patch2Pixel-v2: shares the same 3-layer residual MLP architecture and input as v1, but predicts a normalized residual via a sigmoid-scaled output rather than absolute colours. The per-pixel coordinate embedding lets the model resolve spatially-varying tonal artefacts (e.g. WGNU) while the neighbourhood context handles blur-like distortions.
-
Patch2Pixel v3: a more efficient variant of v2 in which spatial information is reduced to the center coordinates only: , where is the RGB patch. This removes inputs relative to v2 with negligible quality loss (see Table 3), making it the preferred tonal stage in the Sequential pipeline.
Table 9: Two-phase Phase 1: forward-mimic fidelity on Scenario 5 (clean NN distorted).
| NN model | Params | PSNR | SSIM | LPIPS | RMSE |
|---|---|---|---|---|---|
| CompenNet++ | 1,152,147 | 36.94 | .978 | .008 | .014 |
| Sequential-5' () | 10,847 | 28.81 | .948 | .035 | .036 |
Table 10: Two-phase Phase 2 on Scenario 5: predistortion through the frozen NN (clean NN NN clean). NN is Sequential-5', 8.5K params.
| Frozen NN | PSNR | SSIM | LPIPS | RMSE | PSNR vs. Pure-AR |
|---|---|---|---|---|---|
| CompenNet++ | 26.59 | .926 | .110 | .047 | |
| Sequential-5' | 26.66 | .927 | .112 | .047 |
F Formula-Agnostic, Real-Data, and Non-Uniform Validation
F.1 Formula-Agnostic Predistortion (Two-Phase)
We validate the two-phase scheme of Sec. 4.2 on the full spatiotonal Scenario 5. Phase 1 learns the forward operator from clean/distorted pairs (Table 9); a high-capacity CompenNet++ mimic reaches 36.94 dB / 0.978 SSIM. Freezing this learned operator and training only the 8.5K-parameter NN through it (Table 10) yields 26.59 dB / 0.926 SSIM—within 0.9 dB of the known-formula upper bound (27.4 dB / 0.943, same model). Using the tiny Sequential-5' as the frozen mimic instead performs comparably (26.66 dB / 0.927), showing the deployable predistortion model does not depend on a hand-derived differentiable distortion pipeline.
F.2 Real-Data Validation (Projector–Camera Captures)
We run the full two-phase pipeline end-to-end on physically captured data from the CompenNet++ projector–camera benchmark Huang & Ling (2019) (setup light1/pos1/lavender_np: 700 real clean/distorted pairs at 256×256, 70/15/15 split). Phase 1 fits a CompenNet++ forward mimic; the surface-aware variant reaches 23.92 dB / 0.827 SSIM, versus 21.12 dB / 0.742 for the black-surface variant (Table 11). Freezing each mimic and training the 8.5K-parameter Sequential-5' (G-Res Patch2Pixel-v3 ) NN raises the uncorrected pure-AR baseline ( 10.3 dB / 0.49 SSIM) to 22.23 dB / 0.816 and 20.62 dB / 0.781 respectively—a large, stable correction on real captures from a network two to three orders of magnitude smaller than the mimic. Notably, the weaker Phase-1 mimic (black-surface) yields the stronger Phase-2 correction: the more faithful surface-aware mimic reproduces harder-to-invert residual structure, so forward-mimic fidelity and achievable compensation are distinct objectives. Because lavender's distortion is a mild, largely invertible photometric transform, a tiny predistortion network pre-compensates it almost fully; on information-lossy operators (e.g., chroma sub-sampling) NN could not beat the uncorrected baseline, delimiting where predistortion is effective.
F.3 Spatially Non-Uniform, Coupled Distortion
To stress-test predistortion under a spatially heterogeneous operator rather than a single global distortion, we construct a composite degradation that varies across the frame along two axes at once: top/bottom applies keystone vs. fisheye warping, and left/right applies Gaussian blur vs. contrast loss, yielding four corner regimes blended through soft seams. Photometric degradation (strength 0.4) is applied before geometry (strength 0.2), keeping the operator differentiable. The predistortion network NN is a compact Sequential-5' (G-Res Patch2Pixel-v3 , ; 8,511 parameters), with no spatial-conditioning mechanism and no knowledge of the regime boundaries. The pure-AR baseline is measured through each forward operator separately (analytic formulas, or the specific frozen mimic), and ranges 13.01–13.09 dB / 0.555–0.566 SSIM.
Part 1 — Known differentiable operator. Trained in pure formula mode (clean NN AR-formulas clean), NN recovers the uncorrected Pure-AR baseline of 13.09 dB / 0.566 SSIM to 25.22 dB / 0.915 SSIM (LPIPS 0.090, RMSE 0.055): +12.1 dB / +0.348 SSIM (Table 12).
Table 11: Real projector-camera data (lavender_np). Top: Phase-1 forward mimics. Bottom: Phase-2 predistortion through each frozen mimic ( Sequential-5', , 8,511 params).
| Stage | Model | Params | PSNR↑ | SSIM↑ | LPIPS↓ | RMSE↓ |
|---|---|---|---|---|---|---|
| Phase 1: forward mimic | ||||||
| P1 | CompenNet++ (black surface) | 1,152,147 | 21.12 | .742 | .118 | .088 |
| P1 | CompenNet++ (real surface) | 1,152,147 | 23.92 | .827 | .066 | .064 |
| Phase 2: predistortion (NN2 = Sequential-5', 8,511 params) | ||||||
| P2 | Pure AR (no NN2), black | - | 10.28 | .489 | - | - |
| P2 | Pure AR (no NN2), real | - | 10.25 | .487 | - | - |
| P2 | NN2 → frozen black | 8,511 | 22.23 | .816 | .154 | .077 |
| P2 | NN2 → frozen real | 8,511 | 20.62 | .781 | .196 | .093 |
Table 12: Spatially non-uniform four-regime degradation (keystone/fisheye × blur/contrast). Pure-AR is measured through each operator (rows grouped). is Sequential-5', 8,511 params. The frozen-Seq-5' Phase-2 value is 28.865 at 3 dp.
| Mode | Model | Params | PSNR↑ | SSIM↑ | LPIPS↓ | RMSE↓ | ΔPSNR |
|---|---|---|---|---|---|---|---|
| Known operator (analytic formulas) | |||||||
| Pure AR | (uncorrected) | - | 13.09 | .566 | - | - | - |
| Formula | 8,511 | 25.22 | .915 | .090 | .055 | +12.1 | |
| Phase 1: learned forward mimic | |||||||
| Mimic | CompenNet++ | 1,152,147 | 35.96 | .970 | .012 | .016 | - |
| Mimic | Sequential-5' | 10,847 | 23.36 | .872 | .113 | .068 | - |
| Phase 2: predistortion through frozen mimic | |||||||
| Pure AR | through CompenNet++ | - | 13.09 | .561 | - | - | - |
| Two-phase | 8,511 | 24.78 | .890 | .097 | .058 | +11.7 | |
| Pure AR | through Sequential-5' | - | 13.01 | .555 | - | - | - |
| Two-phase | 8,511 | 28.86 | .941 | .054 | .036 | +15.9 | |
Part 2 — Learned formula-agnostic operator. Removing the formula assumption, Phase 1 mimics the same non-uniform degradation from image pairs alone: CompenNet++ (1,152,147 params) reaches 35.96 dB / 0.970 SSIM and the smaller Sequential-5' (10,847 params) 23.36 dB / 0.872 SSIM. Freezing each mimic and training through it, predistortion reaches 24.78 dB / 0.890 SSIM through the frozen CompenNet++ operator (+11.7 dB; within 0.44 dB of the Part-1 formula-mode upper bound) and 28.86 dB / 0.941 SSIM through the frozen Sequential-5' operator (+15.9 dB, exceeding the formula-mode bound by dB). The latter, initially counterintuitive, result reinforces Sec. F.2: a smoother learned operator is easier for a tiny corrector to pre-invert than the exact, harsh four-regime formulas—achievable predistortion is bounded by the invertibility of the forward model, not merely its fidelity.
G Qualitative Results: Scenario 5 Visual Comparison
Figure 4 presents a qualitative comparison of all evaluated models on a representative sample from the Scenario 5 test set (full spatiotonal pipeline: geometric + non-geometric distortions). Each row shows the original/pre-distorted image fed to the model, the output of the XR system before and after ROI cropping, and the absolute difference map between the corrected output and the expected image. The pure XR system row establishes the baseline distortion magnitude, where strong geometric warping and tonal artifacts are clearly visible across the entire frame. The absolute difference maps confirm the quantitative rankings reported in Table 3: Sequential 5' and Sequential 7' produce visibly cleaner outputs than UNet++-Large despite using orders of magnitude fewer parameters, while CompenNet++ remains the strongest baseline with the lowest residual error. Notably, the Sequential models show competitive perceptual quality in the After-ROI column despite their dramatic efficiency advantage, with residual errors concentrated primarily at fine structural edges rather than broad tonal regions.
Original Image / Pre-distorted Image
Pure XR System
Output of XR System (Before ROI)

Output of XR System (After ROI)
Absolute Difference
Sequential 3
Sequential 5
Sequential 7
Unet++-Large
Compennet++
Figure 4: Qualitative comparison of distortion compensation models under the full spatiotonal Scenario 5 pipeline, as mentioned in the paper. Each row corresponds to one model. Columns show: (1) the original/pre-distorted image input to the model, (2) the XR system output before ROI cropping, (3) the XR system output after ROI cropping (the quantity measured by all metrics), and (4) the absolute pixel difference between the corrected output and the expected image, where brighter regions indicate larger residual error. All difference maps share the same [0, 0.30] colormap scale.
H Applicability on higher resolution and other Datasets
Tables 14 and 15 report two distinct evaluation settings. Table 14 evaluates models trained directly on FFHQ at for Scenarios 2 and 4, using the hyperparameters listed in Table 13. Table 15 evaluates
Images.cv-trained models zero-shot on CelebA-HQ-256 without fine-tuning for the full spatiotonal Scenario 5. These experiments assess higher-resolution training and cross-dataset generalization, respectively.
Table 13: Hyperparameters of the FFHQ experiments. The rest of the hyperparameters are the same as the Images.cv dataset.
| Hyperparameter | Value |
|---|---|
| Batch size | 3 |
| Restart period | 6 epochs |
| Warmup epochs | 3 |
| Training epochs | 30 |
| Dataset fraction | 50% of FFHQ dataset |
Table 14: FFHQ higher-resolution training results for Scenarios 2 and 4. Models are trained directly on FFHQ at using the hyperparameters in Table 13. Values show improvement over baseline. Best in bold, second-best underlined.
| Model | Scenario 2 (Non-Geo) | Scenario 4 (Geo) | ||
|---|---|---|---|---|
| S↑ | P↑ | S↑ | P↑ | |
| Pure XR | .676 | 17.7 | .744 | 15.2 |
| G-Res (h=64) | - | - | .985 (+.241) | 40.5 (+25.4) |
| G-Res (h=256) | - | - | .986 (+.242) | 41.0 (+25.8) |
| Patch2Pixel-v2 (p=3, h=64) | .743 (+.066) | 22.6 (+4.97) | - | - |
| Patch2Pixel-v2 (p=3, h=256) | .736 (+.060) | 22.8 (+5.11) | - | - |
| UNet++ - Large | .874 (+.198) | 25.3 (+7.62) | - | - |
| CompenNet++ | .890 (+.213) | 26.0 (+8.38) | .991 (+.247) | 41.1 (+26.0) |
Abbreviations: S = SSIM, P = PSNR (dB). Note: Scenario 2 = non-geometric distortions only; Scenario 4 = geometric distortions only. Distortion details and sequential model compositions are identical to those described in the paper.
Table 15: Mixed Geometric and Non-Geometric Distortions on CelebA-HQ-256 (↑ higher is better, ↓ lower is better). Models pretrained on Images.cv dataset, evaluated on CelebA-HQ-256 to assess generalization. Values show improvement over baseline. Best in bold, second-best underlined. Distortions are identical to those in Scenario 5 of the paper.
| Model | CelebA-HQ-256 Generalization | |||
|---|---|---|---|---|
| S↑ | P↑ | L↓ | R↓ | |
| Pure XR | .644 | 14.9 | .565 | .179 |
| Sequential 1 | .947+.303 | 29.0+14.1 | .052-.513 | .035-.144 |
| Sequential 2 | .946+.302 | 28.9+14.0 | .060-.505 | .036-.143 |
| Sequential 3 | .947+.303 | 29.1+14.2 | .048-.517 | .035-.144 |
| Sequential 4 | .946+.302 | 29.0+14.1 | .057-.508 | .035-.144 |
| Sequential 5 | .948+.304 | 29.1+14.2 | .066-.499 | .035-.144 |
| Sequential 6 | .946+.302 | 28.9+14.0 | .073-.492 | .036-.143 |
| Sequential 7 | .949+.305 | 29.2+14.3 | .064-.501 | .035-.144 |
| Sequential 8 | .948+.304 | 29.1+14.2 | .070-.495 | .035-.144 |
| Sequential 9 | .906+.262 | 27.1+12.2 | .149-.416 | .044-.135 |
| Sequential 10 | .905+.261 | 27.1+12.2 | .149-.416 | .044-.135 |
| Unet++ - Small | .814+.170 | 22.9+8.0 | .150-.415 | .072-.107 |
| Unet++ - Medium | .854+.210 | 25.9+11.0 | .077-.488 | .050-.129 |
| Unet++ - Large | .888+.244 | 27.3+12.4 | .055-.510 | .043-.136 |
| CompenNet++ | .948+.304 | 29.3+14.4 | .032-.533 | .034-.145 |
Abbreviations: S = SSIM, P = PSNR (dB), L = LPIPS (lower is better, shown as negative improvement), R = RMSE (lower is better, shown as negative improvement).
Note: All models were trained on Images.cv dataset and evaluated on CelebA-HQ-256 without fine-tuning to assess cross-dataset generalization. Sequential model compositions are identical to those in the paper. Sequential 9 and 10 demonstrate the importance of complete pipelines by omitting photometric correction models.
Table 16: Base Component Rules for FLOPs, Memory Reads, and Memory Writes Notation:
- , ,
- , ,
- ,
Output Dimension Formulas (all divisions are integer division ):
- Conv2d:
- TransConv2d:
- MaxPool/AvgPool: (default stride = )
| Component | Input/Output Dims | FLOPs | Memory Reads (bytes) | Memory Writes (bytes) |
|---|---|---|---|---|
| Conv2d | ||||
| TransConv2d | ||||
| Linear | ||||
| BatchNorm | ||||
| ReLU | ||||
| LeakyReLU | ||||
| Sigmoid | ||||
| Tanh | ||||
| Clamp | ||||
| Scale | ||||
| GridSample (Interpolation) | ||||
| MaxPool | ||||
| AvgPool | ||||
| Concat | ||||
| Add | ||||
| Multiply | ||||
| Upsample (bilinear) | ||||
| Upsample (nearest) | ||||
| Patch Extract | ||||
| Coordinate Gen | ||||
| Identity |
Notes:
-
All memory values in bytes (float32 = 4 bytes). Divide by 1,048,576 for MB.
-
Biases are excluded from all calculations.
-
All calculations assume inference mode (BatchNorm uses running_mean/var, not computed).
-
BatchNorm reads: .
-
GridSample and Patch Extract use fixed (RGB) as they operate on image input/output.
-
Patch Extract writes values per Pixel. For Win models (Patch2Pixel (v2)/Win/Act), coordinates are generated implicitly (0 memory) and the Linear layer combines Patches + coords into input features.
I Memory and Compute Costs
Table 16 defines the component-level rules used to compute FLOPs, memory reads, and memory writes for every architectural primitive used in this work, ensuring full reproducibility of all efficiency numbers reported in the paper. Table 17 applies these rules to report the total parameters, FLOPs, and memory bandwidth for all models evaluated, including both baselines and proposed architectures. Together, these tables substantiate the efficiency claims in Section 5.7, showing that our sequential models require fewer FLOPs and less memory bandwidth than UNet++-Large, while matching its quality or exceeding it.
J Detailed Single-Distortion Results
The paper reports only the best-performing model per distortion type. Here we provide the full results for all models across all single distortions. Table 18 covers the five geometric distortions (Keystone, Fisheye,
Table 17: Model Summary: FLOPs, Memory, and Parameters
| Model | Parameters | Size (MB) | Total FLOPs | Reads (MB) | Writes (MB) | Transfer (MB) |
|---|---|---|---|---|---|---|
| Baseline Models | ||||||
| CompenNet++ | 1,152,147 | 4.40 | 8,525,512,704 | 85.16 | 77.25 | 162.41 |
| UNet++ Large | 6,825,011 | 26.04 | 12,129,370,112 | 723.35 | 669.12 | 1392.48 |
| UNet++ Small | 2,552,561 | 9.74 | 5,606,285,312 | 652.91 | 625.53 | 1278.44 |
| UNet++ Medium | 3,241,487 | 12.37 | 6,358,827,008 | 666.36 | 634.25 | 1300.61 |
| Single-Stage Models | ||||||
| C-Pixel2Pixel (h=64) | 4,757 | 0.02 | 615,907,328 | 72.52 | 69.25 | 141.77 |
| G-Res (h=64) | 4,482 | 0.02 | 580,780,032 | 68.52 | 66.75 | 135.27 |
| G-Hybrid (h=16) | 1,118 | 0.00 | 144,572,416 | 31.00 | 28.75 | 59.75 |
| G-Hybrid (h=64) | 7,150 | 0.03 | 927,858,688 | 87.03 | 84.75 | 171.78 |
| C-Hybrid (h=16) | 1,437 | 0.01 | 184,614,912 | 33.76 | 30.00 | 63.76 |
| C-Hybrid (h=64) | 7,885 | 0.03 | 1,022,427,136 | 89.78 | 86.00 | 175.78 |
| Patch2Pixel-v1 (h=64, p=3) | 7,437 | 0.03 | 966,590,464 | 90.28 | 73.75 | 164.03 |
| Patch2Pixel-v1 (h=64, p=5) | 12,797 | 0.05 | 1,669,136,384 | 130.30 | 85.75 | 216.05 |
| Patch2Pixel-v2 (h=64, p=3) | 7,437 | 0.03 | 967,180,288 | 93.28 | 76.00 | 169.28 |
| Patch2Pixel-v2 (h=64, p=5) | 12,797 | 0.05 | 1,669,726,208 | 133.30 | 88.00 | 221.30 |
| Patch2Pixel-v3 (h=64, p=3) | 6,365 | 0.02 | 826,671,104 | 85.27 | 76.00 | 161.27 |
| Patch2Pixel-v3 (h=64, p=5) | 9,581 | 0.04 | 1,248,198,656 | 109.29 | 88.00 | 197.29 |
| Multi-Stage Models (Sequential models, see the sequential model details) | ||||||
| Sequential 1/2 (h=64) | 17,279 | 0.07 | 2,250,506,240 | 201.81 | 154.75 | 356.56 |
| Sequential 3/4 (h=64) | 22,036 | 0.08 | 2,866,413,568 | 274.33 | 224.00 | 498.33 |
| Sequential 5/6 (h=64) | 11,919 | 0.05 | 1,547,960,320 | 161.79 | 142.75 | 304.54 |
| Sequential 7/8 (h=64) | 16,676 | 0.06 | 2,163,867,648 | 234.31 | 212.00 | 446.31 |
| Sequential 9/10 (h=64) | 9,239 | 0.04 | 1,196,687,360 | 141.03 | 136.00 | 277.03 |
| Sequential 5 (h=32) | 3,847 | 0.01 | 516,161,536 | 97.76 | 78.75 | 176.51 |
| Sequential 5 (h=16) | 1,479 | 0.01 | 201,588,736 | 65.76 | 46.75 | 112.51 |
| Sequential 7 (h=32) | 5,142 | 0.02 | 691,666,944 | 138.27 | 116.00 | 254.27 |
| Sequential 7 (h=16) | 1,878 | 0.01 | 57,556,480 | 90.26 | 68.00 | 158.26 |
| Sequential 5' (h=64) | 10,847 | 0.04 | 1,407,451,136 | 153.79 | 142.75 | 296.54 |
| Sequential 5' (h=32) | 3,423 | 0.01 | 442,761,216 | 89.76 | 78.75 | 168.51 |
| Sequential 5" (h=64) | 36,567 | 0.14 | 1,054,283,660 | 94.99 | 89.37 | 184.36 |
| Sequential 7' (h=64) | 15,604 | 0.06 | 2,023,358,464 | 226.31 | 212.00 | 438.31 |
| Sequential 7' (h=32) | 4,788 | 0.02 | 618,266,624 | 130.27 | 116.00 | 246.27 |
| Sequential 7" (h=64) | 41,324 | 0.16 | 1,670,190,988 | 167.50 | 158.62 | 326.12 |
-
Input: RGB image. Output: (same size).
-
Size (MB) = Parameters × 4 bytes / 1,048,576.
-
Transfer = Reads + Writes (total memory bandwidth).
-
h = hidden dimension, p = Patch size.
-
Sequential models chain multiple single-stage models; configurations detailed in the paper.
-
Seq5 = G-Res → Patch2Pixel-v2 (p=3); Seq7 = G-Res → C-Pixel2Pixel → Patch2Pixel-v2 (p=3).
Pincushion, Barrel, Mustache). Table 19 covers non-geometric distortions including all three WGNU variants, Color Balance, Elevated Black Level, Blur, Color Fringes, Vignetting, and Brightness & Contrast. Table 20 provides the full breakdown of all Brightness variants (v1/v2/v3, increase/decrease). Table 21 provides the full breakdown of all Contrast variants (v1/v2/v3, increase/decrease). These tables also include negative results — notably the Patch2Patch variants — which consistently underperform single-pixel delta models and are therefore excluded from the recommended sequential pipelines.
K Detailed Multi-Distortion Results
Tables 22 and 23 report the full model comparison for the non-geometric mixed scenarios (Scenarios 1–2) and geometric mixed scenarios (Scenarios 3–4) respectively, complementing the summary results in the paper. Table 24 gives the complete Scenario 5 ablation across all Sequential compositions and hidden dimensions.
Table 18: Geometric Distortions Performance (↑ higher is better, ↓ lower is better).
| Model | Keystone | Fisheye | Pincushion | Barrel | Mustache | |||||
|---|---|---|---|---|---|---|---|---|---|---|
| S↑ | P↑ | S↑ | P↑ | S↑ | P↑ | S↑ | P↑ | S↑ | P↑ | |
| Pure XR | .541 | 13.2 | .648 | 15.5 | .479 | 14.3 | .569 | 16.1 | .516 | 14.7 |
| G-Hybrid - H=16 | .979+.438 | 35.3+22.1 | .990+.342 | 38.4+23.0 | .821+.342 | 23.7+9.4 | .990+.421 | 38.7+22.6 | .983+.467 | 36.5+21.8 |
| G-Hybrid - H=64 | .987+.446 | 38.1+24.9 | .993+.345 | 40.4+25.0 | .958+.479 | 32.5+18.2 | .992+.423 | 39.7+23.6 | .988+.472 | 38.8+24.2 |
| G-Res | .987+.446 | 38.2+25.0 | .993+.345 | 40.6+25.1 | .958+.479 | 32.5+18.2 | .992+.423 | 39.7+23.7 | .988+.472 | 39.0+24.3 |
| unet++ - Small | .785+.244 | 22.7+9.5 | .850+.202 | 23.8+8.4 | .726+.247 | 21.2+6.9 | .857+.288 | 23.5+7.4 | .794+.278 | 22.6+7.9 |
| unet++ - Medium | .820+.279 | 25.5+12.3 | .875+.227 | 27.5+12.1 | .775+.296 | 25.3+11.0 | .898+.329 | 29.2+13.1 | .831+.315 | 27.0+12.3 |
| unet++ - Large | .867+.326 | 28.2+14.9 | .923+.275 | 30.3+14.8 | .833+.354 | 27.1+12.8 | .938+.369 | 31.6+15.5 | .901+.385 | 29.7+15.1 |
| compennet++ | .990+.449 | 39.3 +26.1 | .994+.346 | 41.4+25.9 | .957+.478 | 32.1+17.8 | .993+.424 | 40.4+24.3 | .991+.475 | 39.8+25.1 |
Table 19: Non-Geometric Distortions Part 1: WGNU Variations and Basic Distortions ( higher is better, lower is better).
| Model | WG-v1 | WG-v2 | WG-v3 | ColBal | ElevBlk | Blur | ColFrg | Vign | Br&Ct | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| S↑ | P↑ | S↑ | P↑ | S↑ | P↑ | S↑ | P↑ | S↑ | P↑ | S↑ | P↑ | S↑ | P↑ | S↑ | P↑ | S↑ | P↑ | |
| Pure XR | .996 | 34.4 | .984 | 25.4 | .976 | 23.4 | .922 | 17.8 | .971 | 29.5 | .823 | 26.5 | .746 | 22.6 | .955 | 18.5 | .492 | 9.4 |
| C-Hybrid - H=16 | .980-.016 | 29.4±5.0 | .969-.015 | 27.8±2.4 | .963-.013 | 24.7±1.3 | .991+.069 | 41.5±23.7 | .974+.003 | 35.4±5.9 | .869+.046 | 27.0±0.5 | .802+.056 | 24.3±1.7 | .945-.010 | 20.9±2.4 | .329-.163 | 4.5±4.9 |
| C-Hybrid - H=64 | .986-.010 | 34.8±0.4 | .975-.009 | 29.8±4.4 | .971-.005 | 24.8±1.4 | .996+.074 | 47.7±29.9 | .980+.009 | 39.1±9.6 | .875+.052 | 27.3±0.8 | .841+.095 | 26.3±3.7 | .956+.001 | 22.6±4.1 | .329-.163 | 4.5±4.9 |
| Patch2Pixel (v1) - P=3 | .986-.010 | 34.3±0.1 | .986+.002 | 33.8±8.4 | .978+.002 | 25.2±1.8 | .999+.077 | 52.6±34.8 | .979+.008 | 38.1±8.6 | .876+.053 | 27.1±0.6 | .800+.054 | 24.9±2.3 | .961+.006 | 22.9±4.4 | .329-.163 | 4.5±4.9 |
| Patch2Pixel (v1) - P=5 | .989-.007 | 35.4±1.0 | .994+.010 | 35.5±10.1 | .977+.001 | 25.2±1.8 | .998+.076 | 52.5±34.7 | .984+.013 | 41.4±11.9 | .873+.050 | 26.9±0.4 | .876+.130 | 28.0±5.4 | .968+.013 | 23.1±4.6 | .329-.163 | 4.5±4.9 |
| C-Pixel2Pixel | .999+.003 | 44.5±10.1 | .996+.012 | 37.0±11.6 | .975-.001 | 23.6±0.2 | 1.00+.078 | 84.2±66.4 | .986+.015 | 43.0±13.5 | .832+.009 | 27.1±0.6 | .743-.003 | 22.6±0 | .970+.015 | 23.3±4.8 | .999+.507 | 57.7±48.3 |
| Patch2Pixel (v2) - P=3 | .999+.003 | 44.7±10.3 | .996+.012 | 37.1±11.7 | .976+.0 | 23.6±0.2 | 1.00+.078 | 67.1±49.3 | .986+.015 | 42.7±13.2 | .889+.066 | 27.9±1.4 | .848+.102 | 25.8±3.2 | .972+.017 | 23.2±4.7 | .997+.505 | 49.1±39.7 |
| Patch2Pixel (v2) - P=5 | .998+.002 | 44.3±9.9 | .996+.012 | 37.0±11.6 | .976+.0 | 25.2±1.8 | .999+.077 | 66.2±48.4 | .986+.015 | 42.7±13.2 | .886+.063 | 27.8±1.3 | .916+.170 | 29.5±6.9 | .976+.021 | 23.2±4.7 | .995+.503 | 47.2±37.8 |
| Patch2Patch (h=32, p_in=5, p_out=3) | .996+.000 | 40.0±5.6 | .989+.005 | 34.2±8.8 | .975-.001 | 23.6±0.2 | .953+.031 | 30.2±12.4 | .984+.013 | 40.6±11.1 | .794-.029 | 25.7±0.8 | .706-.040 | 22.6±0.0 | .959+.004 | 22.9±4.4 | .465-.027 | 15.6±6.2 |
| Patch2Patch (h=64, p_in=5, p_out=3) | .997+.001 | 42.0±7.6 | .990+.006 | 34.8±9.4 | .975-.001 | 23.6±0.2 | .954+.032 | 30.3±12.5 | .984+.013 | 40.5±11.0 | .798-.025 | 25.9±0.6 | .711-.035 | 22.7±0.1 | .960+.005 | 22.9±4.4 | .468-.024 | 15.6±6.2 |
| Patch2Patch (h=128, p_in=5, p_out=3) | .997+.001 | 41.7±7.3 | .990+.006 | 34.9±9.5 | .975-.001 | 23.6±0.2 | .954+.032 | 30.3±12.5 | .984+.013 | 40.6±11.1 | .798-.025 | 25.9±0.6 | .710-.036 | 22.7±0.1 | .961+.006 | 22.9±4.4 | .465-.027 | 15.7±6.3 |
| Patch2Patch (h=256, p_in=5, p_out=3) | .997+.001 | 42.6±8.2 | .990+.006 | 34.9±9.5 | .975-.001 | 23.6±0.2 | .955+.033 | 30.3±12.5 | .985+.014 | 40.6±11.1 | .800-.023 | 25.9±0.6 | .712-.034 | 22.8±0.2 | .960+.005 | 22.9±4.4 | .469-.023 | 15.7±6.3 |
| Patch2Pixel (v3) (h=64, p=3) | .999+.003 | 44.5±10.1 | .996+.012 | 37.1±11.7 | .975-.001 | 23.6±0.2 | 1.00+.078 | 72.2±54.4 | .986+.015 | 42.7±13.2 | .883+.060 | 27.7±1.2 | .850+.104 | 25.9±3.3 | .972+.017 | 23.2±4.7 | .998+.506 | 50.2±40.8 |
| unet++ - Small | .820-.176 | 22.2±1.2 | .816-.168 | 22.0±3.4 | .832-.144 | 20.5±2.9 | .881-.041 | 22.8±5.0 | .813-.158 | 22.1±7.4 | .786-.037 | 24.1±2.4 | .607-.139 | 19.9±2.7 | .819-.136 | 19.8±1.3 | .801+.309 | 21.8±12.4 |
| unet++ - Medium | .920-.076 | 28.5±5.9 | .917-.067 | 27.9±2.5 | .892-.084 | 23.0±0.4 | .967+.045 | 35.7±17.9 | .905-.066 | 28.1±1.4 | .872+.049 | 27.7±1.2 | .800+.054 | 25.4±2.8 | .905-.050 | 22.1±3.6 | .941+.449 | 27.3±17.9 |
| unet++ - Large | .983-.013 | 37.8±3.4 | .981-.003 | 34.5±9.1 | .964-.012 | 24.4±1.0 | .984+.062 | 39.2±21.4 | .972+.001 | 37.5±8.0 | .888+.065 | 28.2±1.7 | .941+.195 | 32.3±9.7 | .956+.001 | 23.0±4.5 | .988+.496 | 40.3±30.9 |
| compennet++ | .996+.0 | 42.4±8.0 | .989+.005 | 35.5±10.1 | .950-.026 | 23.4±0 | .999+.077 | 52.1±34.3 | .985+.014 | 41.9±12.4 | .890+.067 | 28.2±1.7 | .938+.192 | 31.9±9.3 | .952-.003 | 22.9±4.4 | .999+.507 | 50.8±41.4 |
Abbreviations: WG = WGNU (Waveguide Non-Uniformity), ColBal = Color Balance, ElevBlk = Elevated Black Level, ColFrg = Color Fringes, Vign = Vignetting, Br&Ct = Brightness & Contrast, v1/v2/v3 = variation 1/2/3
L Quantization Analysis
Table 25 reports the full quantization sweep results summarized in Section 5.6. For each model, we sweep weight precision from 32 down to 4 bits to identify the minimum weight precision within dB PSNR and 0.01 SSIM of the FP32 baseline. Weights are then fixed at and activation precision is swept over the same 32–4 range, under the same criterion, to find . Results confirm that the framework is well-suited to fixed-point hardware: 14-bit weights with 12-bit activations is near-lossless across all models (largest deviation dB PSNR), and Sequential-5' tolerates 10-bit weights with 12-bit activations at less than 0.01 dB PSNR loss.
M Video Workload Characterization
This appendix provides the complete supporting material for the video workload extension of Section 6: pipeline and resolution generalization, the runtime design space, dataset construction, hardware platforms, the full OpenMP calibration (search ranges, workload, per-experiment winners), all ten nine-mode per-experiment result tables, the cross-cutting analyses summarized in the main text, and threats to validity. All numbers are taken from completed per-run summary.csv files; only and the quality columns are reported (harness wall-clock / synthetic FPS are not deployment-relevant and are omitted).
M.1 Pipeline, Stages, and Resolution Generalization
The video pipeline is the Sequential 5' composition: a G-Res geometric stage (2→64→64→2 MLP with an identity residual, 4,482 parameters) producing a per-pixel warp grid consumed by a bilinear resample (border, align_corners); followed by a Patch2Pixel-v3 tonal stage (29→48→48→3 MLP with a learned linear residual projection, 4,029 parameters). The 29-D Patch2Pixel-v3 feature is (x, y) plus the centre RGB plus the 24 RGB values of the eight reflect-padded 3×3 neighbours (P=3); the output is sigmoid-scaled to [-2, 2], added to the centre pixel, and clamped to [0, 1]. Total: 8,511 float32 parameters.
Table 20: Non-Geometric Distortions Part 2: Brightness Variations (↑ higher is better, ↓ lower is better).
| Model | Br- v1 | Br+ v1 | Br- v2 | Br+ v2 | Br± v2 | Br- v3 | Br+ v3 | Br± v3 | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| S↑ | P↑ | S↑ | P↑ | S↑ | P↑ | S↑ | P↑ | S↑ | P↑ | S↑ | P↑ | S↑ | P↑ | S↑ | P↑ | |
| Pure XR | .514 | 11.5 | .752 | 11.3 | .862 | 19.9 | .927 | 19.9 | .887 | 20.4 | .851 | 19.4 | .923 | 19.4 | .896 | 20.4 |
| C-Hybrid (h = 16) | .942+.428 | 20.3+.8.8 | .853+.101 | 20.1+.8.8 | .946+.084 | 25.6+.5.7 | .943+.016 | 25.5+.5.6 | .884-.003 | 21.0+.0.6 | .943+.092 | 24.6+.5.2 | .943+.020 | 25.2+.5.8 | .872-.024 | 20.0-.0.4 |
| C-Hybrid (h = 64) | .948+.434 | 20.3+.8.8 | .853+.101 | 20.1+.8.8 | .964+.102 | 27.7+.7.8 | .948+.021 | 27.0+.7.1 | .908+.021 | 22.9+.2.5 | .944+.093 | 24.9+.5.5 | .944+.021 | 25.2+.5.8 | .878-.018 | 20.5+.0.1 |
| Patch2Pixel-v1 (p = 3) | .943+.429 | 20.4+.8.9 | .852+.100 | 20.1+.8.8 | .978+.116 | 29.9+.10.0 | .962+.035 | 31.2+.11.3 | .966+.079 | 29.3+.8.9 | .948+.097 | 25.0+.5.6 | .948+.025 | 25.7+.6.3 | .881-.015 | 20.5+.0.1 |
| Patch2Pixel-v1 (p = 5) | .951+.437 | 20.3+.8.8 | .857+.105 | 20.1+.8.8 | .984+.122 | 30.9+.11.0 | .965+.038 | 32.3+.12.4 | .971+.084 | 30.1+.9.7 | .951+.100 | 25.2+.5.8 | .949+.026 | 25.7+.6.3 | .882-.014 | 20.5+.0.1 |
| C-Pixel2Pixel | .941+.427 | 20.4+.8.9 | .849+.097 | 20.2+.8.9 | .990+.128 | 31.6+.11.7 | .967+.040 | 33.5+.13.6 | .980+.093 | 32.5+.12.1 | .952+.101 | 25.2+.5.8 | .951+.028 | 25.8+.6.4 | .885-.011 | 20.6+.0.2 |
| Patch2Pixel-v2 (p = 3) | .941+.427 | 20.3+.8.8 | .845+.093 | 20.1+.8.8 | .991+.129 | 31.5+.11.6 | .967+.040 | 33.2+.13.3 | .980+.093 | 32.6+.12.2 | .952+.101 | 25.2+.5.8 | .948+.025 | 25.7+.6.3 | .883-.013 | 20.6+.0.2 |
| Patch2Pixel-v2 (p = 5) | .951+.437 | 20.3+.8.8 | .855+.103 | 20.1+.8.8 | .991+.129 | 31.5+.11.6 | .968+.041 | 33.2+.13.3 | .980+.093 | 32.5+.12.1 | .953+.102 | 25.2+.5.8 | .950+.027 | 25.7+.6.3 | .881-.015 | 20.6+.0.2 |
| Patch2Patch (h=32) | .939+.425 | 20.3+.8.8 | .843+.091 | 20.0+.8.7 | .989+.127 | 31.5+.11.6 | .967+.040 | 33.0+.13.1 | .977+.090 | 32.3+.11.9 | .952+.101 | 25.1+.5.7 | .950+.027 | 25.6+.6.2 | .886-.010 | 20.5+.0.1 |
| Patch2Patch (h=64) | .940+.426 | 20.3+.8.8 | .840+.088 | 20.0+.8.7 | .990+.128 | 31.5+.11.6 | .967+.040 | 33.1+.13.2 | .979+.092 | 32.5+.12.1 | .952+.101 | 25.2+.5.8 | .950+.027 | 25.7+.6.3 | .885-.011 | 20.6+.0.2 |
| Patch2Patch (h=128) | .939+.425 | 20.3+.8.8 | .840+.088 | 20.0+.8.7 | .990+.128 | 31.5+.11.6 | .967+.040 | 33.1+.13.2 | .980+.093 | 32.5+.12.1 | .952+.101 | 25.1+.5.7 | .950+.027 | 25.7+.6.3 | .885-.011 | 20.6+.0.2 |
| Patch2Patch (h=256) | .939+.425 | 20.3+.8.8 | .840+.088 | 20.0+.8.7 | .990+.128 | 31.6+.11.7 | .967+.040 | 33.1+.13.2 | .980+.093 | 32.5+.12.1 | .952+.101 | 25.1+.5.7 | .950+.027 | 25.7+.6.3 | .886-.010 | 20.6+.0.2 |
| Patch2Pixel (v3) (h=64) | .941+.427 | 20.3+.8.8 | .845+.093 | 20.1+.8.8 | .990+.128 | 31.6+.11.7 | .967+.040 | 33.2+.13.3 | .980+.093 | 32.5+.12.1 | .952+.101 | 25.2+.5.8 | .949+.026 | 25.7+.6.3 | .881-.015 | 20.6+.0.2 |
| unet++ - Small | .774+.260 | 18.3+.6.8 | .680-.072 | 17.9+.6.6 | .862+.0 | 22.0+.2.1 | .791-.136 | 21.8+.1.9 | .809-.078 | 21.6+.1.2 | .813-.038 | 20.6+.1.2 | .761-.162 | 20.5+.1.1 | .740-.156 | 18.2-.2.2 |
| unet++ - Medium | .859+.345 | 19.6+.8.1 | .814+.062 | 19.8+.8.5 | .919+.057 | 26.5+.6.6 | .885-.042 | 27.0+.7.1 | .898+.011 | 26.7+.6.3 | .919+.068 | 24.7+.5.3 | .864-.059 | 23.8+.4.4 | .779-.117 | 19.8-.0.6 |
| unet++ - Large | .924+.410 | 20.1+.8.6 | .809+.057 | 19.8+.8.5 | .978+.116 | 30.7+.10.8 | .953+.026 | 31.9+.12.0 | .965+.078 | 31.3+.10.9 | .942+.091 | 25.0+.5.6 | .936+.013 | 25.5+.6.1 | .843-.053 | 20.4+.0 |
| compennet++ | .922+.408 | 20.1+.8.6 | .804+.052 | 19.8+.8.5 | .982+.120 | 30.9+.11.0 | .962+.035 | 32.5+.12.6 | .963+.076 | 31.2+.10.8 | .939+.088 | 25.1+.5.7 | .940+.017 | 25.6+.6.2 | .822-.074 | 20.4+.0.0 |
Abbreviations: Br = Brightness, + = increase, - = decrease, ± = both increase and decrease, v1/v2/v3 = variation 1/2/3
Table 21: Non-Geometric Distortions Part 3: Contrast Variations (↑ higher is better, ↓ lower is better).
| Model | Ct+ v1 | Ct- v1 | Ct+ v2 | Ct- v2 | Ct+ v3 | Ct- v3 | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| S↑ | P↑ | S↑ | P↑ | S↑ | P↑ | S↑ | P↑ | S↑ | P↑ | S↑ | P↑ | |
| Pure XR | .806 | 21.9 | .857 | 18.9 | .953 | 28.1 | .949 | 28.4 | .951 | 28.3 | .952 | 28.2 |
| C-Hybrid (h = 16) | .993+.187 | 36.7+.14.8 | .882+.025 | 21.3+.2.5 | .940-.013 | 26.1-.2.0 | .941-.008 | 26.5-.1.9 | .940-.011 | 26.3-.2.0 | .941-.011 | 26.2-.2.0 |
| C-Hybrid (h = 64) | .995+.189 | 44.7+.22.8 | .887+.030 | 21.8+.2.9 | .953+.0 | 28.8+.0.7 | .950+.001 | 28.4+.0 | .945-.006 | 27.9-.0.4 | .944-.008 | 27.5-.0.7 |
| Patch2Pixel-v1 (p = 3) | .998+.192 | 50.8+.28.9 | .889+.032 | 22.1+.3.2 | .970+.017 | 30.5+.2.4 | .965+.016 | 29.3+.0.9 | .950-.001 | 28.1-.0.2 | .947-.005 | 28.2+.0 |
| Patch2Pixel-v1 (p = 5) | .999+.193 | 53.1+.31.2 | .892+.035 | 22.0+.3.2 | .955+.002 | 28.9+.0.8 | .973+.024 | 32.3+.3.9 | .949-.002 | 28.4+.0.1 | .949-.003 | 28.2+.0 |
| C-Pixel2Pixel | 1.00+.194 | 81.6+.59.7 | .893+.036 | 22.2+.3.4 | .985+.032 | 34.4+.6.3 | .989+.040 | 35.9+.7.5 | .951+.0 | 28.5+.0.2 | .951-.001 | 28.4+.0.2 |
| Patch2Pixel-v2 (p = 3) | 1.00+.194 | 64.9+.43.0 | .889+.032 | 22.2+.3.3 | .985+.032 | 34.8+.6.7 | .989+.040 | 36.3+.7.9 | .951+.0 | 28.5+.0.2 | .950-.002 | 28.4+.0.2 |
| Patch2Pixel-v2 (p = 5) | 1.00+.194 | 64.4+.42.5 | .897+.040 | 22.2+.3.3 | .984+.031 | 34.7+.6.6 | .988+.039 | 36.0+.7.6 | .951+.0 | 28.5+.0.2 | .951-.001 | 28.4+.0.2 |
| Patch2Patch (h=32) | .936+.130 | 28.4+.6.5 | .858+.001 | 21.2+.2.3 | .974+.021 | 32.2+.4.1 | .978+.029 | 33.4+.5.0 | .951-.000 | 28.3+.0 | .951-.001 | 28.3+.1 |
| Patch2Patch (h=64) | .936+.130 | 28.4+.6.5 | .858+.001 | 21.2+.2.3 | .975+.022 | 32.5+.4.4 | .978+.029 | 33.5+.5.1 | .951-.000 | 28.3+.0 | .951-.001 | 28.2+.0 |
| Patch2Patch (h=128) | .937+.131 | 28.5+.6.6 | .857+.000 | 21.3+.2.4 | .975+.022 | 32.7+.4.6 | .979+.030 | 33.6+.5.2 | .950-.001 | 28.3+.0 | .951-.001 | 28.2+.0 |
| Patch2Patch (h=256) | .937+.131 | 28.5+.6.6 | .857+.000 | 21.3+.2.4 | .975+.022 | 32.8+.4.7 | .979+.030 | 33.6+.5.2 | .951-.000 | 28.3+.0 | .950-.002 | 28.2+.0 |
| Patch2Pixel-v3 (h=64) | 1.00+.194 | 69.4+.47.5 | .889+.032 | 22.2+.3.3 | .985+.032 | 34.8+.6.7 | .989+.040 | 36.3+.7.9 | .950-.001 | 28.5+.2 | .950-.002 | 28.4+.2 |
| unet++ - Small | .851+.045 | 22.4+.0.5 | .759-.098 | 19.4+.0.6 | .870-.083 | 22.3-.5.8 | .812-.137 | 21.9-.6.5 | .785-.166 | 21.2-.7.1 | .785-.167 | 21.3-.6.9 |
| unet++ - Medium | .923+.117 | 28.7+.6.8 | .861+.004 | 21.8+.2.9 | .903-.050 | 27.4-.0.7 | .905-.044 | 27.6-.0.8 | .879-.072 | 25.4-.2.9 | .877-.075 | 25.4-.2.8 |
| unet++ - Large | .986+.180 | 39.9+.18.0 | .874+.017 | 21.9+.3.1 | .970+.017 | 33.4+.5.3 | .974+.025 | 34.3+.5.9 | .936-.015 | 28.0-.0.3 | .938-.014 | 28.0-.0.2 |
| compennet++ | .999+.193 | 51.0+.29.1 | .867+.010 | 22.0+.3.1 | .979+.026 | 34.4+.6.3 | .984+.035 | 35.8+.7.4 | .939-.012 | 28.3+.0.0 | .938-.014 | 28.2+.0.0 |
Abbreviations: Ct = Contrast, + = increase, - = decrease, v1/v2/v3 = variation 1/2/3
G-Res consumes only normalized coordinates, so its output is the same warp field for every frame at a given resolution; this is what makes the LUT substitution exact (to float32 rounding) and also lets the identical 256-trained weights run at 360 and 1080 without retraining—G-Res is simply the same continuous function sampled on a denser grid, and the Patch2Pixel-v3 neighbours are always the immediate physical pixels. Table 28 lists the resolution-dependent quantities (all derived at startup from a single -input-size flag); the ROI preserves pixel coverage by construction. The measured PSNR cost of running outside the training resolution is dB (UGC 256→360: dB); UVG@1080 lands at 23.5 dB on every host.
M.2 Runtime Design Space
The benchmark sweeps a grid (Table 29): three G-Res modes three Patch2Pixel-v3 cache modes, identical on CPU and CUDA. 1ut replaces the G-Res MLP by a precomputed warp grid (a single bilinear sample). lutrevcache adds a CSR reverse-dependency graph so that only output pixels whose source pixels changed are recomputed. center reuses the previous Patch2Pixel-v3 output where the centre pixel of the G-Res output is unchanged; reuses only where the full G-Res-output neighbourhood (the exact dependency set of Patch2Pixel-v3) is unchanged. The forward LUT is the G-Res MLP evaluated offline on a uniform coordinate grid; the reverse LUT is its bilinear-pencil transpose in CSR form ( edges).
Table 22: Non-Geometric Mixed Distortions ( higher is better, lower is better). Scenario 1: described in the paper.
| Model | Scenario 1 | Scenario 2 | ||
|---|---|---|---|---|
| S↑ | P↑ | S↑ | P↑ | |
| Pure XR | .416 | 8.3 | .655 | 17.3 |
| C-Hybrid (h = 16) | .782+.366 | 24.8+16.5 | .724+.069 | 19.3+2.0 |
| C-Hybrid (h = 64) | .633+.217 | 8.7+0.4 | .798+.143 | 21.5+4.2 |
| Patch2Pixel-v1 (p = 3) | .620+.204 | 8.7+0.4 | .797+.142 | 21.6+4.4 |
| Patch2Pixel (v1) (p = 5) | .615+.199 | 8.7+0.4 | .843+.188 | 22.7+5.4 |
| C-Pixel2Pixel | .691+.275 | 22.3+14.0 | .735+.080 | 21.4+4.1 |
| Patch2Pixel-v2 (p = 3) | .857+.441 | 27.4+19.1 | .863+.208 | 23.0+5.8 |
| Patch2Pixel-v2 (p = 5) | .844+.428 | 27.3+19.1 | .873+.218 | 23.3+6.0 |
| Patch2Patch (h=32) | .665+.249 | 23.0+14.7 | .681+.026 | 21.1+3.8 |
| Patch2Patch (h=64) | .662+.246 | 23.0+14.7 | .681+.026 | 21.2+3.9 |
| Patch2Patch (h=128) | .678+.262 | 23.5+15.2 | .682+.027 | 21.3+4.0 |
| Patch2Patch (h=256) | .681+.265 | 23.5+15.2 | .679+.024 | 21.3+4.0 |
| Patch2Pixel-v3 (h=64) | .853+.437 | 27.2+18.9 | .858+.203 | 23.0+5.7 |
| UNet++ - Small | .507+.091 | 8.6+0.4 | .617-.038 | 19.3+2.0 |
| UNet++ - Medium | .835+.419 | 27.6+19.3 | .840+.185 | 22.9+5.6 |
| UNet++ - Large | .894+.478 | 29.4+21.1 | .888+.233 | 23.5+6.2 |
| CompenNet++ | .894+.478 | 29.4+21.1 | .870+.215 | 23.3+6.0 |
Table 23: Geometric Mixed Distortions ( higher is better, lower is better). Scenarios 3 & 4: described in the paper.
| Model | Scenario 3 | Scenario 4 | ||
|---|---|---|---|---|
| S↑ | P↑ | S↑ | P↑ | |
| Pure XR | .704 | 15.3 | .650 | 14.9 |
| G-Hybrid (h = 16) | .982+.278 | 35.8+20.5 | .968+.318 | 32.9+18.0 |
| G-Hybrid (h = 64) | .987+.283 | 37.4+22.1 | .974+.324 | 34.8+19.9 |
| G-Res | .987+.283 | 37.5+22.2 | .975+.325 | 34.9+20.0 |
| UNet++ - Small | .857+.153 | 24.1+8.9 | .834+.184 | 23.7+8.8 |
| UNet++ - Medium | .877+.173 | 27.1+11.8 | .858+.208 | 26.9+12.0 |
| UNet++ - Large | .914+.210 | 29.2+14.0 | .895+.245 | 28.7+13.8 |
| CompenNet++ | .991+.287 | 39.1+23.8 | .983+.333 | 36.3+21.4 |
M.3 Reverse-LUT Construction and Runtime
We implement this functionality using a reverse lookup table. Because every output pixel reads exactly four input pixels under the bilinear stencil, the reverse LUT has a fixed total size of input output edges ( at ; at ). We store it as a compressed-sparse-row (CSR) array with an offsets array of length and an indices array of length . Per-input-pixel fan-in is heavy-tailed: at the median is 2 and the mean 4, with a few corner pixels feeding thousands of outputs. At runtime, the cache (i) scans the input frame to detect changed pixels (cost ), (ii) walks the CSR rows of the changed inputs to mark dependent outputs as dirty (cost proportional to the number of dirty edges), and (iii) recomputes only the dirty outputs from the forward LUT; the rest are read directly from the previous frame's cached G-Res output. In hardware, the CSR walker maps naturally to a sparse-indirect-address generator feeding a dirty-bit vector over the output grid, with per-frame cost equal to the fixed change-detection scan plus the dirty-output recompute. The structure therefore pays off only when the dirty set is small relative to , which is why lutrevcache is competitive on small dependency graphs with high inter-frame coherence and regresses otherwise.
M.4 Datasets and Motion Stratification
YouTube-UGC Wang et al. (2019): the 360p H.264 CRF-10 subset, 182 clips across 12 categories (HDR/VR/vertical excluded), 20 s each ( 600 frames at 30 fps); per-category counts are in Table 30. Six motion-stratified clips (Table 31) are selected by mean temporal frame-change on the grayscale stream; the selected clips span a motion range. UVG (Mercat et al. (2020)): sources
Table 24: Full Scenario 5 ablation (mixed geometric + non-geometric): all Sequential compositions and hidden dimensions. Subscript values are the improvement over the Pure XR baseline (“+” for SSIM/PSNR, “−” for LPIPS/RMSE).
| Hidden Dimensions | Scenario 5 | |||
|---|---|---|---|---|
| SSIM↑ | PSNR↑ | LPIPS↓ | RMSE↓ | |
| Pure XR | .641 | 14.6 | .635 | .186 |
| Sequential-1: | ||||
| 64, 64 | .063-.572 | .043-.143 | ||
| Sequential-2: | ||||
| 64, 64 | .076-.559 | .043-.143 | ||
| Sequential-3: | ||||
| 64, 64, 64 | .060-.575 | .042-.144 | ||
| Sequential-4: | ||||
| 64, 64, 64 | .073-.562 | .043-.143 | ||
| Sequential-5: | ||||
| 64, 64 | .084-.551 | .042-.144 | ||
| 32, 32 | .093-.542 | .044-.142 | ||
| 16, 16 | .112-.523 | .048-.138 | ||
| Sequential-5': | ||||
| 64, 64 | .084-.551 | .042-.144 | ||
| 64, 48 | .085-.550 | .043-.143 | ||
| 64, 32 | .091-.544 | .044-.142 | ||
| 32, 32 | .091-.544 | .044-.142 | ||
| 16, 16 | .103-.532 | .047-.139 | ||
| Sequential-5": | ||||
| 64, 128 | .067-.568 | .046-.140 | ||
| 64, 256 | .057-.578 | .045-.141 | ||
| 32, 128 | .065-.570 | .045-.141 | ||
| 32, 256 | .059-.576 | .045-.141 | ||
| 16, 128 | .070-.565 | .047-.139 | ||
| 16, 256 | .062-.573 | .047-.139 | ||
| Sequential-6: | ||||
| 64, 64 | .093-.542 | .043-.143 | ||
| Sequential 7: | ||||
| 64, 64, 64 | .082-.553 | .042-.144 | ||
| 32, 32, 32 | .091-.544 | .043-.143 | ||
| 16, 16, 16 | .107-.528 | .046-.140 | ||
| Sequential-7': | ||||
| 64, 64, 64 | .083-.552 | .042-.144 | ||
| 32, 32, 32 | .097-.538 | .044-.142 | ||
| 16, 16, 16 | .106-.529 | .048-.138 | ||
| Sequential-7': | ||||
| 64, 64, 128 | .053-.582 | .043-.143 | ||
| 64, 64, 256 | .048-.587 | .042-.144 | ||
| 32, 32, 128 | .056-.579 | .044-.142 | ||
| 32, 32, 256 | .049-.586 | .043-.143 | ||
| 16, 16, 128 | .061-.574 | .046-.140 | ||
| 16, 16, 256 | .054-.581 | .045-.141 | ||
| Sequential-8: | ||||
| 64, 64, 64 | .089-.546 | .043-.143 | ||
| Sequential-9: | ||||
| 64, 64 | .172-.463 | .051-.135 | ||
| Sequential-10: | ||||
| 64, 64 | .172-.463 | .051-.135 | ||
| Baseline Models | ||||
| Unet++ - Small | .149-.486 | .077-.109 | ||
| Unet++ - Medium | .083-.552 | .059-.127 | ||
| Unet++ - Large | .058-.577 | .052-.134 | ||
| CompenNet++ | .033-.602 | .041-.145 | ||
Table 25: Quantization Analysis Results (h=64)
| Model | Scenario | Baseline (FP32) | Weight-Only Quantization | Weight+Activation Quantization | |||||
|---|---|---|---|---|---|---|---|---|---|
| PSNR | SSIM | Bits | PSNR | SSIM | Bits (W+A) | PSNR | SSIM | ||
| Patch2Pixel-v2 (p=3) | 1 | 27.69 | 0.8546 | 13b | 27.68 (-0.01) | 0.8539 (-0.0007) | 13b+12b | 27.65 (-0.04) | 0.8510 (-0.0036) |
| Patch2Pixel-v3 (p=3) | 1 | 27.52 | 0.8515 | 14b | 27.42 (-0.10) | 0.8515 (+0.0000) | 14b+11b | 27.39 (-0.13) | 0.8474 (-0.0041) |
| Patch2Pixel-v2 (p=5) | 2 | 23.26 | 0.8728 | 12b | 23.26 (+0.00) | 0.8725 (-0.0003) | 12b+11b | 23.24 (-0.02) | 0.8684 (-0.0044) |
| Patch2Pixel-v2 (p=3) | 2 | 23.05 | 0.8627 | 11b | 23.00 (-0.05) | 0.8626 (-0.0001) | 11b+11b | 22.98 (-0.07) | 0.8556 (-0.0071) |
| Patch2Pixel-v3 (p=3) | 2 | 22.99 | 0.8588 | 10b | 22.91 (-0.08) | 0.8580 (-0.0008) | 10b+9b | 22.88 (-0.11) | 0.8518 (-0.0070) |
| G-Res | 3 | 37.81 | 0.9870 | 11b | 37.74 (-0.07) | 0.9869 (-0.0001) | 11b+12b | 37.76 (-0.05) | 0.9869 (-0.0001) |
| G-Res | 4 | 35.24 | 0.9752 | 12b | 35.14 (-0.10) | 0.9749 (-0.0003) | 12b+12b | 35.16 (-0.08) | 0.9749 (-0.0003) |
| Sequential 5' (h=64,64) | 5 | 27.51 | 0.9419 | 10b | 27.48 (-0.03) | 0.9416 (-0.0003) | 10b+12b | 27.48 (-0.00) | 0.9415 (-0.0004) |
| sequential 7' (h=64,64,64) | 5 | 27.51 | 0.9411 | 11b | 27.51 (-0.01) | 0.9409 (-0.0002) | 11b+12b | 27.50 (-0.01) | 0.9406 (-0.0002) |
Weight-only quantization dequantizes weights to FP32 before computation (FP32 activations). Weight+activation quantization uses integer-only arithmetic. Bits format: W (weight bits) or W+A (weight + activation bits). Symmetric quantization with per-tensor scaling. Calibration: 10% of test set.
Table 26: Design Space for Video Pre-distortion Exploration
| Mode | Description |
|---|---|
| G-Res Operation Modes | |
| mlp | Evaluates MLP on the full coordinate grid every frame. |
| lut | Precomputes the fixed G-Res warp grid once for a given resolution and replaces the per-frame MLP with a bilinear resample of the stored grid. Since G-Res depends only on , this is equivalent to mlp up to float32 rounding. |
| lutrevcache | Adds inter-frame reuse with a reverse LUT: for each input pixel, it stores the output pixels that read from it under the bilinear stencil. Only outputs whose source pixels changed since the previous frame are recomputed. |
| Patch2Pixel-v3 Operation Modes | |
| mlp | Runs the per-pixel MLP on every output pixel of every frame, with no caching. |
| 3x3 | Reuses the previous tonal output only when all nine pixels in the 3×3 dependency neighbourhood are unchanged. |
| center | Compares only the centre pixel of the dependency neighbourhood. This is cheaper than 3x3, but may reuse a stale value if one of the eight neighbours changed. |
transcoded once to H.264 CRF 18 and centre-cropped to 1080×1080; two motion-stratified clips are used (HoneyBee, mean change 9.60×10; ReadySetGo, 5.95×10). Each UGC sweep is 6×9=54 rows; each UVG sweep is 2×9=18 rows.
M.5 Hardware Platforms
The Jetson is the replacement Orin Nano Super (MAXNSUPER 25 W, JetPack 6.2.1 / L4T R36.4.7, CUDA 12.6). GPU sweeps use a different host thread count than CPU sweeps because the GPU-build timing window contains non-trivial host code (coordinate packing, host/device copies, host bilinear resample).
M.6 OpenMP Thread-Count Calibration
The single swept runtime knob is OMP_NUM_THREADS; it governs every #pragma omp parallel for region (the bilinear warp application, the two Patch2Pixel-v3 host loops, and the activation/linear kernels) and thus directly moves and . Before each main run, every device sweeps its candidate range (Table 33) with the dominant configuration (lut+none) over a short calibration workload (Table 34) and picks the value minimising , separately per (machine, dataset, kind); ties break toward the lower thread count. The chosen value transfers well to the other eight modes because Patch2Pixel-v3 dominates runtime
Table 27: Cross-platform video workload summary for Sequential 5'. Latencies are per-frame medians of the predistortion compute. “Best config” minimizes .
| Target | Compute | Dataset | N | Best config | G-Res (ms) | P2P (ms) | Total (ms) | fps_real | PSNR (dB) | SSIM |
|---|---|---|---|---|---|---|---|---|---|---|
| Ryzen 9 5900X | CPU | UGC | 256 | lutrevcache+mlp | 1.23 | 27.48 | 28.71 | 34.90 | 26.40 | 0.896 |
| Ryzen 9 5900X | CPU | UVG | 1080 | 1ut+mlp | 5.53 | 487.16 | 492.69 | 2.03 | 23.52 | 0.838 |
| RTX 3090 | GPU | UGC | 360 | 1ut+mlp | 1.15 | 1.03 | 2.18 | 530.37 | 25.44 | 0.877 |
| RTX 3090 | GPU | UVG | 1080 | 1ut+mlp | 6.06 | 7.96 | 14.02 | 72.20 | 23.52 | 0.838 |
| Raspberry Pi 5 | CPU | UGC | 256 | 1ut+mlp | 2.43 | 83.52 | 85.95 | 11.65 | 26.40 | 0.896 |
| Raspberry Pi 5 | CPU | UVG | 1080 | 1ut+mlp | 23.66 | 1339.40 | 1363.06 | 0.73 | 23.51 | 0.838 |
| Jetson Orin Nano Super | CPU | UGC | 256 | 1ut+mlp | 2.85 | 80.26 | 83.11 | 12.04 | 26.40 | 0.896 |
| Jetson Orin Nano Super | CPU | UVG | 1080 | 1ut+mlp | 18.20 | 994.59 | 1012.79 | 0.99 | 23.51 | 0.838 |
| Jetson Orin Nano (iGPU) | GPU | UGC | 360 | 1ut+center | 4.55 | 9.03 | 13.58 | 82.29 | 25.45 | 0.877 |
| Jetson Orin Nano (iGPU) | GPU | UVG | 1080 | 1ut+mlp | 20.21 | 68.07 | 88.28 | 11.33 | 23.51 | 0.838 |
Table 28: Resolution-dependent quantities (one -input-size knob propagates everywhere).
| Quantity | N=256 | N=360 | N=1080 |
|---|---|---|---|
| Pixels per frame (3N2) | 196,608 | 388,800 | 3,499,200 |
| ROI window | 179×179 | 252×252 | 755×755 |
| ROI / total pixels | 48.95% | 49.00% | 48.99% |
| Forward-LUT size | 524 KB | 1.0 MB | 9.3 MB |
| Reverse-LUT size | 1.3 MB | 2.5 MB | 23 MB |
| Reverse-LUT edges (4N2) | 262,144 | 518,400 | 4,665,600 |
in all of them. GPU sensitivity is real (RTX 3090: +57% UGC, +79% UVG between best and worst host thread count) but lower on the iGPU (+15.6% UGC, +28.4% UVG), where the kernel itself is the bottleneck. Table 35 lists the ten per-experiment winners.
M.7 Full Per-Experiment Results
Tables 36–45 give all nine modes for each of the ten experiments (means over the dataset's videos; G-Res/P2P are means of per-video medians; “Dist” is the benchmark-only optical-distortion stage, excluded from fps_real). P2P = Patch2Pixel-v3; “G”/“P”/“D” are G-Res/Patch2Pixel-v3/Distortion latency in ms.
M.8 Cross-Cutting Analyses
G-Res mode vs. latency. Table 46 reports G-Res latency by mode and the mlp→lut speedup. The LUT is bit-equivalent to the MLP (PSNR/SSIM stable to dB / across modes); the small lutrevcache PSNR drop (e.g. 26.3996 vs. 26.4007 in Exp 1) is the rounding cost of carrying cached float32 outputs across frames.
G-Res vs. Patch2Pixel-v3 share. After the LUT, Patch2Pixel-v3 dominates: 95–99% of model compute on every CPU sweep, 47–57% on the dGPU (Table 47).
Reverse-cache vs. motion. The reverse cache helps only when consecutive frames share many unchanged input pixels. Per-video G-Res latency (1ut vs. lutrevcache, Patch2Pixel-v3 none; Table 48) shows it wins on all x86 clips, regresses on higher-motion clips on the slower Pi, and is catastrophic at on every platform.
Patch2Pixel-v3 cache vs. hardware. Table 49 isolates the cache effect (G-Res = 1ut). It is within noise / a slight cost on every CPU and on the dGPU it always slows the tonal stage down. The only host where a cache nets positive is the bandwidth-limited Jetson iGPU at UGC-360, where center beats none (9.03 vs. 10.78 ms); at UVG-1080 even the iGPU reverts to the dGPU pattern. The cached CUDA kernel still launches one thread per pixel, so unchanged pixels do not free GPU work—they only avoid the Patch2Pixel-v3 MLP; on the high-bandwidth dGPU the per-pixel test plus atomicAdd exceeds the saved MLP, while on the low-bandwidth iGPU the avoided evaluations net positive at the small image size.
Table 29: Nine video-runtime configurations (CPU and CUDA).
| # | G-Res mode | Patch2Pixel-v3 cache |
|---|---|---|
| 1 | mlp | none |
| 2 | mlp | center |
| 3 | mlp | 3x3 |
| 4 | lut | none |
| 5 | lut | center |
| 6 | lut | 3x3 |
| 7 | lutrevcache | none |
| 8 | lutrevcache | center |
| 9 | lutrevcache | 3x3 |

3 G-Res modes × 3 Patch2Pixel-v3 cache modes
= 9 configurations, swept on 5 targets × 2 datasets
Figure 5: Video runtime design space (self-contained schematic).
GPU model-only speedup vs. same-host CPU. Table 50 contrasts the model-only GPU latency (lut+none) with the same model on the same host's CPU. At UVG-1080 the dGPU is faster than its CPU and the edge iGPU is faster than its CPU; the UGC GPU rows are cross-resolution (GPU @360 vs. CPU @256) and are not directly comparable.
Quality vs. platform and resolution. PSNR/SSIM are model-determined, not platform-determined (Table 51): within each (dataset, resolution) cell all hosts agree to dB / , confirming numerical portability across x86, ARM, the CUDA dGPU, and the embedded iGPU.
M.9 Reproducibility
The engine is a self-contained C++17 implementation (CMake , -03 release, OpenMP auto-detected; optional CUDA with sm_86; sm_87); a custom float32 tensor engine (no BLAS/OpenCV/cuDNN); ffmpeg via popen(). Per-frame latency uses std::chrono::steady_clock medians; PSNR uses joint channel/spatial MSE, SSIM uses an Gaussian window (, , ). Each of the ten experiments writes a per-run summary.csv (54 rows for UGC, 18 for UVG), aggregated by an analysis script into the tables above; OpenMP thread counts are fixed by the per-host calibration script preceding each run.
N Hardware Model Details
For FPGA (field-programmable gate array) implementation, each MLP instance uses 16 processing elements, each sustaining one MAC per cycle, or 2 FLOPs/cycle. Thus,
where is the number of parallel MLP instances. This mapping fits the evaluated devices: uses 32 of the 56 CrossLink-NX multipliers, matching the reported utilization, while the Zynq ZU3EG has 360 DSP (digital signal processing) slices and can support within budget.
The platform parameters are taken from device specifications: 360 DSP slices for Zynq ZU3EG AMD (2025) and multipliers for CrossLink-NX LIFCL-40 Lattice Semiconductor (2024). We use 600 MHz for Zynq PL (programmable logic) and 200 MHz for CrossLink-NX.
Table 30: YouTube-UGC 360p subset by category.
| Category | Clips |
|---|---|
| Sports | 24 |
| Lecture | 23 |
| NewsClip | 20 |
| HowTo | 20 |
| LiveMusic | 16 |
| Gaming | 16 |
| CoverSong | 16 |
| Animation | 14 |
| MusicVideo | 12 |
| Vlog | 10 |
| TelevisionClip | 6 |
| LyricVideo | 5 |
| Total | 182 |
Table 31: Six motion-stratified YouTube-UGC benchmark clips.
| Group | Clip | Category | Mean change |
|---|---|---|---|
| Smooth | Lecture_360P-051a | Lecture | |
| Smooth | LyricVideo_360P-5e87 | LyricVideo | |
| Medium | Gaming_360P-586d | Gaming | |
| Medium | Vlog_360P-2973 | Vlog | |
| Fast | Vlog_360P-3121 | Vlog | |
| Fast | MusicVideo_360P-24b0 | MusicVideo |
Sequential is pixel-independent, so each stage can be fully pipelined without inter-pixel stalls. However, Stage 2 consumes the intermediate frame produced by Stage 1, so frame latency is the sum of the two stage latencies. Assuming four Stage 1 interpolation units and Stage 2 MLP instances, Stage 1 requires cycles per pixel, while Stage 2 with requires 2,048 MACs per pixel. With 16 MACs/cycle per instance,
cycles per pixel. The resulting latency model is:
For , Zynq ZU3EG at and gives
or . CrossLink-NX at and gives
or .
O Limitations and Future Work
Our approach has several limitations. First, the two-phase (formula-agnostic) scheme is bounded by the fidelity of the Phase 1 forward mimic: when cannot fully reproduce the true distortion system, the Phase 2 corrector trained through it inherits that error, and its correction becomes correspondingly less reliable. This shows in the gap between two-phase and known-formula training on Scenario 5; achievable predistortion is ultimately bounded by the invertibility and mimic-fidelity of the forward model.
Table 32: Execution targets. OMP columns are the per-target, per-dataset calibrated host thread counts (UGC / UVG).
| Host | Arch | CPU / GPU | OMP CPU | OMP GPU |
|---|---|---|---|---|
| Ryzen 9 5900X | x86_64 | 12C/24T + RTX 3090 (sm_86) | 16 / 32 | 14 / 16 |
| Raspberry Pi 5 | aarch64 | 4× Cortex-A76 | 6 / 8 | - |
| Jetson Orin Nano Super | aarch64 | 6× Cortex-A78AE + Ampere iGPU (sm_87) | 28 / 18 | 8 / 10 |
Table 33: OpenMP search ranges per machine.
| Machine | CPU candidates | GPU host candidates |
|---|---|---|
| Ryzen 9 5900X | 2, 4, ..., 32 (16 values) | 2, 4, ..., 32 (16) |
| Raspberry Pi 5 | 1, 2, 3, 4, 5, 6, 8, 10 (8) | — |
| Jetson Orin Nano Super | 2, 4, ..., 28 (14, extended) | 2, 4, ..., 18 (9) |
rather than by the corrector's capacity. Second, the per-pixel tonal stage is resolution-bounded: trained at , it does not exploit higher input resolution as well as a convolutional backbone, trailing CompenNet++ by dB at . Third, chromatic dispersion (color fringes) remains the artifact where our models lag the monolithic baselines, as the per-pixel tonal MLP lacks the multi-scale spatial support that dispersion correction requires. Fourth, we report FLOPs and memory transfers as proxies rather than measured energy: per-frame energy and memory-bandwidth utilization would require a synthesized implementation and are not reported here. Finally, and most importantly, our evaluation uses closed-form differentiable distortions and a single real projector–camera capture rather than through-the-optics measurements on physical AR hardware; per-device calibration, sensor noise, and temporal drift are not modelled. Future work includes improving Phase 1 mimic fidelity (e.g., higher-capacity or physically-grounded forward models), a wider-context or multi-scale tonal stage to address dispersion and higher resolutions, and validation on measured optical pipelines with perceptual metrics.
Table 34: Calibration workload (videos × frames-per-video).
| Machine | Dataset | Res | #vids | Frames/vid |
|---|---|---|---|---|
| Ryzen 9 5900X | UGC | 256/360 | 6 | 40 |
| Ryzen 9 5900X | UVG | 1080 | 2 | 15 |
| Raspberry Pi 5 | UGC | 256 | 6 | 25 |
| Raspberry Pi 5 | UVG | 1080 | 2 | 6 |
| Jetson Orin Nano Super | UGC | 256/360 | 6 | 40 |
| Jetson Orin Nano Super | UVG | 1080 | 2 | 15 |
Table 35: Per-experiment OpenMP winners. “Margin” is the gap to the next-best thread count.
| Exp | Host | Dataset | Kind | OMP | Margin |
|---|---|---|---|---|---|
| 1 | Ryzen 5900X | UGC | CPU | 16 | +3.50% |
| 2 | Raspberry Pi 5 | UGC | CPU | 6 | +2.16% |
| 3 | Jetson Orin Nano Super | UGC | CPU | 28 | +0.33% (boundary) |
| 4 | Ryzen 5900X / RTX 3090 | UGC | GPU | 14 | +2.31% |
| 5 | Jetson iGPU | UGC | GPU | 8 | +1.68% (noise zone) |
| 6 | Ryzen 5900X | UVG | CPU | 32 | +0.37% (boundary) |
| 7 | Raspberry Pi 5 | UVG | CPU | 8 | +0.42% |
| 8 | Jetson Orin Nano Super | UVG | CPU | 18 | +0.14% (true optimum) |
| 9 | Ryzen 5900X / RTX 3090 | UVG | GPU | 16 | +2.33% |
| 10 | Jetson iGPU | UVG | GPU | 10 | +1.00% |
Table 36: Exp 1 — Ryzen 9 5900X CPU, UGC @256 (OMP 16).
| G-Res | P2P | G ms | P ms | D ms | fps | PSNR | SSIM |
|---|---|---|---|---|---|---|---|
| mlp | none | 31.44 | 28.41 | 30.93 | 16.73 | 26.4007 | 0.8960 |
| mlp | center | 31.79 | 28.27 | 31.27 | 16.68 | 26.4004 | 0.8960 |
| mlp | 3x3 | 31.87 | 29.01 | 30.88 | 16.44 | 26.4007 | 0.8960 |
| lut | none | 2.45 | 27.96 | 30.84 | 33.06 | 26.4007 | 0.8960 |
| lut | center | 2.57 | 27.54 | 30.68 | 33.35 | 26.4004 | 0.8960 |
| lut | 3x3 | 2.52 | 28.23 | 30.77 | 32.65 | 26.4007 | 0.8960 |
| lutrevcache | none | 1.23 | 27.48 | 30.84 | 34.90 | 26.3996 | 0.8960 |
| lutrevcache | center | 1.23 | 27.82 | 30.71 | 34.51 | 26.3962 | 0.8959 |
| lutrevcache | 3x3 | 1.24 | 27.64 | 30.61 | 34.69 | 26.3996 | 0.8960 |
Table 37: Exp 2 — Raspberry Pi 5 CPU, UGC @256 (OMP 6).
| G-Res | P2P | G ms | P ms | D ms | fps | PSNR | SSIM |
|---|---|---|---|---|---|---|---|
| mlp | none | 94.48 | 84.63 | 52.29 | 5.58 | 26.4007 | 0.8960 |
| mlp | center | 94.59 | 84.69 | 52.20 | 5.58 | 26.4004 | 0.8960 |
| mlp | 3x3 | 94.80 | 85.68 | 52.31 | 5.54 | 26.4007 | 0.8960 |
| lut | none | 2.43 | 83.52 | 52.10 | 11.65 | 26.4007 | 0.8960 |
| lut | center | 2.38 | 84.46 | 52.04 | 11.53 | 26.4004 | 0.8960 |
| lut | 3x3 | 2.47 | 85.42 | 52.03 | 11.39 | 26.4007 | 0.8960 |
| lutrevcache | none | 2.57 | 84.41 | 52.15 | 11.51 | 26.3996 | 0.8960 |
| lutrevcache | center | 2.47 | 85.29 | 52.29 | 11.41 | 26.3962 | 0.8959 |
| lutrevcache | 3x3 | 2.42 | 86.71 | 52.31 | 11.23 | 26.3996 | 0.8960 |
Table 38: Exp 3 — Jetson Orin Nano Super CPU, UGC @256 (OMP 28; boundary winner).
| G-Res | P2P | G ms | P ms | D ms | fps | PSNR | SSIM |
|---|---|---|---|---|---|---|---|
| mlp | none | 90.23 | 77.68 | 70.03 | 5.96 | 26.4007 | 0.8960 |
| mlp | center | 89.15 | 75.89 | 69.36 | 6.06 | 26.4004 | 0.8960 |
| mlp | 3x3 | 89.91 | 78.03 | 69.52 | 5.96 | 26.4007 | 0.8960 |
| lut | none | 2.85 | 80.26 | 69.10 | 12.04 | 26.4007 | 0.8960 |
| lut | center | 2.99 | 82.46 | 68.62 | 11.71 | 26.4004 | 0.8960 |
| lut | 3x3 | 3.15 | 82.90 | 67.76 | 11.62 | 26.4007 | 0.8960 |
| lutrevcache | none | 2.59 | 82.64 | 68.66 | 11.75 | 26.3996 | 0.8960 |
| lutrevcache | center | 2.50 | 82.73 | 68.01 | 11.74 | 26.3962 | 0.8959 |
| lutrevcache | 3x3 | 2.48 | 84.77 | 68.09 | 11.47 | 26.3996 | 0.8960 |
Table 39: Exp 4 — RTX 3090 GPU, UGC @360 (host OMP 14).
| G-Res | P2P | G ms | P ms | D ms | fps | PSNR | SSIM |
|---|---|---|---|---|---|---|---|
| mlp | none | 2.21 | 1.01 | 56.26 | 335.99 | 25.4365 | 0.8774 |
| mlp | center | 2.22 | 1.74 | 56.02 | 268.09 | 25.4361 | 0.8774 |
| mlp | 3x3 | 2.23 | 2.00 | 56.11 | 247.75 | 25.4365 | 0.8774 |
| lut | none | 1.15 | 1.03 | 56.97 | 530.37 | 25.4365 | 0.8774 |
| lut | center | 1.14 | 1.77 | 56.79 | 378.99 | 25.4361 | 0.8774 |
| lut | 3x3 | 1.15 | 2.03 | 57.09 | 338.38 | 25.4365 | 0.8774 |
| lutrevcache | none | 2.22 | 1.07 | 54.05 | 371.91 | 25.4354 | 0.8773 |
| lutrevcache | center | 2.22 | 1.81 | 53.36 | 288.73 | 25.4332 | 0.8772 |
| lutrevcache | 3x3 | 2.23 | 2.10 | 54.01 | 261.50 | 25.4354 | 0.8773 |
Table 40: Exp 5 — Jetson Orin Nano iGPU, UGC @360 (host OMP 8).
| G-Res | P2P | G ms | P ms | D ms | fps | PSNR | SSIM |
|---|---|---|---|---|---|---|---|
| mlp | none | 18.75 | 10.35 | 122.02 | 34.37 | 25.4550 | 0.8773 |
| mlp | center | 18.79 | 8.35 | 121.90 | 37.59 | 25.4547 | 0.8773 |
| mlp | 3x3 | 18.86 | 12.27 | 122.96 | 32.72 | 25.4550 | 0.8773 |
| lut | none | 3.94 | 10.78 | 119.76 | 68.02 | 25.4550 | 0.8773 |
| lut | center | 4.55 | 9.03 | 120.69 | 82.29 | 25.4547 | 0.8773 |
| lut | 3x3 | 4.23 | 13.15 | 120.53 | 61.87 | 25.4550 | 0.8773 |
| lutrevcache | none | 5.32 | 10.80 | 119.79 | 63.37 | 25.4541 | 0.8773 |
| lutrevcache | center | 5.50 | 8.94 | 120.92 | 84.44 | 25.4524 | 0.8772 |
| lutrevcache | 3x3 | 5.46 | 13.49 | 120.95 | 61.32 | 25.4541 | 0.8773 |
Table 41: Exp 6 — Ryzen 9 5900X CPU, UVG @1080 (OMP 32; boundary winner).
| G-Res | P2P | G ms | P ms | D ms | fps | PSNR | SSIM |
|---|---|---|---|---|---|---|---|
| mlp | none | 574.08 | 484.67 | 433.96 | 0.94 | 23.5234 | 0.8380 |
| mlp | center | 575.34 | 497.90 | 447.88 | 0.93 | 23.5230 | 0.8380 |
| mlp | 3x3 | 576.15 | 504.89 | 447.88 | 0.93 | 23.5234 | 0.8380 |
| lut | none | 5.53 | 487.16 | 433.48 | 2.03 | 23.5234 | 0.8380 |
| lut | center | 5.46 | 500.15 | 450.39 | 1.98 | 23.5230 | 0.8380 |
| lut | 3x3 | 5.49 | 506.60 | 450.41 | 1.95 | 23.5234 | 0.8380 |
| lutrevcache | none | 28.77 | 486.65 | 434.14 | 1.94 | 23.5195 | 0.8378 |
| lutrevcache | center | 28.75 | 499.42 | 448.49 | 1.89 | 23.5208 | 0.8379 |
| lutrevcache | 3x3 | 28.68 | 506.64 | 447.99 | 1.87 | 23.5195 | 0.8378 |
Table 42: Exp 7 — Raspberry Pi 5 CPU, UVG @1080 (OMP 8).
| G-Res | P2P | G ms | P ms | D ms | fps | PSNR | SSIM |
|---|---|---|---|---|---|---|---|
| mlp | none | 1526.53 | 1330.00 | 988.59 | 0.35 | 23.5135 | 0.8377 |
| mlp | center | 1527.62 | 1355.36 | 993.22 | 0.35 | 23.5131 | 0.8377 |
| mlp | 3x3 | 1524.51 | 1368.42 | 993.05 | 0.35 | 23.5135 | 0.8377 |
| lut | none | 23.66 | 1339.40 | 996.68 | 0.73 | 23.5135 | 0.8377 |
| lut | center | 23.43 | 1357.55 | 989.94 | 0.72 | 23.5131 | 0.8377 |
| lut | 3x3 | 23.15 | 1369.39 | 996.95 | 0.72 | 23.5135 | 0.8377 |
| lutrevcache | none | 53.91 | 1335.28 | 986.10 | 0.72 | 23.5123 | 0.8377 |
| lutrevcache | center | 55.30 | 1355.27 | 990.21 | 0.71 | 23.5125 | 0.8377 |
| lutrevcache | 3x3 | 54.51 | 1370.43 | 989.88 | 0.70 | 23.5123 | 0.8377 |
Table 43: Exp 8 — Jetson Orin Nano Super CPU, UVG @1080 (OMP 18; true optimum after range extension).
| G-Res | P2P | G ms | P ms | D ms | fps | PSNR | SSIM |
|---|---|---|---|---|---|---|---|
| mlp | none | 1116.79 | 984.18 | 1045.85 | 0.48 | 23.5135 | 0.8377 |
| mlp | center | 1115.58 | 1005.78 | 1060.20 | 0.47 | 23.5131 | 0.8377 |
| mlp | 3x3 | 1118.95 | 1019.58 | 1059.39 | 0.47 | 23.5135 | 0.8377 |
| lut | none | 18.20 | 994.59 | 1049.85 | 0.99 | 23.5135 | 0.8377 |
| lut | center | 17.41 | 1013.25 | 1062.38 | 0.97 | 23.5131 | 0.8377 |
| lut | 3x3 | 17.73 | 1030.74 | 1063.34 | 0.95 | 23.5135 | 0.8377 |
| lutrevcache | none | 57.02 | 996.84 | 1047.30 | 0.95 | 23.5123 | 0.8377 |
| lutrevcache | center | 57.08 | 1015.39 | 1058.76 | 0.93 | 23.5125 | 0.8377 |
| lutrevcache | 3x3 | 56.86 | 1034.09 | 1059.05 | 0.92 | 23.5123 | 0.8377 |
Table 44: Exp 9 — RTX 3090 GPU, UVG @1080 (host OMP 16).
| G-Res | P2P | G ms | P ms | D ms | fps | PSNR | SSIM |
|---|---|---|---|---|---|---|---|
| mlp | none | 13.79 | 7.87 | 429.52 | 46.17 | 23.5234 | 0.8380 |
| mlp | center | 13.90 | 14.89 | 426.61 | 34.73 | 23.5230 | 0.8380 |
| mlp | 3x3 | 13.82 | 17.86 | 425.94 | 31.71 | 23.5234 | 0.8380 |
| lut | none | 6.06 | 7.96 | 441.54 | 72.20 | 23.5234 | 0.8380 |
| lut | center | 6.15 | 15.27 | 431.91 | 46.88 | 23.5230 | 0.8380 |
| lut | 3x3 | 6.13 | 17.95 | 433.75 | 41.57 | 23.5234 | 0.8380 |
| lutrevcache | none | 29.05 | 8.13 | 427.18 | 27.81 | 23.5195 | 0.8378 |
| lutrevcache | center | 28.96 | 14.97 | 426.78 | 23.33 | 23.5208 | 0.8379 |
| lutrevcache | 3x3 | 28.95 | 18.66 | 426.93 | 21.18 | 23.5195 | 0.8378 |
Table 45: Exp 10 — Jetson Orin Nano iGPU, UVG @1080 (host OMP 10).
| G-Res | P2P | G ms | P ms | D ms | fps | PSNR | SSIM |
|---|---|---|---|---|---|---|---|
| mlp | none | 113.09 | 72.65 | 1089.33 | 5.38 | 23.5135 | 0.8377 |
| mlp | center | 112.91 | 96.66 | 1084.57 | 4.77 | 23.5131 | 0.8377 |
| mlp | 3x3 | 113.31 | 140.83 | 1093.41 | 4.02 | 23.5135 | 0.8377 |
| lut | none | 20.21 | 68.07 | 1066.68 | 11.33 | 23.5135 | 0.8377 |
| lut | center | 21.84 | 83.52 | 1072.96 | 9.49 | 23.5131 | 0.8377 |
| lut | 3x3 | 22.45 | 125.18 | 1074.88 | 7.11 | 23.5135 | 0.8377 |
| lutrevcache | none | 58.94 | 71.15 | 1065.20 | 7.71 | 23.5123 | 0.8377 |
| lutrevcache | center | 58.98 | 82.34 | 1072.04 | 7.09 | 23.5125 | 0.8377 |
| lutrevcache | 3x3 | 59.34 | 132.13 | 1072.40 | 5.32 | 23.5123 | 0.8377 |
Table 46: G-Res latency by mode and mlp→lut speedup.
| Target / dataset | mlp ms | lut ms | rev ms | mlp→lut |
|---|---|---|---|---|
| Ryzen / UGC256 (CPU) | 31.44 | 2.45 | 1.23 | 12.8× |
| Pi 5 / UGC256 (CPU) | 94.48 | 2.43 | 2.57 | 38.9× |
| Jetson / UGC256 (CPU) | 90.23 | 2.85 | 2.59 | 31.7× |
| Ryzen / UVG1080 (CPU) | 574.08 | 5.53 | 28.77 | 103.8× |
| Pi 5 / UVG1080 (CPU) | 1526.53 | 23.66 | 53.91 | 64.5× |
| Jetson / UVG1080 (CPU) | 1116.79 | 18.20 | 57.02 | 61.4× |
| RTX 3090 / UGC360 (GPU) | 2.21 | 1.15 | 2.22 | 1.92× |
| Jetson iGPU / UGC360 (GPU) | 18.75 | 3.94 | 5.32 | 4.76× |
| RTX 3090 / UVG1080 (GPU) | 13.79 | 6.06 | 29.05 | 2.28× |
| Jetson iGPU / UVG1080 (GPU) | 113.09 | 20.21 | 58.94 | 5.60× |
Table 47: Best G-Res latency vs. Patch2Pixel-v3 (none); P2P/(G+P2P).
| Target / dataset | best G ms | P2P ms | P2P share |
|---|---|---|---|
| Ryzen / UGC256 (CPU) | 1.23 | 27.48 | 95.7% |
| Pi 5 / UGC256 (CPU) | 2.43 | 83.52 | 97.2% |
| Ryzen / UVG1080 (CPU) | 5.53 | 487.16 | 98.9% |
| Pi 5 / UVG1080 (CPU) | 23.66 | 1339.40 | 98.3% |
| RTX 3090 / UGC360 (GPU) | 1.15 | 1.03 | 47.3% |
| RTX 3090 / UVG1080 (GPU) | 6.06 | 7.96 | 56.8% |
Table 48: Reverse-cache vs. motion: per-video G-Res ms, lut→rev (Δ). “sm”/“fa” = smoothest/fastest clip.
| Target / dataset | sm lut | sm rev | Δ | fa lut | fa rev | Δ |
|---|---|---|---|---|---|---|
| Ryzen / UGC256 | 0.83 | 0.47 | -43% | 3.03 | 2.34 | -23% |
| Pi 5 / UGC256 | 1.68 | 1.48 | -12% | 2.53 | 3.78 | +49% |
| Jetson / UGC256 | 2.00 | 1.00 | -50% | 3.30 | 4.11 | +25% |
| Ryzen / UVG1080 | 5.30 | 22.12 | +317% | 5.76 | 35.42 | +515% |
| Pi 5 / UVG1080 | 21.42 | 48.00 | +124% | 25.91 | 59.82 | +131% |
| Jetson / UVG1080 | 17.56 | 48.85 | +178% | 18.84 | 65.18 | +246% |
Table 49: Patch2Pixel-v3 ms by cache mode (G-Res = lut).
| Target / dataset | none | center | 3x3 | verdict |
|---|---|---|---|---|
| Ryzen / UGC256 (CPU) | 27.96 | 27.54 | 28.23 | noise |
| Pi 5 / UGC256 (CPU) | 83.52 | 84.46 | 85.42 | slight cost |
| Ryzen / UVG1080 (CPU) | 487.16 | 500.15 | 506.60 | slight cost |
| Pi 5 / UVG1080 (CPU) | 1339.40 | 1357.55 | 1369.39 | slight cost |
| RTX 3090 / UGC360 (GPU) | 1.03 | 1.77 | 2.03 | cache slower |
| RTX 3090 / UVG1080 (GPU) | 7.96 | 15.27 | 17.95 | cache slower |
| Jetson iGPU / UGC360 (GPU) | 10.78 | 9.03 | 13.15 | center wins |
| Jetson iGPU / UVG1080 (GPU) | 68.07 | 83.52 | 125.18 | cache slower |
Table 50: GPU model-only (lut+none) vs. same-host CPU (lut+none).
| Platform / dataset | GPU G+P2P ms | CPU G+P2P ms | speedup |
|---|---|---|---|
| RTX 3090 / UVG1080 | 14.02 | 492.69 | 35.1× |
| Jetson iGPU / UVG1080 | 88.28 | 1012.79 | 11.5× |
| RTX 3090 / UGC360 | 2.18 | cross-resolution (CPU @256) | |
| Jetson iGPU / UGC360 | 14.72 | cross-resolution (CPU @256) | |
Table 51: Quality by dataset/resolution cell.
| Cell | Hosts | PSNR (dB) | SSIM |
|---|---|---|---|
| UGC @256 (CPU) | Exps 1,2,3 | 26.40 ± 0.001 | |
| UGC @360 (GPU) | Exps 4,5 | 25.44 / 25.45 | 0.8774 / 0.8773 |
| UVG @1080 (CPU+GPU) | Exps 6–10 | 23.52 / 23.51 | 0.838 |

Figure 6: Sequential 5' dataflow. Stage 1 is a LUT lookup plus bilinear interpolation; Stage 2 runs N parallel Patch2Pixel MLPs. All buffers and weights are FP32.
Table 52: Per-frame resource requirements for Sequential 5'. All quantities assume FP32; no quantization is applied (cf. Sec. 5.6). Sizes use 1 KB=1024 bytes. “Transfer (Reads)” counts read traffic only and excludes the intermediate- and output-frame writes (2 × 768 KB), unlike the Transfer column of Table 4, which is reads plus writes.
| Metric | Stage 1 (G-Res) | Stage 2 (Patch2Pixel) | Total | |
|---|---|---|---|---|
| Compute (FLOPs) | 1.97 M | 285.6 M | 826.8 M | 287.6 M / 828.8 M |
| Static (ROM) | 512 KB | 8.6 KB | 24.9 KB | 521 KB / 537 KB |
| Dynamic (RAM) | 1,536 KB | 1,536 KB | 1,536 KB | 2,304 KB + scratch |
| Transfer (Reads) | 3,584 KB | 777 KB | 793 KB | 4,361 KB / 4,377 KB per frame |