Manuscript Offprint

arXiv:2610.24400

Spatons: Spatiotonally Localized Building Blocks for Efficient XR Predistortion

Mohammadjavad Maheronnaghsh, Sushant Kondguli, Steve Mann, Andreas Moshovos

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Mohammadjavad Maheronnaghsh

Department of Electrical and Computer Engineering

University of Toronto

mj.maheronnaghsh@mail.utoronto.ca

Sushant Kondguli

Meta Reality Labs

sushantkondguli@meta.com

Steve Mann

Department of Electrical and Computer Engineering

University of Toronto

mann@eecg.toronto.edu

Andreas Moshovos

Department of Electrical and Computer Engineering

University of Toronto

Vector Institute

moshovos@eecg.toronto.edu

Abstract

We present Spatons, a family of compositional, spatially localized neural operators for computationally-efficient XR (eXtended reality) predistortion and distortion compensation. XR displays (AR, VR, and MR) suffer from a mix of systematic spatial (e.g., geometrical) and tonal (e.g., colour) distortions. To compensate for these distortions, frames can be pre-reverse-distorted so that the projected frame looks as intended. Since the distortions vary due to manufacturing tolerances and across projection systems, and since many XR systems are untethered and battery operated, a programmable, low energy solution is desirable. Low latency is also desirable to avoid inducing motion sickness. A Spaton is a hybrid patch-to-pixel block that combines tiny Multi-Layer Perceptrons (MLPs) with fixed-function interpolation. Using Spatons as building blocks we demonstrate effective, programmable, and computationally efficient pipelines for a variety of distortion scenarios. On the full spatiotonal Scenario 5, Sequential-5' matches CompenNet++ in SSIM (0.944 versus 0.944) and closely matches it in PSNR (27.5 versus 27.7 dB), while remaining substantially more lightweight. We demonstrate a flexible Spaton solution using 6× fewer FLOPs and 106× fewer parameters vs. CompenNet++, and 4–10× fewer memory transfers vs. UNet++. We characterize several efficient software implementations and analytical hardware estimates of Spaton pipelines along with appropriate optimizations and across several target XR platforms. We consider distortions drawn mostly from see-through, near-eye displays, where the spatial light path directly governs local intensity and spectral response. Testing Spatons on a wider range of real XR devices is left to future work. Accordingly, we present this as an early, systems-level exploration: models are trained and evaluated on closed-form differentiable distortions and one real projector–camera capture set, not through-the-optics measurements. Chromatic dispersion (color fringes) remains the main artifact where Spatons trail the monolithic baselines.

1 Introduction

XR systems (AR, VR (virtual reality), MR (mixed reality), etc.) are moving from niche prototypes to mass-market platforms, yet a persistent obstacle to visual fidelity is distortion introduced by the optical sensing and projection hardware. 1^{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 (1993; 1998; 2000; 2001); Tuan (2006); Ali & Mann (2012); Banterle et al. (2012); Antunes-Santos et al. (2022; 2025). The distortions vary across different hardware and often across different instances of the same hardware due to variations in manufacturing.

The standard remedy is predistortion: apply an inverse transformation to the rendered frame so that the observed image appears correct after passing through the optics. Ideally, the predistortion system would be programmable to allow it to adapt to changes in the projection system and to variations due to manufacturing tolerances. Moreover, it would be low energy allowing deployment even in untethered, battery operated applications. Low latency is also desirable to avoid introducing motion-to-photon latency that induces user nausea Stauffert et al. (2020); Jerald (2009).

Past pre-distortion approaches fall in the following categories: Closed-form parametric approaches are efficient but inherently rigid, and struggle with complex or coupled spatiotonal effects in real deployments. These motivated data-driven methods which repurpose monolithic img2img neural models (e.g., UNet++, CompenNet++ Zhou et al. (2018); Huang & Ling (2019)). They are programmable, enabling adaptation to different projection systems and even device instance variations. Although accurate, a UNet++-Large baseline requires ≈\approx12.1 GFLOPs and 1392 MB of memory transfers per 256×256256\times256 frame, far exceeding the representative ( ≈\approx2 W) compute budget of wearable devices and requiring high-performance compute hardware to maintain acceptable latency.

We formulate predistortion as a learned patch-to-pixel transformation: for each output pixel, a small 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 (2000; 2001); Tuan (2006); Chapiro et al. (2024).

Spatons are trained offline for each device using paired undistorted reference frames and their corresponding distorted frames. This allows them to learn the device-specific behavior of the projection subsystem. Because they operate directly on local patches, Spatons avoid the dense intermediate feature maps of conventional image-to-image pipelines, substantially reducing compute and memory-transfer.

Each Spaton is implemented as a tiny multilayer perceptron (MLP), with up to three layers and up to 64 hidden features. A Spaton may predict either (i) a continuous sampling coordinate for spatial correction, or (ii) a local tonal Δ\DeltaRGB 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.

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

1^{1}Large language models were used for revising code and text.

Sequential-5' pipeline (G-Res→Patch2Pixel-v3) is effective in compensating for a variety of distortion scenarios including tonal, spatial, and spatiotonal ones. Our preferred Sequential-5' pipeline achieves SSIM 0.944 / PSNR 27.5 dB, matches CompenNet++ (0.944 / 27.7 dB) while having 6× fewer FLOPs and 106× fewer parameters vs. CompenNet++, and 4–10× fewer memory transfers vs. UNet++-Large.

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

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

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

References (32)