betaFeedback

WorksComputer Science

Spatons: Spatiotonally Localized Building Blocks for Efficient XR Predistortion

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 spatial (e.g., geometric) and tonal (e.g., colour) distortions. Frames can be pre-distorted so that the projected image looks as intended. Distortions vary with manufacturing tolerances and projection systems, motivating programmable compensation. Untethered, battery-operated XR systems also require low energy and latency. A Spaton is a hybrid patch-to-pixel block combining tiny Multi-Layer Perceptrons (MLPs) with fixed-function interpolation. Using Spatons, we build programmable, computationally efficient pipelines for varied distortion scenarios. On the full spatiotonal Scenario 5, Sequential-5' matches CompenNet++ in SSIM (0.944 vs. 0.944) and closely matches its PSNR (27.5 vs. 27.7 dB), with substantially lower complexity. We demonstrate a flexible Spaton solution with 6 times fewer FLOPs and 106 times fewer parameters than CompenNet++, and 4-10 times fewer memory transfers than UNet++. We characterize software implementations and analytical hardware estimates, including optimizations across target XR platforms. The distortions considered are drawn mostly from see-through, near-eye displays, where the spatial light path governs local intensity and spectral response. This early systems-level exploration uses closed-form differentiable distortions and one real projector-camera capture set for training and evaluation, rather than through-the-optics measurements. Testing on a wider range of real XR devices remains future work. Chromatic dispersion (color fringes) remains the main artifact where Spatons trail monolithic baselines.

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.1 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 [27, 28, 29, 30]; Tuan [35]; Ali & Mann [1]; Banterle et al. [6]; Antunes-Santos et al. [4, 5]. 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. [34]; Jerald [16].

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. [41]; Huang & Ling [14]). 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 256×256256 \times256 frame, far exceeding the representative (≈2W) 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 N×NN \times N 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 [29, 30]; Tuan [35]; Chapiro et al. [7].

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\Delta\mathrm{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:

  1. 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.

  1. 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

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.

  1. 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 (−95.2% FLOPs); C-Res / Patch2Pixel-v2 match or exceed UNet++-Large photometrically at 13–20× fewer FLOPs.

  1. Implementation Optimizations: Decoupling geometric mapping from color synthesis enables implementing the geometric predistortion model as a lookup table that reduces G-Res inference to O(1)O(1) 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.

  1. 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.

Background

AR waveguide optics: Waveguide combiners dominate OST-AR (Optical See-Through Augmented Reality) displays due to their thin form factor and pupil-expansion properties [38, 8]. Geometric (reflective) waveguides offer superior color fidelity, while diffractive designs (HoloLens, Magic Leap) are more scalable but introduce wavelength-dependent artifacts from their grating structures [8] (); Chapıro et al. 2024). Both architectures introduce systematic spatiotonal distortions necessitating real-time processing to maintain fidelity [30].

Digital compensation and neural predistortion: Early LUT-based (Lookup Table) methods lack flexibility for device-specific or dynamic variations [21]. Data-driven approaches such as CompenNet++ Huang & Ling [14] and UNet++ Zhou et al. [41] achieve high reconstruction quality by treating compensation as an end-to-end img2img task, but their monolithic architectures require >12>12 GFLOPs and >1392>1392 MB of memory transfers per 256×256 frame which is prohibitive for untethered headsets where compute budgets are severely constrained (e.g., <2<2 W). Existing methods also typically address geometric or photometric correction in isolation [14, 21]. 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. Figure 1 presents our taxonomy which is informed by the AR-DAVID dataset Chapıro et al. (2024) and ColorVideoVDP Mantiuk et al. [31]. 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 comparative imaging theory Mann [29]; Ali et al. [2]. Spatial (geometric or topological) errors (keystone, fisheye, barrel, mustache) are modeled with established optical formulations Hornacek et al. [13]; Li et al. [21]; Liu et al. [23]; Fitzgibbon [9]. Unlike general corruption benchmarks Hendrycks & Dietterich [11], we focus strictly on the coupled artifacts intrinsic to near-eye displays. Appendix § 12 (Table 6) lists the distortions considered in this work and how they were modeled.

XR Spatiotonal Distortion Taxonomy

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.

DistortionFormula
Spatial
KeystonePerspective transform.
Fisheyex⃗′=x⃗/(1−ar2)\vec{x}'=\vec{x}/(1-ar^2)
Barrel/Pincushionx⃗′=x⃗(1±ar2±br4)\vec{x}'=\vec{x}(1\pm ar^2\pm br^4); (+)(+)=Barrel, (−)(-)=Pincushion
Mustachex⃗′=x⃗(1−ar2+br4)\vec{x}'=\vec{x}(1-ar^2+br^4)
Tonal
Brightness-v1g=f+bg=f+b
Contrast-v1g=(f−0.5)⋅a+0.5g=(f-0.5)\cdot a+0.5
Br. & Contrastg=(f⋅a−0.5)⋅a+0.5g=(f\cdot a-0.5)\cdot a+0.5
Elevated Blackg=(f+p)/(1+p)g=(f+p)/(1+p)
Color Balancegc=fc⋅acg_c=f_c\cdot a_c
Spatiotonal
Gaussian Blurg(x⃗)=(f∗Gσ)(x⃗)g(\vec{x})=(f*G_\sigma)(\vec{x})
Vignettingg(x⃗)=f(x⃗)⋅clamp⁡(1−ar2,0.7,1)g(\vec{x})=f(\vec{x})\cdot\operatorname{clamp}(1-ar^2,0.7,1)
WGNU-v1g(x⃗)=f(x⃗)⋅[1+asin⁡(2πνx+ϕ)]g(\vec{x})=f(\vec{x})\cdot[1+a\sin(2\pi\nu x+\phi)]
WGNU-v2gc(x⃗)=fc(x⃗)⋅[1+a⋅B(x⃗)⋅(1+b(c−1))]g_c(\vec{x})=f_c(\vec{x})\cdot[1+a\cdot B(\vec{x})\cdot(1+b(c-1))]
WGNU-v3Same as v2; a=a(μf,σf)a=a(\mu_f,\sigma_f)
Brightness-v2g(x⃗)=f(x⃗)+a⋅pat⁡(x⃗)g(\vec{x})=f(\vec{x})+a\cdot\operatorname{pat}(\vec{x})
Brightness-v3Same as v2; fx,ϕx=h(μf)f_x,\phi_x=h(\mu_f); fy,ϕy=h(σf)f_y,\phi_y=h(\sigma_f)
Contrast-v2g(x⃗)=(f(x⃗)−0.5)⋅clamp⁡(a⋅pat⁡(x⃗),0.2,2)+0.5g(\vec{x})=(f(\vec{x})-0.5)\cdot\operatorname{clamp}(a\cdot\operatorname{pat}(\vec{x}),0.2,2)+0.5
Contrast-v3Same as v2; fx,ϕx=h(μf)f_x,\phi_x=h(\mu_f); fy,ϕy=h(σf)f_y,\phi_y=h(\sigma_f)
Color FringesgR=fR⋅aRg_R=f_R\cdot a_R; gG=fGg_G=f_G; gB=fB⋅aBg_B=f_B\cdot a_B

Table 6. AR distortions.

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. [22], FishEyeRecNet Yin et al. [39] (which also evaluates on real fisheye images), and QueryCDR Guo et al. [10] build training and test data from parametric radial/projective models overlapping those in Table 6; Kageyama et al. Kageyama et al. [17] synthesize geometric distortion and defocus for dynamic projection mapping. The XR display-quality datasets AR-DAVID Chapiro et al. [7] and XR-DAVID Mantiuk et al. [31] 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 106× the parameters and ≈6× the FLOPs of our Sequential-5′ under the common 256×256 accounting of Table 4.

ModelParamsFLOPs (M)Transfer (MB)SSIMSc5
CompenNet++1.15M8,526162.944
UNet++-Large6.83M12,1291392.868
Sequential-5′ (h=32,32h=32, 32)3.4K443169.939
Sequential-5′ (h=64,64h=64, 64)10.8K1,407297.944

Table 4. Model efficiency summary (3×256×2563 \times256 \times256 input). Full per-model breakdown in Appendix § 19 (Table 17).

Problem Formulation

The objective of neural predistortion is to find an inverse mapping of the system distortion DSD_S such that

Iobs=DS(Ipre)≈E,(1)I_{\mathrm{obs}} = D_S(I_{\mathrm{pre}}) \approx E, \tag*{(1)}

where IpreI_{\mathrm{pre}} is the predistorted input and EE is the expected image obtained by resizing the source image II 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 nn sequential distortion stages:

O=DS(I)=dn(dn−1(…d1(I)…)).(2)O = D_S(I) = d_n(d_{n-1}(\ldots d_1(I)\ldots)). \tag*{(2)}

We assume a priori calibration: the type, order, and strength of each stage did_i 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 § 4.2.

Spatiotonal Coupling and System Constraints: In waveguide-based AR, the spatial light path directly dictates photometric response. A distorted pixel at coordinate u=[x,y]T\mathbf{u}=[x,y]^T is modelled as

Iobs(u)=Ttonal(I(Tspatial(u)),u),(3)I_{\mathrm{obs}}(\mathbf{u}) = \mathcal{T}_{\mathrm{tonal}}\left(I(\mathcal{T}_{\mathrm{spatial}}(\mathbf{u})),\mathbf{u}\right), \tag*{(3)}

where Tspatial\mathcal{T}_{\mathrm{spatial}} encodes geometric warping (e.g., Fisheye, Keystone) and Ttonal\mathcal{T}_{\mathrm{tonal}} encodes photometric shifts (e.g., WGNV, Color Fringes). Inverting DSD_S 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.

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. § 4.1 describes the Spaton training methodology and § 4.3 details the various Spatons we considered.

Training Procedure

A clean source image II is passed through model MM to produce a predistorted frame M(I)M(I), which is then subjected to the differentiable distortion pipeline DS\mathcal{D}_S to yield Iobs=DS(M(I))I_{\mathrm{obs}}=\mathcal{D}_S(M(I)). Gradients are back-propagated through DS\mathcal{D}_S to minimise the discrepancy between IobsI_{\mathrm{obs}} and the expected image EE (Figure 2). When geometric distortions are present, EE is defined as the largest axis-aligned square inscribed within the distorted boundary (found in O(L2)O(L^2)) and then resized via bilinear interpolation, ensuring the model compensates for both pixel-level distortion and the global ROI mapping. Without geometric distortion, E=IE=I.

Figure 2. End-to-end training overview.

Our loss function combines pixel-level fidelity (MSE, L1L_1 Hodson [12]) with perceptual quality (LPIPS Zhang et al. [40] with the AlexNet Krizhevsky et al. [19] backbone):

L=MSE⁡(Iobs,E)+0.5⋅L1(Iobs,E)+0.3⋅LPIPS⁡(Iobs,E)(4)\mathcal{L} = \operatorname{MSE}(I_{\mathrm{obs}}, E) + 0.5 \cdot L_1(I_{\mathrm{obs}}, E) + 0.3 \cdot\operatorname{LPIPS}(I_{\mathrm{obs}}, E) \tag*{(4)}

The dataset and training hyperparameters are detailed in § 5.1.

Formula-Agnostic Two-Phase Training

The procedure above back-propagates through a known, differentiable distortion pipeline DS\mathcal{D}_S. 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 NN1\mathrm{NN}_1 is fit to reproduce Algorithm 1: Sequential 5′: G-Res→ Patch2Pixel-v3

Input: Image I∈RH×W×3I \in\mathbb{R}^{H \times W \times3}; patch size PP; trained weights of MLPgeo\mathrm{MLP}_{\mathrm{geo}} and MLPton\mathrm{MLP}_{\mathrm{ton}}

Intermediate: Image I′∈RH×W×3I' \in\mathbb{R}^{H \times W \times3}; geometric correction

Output: predistorted image I′′∈RH×W×3I'' \in\mathbb{R}^{H \times W \times3}

// Stage 1: Geometric Correction (G-Res)

  1. for each pixel (x,y)(x,y) of I′I' do

  2. (x′,y′)←MLPgeo(x,y)(x',y') \leftarrow\mathrm{MLP}_{\mathrm{geo}}(x,y) // predict sub-pixel source coords

  3. (x0,y0)←⌊(x′,y′)⌋(x_0,y_0) \leftarrow\lfloor(x',y')\rfloor; (dx,dy)←(x′−x0,y′−y0)(d_x,d_y) \leftarrow(x'-x_0,y'-y_0)

  4. I′(x,y)←(1−dx)(1−dy) I(x0,y0)+dx(1−dy) I(x0+1,y0)I'(x,y) \leftarrow(1-d_x)(1-d_y)\,I(x_0,y_0)+d_x(1-d_y)\,I(x_0+1,y_0)

  5. +(1−dx)dy I(x0,y0+1)+dxdy I(x0+1,y0+1)\qquad\qquad\qquad\quad+(1-d_x)d_y\,I(x_0,y_0+1)+d_xd_y\,I(x_0+1,y_0+1)

  6. end

