arXiv:2610.19401cs.LGOct 2026

Manuscript Offprint

arXiv:2610.19401

Train to Stitch: Topology-Preserving Regularization for Interoperable Representations

Akshay Malhotra, Nicolas Zilberstein, Shahab Hamidi-Rad

Akshay Malhotra 1∗^{1*}, Nicolas Zilberstein 2∗^{2*}, and Shahab Hamidi-Rad 1^{1}

1^{1} InterDigital Communications Inc., Los Altos, CA, USA

2^{2} Rice University, Houston, TX, USA

Abstract. As large, powerful pre-trained models become more prevalent, there is growing interest in developing methods that allow different neural networks to be seamlessly combined with little or no direct communication between them. Take autoencoder-based data compression as an example: the ability to independently choose architectures and train encoder and decoder models, while still ensuring they work together, could fundamentally transform how such models are built, deployed, and updated. In this work, we introduce a novel approach that leverages topological regularization to align the latent spaces of two independently trained autoencoder models, entirely eliminating the need for coordination during training. We provide a conditional theoretical analysis showing how the structural agreement encouraged by our regularizer can translate into approximate geometric compatibility between independently learned representations. Reconstruction experiments validate this approach empirically, substantially narrowing the interoperability gap across multiple datasets.

1 Introduction

Compressing data into compact, meaningful representations is a fundamental problem with broad applications spanning image compression [3, 27], audio compression [13], wireless communication [30, 15], and beyond. A common neural network approach trains an encoder-decoder pair end-to-end, where the encoder maps the data into a low-dimensional latent space, and the decoder reconstructs the original input from this latent representation. In many practical settings, however, encoders and decoders cannot be trained jointly. For example, a client-side encoder may face strict hardware or latency constraints while the server-side decoder is updated frequently, or separate organizations may build their own encoders and decoders without sharing model weights or training data. These scenarios call for interoperable designs: encoder and decoder components that are trained independently yet can be connected at deployment time with little or no coordination.

This challenge has been explored under a particular instantiation of this problem, termed zero-shot stitching [12]: given two independently trained autoencoders, the goal is to find a transformation between latent spaces from only

∗^{*} Equal Contribution.

Akshay Malhotra, Nicolas Zilberstein, and Shahab Hamidi-Rad

a small calibration set of shared inputs. An early work [29] proposed mapping each autoencoder's latent space into a shared relative representation. A key limitation, however, is that this requires training a dedicated decoder in the relative space, which demands substantial amounts of data. Other recent approaches [17, 25] have investigated whether a simple affine mapping can align independently learned latent spaces. While promising, a notable accuracy gap persists compared to jointly trained autoencoders, largely because each encoder's nonlinear mapping is shaped by its architecture, optimization hyperparameters, and random initialization, producing latent geometries that can differ considerably across models. This effect is exacerbated in the small-data regime, and closing the gap requires large calibration sets, contradicting the premise of minimal interaction and limited shared data.

To close this gap, we take a complementary approach: rather than relying on the existence of a simple post-hoc, linear map, we introduce a training-time inductive bias that encourages independently trained models to produce geometrically compatible latent spaces. Our key insight is that many alignment assumptions can be understood through the lens of (approximate) isometry: if two point clouds are nearly distance-preserving copies of the same underlying structure, then an orthogonal alignment is well-justified (Section 3.2). This motivates regularizing training so that each latent space preserves the same geometric skeleton of the data.

To instantiate this idea, we build on topological autoencoders [28] and employ a differentiable topological loss that aligns 0-dimensional persistence features between a target space and a learnable space. 3^{3} Concretely, this topological loss encourages agreement of minimum spanning tree (MST) edge lengths between two spaces by leveraging the persistence pairings in each space. Intuitively, MST edges form a sparse topological backbone that captures global connectivity; matching this backbone across models yields latent spaces that are less sensitive to architectural idiosyncrasies and hence easier to stitch.

Building on this foundation, we propose a strategy that regularizes each autoencoder so that its latent space preserves the topological structure of the input space, requiring no information exchange between model owners (Fig. 1). After training, we fit a simple linear transformation using only a small calibration set. We further provide a theoretical analysis explaining why this regularization yields compatible latent spaces. We validate our approach through several numerical experiments spanning image compression and channel compression and reconstruction.

Contributions. The main contributions of this paper are summarized as follows:

  1. Topology-preserving training for interoperability. We introduce a topological regularization framework for independently trained autoencoders that promotes latent-space compatibility using only 0-dimensional persistence features (MST edges). This loss requires no model-to-model interac-

3^{3} For 0-dimensional persistent homology, the persistence pairing corresponds to the edges of the minimum spanning tree [14].

Figure

(a) Model 1

Figure

(b) Model 2

Figure

(c) Latent Space Alignment

Fig. 1: Proposed scheme: (a-b) Topological autoencoders. We regularize the training of each autoencoder AE1AE_{1}, AE2AE_{2} with the input data, preserving its topological structure in the latent space independently of the architecture of the encoder. We build graphs in both input and latent spaces, and we leverage the topological regularization to preserve the underlying connectivity. Notice that each autoencoder maps the input data to a different latent space, but both latent spaces preserve the topology up to a rotation and scaling. c) Stitching between two regularized autoencoders. The transformation is simplified, leading to an affine transformation.

tion during training and enables post-training model stitching via a simple linear map learned from a small calibration set.

  1. Theoretical motivation for linear stitching. We show that reference-MST edge agreement controls disagreement between the induced tree-path metrics. Under the additional assumption of bounded tree stretch, we derive a bound on Euclidean pairwise-distance disagreement, providing a geometric motivation for fitting a low-complexity linear connector (Section 3.2).

  2. Extensive multi-domain evaluation. We validate our approach on reconstruction and retrieval tasks across heterogeneous architectures. Our method demonstrates substantial reductions in stitching error compared to baseline direct alignment and relative representations, achieving near-optimal performance across multiple datasets.

References (29)