arXiv:2609.03694cs.CVSep 2026

Manuscript Offprint

arXiv:2609.03694

Observation-Conditioned Latent Energy Priors for Sparse Implicit Neural Shape Completion

Paul Büschl, Ezequiel de la Rosa, Julia Wolleb, Julian McGinnis, César Nombela-Arrieta, Bjoern Menze

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

Paul Büschl1,2,6^{1,2,6}, Ezequiel de la Rosa1^{1}, Julia Wolleb1,3^{1,3}, Julian McGinnis4,5^{4,5}, César Nombela-Arrieta2^{2}, and Bjoern Menze1,6^{1,6}

1^{1} Department of Quantitative Biomedicine, University of Zurich, Zurich, Switzerland paul.bueschl@uzh.ch

2^{2} Department of Medical Oncology and Hematology, University Hospital Zurich, Zurich, Switzerland

3^{3} Department of Computer Science, ETH Zurich, Zurich, Switzerland

4^{4} Department of Computer Science, Technical University of Munich, Munich, Germany

5^{5} Munich Center for Machine Learning (MCML), Munich, Germany

6^{6} ETH AI Center, ETH Zurich, Zurich, Switzerland

Abstract. Implicit neural representations (INRs) can model continuous 3D shapes with a shared coordinate decoder and per-instance latent codes. At test time, autodecoder-style models commonly freeze the decoder and optimize a new latent code from sparse off-grid SDF samples. When these samples underconstrain inference, the latent can drift toward regions that fit the observations but decode implausible unobserved geometry. We propose a post-hoc observation-conditioned latent energy prior for frozen INR decoders. The energy scores standardized latents conditioned on a permutation-invariant encoding of the sparse observation set and is used as a residual expert alongside an L2 latent prior selected on validation data. We evaluate on a controlled cell-nucleus SDF dataset and a public MedShapeNet-derived SDF completion dataset. The proposed L2 objective augmented with conditional energy improves consistently over a validation-selected L2 baseline in the sparsest cell-nucleus regimes and, on MedShapeNet, outperforms both L2 and a six-component GMM latent-density prior across all reported readouts. A shuffled-context ablation is consistently weaker than matched context, supporting an observation-specific contribution. These results suggest that lightweight conditional energies can make pretrained INR decoders more observation-aware without retraining.

Keywords: Implicit neural representations · Test-time optimization · Energy-based priors · Shape completion · Signed distance functions

1 Introduction

Implicit neural representations (INRs) model signals as continuous functions of spatial coordinates [18,16,21], making them well suited to off-grid medical images, volumes, and shapes [7,12,6,3]. Two paradigms are commonly distinguished: INRs optimized per instance, as e.g., in MRI reconstruction [15,8,11]

P. Büschl et al.

and instance-wise image registration [20], and latent-conditioned INRs, which learn population-level priors [21,6] and thereby enable applications such as atlas construction [4]. In the latent-conditioned setting [14,5,10], a decoder shared across the population receives a coordinate x\mathbf{x} and an instance-specific latent code z\mathbf{z} and predicts a coordinate-wise quantity such as intensity, signed distance, or a segmentation logit [17]

This decoder-plus-latent formulation underlies autodecoder shape models such as DeepSDF, which represent shapes as continuous signed-distance fields and support completion from partial or noisy observations [14]. Related medical and biological work has used INRs for sparse anatomical shape reconstruction, implicit segmentation, image fitting, or cell-shape modeling [1,17,11,19].

In autodecoder-style INRs, training learns a shared decoder together with latent codes for the training instances. For a held-out instance, the decoder is kept fixed and inference optimizes a new latent code so that the decoded field matches the available observations. This test-time optimization is attractive for sparse shape completion: a small unordered set of off-grid SDF samples can be lifted to a full continuous field through the learned decoder. However, sparse inference is underconstrained. Many latent codes may explain the measured samples while decoding different unobserved geometry, so optimization can reduce the observation loss while moving toward a latent region that yields an implausible completion. We refer to this failure mode as latent drift.

The standard lightweight stabilization is an L2 penalty on the optimized latent code, which corresponds to a zero-mean isotropic Gaussian latent prior [1]. This prior is useful because it controls latent scale and gives stable tail behavior, but it is global and observation-agnostic: the same radial preference is applied regardless of which sparse points were observed. Stronger global latent-density priors, such as covariance-aware penalties, Gaussian mixtures, or learned latent energy models, can capture anisotropy, multimodality, or higher-order structure in the train-latent distribution [13]. Yet these priors still score latent plausibility independently of the actual sparse observation set. Sparse shape completion is a conditional problem: among many plausible latent codes, inference should prefer latents that are plausible for the particular observed coordinate-value pairs.

This leaves a gap for lightweight post-hoc priors that can be attached to frozen latent-conditioned INRs while conditioning their latent preference on sparse off-grid measurements. We therefore study whether a post-hoc conditional energy, trained from frozen-decoder latents and sparse observation sets generated by subsampling coordinate/SDF pairs, can act as an observation-aware residual prior during test-time latent optimization. The energy is trained with an Energy-Matching-inspired objective and receives a permutation-invariant encoding of the sparse observation set, following the principle that functions on unordered sets should be invariant to input order [2,22]. At inference, the decoder remains fixed and only the latent code is optimized; the conditional energy is used alongside a tuned L2 prior rather than as a replacement for it.

Figure

Fig. 1. Observation-conditioned latent energy prior workflow. Block 1: a latent-conditioned INR/autodecoder provides a frozen decoder and training latents. Block 2: sparse observation sets are generated by subsampling coordinate/SDF pairs from training shapes and paired with their latents to train a conditional scalar energy. Block 3: for a new sparse observation set, only the latent is optimized while the decoder and energy remain fixed. The L2 prior weight is selected on validation data.

We evaluate the approach in sparse SDF shape-completion settings, including a controlled cell-nucleus testbed and a public heterogeneous MedShapeNet mesh/SDF track [9]. Our contributions are:

  1. We identify latent drift as a failure mode of sparse test-time optimization in latent-conditioned INRs.

  2. We introduce a post-hoc observation-conditioned energy prior that acts as a residual expert alongside a tuned L2 latent prior for frozen-decoder inference.

  3. We evaluate the method against lightweight global priors and context ablations in controlled and public SDF completion settings.

Code and configuration files are available at https://github.com/pbueschl/latent-energy-priors_clean.git.

References (21)