// Stage 2: Tonal Refinement (Patch2Pixel-v3)

  1. for each pixel (x,y)(x,y) of I′′I'' do

  2. f←[flatten⁡(x,y,P×P patch of I′ centred at (x,y))]∈R3P2+2f \leftarrow[\operatorname{flatten}(x,y,P \times P\text{ patch of }I'\text{ centred at }(x,y))] \in\mathbb{R}^{3P^2+2}

  3. ΔRGB←4⋅σ(MLPton(f))−2\Delta_{\mathrm{RGB}} \leftarrow4\cdot\sigma(\mathrm{MLP}_{\mathrm{ton}}(f))-2 // residual ∈[−2,2]3\in[-2,2]^3

  4. I′′(x,y)←clamp⁡(I′(x,y)+ΔRGB,[0,1])I''(x,y) \leftarrow\operatorname{clamp}(I'(x,y)+\Delta_{\mathrm{RGB}},[0,1])

  5. end

  6. return I′′I''

the distortion from image pairs alone, clean →NN1→\to\mathrm{NN}_1 \to distorted; NN1\mathrm{NN}_1 may be arbitrarily large since it is used only at training time. In Phase 2 we freeze NN1\mathrm{NN}_1 and train the compact deployable predistortion model NN2\mathrm{NN}_2 through it, clean →NN2→NN1\to\mathrm{NN}_2 \to\mathrm{NN}_1(frozen) →\to clean. Because gradients flow through the learned NN1\mathrm{NN}_1, the true forward process need not be differentiable or known in closed form, while Phase 2 retains a fully differentiable path for training NN2\mathrm{NN}_2.

Spaton Block Architecture

Our framework recasts predistortion as a patch-to-pixel transformation: each output pixel is predicted independently from a small P×PP \times P 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 Figure 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 II compensating for geometric distortions producing the intermediate frame I′I'. The second stage, processes I′I' to compensate for tonal distortions producing the final output frame I′′I''.

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 [−2,+2][-2,+2]. Data types: int8 = 8-bit integer pixel index; FP32 = 32-bit float; RGB = one 3-channel pixel.

The loop of line 1 implements the first stage. It iterates over the output pixels producing the intermediate frame I′I'. For each output pixel the model predicts the input frame II coordinates (x′,y′)(x',y') 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 II. 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 (x,y)(x,y) of I′′I'' (the final output frame), it fetches a P×PP \times P patch of pixels centered at (x,y)(x,y) (for the evaluation we use P=3P=3 which we found, empirically, to work well). The coordinates (x,y)(x,y) and the P2P^2 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 (x,y)(x,y) of I′′I''.

Geometric Distortion Compensation

We evaluate two geometric compensation models. G-Res is a tiny 3-layer residual MLP that maps (x,y)→(x′,y′)(x,y)\to(x',y') followed by the bilinear interpolation above (4,482 parameters at h=64h=64; we also use h=32,16h=32,16), and

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 § 15.

Applying the geometric compensation model produces an intermediate frame which becomes the input to the tonal compensation model.

Tonal models

We evaluate several tonal models, all 3-layer MLPs operating per pixel. All tonal models process pixels independently and ingest spatial coordinates (x,y)(x,y) alongside colour values (R,G,B)(R,G,B) to handle spatially-varying artifacts such as WGNU. C-Res takes a single pixel (x,y,R,G,B)(x,y,R,G,B) and predicts a normalized residual ΔRGB∈[−2,2]\Delta\mathrm{RGB} \in[-2,2]; C-Hybrid adds a shallow CNN branch. The Patch2Pixel family instead ingests a P×PP \times P patch: v1 predicts absolute RGB (an ablation of residual learning), v2 predicts a normalized residual with per-pixel coordinates (f∈R5P2f \in\mathbb{R}^{5P^{2}}), and v3 reduces the spatial input to center coordinates only (f∈R3P2+2f \in\mathbb{R}^{3P^{2}+2}), removing 2(P2−1)2(P^{2}-1) inputs with negligible quality loss (Table 3). Patch2Pixel-v3 is the tonal stage of our featured Sequential-5′ pipeline. Full descriptions are in Appendix § 15.

ModelhhSSIM↑\uparrowPSNR↑\uparrowLPIPS↓\downarrowRMSE↓\downarrow
Pure XR–.64114.6.635.186
Sequential-5′ (p=3p=3)64,64.94427.5.082.043
Sequential-5′ (p=3p=3)64,48.94327.4.085.043
Sequential-5′ (p=3p=3)32,32.93927.1.091.044
Sequential-7′ (p=3p=3)64,64,64.94427.6.083.042
Sequential-9/10 (no patch-tonal)64,64.89625.8.172.051
UNet++-Large–.86825.8.058.052
CompenNet++–.94427.7.033.041

Table 3. Mixed geometric + non-geometric distortions, Scenario 5 (↑\uparrow higher better, ↓\downarrow lower better). Full hh-sweep, all Sequential compositions, and the complete baseline ladder are in Table 24; Sequential 9/10 ablate the patch-tonal stage.

Residual (Δ\Delta) learning consistently outperforms direct colour prediction, particularly in multi-distortion scenarios. Patch context improves blur correction but offers diminishing returns beyond P=3P=3; P=5P=5 adds cost without meaningful quality gain.

Implementing Spatial Correction as a LUT

Once the geometry model is trained, it effectively implements a mapping function (x,y)→(x′,y′)(x,y) \to(x',y'). This allows us to implement any of them as a lookup table (LUT) which is indexed by (x,y)(x,y) and where each entry contains two floating point values. For a 256×256256 \times256 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 is 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 imaging baselines such as CompenNet++ cannot be reduced to a coordinate LUT because their output depends on image content.

Sequential Composition for Spatiotonal Correction

When geometric and tonal distortions are inseparable, we use a sequence of models. A composition of kk 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\approx0.003), suggesting the pipeline is modular and robust to reordering. Appendix § 13 (Table 7) lists combinations of geometric and tonal distortion correction models we considered.

ModelPipeline Definition
Sequential-1G-Res →\to Patch2Pixel-v2 (p=5p=5)
Sequential-2Patch2Pixel-v2 (p=5p=5) →\to G-Res
Sequential-3G-Res →\to C-Res →\to Patch2Pixel-v2 (p=5p=5)
Sequential-4C-Res →\to Patch2Pixel-v2 (p=5p=5) →\to G-Res
Sequential-5G-Res →\to Patch2Pixel-v2 (p=3p=3)
Sequential-5′G-Res →\to Patch2Pixel-v3 (p=3p=3)
Sequential-5′′G-Res →\to Patch2Patch (pin=5p_{\mathrm{in}}=5, pout=3p_{\mathrm{out}}=3)
Sequential-6Patch2Pixel-v2 (p=3p=3) →\to G-Res
Sequential-7G-Res →\to C-Res →\to Patch2Pixel-v2 (p=3p=3)
Sequential-7′G-Res →\to C-Res →\to Patch2Pixel-v3 (p=3p=3)
Sequential-7′′G-Res →\to C-Res →\to Patch2Patch (pin=5p_{\mathrm{in}}=5, pout=3p_{\mathrm{out}}=3)
Sequential-8C-Res →\to Patch2Pixel-v2 (p=3p=3) →\to G-Res
Sequential-9G-Res →\to C-Res
Sequential-10C-Res →\to G-Res

Table 7. Sequential model definitions.

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=64h = 64.

Methodology

Dataset. Images.cv (26k images, 3×256×2563 \times256 \times256, two categories) is our primary benchmark with a 70/15/15% train/val/test split. CelebA-HQ 256 Karras et al. [18]; Liu et al. [24] (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 [26] with cosine annealing and warm restarts Loshchilov & Hutter [25]; AMP (automatic mixed precision) Micikevicius et al. [33] enabled. On Images.cv at 256×256256 \times256: batch 32, lr 10−310^{-3}, min-lr 10−610^{-6}, weight decay 10−410^{-4}, warmup 5 epochs, 100 total epochs.

Evaluation Metrics. We report SSIM (structural similarity index) Wang & Bovik [37] and PSNR (peak signal-to-noise ratio) for perceptual and signal quality (higher is better), LPIPS (learned perceptual image patch similarity) Zhang et al. [40] 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 3×256×2563 \times256 \times256 input and include the MLPs, LUTs, and the fixed-function bilinear interpolation.

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 § 20 (Table 18–Table 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.

ModelKeystone S↑Keystone P↑Fisheye S↑Fisheye P↑Pincushion S↑Pincushion P↑Barrel S↑Barrel P↑Mustache S↑Mustache P↑
Pure XR.54113.2.64815.5.47914.3.56916.1.51614.7
G-Hybrid - H=16.979±.43835.3±22.1.990±.34238.4±23.0.821±.34223.7±9.4.990±.42138.7±22.6.983±.46736.5±21.8
G-Hybrid - H=64.987±.44638.1±24.9.993±.34540.4±25.0.958±.47932.5±18.2.992±.42339.7±23.6.988±.47238.8±24.2
G-Res.987±.44638.2±25.0.993±.34540.6±25.1.958±.47932.5±18.2.992±.42339.7±23.7.988±.47239.0±24.3
unet++ - Small.785±.24422.7±9.5.850±.20223.8±8.4.726±.24721.2±6.9.857±.28823.5±7.4.794±.27822.6±7.9
unet++ - Medium.820±.27925.5±12.3.875±.22727.5±12.1.775±.29625.3±11.0.898±.32929.2±13.1.831±.31527.0±12.3
unet++ - Large.867±.32628.2±14.9.923±.27530.3±14.8.833±.35427.1±12.8.938±.36931.6±15.5.901±.38529.7±15.1
compennet++.990±.44939.3±26.1.994±.34641.4±25.9.957±.47832.1±17.8.993±.42440.4±24.3.991±.47539.8±25.1

Table 18. Geometric Distortions Performance (↑ higher is better, ↓ lower is better).

ModelCt+ v1 S↑Ct+ v1 P↑Ct- v1 S↑Ct- v1 P↑Ct+ v2 S↑Ct+ v2 P↑Ct- v2 S↑Ct- v2 P↑Ct+ v3 S↑Ct+ v3 P↑Ct- v3 S↑Ct- v3 P↑
Pure XR.80621.9.85718.9.95328.1.94928.4.95128.3.95228.2
C-Hybrid (h=16h = 16).993±.18736.7±14.8.882±.02521.3±2.9.940−.01326.1−2.0.941−.00826.5−1.9.940−.01126.3−2.0.941−.01126.2−2.0
C-Hybrid (h=64h = 64).995±.18944.7±22.8.887±.03021.8±2.9.953±028.8±0.7.950±.00128.4±0.945−.00627.9−0.4.944−.00827.5−0.7
Patch2Pixel-v1 (p=3p = 3).998±.19250.8±28.9.889±.03222.1±3.2.970±.01730.5±2.4.965±.01629.3±0.9.950−.00128.1−0.2.947−.00528.2−0.2
Patch2Pixel-v1 (p=5p = 5).999±.19353.1±31.2.892±.03522.0±3.2.955±.00228.9±0.8.973±.02432.3±3.9.949−.00228.4−0.1.949−.00328.2+0
C-Pixel2Pixel1.00±.19461.6±59.7.893±.03622.2±3.4.985±.03234.4±6.3.989±.04035.9±7.9.951+.02828.5±0.3.951−.00128.4+0.2
Patch2Pixel-v2 (p=3p = 3)1.00±.19464.9±43.0.889±.03222.2±3.3.985±.03234.8±6.7.989±.04036.3±7.9.951+028.5±0.2.950−.00228.4±0.2
Patch2Pixel-v2 (p=5p = 5)1.00±.19464.4±42.5.897±.04022.2±3.3.984±.03134.7±6.6.988±.03936.0±7.6.951+028.5±0.2.951−.00128.4±0.2
Patch2Patch (h=32h=32).936±.13028.4±6.5.858±.00121.2±2.3.974±.02132.2±4.1.978±.02933.4±5.7.951−.00028.3−.0.951−.00128.3±.1
Patch2Patch (h=64h=64).936±.13028.4±6.5.858±.00121.2±2.3.975±.02232.5±4.4.978±.02933.5±5.1.951−.00028.3−.0.951−.00128.2±.2
Patch2Patch (h=128h=128).937±.13128.5±6.6.857±.00021.3±2.4.975±.02232.7±4.6.979±.03033.6±5.2.950−.00128.3−.0.951−.00128.2±.0
Patch2Patch (h=256h=256).937±.13128.5±6.6.857±.00021.3±2.4.975±.02232.8±4.7.979±.03033.6±5.2.950−.00128.3−.0.950−.00228.2±.0
Patch2Pixel-v3 (h=64h=64)1.00±.19469.4±47.5.889±.03222.2±3.3.985±.03234.8±6.7.989±.04036.3±7.9.950−.00028.5±.2.950−.00228.4±.2
unet++ - Small.851±.04522.4±0.5.759−.09819.4±0.6.870−.08322.3−5.8.812−.13721.9−6.8.785−.16621.3−6.9.785−.16721.3−6.9
unet++ - Medium.923±.11728.7±6.8.861±.00421.8±2.9.903−.05027.4−0.7.905−.04427.6−0.8.879−.07225.4−2.9.877−.07525.4−2.8
unet++ - Large.986±.18039.9±18.0.874±.01721.9±3.1.970±.01733.4±5.3.974±.02534.5±3.9.936−.01528.0−0.3.938−.01428.0−0.2
component++.999±.19351.0±29.1.867±.01022.0±3.1.979±.02634.4±6.3.984±.03535.8±7.4.939−.01228.3±0.938−.01228.2+0

Table 21. Non-Geometric Distortions Part 3: Contrast Variations (↑ higher is better, ↓ lower is better).

Geometric distortions

G-Res outperforms UNet++-Large on all geometric distortions (full per-distortion measurements in Appendix § 20, 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)(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)O(1) per pixel (a 99.99% compute reduction).

Non-geometric (tonal & spatiotonal) distortions

C-Res and Patch2Pixel-v2 (P=3P=3) match or exceed UNet++-Large across most tonal distortions (for example, WGNU and Color Balance); full per-distortion measurements in Appendix § 20, Table 19–Table 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 (x,y,R,G,B)(x, y, R, G, B) input; Patch2Pixel-v2 (P=3P=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.

ModelWG-v1 S↑WG-v1 P↑WG-v2 S↑WG-v2 P↑WG-v3 S↑WG-v3 P↑ColBal S↑ColBal P↑ElevBlk S↑ElevBlk P↑Blur S↑Blur P↑ColFrg S↑ColFrg P↑Vign S↑Vign P↑Br&Ct S↑Br&Ct P↑
Pure XR.99634.4.98425.4.97623.4.92217.8.97129.5.82326.5.74622.6.95518.5.4929.4
C-Hybrid - H=16.980-.01629.4-5.0.969-.01527.8+2.4.963-.01324.7+1.3.991+.06941.5+23.7.974+.00335.4+5.9.869+.04627.0+0.5.802+.05624.3+1.7.945-.01020.9+2.4.329-.1634.5-4.9
C-Hybrid - H=64.986-.01034.8+0.4.975-.00929.8+4.4.971-.00524.8+1.4.996+.07447.7+29.9.980+.00939.1+9.6.875+.05227.3+0.8.841+.09526.3+3.7.956+.00122.6+4.1.329-.1634.5-4.9
Patch2Pixel (v1) - P=3.986-.01034.3-0.1.986+.00233.8+8.4.978+.00225.2+1.8.999+.07752.6+34.8.979+.00838.1+8.6.876+.05327.1+0.6.800+.05424.9+2.3.961+.00622.9+4.4.329-.1634.5-4.9
Patch2Pixel (v1) - P=5.989-.00735.4+1.0.994+.01035.5+10.1.977+.00125.2+1.8.998+.07652.5+34.7.984+.01341.4+11.9.873+.05026.9+0.4.876+.13028.0+5.4.968+.01323.1+4.6.329-.1634.5-4.9
C-Pixel2Pixel.999+.00344.5+10.1.996+.01237.0+11.6.975-.00123.6+0.21.00+.07884.2+66.4.986+.01543.0+13.5.832+.00927.1+0.6.743-.00322.6+0.970+.01523.3+4.8.999+.50757.7+48.3
Patch2Pixel (v2) - P=3.999+.00344.7+10.3.996+.01237.1+11.7.976+023.6+0.21.00+.07867.1+49.3.986+.01542.7+13.2.889+.06627.9+1.4.848+.10225.8+3.2.972+.01723.2+4.7.997+.50549.1+39.7

Table 19. Non-Geometric Distortions Part 1: WGNU Variations and Basic Distortions (↑ higher is better, ↓ lower is better).

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).

Sc.TypeDistortions
1Non-GeometricColor balance, Brightness (Br)&Contrast (Ct), elev. black, vignetting, blur, color fringes
2Non-GeometricElev. black, Br±-v2, contrast-v2, blur, color fringes, vignetting, WGNU-v2
3GeometricKeystone, fisheye
4GeometricKeystone, barrel, fisheye
5SpatiotonalElev. black, Br±-v2, contrast-v2, blur, vignetting, keystone, color fringes, WGNU-v2, barrel, fisheye

Table 8. Summary of evaluation scenarios.

Non-geometric mixed (Scenarios 1–2)

Table 1 shows results for two tonal-only multi-distortion scenarios. Patch2Pixel-v2 (P=3P=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).

ModelSc. 1 S↑S{\uparrow}Sc. 1 P↑P{\uparrow}Sc. 2 S↑S{\uparrow}Sc. 2 P↑P{\uparrow}
Pure XR.4168.3.65517.3
C-Res.69122.3.73521.4
Patch2Pixel-v2 (p=3p=3).85727.4.86323.0
Patch2Pixel-v2 (p=5p=5).84427.3.87323.3
UNet++-Small.5078.6.61719.3
UNet++-Medium.83527.6.84022.9
UNet++-Large.89429.4.88823.5
CompenNet++.89429.4.87023.3

Table 1. Non-geometric mixed distortions. Sc. 1: color balance, Br&Ct, elevated black, vignetting, blur, color fringes. Sc. 2: elevated black, brightness±, contrast, blur, color fringes, vignetting, WGNU.

Geometric mixed (Scenarios 3–4)

Table 2 shows results for compound geometric distortions. G-Res maintains near-perfect correction (SSIM ≥0.975\ge0.975) on both scenarios, matching CompenNet++ (0.991 / 0.983) while using >100×>100\times fewer parameters.

ModelSc. 3 S↑S{\uparrow}Sc. 3 P↑P{\uparrow}Sc. 4 S↑S{\uparrow}Sc. 4 P↑P{\uparrow}
Pure XR.70415.3.65014.9
G-Hybrid h=16h=16.98235.8.96832.9
G-Hybrid.98737.4.97434.8
G-Res.98737.5.97534.9
UNet++-Small.85724.1.83423.7
UNet++-Medium.87727.1.85826.9
UNet++-Large.91429.2.89528.7
CompenNet++.99139.1.98336.3

Table 2. Geometric mixed distortions. Sc. 3: keystone + fisheye. Sc. 4: keystone + barrel + fisheye. G-Res leads all UNet++ variants by ≈8\approx8 dB PSNR and comes within ≈1.5\approx1.5 dB of CompenNet++ at ≈250×\approx250\times fewer parameters (Table 4).

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=64h=64) and Patch2Pixel-v3 (p=3p=3, h=64h=64) achieves SSIM 0.944 / PSNR 27.5 dB, matching CompenNet++ (0.944 / 27.7 dB) at 106×106\times fewer parameters and 6×6\times fewer FLOPs. The lighter Sequential-5′ (h=64,48h=64, 48) reaches SSIM 0.943 / PSNR 27.4 dB with negligible quality loss, and the smallest (h=32h=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\approx0.003), confirming the pipeline’s modularity.

Conclusion

For best quality we recommend Sequential-5′ with G-Res (h=64h=64) and Patch2Pixel-v3 (h=64h=64): 10.8K parameters, 1,407 MFLOPs, SSIM 0.944 / PSNR 27.5 dB matching CompenNet++ at 6×6\times lower FLOPs and two orders of magnitude fewer parameters. The lighter Patch2Pixel-v3 at h=48h=48 (8.5K parameters), the configuration used in the Section 6; Section 7 studies h=32h=32 and h=64h=64 and 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=32h=32 (6.7K parameters), still reaches SSIM 0.940 / PSNR 27.2 dB, useful where the parameter budget is tighter than the quality requirement.

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 § 4.2 (fit a forward-mimic NN1\mathrm{NN}_1 from image pairs, then train the deployable NN2\mathrm{NN}_2 through the frozen mimic), we validate predistortion in three settings, detailed in Appendix § 16. (i) On the full spatiotonal Scenario 5, the 8.5K-parameter NN2\mathrm{NN}_2 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 [14] (lavender_np, 700 pairs), the same network raises the uncorrected baseline (≈10.3\approx10.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 ×\times blur/contrast), NN2\mathrm{NN}_2 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.

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×10241024 \times1024 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 § 18 (Table 14 and Table 15).

ModelScenario 2 (Non-Geo)Scenario 4 (Geo)
S↑S^{\uparrow}P↑P^{\uparrow}S↑S^{\uparrow}P↑P^{\uparrow}
Pure XR.67617.7.74415.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)

Table 14.

ModelS↑S^{\uparrow}P↑P^{\uparrow}L↓L^{\downarrow}R↓R^{\downarrow}
Pure XR.64414.9.565.179
Sequential 1.947+.30329.0+14.1.052-.513.035-.144
Sequential 2.946+.30228.9+14.0.060-.505.036-.143
Sequential 3.947+.30329.1+14.2.048-.517.035-.144
Sequential 4.946+.30229.0+14.1.057-.508.035-.144
Sequential 5.948+.30429.1+14.2.066-.499.035-.144
Sequential 6.946+.30228.9+14.0.073-.492.036-.143
Sequential 7.949+.30529.2+14.3.064-.501.035-.144
Sequential 8.948+.30429.1+14.2.070-.495.035-.144
Sequential 9.906+.26227.1+12.2.149-.416.044-.135
Sequential 10.905+.26127.1+12.2.149-.416.044-.135
Unet++ - Small.814+.17022.9+8.0.150-.415.072-.107
Unet++ - Medium.854+.21025.9+11.0.077-.488.050-.129
Unet++ - Large.888+.24427.3+12.4.055-.510.043-.136
CompenNet++.948+.30429.3+14.4.032-.533.034-.145

Table 15.

Pipeline compositions defined in Table 7. Full pipeline: projector colour artefacts (elevated black, Br±2\sqrt{2}, contrast, blur, vignetting) →\to keystone →\to glass artefacts (color fringes, WGNU-v2) →\to 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 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.

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 Nw∗N_w^* within ≈0.1\approx0.1 dB PSNR and 0.01 SSIM of the FP32 baseline, then fix weights and sweep activation bits over the same 32–4 range for Na∗N_a^* (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 § 22 (Table 25).

ModelScenarioBaseline (FP32) PSNRBaseline (FP32) SSIMWeight-Only Quantization BitsWeight-Only Quantization PSNRWeight-Only Quantization SSIMWeight+Activation Quantization Bits (W+A)Weight+Activation Quantization PSNRWeight+Activation Quantization SSIM
Patch2Pixel-v2 (p=3)127.690.854613b27.68 (-0.01)0.8539 (-0.0007)13b+12b27.65 (-0.04)0.8510 (-0.0036)
Patch2Pixel-v3 (p=3)127.520.851514b27.42 (-0.10)0.8515 (+0.0000)14b+11b27.39 (-0.13)0.8474 (-0.0041)
Patch2Pixel-v2 (p=5)223.260.872812b23.26 (+0.00)0.8725 (-0.0003)12b+11b23.24 (-0.02)0.8684 (-0.0044)
Patch2Pixel-v2 (p=3)223.050.862711b23.00 (-0.05)0.8626 (-0.0001)11b+11b22.98 (-0.07)0.8556 (-0.0071)
Patch2Pixel-v3 (p=3)222.990.858810b22.91 (-0.08)0.8580 (-0.0008)10b+9b22.88 (-0.11)0.8518 (-0.0070)
G-Res337.810.987011b37.74 (-0.07)0.9869 (-0.0001)11b+12b37.76 (-0.05)0.9869 (-0.0001)
G-Res435.240.975212b35.14 (-0.10)0.9749 (-0.0003)12b+12b35.16 (-0.08)0.9749 (-0.0003)
Sequential 5’ (h=64,64)527.510.941910b27.48 (-0.03)0.9416 (-0.0003)10b+12b27.48 (-0.00)0.9415 (-0.0004)
sequential 7’ (h=64,64,64)527.510.941111b27.51 (-0.01)0.9409 (-0.0002)11b+12b27.50 (-0.01)0.9406 (-0.0002)

Table 25. Quantization Analysis Results (h=64)

Computation and Memory Efficiency Summary

Table 4 provides a concise efficiency comparison. Our single-stage models are 13–21× cheaper in FLOPs and 6–10× lower in memory transfers than UNet++-Large. Sequential pipelines add minimal overhead; the recommended Sequential-5′ (h=32,32h=32, 32) requires only 443 MFLOPs and 169 MB total memory transfers and over 19× less compute than CompenNet++. In the rest of this work we focus on Sequential-5′.

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 § 23.§ 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-UCG Wang et al. [36], UVG Mercat et al. [32]), sweeping all nine G-Res+Patch2Pixel-v3 operation modes (Table 26; Appendix § 23). 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 / 10−410^{-4} SSIM) while giving a 13–104× speedup on CPUs (e.g., 574→5.5 ms at UVG-1080 on Ryzen) and 2–6× 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 2562256^2 with high coherence) and otherwise regresses, adding 124–515% G-Res latency at 10802^2 because the 4.66M-edge CSR walk outweighs the reuse. 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 ≈0.01\approx0.01 dB / 10−410^{-4} (Table 27 reports the fastest configuration per target).

