Manuscript Offprint

arXiv:2610.24687

Geometry-Aware Interpolation for Inverse Problems

Pourya Shamsolmoali, Masoumeh Zareapoor

Abstract

Recovering missing visual information from incomplete or degraded images remains a challenging problem, particularly when spatial variations and complex image structures affect reconstruction accuracy. Although Spatial Transformer Networks (STNs) facilitate spatial feature alignment, their reliance on conventional linear or bilinear interpolation limits their ability to capture the underlying geometric characteristics of image data. Furthermore, interpolation based on a restricted set of neighbouring pixels can introduce inconsistencies in gradient propagation, potentially affecting optimisation stability. To address these limitations, we propose a Geometry-Aware Interpolation Network (GAIN), a variational autoencoder-based framework that incorporates manifold geometry into spatial transformation and image reconstruction. Rather than estimating pixel intensities solely from fixed spatial neighbours, GAIN exploits the local tangent structure of the data manifold to construct geometry-informed intensity approximations. An entropy-based regularisation mechanism further guides the estimation of spatial transformation parameters, promoting more adaptive interpolation. In addition, a convolutional normalisation strategy is introduced to regulate the magnitude of non-zero activations and improve gradient stability during training. Extensive experiments on challenging image completion and classification benchmarks demonstrate the effectiveness of GAIN in improving predictive accuracy while reducing computational cost compared with existing methods.

1 Introduction

Geometric variability remains a fundamental challenge in visual representation learning, particularly for tasks such as object detection [1] and image retrieval [2]. Changes in object orientation, scale, position, and shape can produce substantially different visual observations of the same underlying content. Consequently, effective visual representations must distinguish meaningful structural information from variations introduced by geometric transformations. Convolutional neural networks (CNNs) can learn representations that are robust to certain spatial variations, but their standard architectures do not explicitly guarantee invariance to arbitrary geometric transformations. Data augmentation is widely employed to improve this robustness by exposing networks to transformed observations during training. Nevertheless, the transformations encountered during inference differ from those represented in the training data, limiting the generalisation achieved through augmentation [3; 4].

Several architectural approaches have been investigated to incorporate geometric structure more directly into neural representations. Group-equivariant CNNs [5; 6], for example, introduce transformation-aware operations that preserve specified relationships between input transformations and feature responses. Another important development is the Spatial Transformer Network (STN) [7], which enables spatial adjustments to be learned as part of an end-to-end trainable architecture. Unlike conventional pooling operations with predetermined sampling regions, STNs predict transformation parameters from input features and use them to construct spatially aligned representations. This adaptive mechanism allows networks to focus on relevant image regions and compensate for certain geometric variations. Related approaches, including harmonic networks [8], have explored alternative formulations of transformation-aware feature learning. However, their effectiveness depends on the transformations they are designed to accommodate, and modelling complex combinations of spatial variations remains challenging.

Despite these developments, the accuracy of spatial transformation modules is strongly influenced by how feature values are estimated at transformed sampling locations. Conventional STNs commonly employ bilinear interpolation, in which each output value is computed from a small neighbourhood of spatially adjacent input samples. Although computationally efficient and differentiable, this formulation relies on local spatial proximity without explicitly accounting for the geometric structure underlying the observed data. As a result, interpolation can become less representative of local image content when transformations introduce substantial changes in scale or sampling density. These limitations are particularly relevant to reconstruction problems, where missing information must be estimated from incomplete observations. Linearized Spatial Transformer Networks (L-STNs) [9] extend conventional sampling through local linear approximations. Nevertheless, constructing reliable intensity estimates from sampled observations remains difficult, particularly when the available samples do not adequately describe the local variation of the data.

These observations suggest that spatial interpolation could benefit from geometric information beyond the immediate pixel neighbourhood. Images and their intermediate representations often exhibit structured relationships that can be approximated locally through a lower-dimensional manifold. Within a sufficiently small neighbourhood, the manifold's tangent space provides a linear approximation of these relationships, offering a means of describing local variations while accounting for the geometry of the data [10]. Such a representation provides an alternative perspective on interpolation: rather than relying exclusively on fixed spatial neighbours, missing values can be estimated using samples associated with the local structure of the underlying representation. Variational autoencoders (VAEs) [11] offer a probabilistic framework for modelling data representations, making them relevant to the construction and sampling of local geometric neighbourhoods.

Motivated by this perspective, we propose the GAIN, which incorporates manifold-guided interpolation into a spatial transformation framework. The proposed approach uses a VAE-based representation to construct local tangent-space approximations and generate auxiliary samples around the locations where feature values must be estimated. These samples are used to approximate local intensity variations, allowing interpolation to incorporate geometric relationships that conventional bilinear sampling does not explicitly represent. To further control the sampling and transformation process, an entropy-based regularisation term is introduced to encourage exploration of candidate samples along the estimated data manifold. By combining local geometric approximations with entropy-regularised estimation, GAIN seeks to produce spatial transformations that are more responsive to the structure of the input data.

The proposed formulation also considers the relationship between local geometric structure and optimisation stability. In particular, variations captured by the tangent space are used to approximate the local surface, while smoothing is applied to components associated with directions orthogonal to this space. This procedure is intended to reduce undesirable variation without discarding the geometric information represented by the tangent approximation. Furthermore, we introduce a convolutional normalisation strategy designed to regulate gradient magnitudes across network layers. By normalising non-zero responses without requiring singular value decomposition, the proposed strategy provides a computationally simpler mechanism for supporting stable optimisation. Together, these components establish a geometry-aware spatial interpolation framework that can be incorporated into CNN-based architectures.

The main contributions of this work are summarised as follows:

  1. We introduce GAIN, a geometry-aware spatial transformation framework that replaces conventional neighbourhood-based interpolation with a manifold-guided estimation procedure based on local tangent-space approximations.

  2. We develop an entropy-regularised sampling mechanism that incorporates auxiliary samples associated with the local data manifold to improve the estimation of transformed feature values.

  3. We propose a convolutional normalisation strategy for regulating gradient magnitudes during optimisation, avoiding the need for singular value decomposition.

  4. We evaluate GAIN on image completion and classification benchmarks, demonstrating improvements in predictive performance and computational efficiency over the compared methods.

References (23)

  • Single-shot refinement neural network for object detection
  • Large-scale image retrieval with attentive deep local features
  • Distance based weighted transformer network for image completion
  • Vtae: Variational transformer autoencoder with manifolds learning
  • Group equivariant convolutional networks
  • Spherical cnns
  • Harmonic networks: Deep translation and rotation equivariance
  • Linearized multi-sampling for differentiable image transformation
  • A better scaled local tangent space alignment algorithm
  • Auto-Encoding Variational Bayes
  • Gen: Generative equivariant networks for diverse image-to-image translation
  • Warped convolutions: Efficient invariance to spatial transformations
  • Setformer is what you need for vision and language
  • Transinpaint: Transformer-based image inpainting with context adaptation
  • Efficient object detection in optical remote sensing imagery via attention-based feature distillation
  • Inverse compositional spatial transformer networks
  • Gauge equivariant convolutional networks and the icosahedral cnn
  • Learning equality constraints for motion planning on manifolds
  • Gradient-based learning applied to document recognition
  • Fashion-MNIST: a Novel Image Dataset for Benchmarking Machine Learning Algorithms
  • Reading digits in natural images with unsupervised feature learning
  • Large-scale celebfaces attributes (celeba) dataset
  • Zero-shot learning by generating pseudo feature representations (opens arXiv in a new tab)