ModeDescription
G-Res Operation Modes
mlpEvaluates MLP on the full coordinate grid every frame.
lutPrecomputes 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 (x,y)(x, y), this is equivalent to mlp up to float32 rounding.
lutrevcacheAdds 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
mlpRuns the per-pixel MLP on every output pixel of every frame, with no caching.
3x3Reuses the previous tonal output only when all nine pixels in the 3×33 \times3 dependency neighbourhood are unchanged.
centerCompares 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.

Table 26. Design Space for Video Pre-distortion Exploration

TargetComputeDatasetNNBest configG-Res (ms)P2P (ms)Total (ms)fpsreal\mathrm{fps}_{\mathrm{real}}PSNR (dB)SSIM
Ryzen 9 5900XCPUUGC256lutrevcache+mlp1.2327.4828.7134.9026.400.896
Ryzen 9 5900XCPUUVG1080lut+mlp5.53487.16492.692.0323.520.838
RTX 3090GPUUGC360lut+mlp1.151.032.18530.3725.440.877
RTX 3090GPUUVG1080lut+mlp6.067.9614.0272.2023.520.838
Raspberry Pi 5CPUUGC256lut+mlp2.4383.5285.9511.6526.400.896
Raspberry Pi 5CPUUVG1080lut+mlp23.661339.401363.060.7323.510.838
Jetson Orin Nano SuperCPUUGC256lut+mlp2.8580.2683.1112.0426.400.896
Jetson Orin Nano SuperCPUUVG1080lut+mlp18.20994.591012.790.9923.510.838
Jetson Orin Nano (iGPU)GPUUGC360lut+center4.559.0313.5882.2925.450.877
Jetson Orin Nano (iGPU)GPUUVG1080lut+mlp20.2168.0788.2811.3323.510.838

Table 27. Cross-platform video workload summary for Sequential 5′. Latencies are per-frame medians of the predistortion compute. “Best config” minimizes tG-Res+tP2Pt_{\mathrm{G\text{-}Res}}+t_{\mathrm{P2P}}.

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 § 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 § 24 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 § 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: NN parallel MLP instances process disjoint pixel partitions, allowing throughput to scale with NN until device resources are exhausted. Full dataflow (Figure 6), per-stage resource accounting (Table 52), the FPGA processing-element mapping, and the latency derivation are given in Appendix § 24.

Sequential $5^{\prime}$ dataflow diagram

Figure 6. Sequential 5′5^{\prime} dataflow. Stage 1 is a LUT lookup plus bilinear interpolation; Stage 2 runs NN parallel Patch2Pixel MLPs. All buffers and weights are FP32.

MetricStage 1 (G-Res)Stage 2 (Patch2Pixel)Total
h=32h = 32h=64h = 64h=32h = 32h=64h = 64
Compute (FLOPs)1.97 M285.6 M826.8 M287.6 M828.8 M
Static (ROM)512 KB8.6 KB24.9 KB521 KB537 KB
Dynamic (RAM)1,536 KB1,536 KB1,536 KB2,304 KB + scratch
Transfer (Reads)3,584 KB777 KB793 KB4,361 KB4,377 KB per frame

Table 52. Per-frame resource requirements for Sequential 5′5^{\prime}. All quantities assume FP32; no quantization is applied (cf. § 5.6). Sizes use 1 KB=1024 bytes. “Transfer (Reads)” counts read traffic only and excludes the intermediate- and output-frame writes (2×7682 \times768 KB), unlike the Transfer column of Table 4, which is reads plus writes.

Peak throughput is estimated from total per-frame arithmetic work, FPSpeak=Ppeak/(FLOPsStage1+FLOPsStage2)\mathrm{FPS}_{\mathrm{peak}} = P_{\mathrm{peak}}/(\mathrm{FLOPs}_{\mathrm{Stage1}} + \mathrm{FLOPs}_{\mathrm{Stage2}}), giving 287.6 MFLOPs (h=32h=32) and 828.8 MFLOPs (h=64h=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. [34]; Jerald [16].

Using the latency model of Appendix § 24, the Zynq ZU3EG at N=16N=16 and 600 MHz achieves Tlatency≈1.01T_{\mathrm{latency}} \approx1.01–1.151.15 ms, while low-power CrossLink-NX at N=2N=2 and 200 MHz achieves ≈21.38\approx21.38–21.7921.79 ms. The Zynq ZU3EG thus meets XR latency targets at 1,068 FPS (h=32h=32, N=16N=16); the CrossLink-NX (44 FPS, N=2N=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.

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.

hhDevice (Freq)N=1N=1N=2N=2N=4N=4N=8N=8N=16N=16N=32N=32
32Lattice CrossLink-NX (200 MHz) Lattice Semiconductor [20]22.2544.51––––
32AMD Zynq ZU3EG (600 MHz) AMD [3]66.76133.52267.04534.081068.15–
64Lattice CrossLink-NX (200 MHz) Lattice Semiconductor [20]7.7215.44––––
64AMD Zynq ZU3EG (600 MHz) AMD [3]23.1646.3392.66185.32370.64–

Table 5. Peak FPS (throughput model above), assuming 16-PE MLP instances with 1 MAC/cycle/PE. Dashes indicate configurations exceeding device resources.

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 § 25.

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 [15], where an efficient per-pixel corrector like ours may also be applicable.

References

Appendix

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.5L10.5L_1 + 0.30.3 LPIPS), the same 70/15/15 Images.cv split at 256×256256 \times256, the same expected-image/ROI target EE (§ 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−310^{-3}, min-lr 10−610^{-6}, weight decay 10−410^{-4}, 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 § 20, Table 1) while CompenNet++, which contains a dedicated WarpingNet, performs well on the geometric scenarios (0.991/0.983).

Distortion Formulas

Notation. x⃗=(x,y)\vec{x}=(x,y) are normalized spatial coordinates; r2=x2+y2r^2=x^2+y^2; f(x⃗)f(\vec{x}) and g(x⃗)g(\vec{x}) are input and output pixel values; c∈{0,1,2}c\in\{0,1,2\} indexes RGB channels; a,b,p>0a,b,p>0 are scalar distortion parameters; μf,σf\mu_f,\sigma_f are the per-image mean and standard deviation of ff; ν,ϕ\nu,\phi are spatial frequency and phase; σ\sigma is the Gaussian standard deviation and GσG_\sigma its kernel; B(x⃗)B(\vec{x}) is a multi-frequency spatial blend pattern; pat⁡(x⃗)=12[sin⁡(2πfxx+ϕx)+sin⁡(2πfyy+ϕy)]\operatorname{pat}(\vec{x})=\frac{1}{2}[\sin(2\pi f_xx+\phi_x)+\sin(2\pi f_yy+\phi_y)] is a fixed-frequency spatial pattern; and h(⋅)h(\cdot) maps image statistics to frequency and phase.

Sequential Model Definitions

Evaluation Scenario Definitions

Additional Architecture Details

Geometric models

  • G-Res: a tiny 3-layer residual MLP; maps (x,y)→(x′,y′)(x,y) \to(x',y') followed by pixel interpolation. We consider hidden dimensions hh of 64, 32, and 16. For h=64h=64 the model has 4482 parameters in total.

  • G-Hybrid: augments G-Res with a shallow CNN branch over a 3×33 \times3 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 (x,y,R,G,B)(x,y,R,G,B); predicts a normalized ΔRGB∈[−2,2]\Delta\mathrm{RGB} \in[-2,2] 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 P×PP \times P patch in which each of the P2P^2 pixels carries its RGB values and its own (x,y)(x,y) spatial coordinates, giving f∈R5P2\mathbf{f} \in\mathbb{R}^{5P^2}. 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 (Δ\Delta) 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 f∈R5P2\mathbf{f} \in\mathbb{R}^{5P^2} input as v1, but predicts a normalized residual ΔRGB∈[−2,2]3\Delta\mathrm{RGB} \in[-2,2]^3 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: f=[flatten⁡(W),x,y]∈R3P2+2\mathbf{f}=[\operatorname{flatten}(\mathbf{W}),x,y] \in\mathbb{R}^{3P^2+2}, where W\mathbf{W} is the P×PP \times P RGB patch. This removes 2(P2−1)2(P^2-1) inputs relative to v2 with negligible quality loss (see Table 3), making it the preferred tonal stage in the Sequential 5′5' pipeline.

NN1_1 modelParamsPSNR↑SSIM↑LPIPS↓RMSE↓
CompenNet++1,152,14736.94.978.008.014
Sequential-5′ (h=64h=64)10,84728.81.948.035.036

Table 9. Two-phase Phase 1: forward-mimic fidelity on Scenario 5 (clean → NN1_1 → distorted).

Frozen NN1_1PSNR↑SSIM↑LPIPS↓RMSE↓Δ\DeltaPSNR vs. Pure-AR
CompenNet++26.59.926.110.047+11.95
Sequential-5′26.66.927.112.047+12.02

Table 10. Two-phase Phase 2 on Scenario 5: predistortion through the frozen NN1_1 (clean → NN2_2 → NN1frozen_1^{\mathrm{frozen}} → clean). NN2_2 is Sequential-5′, 8.5K params.

Formula-Agnostic, Real-Data, and Non-Uniform Validation

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 NN2_2 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.

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 [14] (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 h=64h=64 →Patch2Pixel-v3 h=48h=48) NN2_2 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) NN2_2 could not beat the uncorrected baseline, delimiting where predistortion is effective.

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 NN2_2 is a compact Sequential-5′ (G-Res h=64h=64 → Patch2Pixel-v3 p=3,h=48p=3, h=48; 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 → NN2_2 → AR-formulas → clean), NN2_2 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).

StageModelParamsPSNR↑\uparrowSSIM↑\uparrowLPIPS↓\downarrowRMSE↓\downarrow
Phase 1: forward mimic
P1CompenNet++ (black surface)1,152,14721.12.742.118.088
P1CompenNet++ (real surface)1,152,14723.92.827.066.064
Phase 2: predistortion (NN2_2 = Sequential-5′, 8,511 params)
P2Pure AR (no NN2_2), black–10.28.489––
P2Pure AR (no NN2_2), real–10.25.487––
P2NN2_2 → frozen black8,51122.23.816.154.077
P2NN2_2 → frozen real8,51120.62.781.196.093

Table 11. Real projector–camera data (lavender_np). Top: Phase-1 forward mimics. Bottom: Phase-2 predistortion through each frozen mimic (NN2_2 = Sequential-5′, h=64/48h=64/48, 8,511 params).

ModeModelParamsPSNR↑\uparrowSSIM↑\uparrowLPIPS↓\downarrowRMSE↓\downarrowΔ\DeltaPSNR
Known operator (analytic formulas)
Pure AR (uncorrected)–13.09.566–––
FormulaNN2_28,51125.22.915.090.055+12.1
Phase 1: learned forward mimic
MimicCompenNet++1,152,14735.96.970.012.016–
MimicSequential-5′10,84723.36.872.113.068–
Phase 2: predistortion through frozen mimic
Pure ARthrough CompenNet++–13.09.561–––
Two-phaseNN2_2→CompenNet++8,51124.78.890.097.058+11.7
Pure ARthrough Sequential-5′–13.01.555–––
Two-phaseNN2_2→Sequential-5′8,51128.86.941.054.036+15.9

Table 12. Spatially non-uniform four-regime degradation (keystone/fisheye × blur/contrast). Pure-AR is measured through each operator (rows grouped). NN2_2 is Sequential-5′, 8,511 params. The frozen-Seq-5′ Phase-2 value is 28.865 at 3 dp.

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 ≈100× smaller Sequential-5′ (10,847 params) 23.36 dB / 0.872 SSIM. Freezing each mimic and training NN2_2 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 ≈3.6 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.

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 spatiotemporal 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.

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/predistorted 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.

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 1024×10241024 \times1024 for Scenarios 2 and 4, using the hyperparameters listed in Table 13. Table 15 evaluates

HyperparameterValue
Batch size3
Restart period6 epochs
Warmup epochs3
Training epochs30
Dataset fraction50% of FFHQ dataset

Table 13.

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.

caption: Table 13: Hyperparameters of the FFHQ experiments. The rest of the hyperparameters are the same as the Images.cv dataset.

caption: Table 14: FFHQ higher-resolution training results for Scenarios 2 and 4. Models are trained directly on FFHQ at 1024×10241024 \times1024 using the hyperparameters in Table 13. Values show improvement over baseline. Best in bold, second-best underlined.

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.

caption: Table 15: Mixed Geometric and Non-Geometric Distortions on CelebA-HQ-256 (↑\uparrow higher is better, ↓\downarrow 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.

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.

Notation:

  • NN = num_elements, BB = batch_size, ss = scale_factor

  • CC = channels, CinC_{in} = input channels, CoutC_{out} = output channels

  • H,WH, W = input spatial dimensions, Hout,WoutH_{out}, W_{out} = output spatial dimensions

  • KK = kernel size (can be tuple Kh×KwK_h \times K_w), infinf = input features, outfoutf = output features

  • groupsgroups = number of groups for grouped convolution

  • stridestride = convolution stride (default: 1), paddingpadding = zero-padding (default: 0)

Output Dimension Formulas (all divisions are integer division ⌊⋅⌋\lfloor\cdot\rfloor):

  • Conv2d: Hout=⌊(H+2×padding−K)/stride⌋+1H_{out} = \lfloor(H + 2 \times padding - K)/stride\rfloor+ 1

  • TransConv2d: Hout=(H−1)×stride−2×padding+K+output_paddingH_{out} = (H - 1) \times stride - 2 \times padding + K + output\_padding

  • MaxPool/AvgPool: Hout=⌊(H−K)/stride⌋+1H_{out} = \lfloor(H - K)/stride\rfloor+ 1 (default stride =K= K)

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: 4×C×44 \times C \times4 = reading 4 parameters per channel (mean, var, γ\gamma, β\beta) ×\times 4 bytes each.

  • GridSample and Patch Extract use fixed C=3C = 3 (RGB) as they operate on image input/output.

  • Patch Extract writes K2×3K^{2} \times3 values per Pixel. For Win models (Patch2Pixel (v2)/Win/Act), coordinates are generated implicitly (0 memory) and the Linear layer combines Patches + coords into K2×5K^{2} \times5 input features.

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 13–21× fewer FLOPs and 6–10× less memory bandwidth than UNet++-Large, while matching its quality or exceeding it.

ComponentInput/Output DimsFLOPsMemory Reads (bytes)Memory Writes (bytes)
Conv2d(Cin,H,W)→(Cout,Hout,Wout)(C_{in}, H, W) \to(C_{out}, H_{out}, W_{out})2⋅Hout⋅Wout⋅Cin⋅K2⋅Cout/groups2 \cdot H_{out} \cdot W_{out} \cdot C_{in} \cdot K^{2} \cdot C_{out}/groupsCin⋅H⋅W⋅4+Coutgroups⋅K2⋅4C_{in} \cdot H \cdot W \cdot4 + \frac{C_{out}}{groups} \cdot K^{2} \cdot4Cout⋅Hout⋅Wout⋅4C_{out} \cdot H_{out} \cdot W_{out} \cdot4
TransConv2d(Cin,H,W)→(Cout,Hout,Wout)(C_{in}, H, W) \to(C_{out}, H_{out}, W_{out})2⋅Hout⋅Wout⋅Cin⋅K2⋅Cout/groups2 \cdot H_{out} \cdot W_{out} \cdot C_{in} \cdot K^{2} \cdot C_{out}/groupsCin⋅H⋅W⋅4+Cingroups⋅Cout⋅K2⋅4C_{in} \cdot H \cdot W \cdot4 + \frac{C_{in}}{groups} \cdot C_{out} \cdot K^{2} \cdot4Cout⋅Hout⋅Wout⋅4C_{out} \cdot H_{out} \cdot W_{out} \cdot4
Linear(B,inf)→(B,outf)(B, inf) \to(B, outf)$2 \cdot B \cdot inf \cdot outf$B⋅inf⋅4+inf⋅outf⋅4B \cdot inf \cdot4 + inf \cdot outf \cdot4B⋅outf⋅4B \cdot outf \cdot4
BatchNorm(C,H,W)→(C,H,W)(C, H, W) \to(C, H, W)$2 \cdot C \cdot H \cdot W$C⋅H⋅W⋅4+4⋅C⋅4C \cdot H \cdot W \cdot4 + 4 \cdot C \cdot4C⋅H⋅W⋅4C \cdot H \cdot W \cdot4
ReLUN→NN \to NNNN⋅4N \cdot4N⋅4N \cdot4
LeakyReLUN→NN \to N2⋅N2 \cdot NN⋅4N \cdot4N⋅4N \cdot4
SigmoidN→NN \to N4⋅N4 \cdot NN⋅4N \cdot4N⋅4N \cdot4
TanhN→NN \to N4⋅N4 \cdot NN⋅4N \cdot4N⋅4N \cdot4
ClampN→NN \to N00N⋅4N \cdot4N⋅4N \cdot4
Scale (ax+b)(ax+b)N→NN \to N2⋅N2 \cdot NN⋅4N \cdot4N⋅4N \cdot4
GridSample (Interpolation)(3,H,W)+grid→(3,H,W)(3, H, W) + grid \to(3, H, W)8⋅H⋅W⋅38 \cdot H \cdot W \cdot3$3 \cdot H \cdot W \cdot 4 + H \cdot W \cdot 2 \cdot 4$H⋅W⋅3⋅4H \cdot W \cdot3 \cdot4
MaxPool(C,H,W)→(C,Hout,Wout)(C, H, W) \to(C, H_{out}, W_{out})(K2−1)⋅Hout⋅Wout⋅C(K^{2}-1) \cdot H_{out} \cdot W_{out} \cdot CC⋅H⋅W⋅4C \cdot H \cdot W \cdot4C⋅Hout⋅Wout⋅4C \cdot H_{out} \cdot W_{out} \cdot4
AvgPool(C,H,W)→(C,Hout,Wout)(C, H, W) \to(C, H_{out}, W_{out})(K2+1)⋅Hout⋅Wout⋅C(K^{2}+1) \cdot H_{out} \cdot W_{out} \cdot CC⋅H⋅W⋅4C \cdot H \cdot W \cdot4C⋅Hout⋅Wout⋅4C \cdot H_{out} \cdot W_{out} \cdot4
Concat[T1,T2,…]→Tout[T_{1}, T_{2}, \ldots] \to T_{out}00∑(sizei)⋅4\sum(size_{i}) \cdot4sizeout⋅4size_{out} \cdot4
AddN,N→NN, N \to NNN2⋅N⋅42 \cdot N \cdot4N⋅4N \cdot4
MultiplyN,N→NN, N \to NNN2⋅N⋅42 \cdot N \cdot4N⋅4N \cdot4
Upsample (bilinear)(C,H,W)→(C,Hs,Ws)(C, H, W) \to(C, Hs, Ws)8⋅(Hs)⋅(Ws)⋅C8 \cdot(Hs) \cdot(Ws) \cdot CC⋅H⋅W⋅4C \cdot H \cdot W \cdot4C⋅(Hs)⋅(Ws)⋅4C \cdot(Hs) \cdot(Ws) \cdot4
Upsample (nearest)(C,H,W)→(C,Hs,Ws)(C, H, W) \to(C, Hs, Ws)00C⋅H⋅W⋅4C \cdot H \cdot W \cdot4C⋅(Hs)⋅(Ws)⋅4C \cdot(Hs) \cdot(Ws) \cdot4
Patch Extract(3,H,W)→(HW,K2⋅3)(3, H, W) \to(HW, K^{2} \cdot3)003⋅H⋅W⋅43 \cdot H \cdot W \cdot4H⋅W⋅K2⋅3⋅4H \cdot W \cdot K^{2} \cdot3 \cdot4
Coordinate GenHWHW pixels →(x,y)\to(x,y) per pixel000000
IdentityN→NN \to N000000

Table 16. Base Component Rules for FLOPs, Memory Reads, and Memory Writes

ModelParametersSize (MB)Total FLOPsReads (MB)Writes (MB)Transfer (MB)
Baseline Models
CompenNet++1,152,1474.408,525,512,70485.1677.25162.41
UNet++ Large6,825,01126.0412,129,370,112723.35669.121392.48
UNet++ Small2,552,5619.745,606,285,312652.91625.531278.44
UNet++ Medium3,241,48712.376,358,827,008666.36634.251300.61
Single-Stage Models
C-Pixel2Pixel (h=64h=64)4,7570.02615,907,32872.5269.25141.77
G-Res (h=64h=64)4,4820.02580,780,03268.5266.75135.27
G-Hybrid (h=16h=16)1,1180.00144,572,41631.0028.7559.75
G-Hybrid (h=64h=64)7,1500.03927,858,68887.0384.75171.78
C-Hybrid (h=16h=16)1,4370.01184,614,91233.7630.0063.76
C-Hybrid (h=64h=64)7,8850.031,022,427,13689.7886.00175.78
Patch2Pixel-v1 (h=64h=64, p=3p=3)7,4370.03966,590,46490.2873.75164.03
Patch2Pixel-v1 (h=64h=64, p=5p=5)12,7970.051,669,136,384130.3085.75216.05
Patch2Pixel-v2 (h=64h=64, p=3p=3)7,4370.03967,180,28893.2876.00169.28
Patch2Pixel-v2 (h=64h=64, p=5p=5)12,7970.051,669,726,208133.3088.00221.30
Patch2Pixel-v3 (h=64h=64, p=3p=3)6,3650.02826,671,10485.2776.00161.27
Patch2Pixel-v3 (h=64h=64, p=5p=5)9,5810.041,248,198,656109.2988.00197.29
Multi-Stage Models (Sequential models, see the sequential model details)
Sequential 1/2 (h=64h=64)17,2790.072,250,506,240201.81154.75356.56
Sequential 3/4 (h=64h=64)22,0360.082,866,413,568274.33224.00498.33
Sequential 5/6 (h=64h=64)11,9190.051,547,960,320161.79142.75304.54
Sequential 7/8 (h=64h=64)16,6760.062,163,867,648234.31212.00446.31
Sequential 9/10 (h=64h=64)9,2390.041,196,687,360141.03136.00277.03
Sequential 5 (h=32h=32)3,8470.01516,161,53697.7678.75176.51
Sequential 5 (h=16h=16)1,4790.01201,588,73665.7646.75112.51
Sequential 7 (h=32h=32)5,1420.02691,666,944138.27116.00254.27
Sequential 7 (h=16h=16)1,8780.0157,556,48090.2668.00158.26
Sequential 5’ (h=64h=64)10,8470.041,407,451,136153.79142.75296.54
Sequential 5’ (h=32h=32)3,4230.01442,761,21689.7678.75168.51
Sequential 5” (h=64h=64)36,5670.141,054,283,66094.9989.37184.36
Sequential 7’ (h=64h=64)15,6040.062,023,358,464226.31212.00438.31
Sequential 7’ (h=32h=32)4,7880.02618,266,624130.27116.00246.27
Sequential 7” (h=64h=64)41,3240.161,670,190,988167.50158.62326.12

Table 17. Model Summary: FLOPs, Memory, and Parameters

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,

  • Input: 3×256×2563 \times256 \times256 RGB image. Output: 3×256×2563 \times256 \times256 (same size).

  • Size (MB) = Parameters ×4\times4 bytes / 1,048,576.

  • Transfer = Reads + Writes (total memory bandwidth).

  • hh = hidden dimension, pp = Patch size.

  • Sequential models chain multiple single-stage models; configurations detailed in the paper.

  • Seq5 = G-Res → Patch2Pixel-v2 (p=3p=3); Seq7 = G-Res → C-Pixel2Pixel → Patch2Pixel-v2 (p=3p=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.

ModelBr- v1 S↑Br- v1 P↑Br+ v1 S↑Br+ v1 P↑Br- v2 S↑Br- v2 P↑Br+ v2 S↑Br+ v2 P↑Br± v2 S↑Br± v2 P↑Br- v3 S↑Br- v3 P↑Br+ v3 S↑Br+ v3 P↑Br± v3 S↑Br± v3 P↑
Pure XR.51411.5.75211.3.86219.9.92719.9.88720.4.85119.4.92319.4.89620.4
C-Hybrid (h=16h = 16).942±.42820.3±8.8.853±.10120.1±8.8.946±.08425.6±5.7.943±.01625.5±5.6.884−.00321.0±0.6.943±.09224.6±5.2.943±.02025.2±5.8.872−.02420.0−0.4
C-Hybrid (h=64h = 64).948±.43420.3±8.8.853±.10120.1±8.8.964±.10227.7±7.8.948±.02127.0±7.1.908±.02122.9±2.5.944±.09324.9±5.5.944±.02125.2±5.8.878−.01820.5+0.1
Patch2Pixel-v1 (p=3p = 3).943±.42920.4±8.9.852±.10020.1±8.8.978±.11629.9±10.0.962±.03531.2±11.3.966±.07929.3±8.9.948±.09725.0±5.6.948±.02525.7±6.3.881−.01520.5+0.1
Patch2Pixel-v1 (p=5p = 5).951±.43720.3±8.8.857±.10520.1±8.8.984±.12230.9±11.0.965±.03832.3±12.4.971±.08430.1±9.7.951±.10025.2±5.8.949±.02625.7±6.3.882−.01420.5+0.1
C-Pixel2Pixel.941±.42720.4±8.9.849±.09720.2±8.9.990±.12831.6±11.7.967±.04033.5±13.6.980±.09332.5±12.1.952±.10125.2±5.8.951±.02825.8±6.4.885−.01120.6+0.2
Patch2Pixel-v2 (p=3p = 3).941±.42720.3±8.8.845±.09320.1±8.8.991±.12931.5±11.6.967±.04033.2±13.3.980±.09332.6±12.2.952±.10125.2±5.8.948±.02525.7±6.3.883−.01320.6+0.2
Patch2Pixel-v2 (p=5p = 5).951±.43720.3±8.8.855±.10320.1±8.8.991±.12931.5±11.6.968±.04133.2±13.3.980±.09332.5±12.1.953±.10225.2±5.8.950±.02725.7±6.3.881−.01520.6+0.2
Patch2Patch (h=32h=32).939±.42520.3±8.8.843±.09120.0±8.7.989±.12731.5±11.6.967±.04033.0±13.1.977±.09032.3±11.9.952±.10125.1±5.7.950±.02725.6±6.2.886−.01020.5+0.1
Patch2Patch (h=64h=64).940±.42620.3±8.8.840±.08820.0±8.7.990±.12831.5±11.6.967±.04033.1±13.2.979±.09232.5±12.1.952±.10125.2±5.8.950±.02725.7±6.3.885−.01120.6+0.2
Patch2Patch (h=128h=128).939±.42520.3±8.8.840±.08820.0±8.7.990±.12831.5±11.6.967±.04033.1±13.2.980±.09332.5±12.1.952±.10125.1±5.7.950±.02725.7±6.3.885−.01120.6+0.2
Patch2Patch (h=256h=256).939±.42520.3±8.8.840±.08820.0±8.7.990±.12831.6±11.7.967±.04033.1±13.2.980±.09332.5±12.1.952±.10125.1±5.7.950±.02725.7±6.3.886−.01020.6+0.2
Patch2Pixel (v3) (h=64h=64).941±.42720.3±8.8.845±.09320.1±8.8.990±.12831.6±11.7.967±.04033.2±13.3.980±.09332.5±12.1.952±.10125.2±5.8.949±.02625.7±6.3.881−.01520.6+0.2
unet++ - Small.774±.26018.3±6.8.680−.07217.9±6.6.862±022.0±2.1.791−.13621.8±1.9.809−.07821.6±1.2.813−.03820.6±1.2.761−.16220.5±1.1.740−.15618.2−2.2
unet++ - Medium.859±.34519.6±8.1.854±.06219.8±8.5.919±.05726.5±6.6.885−.04227.0±7.1.898±.01126.7±6.3.919±.06824.7±5.3.864−.05923.8±4.4.779−.11719.8−0.6
unet++ - Large.924±.41020.1±8.6.809−.05719.8±8.5.978±.11630.7±10.8.953±.02631.9±12.0.965±.07831.3±10.9.942±.09125.0±5.6.936±.01325.6±6.1.843−.05320.4−0.0
component++.922±.40820.1±8.6.804±.05219.8±4.5.982±.12030.9±11.0.962±.03532.5±12.6.963±.07631.2±10.8.939±.08825.1±5.7.940±.01725.6±6.2.822−.07420.4+0.0

Table 20. Non-Geometric Distortions Part 2: Brightness Variations (↑ higher is better, ↓ lower is better).

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 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 DimensionsScenario 5
SSIM↑\uparrowPSNR↑\uparrowLPIPS↓\downarrowRMSE↓\downarrow
Pure XR.64114.6.635.186
Sequential-1: G-Res →\to Patch2Pixel-v2 (p=5p = 5)
64, 64.942+.301_{+.301}27.4+12.7_{+12.7}.063−.572_{-.572}.043−.143_{-.143}
Sequential-2: Patch2Pixel-v2 (p=5p = 5) →\to G-Res
64, 64.941+.300_{+.300}27.3+12.7_{+12.7}.076−.559_{-.559}.043−.143_{-.143}
Sequential-3: G-Res →\to C-Res →\to Patch2Pixel-v2 (p=5p = 5)
64, 64, 64.943+.302_{+.302}27.5+12.9_{+12.9}.060−.575_{-.575}.042−.144_{-.144}
Sequential-4: C-Res →\to Patch2Pixel-v2 (p=5p = 5) →\to G-Res
64, 64, 64.940+.299_{+.299}27.4+12.8_{+12.8}.073−.562_{-.562}.043−.143_{-.143}
Sequential-5: G-Res →\to Patch2Pixel-v2 (p=3p = 3)
64, 64.943+.302_{+.302}27.5+12.9_{+12.9}.084−.551_{-.551}.042−.144_{-.144}
32, 32.939+.298_{+.298}27.2+12.6_{+12.6}.093−.542_{-.542}.044−.142_{-.142}
16, 16.923+.282_{+.282}26.4+11.8_{+11.8}.112−.523_{-.523}.048−.138_{-.138}
Sequential-5′: G-Res →\to Patch2Pixel-v3 (p=3p = 3)
64, 64.943+.302_{+.302}27.5+12.9_{+12.9}.084−.551_{-.551}.042−.144_{-.144}
64, 48.943+.302_{+.302}27.4+12.8_{+12.8}.085−.550_{-.550}.043−.143_{-.143}
64, 32.940+.299_{+.299}27.2+12.6_{+12.6}.091−.544_{-.544}.044−.142_{-.142}
32, 32.939+.298_{+.298}27.1+12.5_{+12.5}.091−.544_{-.544}.044−.142_{-.142}
16, 16.929+.288_{+.288}26.6+12.0_{+12.0}.103−.532_{-.532}.047−.139_{-.139}
Sequential-5″: G-Res →\to Patch2Patch (pin=5p_{\mathrm{in}} = 5, pout=3p_{\mathrm{out}} = 3)
64, 128.913+.272_{+.272}26.7+12.1_{+12.1}.067−.568_{-.568}.046−.140_{-.140}
64, 256.922+.281_{+.281}27.0+12.4_{+12.4}.057−.578_{-.578}.045−.141_{-.141}
32, 128.918+.277_{+.277}26.9+12.3_{+12.3}.065−.570_{-.570}.045−.141_{-.141}
32, 256.922+.281_{+.281}27.0+12.4_{+12.4}.059−.576_{-.576}.045−.141_{-.141}
16, 128.911+.270_{+.270}26.5+11.9_{+11.9}.070−.565_{-.565}.047−.139_{-.139}
16, 256.913+.272_{+.272}26.5+11.9_{+11.9}.062−.573_{-.573}.047−.139_{-.139}
Sequential-6: Patch2Pixel-v2 (p=3p = 3) →\to G-Res
64, 64.939+.298_{+.298}27.3+12.6_{+12.6}.093−.542_{-.542}.043−.143_{-.143}
Sequential 7: G-Res →\to C-Res →\to Patch2Pixel-v2 (p=3p = 3)
64, 64, 64.945+.304_{+.304}27.6+13.0_{+13.0}.082−.553_{-.553}.042−.144_{-.144}
32, 32, 32.940+.299_{+.299}27.3+12.7_{+12.7}.091−.544_{-.544}.043−.143_{-.143}
16, 16, 16.928+.287_{+.287}26.7+12.1_{+12.1}.107−.528_{-.528}.046−.140_{-.140}
Sequential-7′: G-Res →\to C-Res →\to Patch2Pixel-v3 (p=3p = 3)
64, 64, 64.944+.303_{+.303}27.6+13.0_{+13.0}.083−.552_{-.552}.042−.144_{-.144}
32, 32, 32.934+.293_{+.293}27.1+12.5_{+12.5}.097−.538_{-.538}.044−.142_{-.142}
16, 16, 16.923+.282_{+.282}26.4+11.8_{+11.8}.106−.529_{-.529}.048−.138_{-.138}
Sequential-7″: G-Res →\to C-Res →\to Patch2Patch (pin=5p_{\mathrm{in}} = 5, pout=3p_{\mathrm{out}} = 3)
64, 64, 128.934+.293_{+.293}27.4+12.8_{+12.8}.053−.582_{-.582}.043−.143_{-.143}
64, 64, 256.939+.298_{+.298}27.5+12.9_{+12.9}.048−.587_{-.587}.042−.144_{-.144}
32, 32, 128.929+.288_{+.288}27.1+12.5_{+12.5}.056−.579_{-.579}.044−.142_{-.142}
32, 32, 256.937+.296_{+.296}27.4+12.8_{+12.8}.049−.586_{-.586}.043−.143_{-.143}
16, 16, 128.924+.283_{+.283}26.7+12.1_{+12.1}.061−.574_{-.574}.046−.140_{-.140}
16, 16, 256.930+.289_{+.289}27.0+12.4_{+12.4}.054−.581_{-.581}.045−.141_{-.141}
Sequential-8: C-Res →\to Patch2Pixel-v2 (p=3p = 3) →\to G-Res
64, 64, 64.941+.300_{+.300}27.4+12.8_{+12.8}.089−.546_{-.546}.043−.143_{-.143}
Sequential-9: G-Res →\to C-Res (ablation)
64, 64.896+.255_{+.255}25.8+11.2_{+11.2}.172−.463_{-.463}.051−.135_{-.135}
Sequential-10: C-Res →\to G-Res (ablation)
64, 64.896+.255_{+.255}25.8+11.2_{+11.2}.172−.463_{-.463}.051−.135_{-.135}
Baseline Models
Unet++ - Small.790+.149_{+.149}22.3+7.7_{+7.7}.149−.486_{-.486}.077−.109_{-.109}
Unet++ - Medium.831+.190_{+.190}24.5+9.9_{+9.9}.083−.552_{-.552}.059−.127_{-.127}
Unet++ - Large.868+.227_{+.227}25.8+11.2_{+11.2}.058−.577_{-.577}.052−.134_{-.134}
CompenNet++.944+.303_{+.303}27.7+13.1_{+13.1}.033−.602_{-.602}.041−.145_{-.145}

Table 24.

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

Quantization Analysis

Table 25 reports the full quantization sweep results summarized in § 5.6. For each model, we sweep weight precision from 32 down to 4 bits to identify the minimum weight precision Nw∗N_w^* within ≈0.1 dB PSNR and 0.01 SSIM of the FP32 baseline. Weights are then fixed at Nw∗N_w^* and activation precision is swept over the same 32–4 range, under the same criterion, to find Na∗N_a^*. 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 −0.13 dB PSNR), and Sequential-5′ tolerates 10-bit weights with 12-bit activations at less than 0.01 dB PSNR loss.

Video Workload Characterization

This appendix provides the complete supporting material for the video workload extension of § 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 fpsreal=1000/(tG-Res+tP2P)\mathrm{fps}_{\mathrm{real}}=1000/(t_{\mathrm{G\text{-}Res}}+t_{\mathrm{P2P}}) and the quality columns are reported (harness wall-clock / synthetic FPS are not deployment-relevant and are omitted).

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)(x,y) plus the centre RGB plus the 24 RGB values of the eight reflect-padded 3×3 neighbours (P=3P=3); the output is sigmoid-scaled to [−2, 2], added to the centre pixel, and clamped to [0, 1]. Total: 8,511 float32 parameters.

Abbreviations: Br = Brightness, + = increase, - = decrease, ± = both increase and decrease, v1/v2/v3 = variation 1/2/3

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 f:[0,1]2→[0,1]2f : [0,1]^2 \to[0,1]^2 sampled on a denser grid, and the Patch2Pixel-v3 neighbours are always the immediate physical 3×33 \times3 pixels. Table 28 lists the resolution-dependent quantities (all derived at startup from a single --input-size flag); the ROI preserves ≈49% pixel coverage by construction. The default PSNR cost of running outside the training resolution is ≈1 dB (UGC 256→360: 26.40→25.44 dB); UVG@1080 lands at 23.5 dB on every host.

QuantityN=256N=256N=360N=360N=1080N=1080
Pixels per frame (3N23N^2)196,608388,8003,499,200
ROI window179×179252×252755×755
ROI / total pixels48.95%49.00%48.99%
Forward-LUT size524 KB1.0 MB9.3 MB
Reverse-LUT size1.3 MB2.5 MB23 MB
Reverse-LUT edges (4N24N^2)262,144518,4004,665,600

Table 28. Resolution-dependent quantities (one –input-size knob propagates everywhere).

Runtime Design Space

The benchmark sweeps a 3×33 \times3 grid (Table 29): three G-Res modes × three Patch2Pixel-v3 cache modes, identical on CPU and CUDA. lut 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; 3x3 reuses only where the full 3×33 \times3 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 N×NN \times N coordinate grid; the reverse LUT is its bilinear-stencil transpose in CSR form (4N24N^2 edges).

ModelScenario 1 S↑Scenario 1 P↑Scenario 2 S↑Scenario 2 P↑
Pure XR.4168.3.65517.3
C-Hybrid (h=16h = 16).782^{+.366}24.8^{+16.5}.724^{+.069}19.3^{+2.0}
C-Hybrid (h=64h = 64).633^{+.217}8.7^{+0.4}.798^{+.143}21.5^{+4.2}
Patch2Pixel-v1 (p=3p = 3).620^{+.204}8.7^{+0.4}.797^{+.142}21.6^{+4.4}
Patch2Pixel (v1) (p=5p = 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=3p = 3).857^{+.441}27.4^{+19.1}.863^{+.208}23.0^{+5.8}
Patch2Pixel-v2 (p=5p = 5).844^{+.428}27.3^{+19.1}.873^{+.218}23.3^{+6.0}
Patch2Patch (h=32h = 32).665^{+.249}23.0^{+14.7}.681^{+.026}21.1^{+3.8}
Patch2Patch (h=64h = 64).662^{+.246}23.0^{+14.7}.681^{+.026}21.2^{+3.9}
Patch2Patch (h=128h = 128).678^{+.262}23.5^{+15.2}.682^{+.027}21.3^{+4.0}
Patch2Patch (h=256h = 256).681^{+.265}23.5^{+15.2}.679^{+.024}21.3^{+4.0}
Patch2Pixel-v3 (h=64h = 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 22. Non-Geometric Mixed Distortions (↑\uparrow higher is better, ↓\downarrow lower is better). Scenario 1: described in the paper.

ModelScenario 3 S↑Scenario 3 P↑Scenario 4 S↑Scenario 4 P↑
Pure XR.70415.3.65014.9
G-Hybrid (h=16h = 16).982^{+.278}35.8^{+20.5}.968^{+.318}32.9^{+18.0}
G-Hybrid (h=64h = 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}

Table 23. Geometric Mixed Distortions (↑\uparrow higher is better, ↓\downarrow lower is better). Scenarios 3 & 4: described in the paper.

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 4N24N^2 input→output edges (∼\sim262k at N=256N=256; ∼\sim4.66M at N=1080N=1080). We store it as a compressed-sparse-row (CSR) array with an offsets array of length N2+1N^2+1 and an indices array of length 4N24N^2. Per-input-pixel fan-in is heavy-tailed: at N=256N=256 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 Θ(N2)\Theta(N^2)), (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 4N24N^2, which is why lutrevcache is competitive on small dependency graphs with high inter-frame coherence and regresses otherwise.

Datasets and Motion Stratification

YouTube-UGC Wang et al. [36]: the 360p H.264 CRF-10 subset, 182 clips across 12 categories (HDR/VR/vertical excluded), 20 s each (≈\approx600 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 256×256 grayscale stream; the selected clips span a 1,295× motion range. UVG Mercat et al. [32]: 1920×1080 sources

CategoryClips
Sports24
Lecture23
NewsClip20
HowTo20
LiveMusic16
Gaming16
CoverSong16
Animation14
MusicVideo12
Vlog10
TelevisionClip6
LyricVideo5
Total182

Table 30. YouTube-UGC 360p subset by category.

GroupClipCategoryMean change
SmoothLecture_360P-051aLecture1.157×10−41.157 \times10^{-4}
SmoothLyricVideo_360P-5e87LyricVideo1.361×10−41.361 \times10^{-4}
MediumGaming_360P-586dGaming1.758×10−21.758 \times10^{-2}
MediumVlog_360P-2973Vlog1.835×10−21.835 \times10^{-2}
FastVlog_360P-3121Vlog1.386×10−11.386 \times10^{-1}
FastMusicVideo_360P-24b0MusicVideo1.503×10−11.503 \times10^{-1}

Table 31. Six motion-stratified YouTube-UGC benchmark clips.

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.

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−49.60 \times10^{-4}; ReadySetGo, 5.95×10−25.95 \times10^{-2}). Each UGC sweep is 6×9=546 \times9=54 rows; each UVG sweep is 2×9=182 \times9=18 rows.

Hardware Platforms

The Jetson is the replacement Orin Nano Super (MAXN_SUPER 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).

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 tG−Rest_{\mathrm{G-Res}} and tP2Pt_{\mathrm{P2P}}. 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 tG−Res+tP2Pt_{\mathrm{G-Res}}+t_{\mathrm{P2P}}, 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 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.

ExpHostDatasetKindOMPMargin
1Ryzen 5900XUGCCPU16+3.50%
2Raspberry Pi 5UGCCPU6+2.16%
3Jetson Orin Nano SuperUGCCPU28+0.33% (boundary)
4Ryzen 5900X / RTX 3090UGCGPU14+2.31%
5Jetson iGPUUGCGPU8+1.68% (noise zone)
6Ryzen 5900XUVGCPU32+0.37% (boundary)
7Raspberry Pi 5UVGCPU8+0.42%
8Jetson Orin Nano SuperUVGCPU18+0.14% (true optimum)
9Ryzen 5900X / RTX 3090UVGGPU16+2.33%
10Jetson iGPUUVGGPU10+1.00%

Table 35. Per-experiment OpenMP winners. “Margin” is the gap to the next-best thread count.

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 fpsreal\mathrm{fps}_{\mathrm{real}}). P2P = Patch2Pixel-v3; “G”/“P”/“D” are G-Res/Patch2Pixel-v3/Distortion latency in ms.

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 < 0.01 dB / 10−410^{-4} 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.

Target / datasetmlp mslut msrev msmlp→lut
Ryzen / UGC256 (CPU)31.442.451.2312.8×
Pi 5 / UGC256 (CPU)94.482.432.5738.9×
Jetson / UGC256 (CPU)90.232.852.5931.7×
Ryzen / UVG1080 (CPU)574.085.5328.77103.8×
Pi 5 / UVG1080 (CPU)1526.5323.6653.9164.5×
Jetson / UVG1080 (CPU)1116.7918.2057.0261.4×
RTX 3090 / UGC360 (GPU)2.211.152.221.92×
Jetson iGPU / UGC360 (GPU)18.753.945.324.76×
RTX 3090 / UVG1080 (GPU)13.796.0629.052.28×
Jetson iGPU / UVG1080 (GPU)113.0920.2158.945.60×

Table 46. G-Res latency by mode and mlp→lut speedup.

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).

Target / datasetbest G msP2P msP2P share
Ryzen / UGC256 (CPU)1.2327.4895.7%
Pi 5 / UGC256 (CPU)2.4383.5297.2%
Ryzen / UVG1080 (CPU)5.53487.1698.9%
Pi 5 / UVG1080 (CPU)23.661339.4098.3%
RTX 3090 / UGC360 (GPU)1.151.0347.3%
RTX 3090 / UVG1080 (GPU)6.067.9656.8%

Table 47. Best G-Res latency vs. Patch2Pixel-v3 (none); P2P/(G+P2P).

Reverse-cache vs. motion. The reverse cache helps only when consecutive frames share many unchanged input pixels. Per-video G-Res latency (lut vs. lutrevcache, Patch2Pixel-v3 none; Table 48) shows it wins on all 2562256^2 8×6 clips, regresses on higher-motion clips on the slower Pi, and is catastrophic at 108021080^2 on every platform.

Target / datasetsm lutsm revΔfa lutfa revΔ
Ryzen / UGC2560.830.47−43%3.032.34−23%
Pi 5 / UGC2561.681.48−12%2.533.78+49%
Jetson / UGC2562.001.00−50%3.304.11+25%
Ryzen / UVG10805.3022.12+317%5.7635.42+515%
Pi 5 / UVG108021.4248.00+124%25.9159.82+131%
Jetson / UVG108017.5648.85+178%18.8465.18+246%

Table 48. Reverse-cache vs. motion: per-video G-Res ms, lut→rev (Δ). “sm”/“fa” = smoothest/fastest clip.

Patch2Pixel-v3 cache vs. hardware. Table 49 isolates the cache effect (G-Res = lut). It is within noise / a slight cost on every CPU and on the dGPU it always slows the total 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.

Target / datasetnonecenter3x3verdict
Ryzen / UGC256 (CPU)27.9627.5428.23noise
Pi 5 / UGC256 (CPU)83.5284.4685.42slight cost
Ryzen / UVG1080 (CPU)487.16500.15506.60slight cost
Pi 5 / UVG1080 (CPU)1339.401357.551369.39slight cost
RTX 3090 / UGC360 (GPU)1.031.772.03cache slower
RTX 3090 / UVG1080 (GPU)7.9615.2717.95cache slower
Jetson iGPU / UGC360 (GPU)10.789.0313.15center wins
Jetson iGPU / UVG1080 (GPU)68.0783.52125.18cache slower

Table 49. Patch2Pixel-v3 ms by cache mode (G-Res = lut).

#G-Res modePatch2Pixel-v3 cache
1mlpnone
2mlpcenter
3mlp3x3
4lutnone
5lutcenter
6lut3x3
7lutrevcachenone
8lutrevcachecenter
9lutrevcache3x3

Table 29. Nine video-runtime configurations (CPU and CUDA).

Video runtime design space schematic

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 35.1× faster than its CPU and the edge iGPU is 11.5× faster than its CPU; the UGC GPU rows are cross-resolution (GPU @360 vs. CPU @256) and are not directly comparable.

Platform / datasetGPU G+P2P msCPU G+P2P msspeedup
RTX 3090 / UVG108014.02492.6935.1×
Jetson iGPU / UVG108088.281012.7911.5×
RTX 3090 / UGC3602.18cross-resolution (CPU @256)
Jetson iGPU / UGC36014.72cross-resolution (CPU @256)

Table 50. GPU model-only (lut+none) vs. same-host CPU (lut+none).

Quality vs. platform and resolution. PSNR/SSIM are model-determined, not platform-determined (Table 51): within each (dataset, resolution) cell all hosts agree to ≈0.01 dB / 10−410^{-4}, confirming numerical portability across x86, ARM, the CUDA dGPU, and the embedded iGPU.

CellHostsPSNR (dB)SSIM
UGC @256 (CPU)Exps 1,2,326.40±0.00126.40 \pm0.0010.8960±10−40.8960 \pm10^{-4}
UGC @360 (GPU)Exps 4,525.44/25.4525.44 / 25.450.8774/0.87730.8774 / 0.8773
UVG @1080 (CPU+GPU)Exps 6–1023.52/23.5123.52 / 23.510.8380.838

Table 51. Quality by dataset/resolution cell.

Reproducibility

The engine is a self-contained C++17 implementation (CMake ≥3.14, -O3 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 11×11 Gaussian window (σ=1.5\sigma=1.5, C1=10−4C_1=10^{-4}, C2=9×10−4C_2=9\times10^{-4}). 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.

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,

Ppeak,FPGA=Freq×N×32,(5)P_{\mathrm{peak},\mathrm{FPGA}} = \mathrm{Freq} \times N \times32, \tag*{(5)}

where NN is the number of parallel MLP instances. This mapping fits the evaluated devices: N=2N=2 uses 32 of the 56 CrossLink-NX multipliers, matching the reported 57% utilization, while the Zynq ZU3EG has 360 DSP (digital signal processing) slices and can support N=16N=16 within budget.

The platform parameters are taken from device specifications: 360 DSP slices for Zynq ZU3EG AMD [3] and 56 18×18 multipliers for CrossLink-NX LIFCL-40 Lattice Semiconductor [20]. We use 600 MHz for Zynq PL (programmable logic) and 200 MHz for CrossLink-NX.

Sequential 5′5' 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 NN Stage 2 MLP instances, Stage 1 requires C1∈[5,10]C_1 \in[5, 10] cycles per pixel, while Stage 2 with h=32h = 32 requires 2,048 MACs per pixel. With 16 MACs/cycle per instance,

C2=2,04816=128C_2 = \frac{2{,}048}{16} = 128

cycles per pixel. The resulting latency model is:

Tlatency≈HW4⋅C1Freq+HWN⋅C2Freq.(6)T_{\mathrm{latency}} \approx\frac{HW}{4} \cdot\frac{C_1}{\mathrm{Freq}} + \frac{HW}{N} \cdot\frac{C_2}{\mathrm{Freq}}. \tag*{(6)}

For H=W=256H = W = 256, Zynq ZU3EG at N=16N = 16 and 600 MHz gives

T1≈0.14–0.27 ms,T2≈0.87 ms,T_1 \approx0.14\text{--}0.27\ \mathrm{ms}, \qquad T_2 \approx0.87\ \mathrm{ms},

or Tlatency≈1.01–1.15 msT_{\mathrm{latency}} \approx1.01\text{--}1.15\ \mathrm{ms}. CrossLink-NX at N=2N = 2 and 200 MHz gives

T1≈0.41–0.82 ms,T2≈20.97 ms,T_1 \approx0.41\text{--}0.82\ \mathrm{ms}, \qquad T_2 \approx20.97\ \mathrm{ms},

or Tlatency≈21.38–21.79 msT_{\mathrm{latency}} \approx21.38\text{--}21.79\ \mathrm{ms}.

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 NN1\mathrm{NN}_1 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 ≈0.9\approx0.9 dB 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 rather than by the corrector’s capacity. Second, the per-pixel tonal stage is resolution-bounded: trained at 2562256^2, it does not exploit higher input resolution as well as a convolutional backbone, trailing CompenNet++ by ≈3\approx3 dB at 102421024^2. 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.

HostArchCPU / GPUOMP CPUOMP GPU
Ryzen 9 5900Xx86_6412C/24T + RTX 3090 (sm_86)16 / 3214 / 16
Raspberry Pi 5aarch644× Cortex-A766 / 8–
Jetson Orin Nano Superaarch646× Cortex-A78AE + Ampere iGPU (sm_87)28 / 188 / 10

Table 32. Execution targets. OMP columns are the per-target, per-dataset calibrated host thread counts (UGC / UVG).

MachineCPU candidatesGPU host candidates
Ryzen 9 5900X2, 4, . . . , 32 (16 values)2, 4, . . . , 32 (16)
Raspberry Pi 51, 2, 3, 4, 5, 6, 8, 10 (8)—
Jetson Orin Nano Super2, 4, . . . , 28 (14, extended)2, 4, . . . , 18 (9)

Table 33. OpenMP search ranges per machine.

MachineDatasetRes#vidsFrames/vid
Ryzen 9 5900XUGC256/360640
Ryzen 9 5900XUVG1080215
Raspberry Pi 5UGC256625
Raspberry Pi 5UVG108026
Jetson Orin Nano SuperUGC256/360640
Jetson Orin Nano SuperUVG1080215

Table 34. Calibration workload (videos ×\times frames-per-video).

G-ResP2PG msP msD msfpsPSNRSSIM
mlpnone31.4428.4130.9316.7326.40070.8960
mlpcenter31.7928.2731.2716.6826.40040.8960
mlp3x331.8729.0130.8816.4426.40070.8960
lutnone2.4527.9630.8433.0626.40070.8960
lutcenter2.5727.5430.6833.3526.40040.8960
lut3x32.5228.2330.7732.6526.40070.8960
lutrevcachenone1.2327.4830.8434.9026.39960.8960
lutrevcachecenter1.2327.8230.7134.5126.39620.8959
lutrevcache3x31.2427.6430.6134.6926.39960.8960

Table 36. Exp 1 — Ryzen 9 5900X CPU, UGC @256 (OMP 16).

G-ResP2PG msP msD msfpsPSNRSSIM
mlpnone94.4884.6352.295.5826.40070.8960
mlpcenter94.5984.6952.205.5826.40040.8960
mlp3x394.8085.6852.315.5426.40070.8960
lutnone2.4383.5252.1011.6526.40070.8960
lutcenter2.3884.4652.0411.5326.40040.8960
lut3x32.4785.4252.0311.3926.40070.8960
lutrevcachenone2.5784.4152.1511.5126.39960.8960
lutrevcachecenter2.4785.2952.2911.4126.39620.8959
lutrevcache3x32.4286.7152.3111.2326.39960.8960

Table 37. Exp 2 — Raspberry Pi 5 CPU, UGC @256 (OMP 6).

G-ResP2PG msP msD msfpsPSNRSSIM
mlpnone90.2377.6870.035.9626.40070.8960
mlpcenter89.1575.8969.366.0626.40040.8960
mlp3x389.9178.0369.525.9626.40070.8960
lutnone2.8580.2669.1012.0426.40070.8960
lutcenter2.9982.4668.6211.7126.40040.8960
lut3x33.1582.9067.7611.6226.40070.8960
lutrevcachenone2.5982.6468.6611.7526.39960.8960
lutrevcachecenter2.5082.7368.0111.7426.39620.8959
lutrevcache3x32.4884.7768.0911.4726.39960.8960

Table 38. Exp 3 — Jetson Orin Nano Super CPU, UGC @256 (OMP 28; boundary winner).

G-ResP2PG msP msD msfpsPSNRSSIM
mlpnone2.211.0156.26335.9925.43650.8774
mlpcenter2.221.7456.02268.0925.43610.8774
mlp3x32.232.0056.11247.7525.43650.8774
lutnone1.151.0356.97530.3725.43650.8774
lutcenter1.141.7756.79378.9925.43610.8774
lut3x31.152.0357.09338.3825.43650.8774
lutrevcachenone2.221.0754.05371.9125.43540.8773
lutrevcachecenter2.221.8153.36288.7325.43320.8772
lutrevcache3x32.232.1054.01261.5025.43540.8773

Table 39. Exp 4 — RTX 3090 GPU, UGC @360 (host OMP 14).

G-ResP2PG msP msD msfpsPSNRSSIM
mlpnone18.7510.35122.0234.3725.45500.8773
mlpcenter18.798.35121.9037.5925.45470.8773
mlp3x318.8612.27122.9632.7225.45500.8773
lutnone3.9410.78119.7668.0225.45500.8773
lutcenter4.559.03120.6982.2925.45470.8773
lut3x34.2313.15120.5361.8725.45500.8773
lutrevcachenone5.3210.80119.7963.3725.45410.8773
lutrevcachecenter5.508.94120.9284.4425.45240.8772
lutrevcache3x35.4613.49120.9561.3225.45410.8773

Table 40. Exp 5 — Jetson Orin Nano iGPU, UGC @360 (host OMP 8).

G-ResP2PG msP msD msfpsPSNRSSIM
mlpnone574.08484.67433.960.9423.52340.8380
mlpcenter575.34497.90447.880.9323.52300.8380
mlp3x3576.15504.89447.880.9323.52340.8380
lutnone5.53487.16433.482.0323.52340.8380
lutcenter5.46500.15450.391.9823.52300.8380
lut3x35.49506.60450.411.9523.52340.8380
lutrevcachenone28.77486.65434.141.9423.51950.8378
lutrevcachecenter28.75499.42448.491.8923.52080.8379
lutrevcache3x328.68506.64447.991.8723.51950.8378

Table 41. Exp 6 — Ryzen 9 5900X CPU, UVG @1080 (OMP 32; boundary winner).

G-ResP2PG msP msD msfpsPSNRSSIM
mlpnone1526.531330.00988.590.3523.51350.8377
mlpcenter1527.621355.36993.220.3523.51310.8377
mlp3x31524.511368.42993.050.3523.51350.8377
lutnone23.661339.40996.680.7323.51350.8377
lutcenter23.431357.55989.940.7223.51310.8377
lut3x323.151369.39996.950.7223.51350.8377
lutrevcachenone53.911335.28986.100.7223.51230.8377
lutrevcachecenter55.301355.27990.210.7123.51250.8377
lutrevcache3x354.511370.43989.880.7023.51230.8377

Table 42. Exp 7 — Raspberry Pi 5 CPU, UVG @1080 (OMP 8).

G-ResP2PG msP msD msfpsPSNRSSIM
mlpnone1116.79984.181045.850.4823.51350.8377
mlpcenter1115.581005.781060.200.4723.51310.8377
mlp3x31118.951019.581059.390.4723.51350.8377
lutnone18.20994.591049.850.9923.51350.8377
lutcenter17.411013.251062.380.9723.51310.8377
lut3x317.731030.741063.340.9523.51350.8377
lutrevcachenone57.02996.841047.300.9523.51230.8377
lutrevcachecenter57.081015.391058.760.9323.51250.8377
lutrevcache3x356.861034.091059.050.9223.51230.8377

Table 43. Exp 8 — Jetson Orin Nano Super CPU, UVG @1080 (OMP 18; true optimum after range extension).

G-ResP2PG msP msD msfpsPSNRSSIM
mlpnone13.797.87429.5246.1723.52340.8380
mlpcenter13.9014.89426.6134.7323.52300.8380
mlp3x313.8217.86425.9431.7123.52340.8380
lutnone6.067.96441.5472.2023.52340.8380
lutcenter6.1515.27431.9146.8823.52300.8380
lut3x36.1317.95433.7541.5723.52340.8380
lutrevcachenone29.058.13427.1827.8123.51950.8378
lutrevcachecenter28.9614.97426.7823.3323.52080.8379
lutrevcache3x328.9518.66426.9321.1823.51950.8378

Table 44. Exp 9 — RTX 3090 GPU, UVG @1080 (host OMP 16).

G-ResP2PG msP msD msfpsPSNRSSIM
mlpnone113.0972.651089.335.3823.51350.8377
mlpcenter112.9196.661084.574.7723.51310.8377
mlp3x3113.31140.831093.414.0223.51350.8377
lutnone20.2168.071066.6811.3323.51350.8377
lutcenter21.8483.521072.969.4923.51310.8377
lut3x322.45125.181074.887.1123.51350.8377
lutrevcachenone58.9471.151065.207.7123.51230.8377
lutrevcachecenter58.9882.341072.047.0923.51250.8377
lutrevcache3x359.34132.131072.405.3223.51230.8377

Table 45. Exp 10 — Jetson Orin Nano iGPU, UVG @1080 (host OMP 10).

References

  1. [1]A. Ali and S. Mann. Computationally efficient HDR. In ICASSP, pp. 913–916. IEEE, 2012.
  2. [2]Mir Adnan Ali, Tao Ai, Akshay Gill, Jose Emilio, Kalin Ovcharov, and Sebastian Mann. Comparametric HDR (High Dynamic Range) imaging for digital eye glass, wearable cameras, and sousveillance. In ISTAS, pp. 107–114. IEEE, 2013.DOI
  3. [3]AMD. Zynq UltraScale+ MPSoC Data Sheet: Overview, 2025. URL https://docs.amd.com/api/khub/documents/sbPbXcMUiRSJ205STvuGNQ/content.
  4. [4]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.
  5. [5]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.
  6. [6]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.DOI
  7. [7]Alexandre Chapiro, Dongyeon Kim, Yuta Asano, and Rafal K Mantiuk. Ar-david: Augmented reality display artifact video dataset. ACM Transactions on Graphics (TOG), 43(6):1–11, 2024.DOI
  8. [8]Yuqiang Ding, Qian Yang, Yannqai Li, Zhiyong Yang, Zhengyang Wang, Haowen Liang, and Shin-Tson Wu. Waveguide-based augmented reality displays: perspectives and challenges. eLight, 3(1):24, 2023.DOI
  9. [9]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.
  10. [10]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.arxiv.org/abs/2412.13496
  11. [11]Dan Hendrycks and Thomas Dietterich. Benchmarking neural network robustness to common corruptions and perturbations. arXiv preprint arXiv:1903.12261, 2019.
  12. [12]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.
  13. [13]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.DOI
  14. [14]Bingyao Huang and Haibin Ling. Compenet++: End-to-end full projector compensation. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 7165–7174, 2019.
  15. [15]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.
  16. [16]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.DOI
  17. [17]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.DOI
  18. [18]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.arxiv.org/abs/1710.10196
  19. [19]Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. Advances in neural information processing systems, 25, 2012.
  20. [20]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.
  21. [21]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.DOI
  22. [22]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.arxiv.org/abs/1909.03459
  23. [23]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.DOI
  24. [24]Ziwei Liu, Ping Luo, Xiaogang Wang, and Xiaouo Tang. Deep learning face attributes in the wild. In Proceedings of the IEEE international conference on computer vision, pp. 3730–3738, 2015.arxiv.org/abs/1411.7766
  25. [25]Ilya Loshchilov and Frank Hutter. Sgdr: Stochastic gradient descent with warm restarts. arXiv preprint arXiv:1608.03983, 2016.arxiv.org/abs/1608.03983
  26. [26]Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. arXiv preprint arXiv:1711.05101, 2017.arxiv.org/abs/1711.05101
  27. [27]Steve Mann. Compositing multiple pictures of the same scene. In IS&T’s 46th Annual Conference, pp. 50–52, 1993.
  28. [28]Steve Mann. Headmounted wireless video: computer-supported collaboration for photojournalism and everyday use. IEEE Communications Magazine, 36(6):144–151, 1998.DOI
  29. [29]Steve Mann. Comparemetric equations with practical applications in quantigraphic image processing. IEEE transactions on image processing, 9(8):1389–1406, 2000.DOI
  30. [30]Steve Mann. Intelligent Image Processing. John Wiley and Sons, Nov. 2 2001.
  31. [31]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.DOI
  32. [32]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.
  33. [33]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.arxiv.org/abs/1710.03740
  34. [34]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/frvir.2020.582204.DOI
  35. [35]Pham Quang Tuan. Spatiotonal adaptivity in super-resolution of under-sampled image sequences. Requirements for the Degree of Doctor, Technische Universiteit Delft, 2006.
  36. [36]Yilin Wang, Sasi Inguva, and Balu Adsummilli. 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.DOI
  37. [37]Zhou Wang and Alan C Bovik. A universal image quality index. IEEE signal processing letters, 9(3):81–84, 2002.DOI
  38. [38]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.DOI
  39. [39]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.arxiv.org/abs/1804.04784
  40. [40]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.arxiv.org/abs/1801.03924
  41. [41]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.arxiv.org/abs/1807.10165

Paper details

vlnc:W_hwnkbfgx
Version
v1 · latest
Published
Added
License
CC BY 4.0
Usage

views · 7

downloads · 0

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

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents