Infer3D: Inverse Generative Modeling Enables Robust 3D Reconstruction
Humans can understand the 3D structure of scenes even from highly unfamiliar or extreme viewpoints. Cognitive science suggests this generalization stems from a top-down generative inference strategy.
From the abstract. Our summary is in progress.
Full paper
Infer3D: Inverse Generative Modeling Enables Robust 3D Reconstruction
Published under CC BY 4.0. Reproduced with attribution; original at arXiv:2611.25061 (PDF).
Abstract
Humans can understand the 3D structure of scenes even from highly unfamiliar or extreme viewpoints. Cognitive science suggests this generalization stems from a top-down generative inference strategy. In contrast, state-of-the-art 3D reconstruction neural networks typically rely on amortized, feedforward inference. While fast, this pattern-matching approach degrades when faced with out-of-distribution (OOD) scene conditions unseen during training. Inspired by the generative nature of human vision, we propose Infer3D, an inverse generative modeling framework that recovers the latent variables of a generative model to best match the monocular input. To prevent degenerate flat outputs, we couple the generative image prior with a frozen 3D lifting network that constrains the optimization space to a valid, multi-view-consistent 3D manifold. Across a variety of controlled synthetic and real-world tasks, Infer3D demonstrates superior OOD reconstruction accuracy compared to feedforward networks trained on equal or larger datasets. Furthermore, mirroring how human perception requires more time to process confusing stimuli, we introduce an adaptive inference strategy that expends more test-time compute on ambiguous OOD examples while efficiently routing in-distribution inputs. Project website: amanikiruga.github.io/infer3d-site
†
1 Introduction
The human visual system exhibits a remarkable ability to parse the 3D world from 2D projections. Crucially, this capability is not brittle: humans can readily understand the 3D structure of objects and scenes even when viewed from highly unconventional angles (Yildirim et al., 2015), under strange lighting (Adelson, 2000), or under different compositional arrangements (Lake et al., 2017). A central challenge in perception theory is explaining how human vision can be so robust. A rich body of literature in cognitive science and developmental psychology suggests that this robustness arises because human vision is not merely a passive, bottom-up filter but also includes an active, top-down generative process. By maintaining an internal mental model of the physical world, the mind can continuously predict and match sensory inputs, allowing it to reliably resolve ambiguities in unseen environments (Spagna et al., 2024; Clark, 2013; Friston, 2010; Tenenbaum et al., 2011).
This cognitive perspective heavily influenced classical computational theories, which formalized perception as “vision as inverse graphics” (Yuille & Kersten, 2006). In this paradigm, visual understanding is cast as Bayesian inference over a generative model of image formation and scene structure (Knill & Richards, 1996; Kersten et al., 2004). Rather than simply recognizing 2D patterns, the visual system performs analysis-by-synthesis, actively searching for the underlying 3D scene representation that best explains the observed 2D image.
In contrast, modern monocular 3D reconstruction systems have largely abandoned this generative top-down inference in favor of amortized, feedforward architectures (Szymanowicz et al., 2024; Yu et al., 2021; Charatan et al., 2024; Wewer et al., 2024; Hong et al., 2023) that directly map a 2D input image to a 3D output. While this pattern-matching approach enables very fast inference, it fundamentally lacks the robustness of generative inference. As we demonstrate in this paper, feedforward networks degrade in unpredictable ways when faced with out-of-distribution (OOD) scene conditions unseen during training, such as unconventional camera viewpoints (see Fig. 2).
\boldsymbol{S}) and rendering parameters (\boldsymbol{\theta}) despite these challenging OOD conditions.Inspired by the generative nature of human vision and classic analysis-by-synthesis methods (Blanz & Vetter, 2023a; Yuille & Kersten, 2006), we propose Infer3D. Rather than trusting a feedforward encoder on OOD data, Infer3D formulates perception as an inverse generative problem. We search for the scene geometry \mathcal{S} and rendering parameters \boldsymbol{\theta} that maximize the explanatory likelihood of the input observation. To ensure our optimization remains constrained to plausible, multi-view-consistent 3D structures, we couple a 2D generative image prior with a frozen 3D lifting network. This encourages the optimized latent variables to always decode to a valid representation on the training manifold, effectively synthesizing an internal hypothesis that best matches the confusing sensory input. Furthermore, mirroring how human perception requires more time to process ambiguous stimuli (Kar et al., 2019; Tang et al., 2018; Tschantz et al., 2023), we introduce an adaptive inference strategy. Because our generative framework leverages an encoder for initialization, we show that the initial reconstruction error provides a very reliable and efficient signal for OOD detection. This allows Infer3D to dynamically route standard inputs through fast feedforward passes while reserving expensive test-time optimization exclusively for OOD images.
Overall, our work makes the following contributions: (1) we introduce Infer3D, a modular analysis-by-synthesis framework that combines a learned 2D generative model with a feedforward 3D lifter to enable multi-view-consistent, OOD-robust inference from single images; (2) we propose an adaptive inference and OOD detection strategy that leverages the initial reconstruction error of the generative prior, requiring no external classifiers; and (3) through a controlled experimental setup, we demonstrate that Infer3D successfully generalizes to unseen viewpoints, non-linear lens distortions, and unobserved textures where state-of-the-art feedforward methods collapse (see Fig. 1).
2 Prior Work
Feedforward Inference.
There has been a lot of success in models that can reconstruct 3D scenes from monocular images. Popular choices of 3D representation are meshes (Liu et al., 2019; Tewari et al., 2017; Chen et al., 2025), or neural radiance fields (Yu et al., 2021; Tewari et al., 2023; Szymanowicz et al., 2023; Hong et al., 2023; Xu et al., 2023b). Modern methods rely more on 3D Gaussian representations that also use volume rendering, but are significantly more efficient than neural radiance fields (Charatan et al., 2024; Szymanowicz et al., 2024; Xu et al., 2024; Tang et al., 2024). In addition, point-based representations are also emerging as a popular choice (Wang et al., 2024; Wang et al., 2025a). These approaches use neural networks to directly transform the input image to the output 3D reconstruction and thus struggle to reason about out-of-distribution settings.
Several papers demonstrate lack of generalization with feedforward inference in out-of-distribution settings (Zhao et al., 2024; Madan et al., 2020; Alcorn et al., 2019; Abbas & Deny, 2023). Mitigating such failures is also a topic of active research. Several works have introduced equivariant neural network models that aim to generalize in OOD conditions. However, none of these approaches is as general as our method, e.g., we show that our method can be used for images captured under OOD camera poses as well as under OOD textures. In particular, equivariant approaches either assume 3D or multiview inputs (Xu et al., 2022; Deng et al., 2021; Esteves et al., 2018), or only include equivariance in parts of their network, e.g., equivariant intermediate representations without equivariant transformations between images and the corresponding representations (Dupont et al., 2020; Mitchel et al., 2024). Equivariant models that take 2D image inputs currently only guarantee equivariance under 2D or color transformations (Cohen & Welling, 2016; Yang et al., 2024). There is also a line of work in using 3D models for data augmentation (Zhou et al., 2023; Yang et al., 2025; Zhu et al., 2024). However, no such method has been proposed for monocular 3D reconstruction.
Analysis-by-Synthesis.
Rather than directly transforming an image into the corresponding 3D output with feedforward inference, analysis-by-synthesis solves an optimization problem for inference that searches for the optimal 3D solution that can explain the input observation. Because of the ambiguities in the problem, a good prior over 3D models is necessary. Many approaches use 3D training data, or pre-captured object geometries, to learn these priors (Blanz & Vetter, 2023b; Yuille & Kersten, 2006; Müller et al., 2023; Gothoskar et al., 2021). Recent papers instead rely on learning priors from 2D data, e.g., using a monocular image generative model as a prior over renderings of the 3D reconstruction (Poole et al., 2023; Xu et al., 2023a; Melas-Kyriazi et al., 2023; Wang et al., 2023). However, monocular priors are not sufficient to enforce multi-view consistency in output. Other approaches use multi-view priors (Lin et al., 2023; Xu et al., 2024; Long et al., 2024; Szymanowicz et al., 2025; Gao et al., 2024); however, these methods do not generalize to OOD images as they process input images with neural networks. The Bayesian approach of Anciukevicius et al. (2022) is somewhat related to us, but it makes strong assumptions by assuming known scene parameters for the OOD inputs. Recent work on inverse generative modeling for scene understanding (Wang et al., 2025b) is also closely related in spirit: it formulates perception as inverting a learned generative model and introduces compositional structure to handle complex 2D scenes. We are inspired by this view of inference as solving an inverse generative problem, but focus on multi-view-consistent 3D reconstruction and explicit control over camera parameters, rather than 2D compositional layouts.
Hybrid Inference.
Hybrid inference methods have been explored in the literature (Tewari et al., 2018; Alldieck et al., 2019; Leung et al., 2022). However, they assume that the initial prediction is a reliable initialization—an assumption that breaks down under OOD conditions. In contrast, we propose an adaptive inference strategy that explicitly detects OOD inputs and selectively invokes robust optimization-based inference only when needed.
Optimization-Based Generative Inversion.
pi-GAN (Chan et al., 2021) fits the latent conditioning of a 3D-aware GAN to an image but does not infer an unknown camera. BRFI (Pavllo et al., 2023) and 3D GAN Inversion (Ko et al., 2023) reconstruct 3D shape by jointly optimizing a generative latent code and camera pose. Both refine a single initialization obtained from learned pose or latent predictors, making them sensitive to initialization errors under distribution shift. FINV (Sun et al., 2024) filters multiple hypotheses using provided camera poses and additional observations, whereas Infer3D searches multiple joint latent and pose hypotheses from a single unposed image. These methods couple appearance and geometry within a monolithic 3D GAN. Infer3D instead searches a powerful 2D generative prior for appearance while a separately trained lifter supplies the 3D constraint, allowing the prior and lifter to be selected independently. We directly compare against BRFI and 3D GAN Inversion in Tables 10 and 5.
\mathcal{L} between the rendered reconstruction and the OOD input. This ensures the input to the lifter remains a valid predicted ID image while matching the OOD observation.3 Method
We provide an overview of our method in Fig. 3. We first describe the 3D scene representation and our general analysis-by-synthesis framework in Section 3.1. We then instantiate this framework across three distinct out-of-distribution (OOD) applications in Section 3.3: unseen camera poses, unseen sensor distortions, and unseen appearance. Finally, we discuss efficient OOD detection in Section 3.5.
3.1 Scene Representation and Differentiable Renderer
The 3D reconstructions are represented using a scene representation \mathcal{S} which describes the underlying geometry and appearance of objects in the scene. This representation can be rendered into an image using a differentiable forward model \mathcal{R}(\mathcal{S},\boldsymbol{\theta}), with rendering parameters \boldsymbol{\theta}. Depending on the scenario, \boldsymbol{\theta} is parameterized to represent unknown extrinsic camera poses (viewpoint shifts) or expanded to include uncalibrated intrinsic sensor characteristics (e.g., non-linear fisheye lens distortions).
3D Gaussians.
In practice, we use 3D Gaussians (Kerbl et al., 2023) as our 3D representation, where the scene is described using a collection of 3D Gaussians that represent its geometry and appearance. Each Gaussian is described with parameters that determine its shape, opacity, and color. We render the 3D Gaussians using the differentiable splatting-based renderer from 3DGS (Kerbl et al., 2023), which takes camera parameters as additional input.
3.2 Inference via Generative Decoder Inversion
Standard feedforward reconstruction networks function as amortized encoders, mapping observations directly to 3D representations. While efficient, these encoder-based methods lack the inductive biases required for generalization to out-of-distribution (OOD) scene conditions (Brady et al., 2025). To achieve robustness, we formulate perception as an inverse generative problem via maximum a posteriori (MAP) estimation. Given an OOD observation \mathbf{I}_{\text{OOD}}, we seek the scene parameters \mathcal{S} and rendering parameters \boldsymbol{\theta} that maximize the posterior:
p(\mathcal{S},\boldsymbol{\theta}\mid\mathbf{I}_{\text{OOD}})\propto p(\mathbf{I}_{\text{OOD}}\mid\mathcal{S},\boldsymbol{\theta})p(\mathcal{S})p(\boldsymbol{\theta}).Directly modeling a 3D prior p(\mathcal{S}) is intractable. Instead, we leverage the manifold of a 2D generative model G(\mathbf{z}) trained on in-distribution images, composed with a deterministic 2D-to-3D lifter \Phi:\mathcal{I}\to\mathcal{S}. This implicitly defines a structural prior where valid scenes are those generated by lifting valid in-distribution images: \mathcal{S}=\Phi(G(\mathbf{z})), where \mathbf{z} are samples from the latent space of the generative model. By substituting this parameterization into Eq. 1, the inference reduces to a search over the latent code \mathbf{z} and parameters \boldsymbol{\theta}:
\displaystyle\hat{\mathbf{z}},\hat{\boldsymbol{\theta}} \\ \displaystyle=\operatorname*{arg\,max}_{\mathbf{z},\boldsymbol{\theta}}\Big[\underbrace{\log p(\mathbf{I}_{\text{OOD}}\mid\mathcal{S},\boldsymbol{\theta})}_{\text{Likelihood}}\;+\;\underbrace{\log p(\mathbf{z})}_{\text{latent prior}}\;+\;\underbrace{\log p(\boldsymbol{\theta})}_{\text{rendering prior}}\Big]In practice, the (unscaled) negative log likelihood is implemented as \mathcal{L}\Big(\mathcal{R}\big(\Phi(G(\mathbf{z})),\boldsymbol{\theta}\big),\;\mathbf{I}_{\text{OOD}}\Big), where \mathcal{R} is the differentiable renderer from 3DGS and \mathcal{L} is a reconstruction loss. We approximate the prior term -\log p(\mathbf{z}) as a quadratic penalty \|\mathbf{z}-\bar{\mathbf{z}}_{\text{init}}\|_{2}^{2} centered on the mean of the initial latent population, serving to discourage the optimization from drifting too far from the valid manifold initialization. The final term defines the prior over rendering parameters, described further in Sec. 3.3.
Optimization Dynamics.
We solve Eq. 2 via gradient descent. To avoid local minima in the non-convex energy landscape, we employ a multi-start strategy with particle filtering. We initialize a population of latent codes \{\mathbf{z}_{i}\} and parameters \{\boldsymbol{\theta}_{i}\}. The population is iteratively refined, with high-error particles culled periodically, yielding a set of plausible 3D interpretations for the ambiguous OOD input. This procedure is detailed in Algorithm 1.
The formulation in Eq. 2 ensures that the input to the lifting network \Phi is always an in-distribution image G(\mathbf{z}), strictly adhering to the manifold where the feedforward model is valid. It is also highly flexible: we can adapt to distinct domain shifts merely by redefining the optimized rendering parameters \boldsymbol{\theta}, their associated prior p(\boldsymbol{\theta}), and the likelihood. We instantiate this approach for three specific OOD applications below.
3.3 Adapting to Out-of-Distribution Shifts
Out-of-Distribution Camera Poses.
For unseen camera viewpoint shifts, we jointly optimize the scene representation alongside the extrinsic camera parameters. Specifically, we optimize the latent code \mathbf{z} and the camera pose \boldsymbol{\theta}\in\text{SE}(3). We use a uniform prior over the camera pose parameters, continuously projecting rotation matrices onto the \text{SO}(3) manifold via SVD (Levinson et al., 2020) to ensure stable gradient descent. The likelihood is computed as a combination of MSE and LPIPS losses (Zhang et al., 2018) to align low-frequency geometry and high-frequency textures.
Out-of-Distribution Sensor Shifts.
Standard feedforward models assume strict pinhole projection and inherently fail under severe intrinsic parameter shifts, misinterpreting non-linear fisheye lens warping as curved scene geometry. To address this, we optimize the latent code \mathbf{z}, camera intrinsics, i.e., focal lengths and principal points (f_{x},f_{y},c_{x},c_{y}), and complex non-linear distortion parameters \boldsymbol{\phi}. The distortion prior is parameterized by a Hybrid Neural Distortion Field (Deng et al., 2025), which is a learnable polynomial fisheye model coupled with an iResNet on a sparse 2D grid. To evaluate the likelihood term, we first warp the perspective-rendered hypothesis generated by our generative model into the fisheye space using the learned forward distortion field (D_{\boldsymbol{\phi}}). We then compute MSE and LPIPS losses between this distorted rendering and the input OOD fisheye observation, effectively combining 3D Gaussian Splatting with a hybrid fisheye forward model.
Out-of-Distribution Appearance.
When transitioning from synthetic training data to real-world captures, standard pixel-level reconstruction collapses due to large domain gaps caused by complex reflections, unobserved lighting, and novel materials. We can bridge this synthetic-to-real domain gap by leveraging the inherent modularity of our inverse framework. We replace the pixel-level likelihood in the previous cases with a deep semantic feature loss, maximizing the cosine similarity of DINOv2 (Oquab et al., 2023) patch-level features extracted from both the OOD input and the rendered 3D hypothesis. As semantic features lack fine-grained spatial precision, we couple this with an explicit MSE depth consistency loss to constrain the geometric scale, all rendered via standard pinhole 3D Gaussian Splatting renderer. Similar to the OOD camera poses setting, we search for the latent code \mathbf{z} and camera pose \boldsymbol{\theta}\in\text{SE}(3).
3.4 Lifting and Generative Networks
3D Lifting Network (\Phi).
Our framework is agnostic to the specific architecture of the network \Phi. In our experiments, we instantiate \Phi using either:
- Splatter Image (Szymanowicz et al., 2024), which predicts pixel-aligned 3D Gaussians using a U-Net architecture.
- CATSplat (Roh et al., 2024), which utilizes transformer-based context aggregation for more complex geometries.
Crucially, \Phi is frozen during inference; we rely on the optimization of \mathbf{z} to adapt the geometry.
Generative Image Priors (G).
We explore two classes of generative models to parameterize the image manifold, see appendix Fig. 8. The choice of G dictates the structure of the latent space \mathcal{Z}:
- GAN-based: We employ StyleGAN2 (Karras et al., 2020). The latent space is defined as
\mathbf{z}\in\mathcal{W}, where\mathcal{W}refers to the intermediate 1D representation in the StyleGAN architecture. This generator provides a compact, smooth manifold that is amenable to gradient-based optimization. - Diffusion-based: We also utilize Diffusion Autoencoders (DiffAE) (Preechakul et al., 2022). DiffAE encodes an image into a semantic latent
\mathbf{z}_{sem}and a stochastic latent\mathbf{x}_{T}. This offers a distinct advantage: unlike GANs, DiffAE includes an explicit encoderEthat can initialize\mathbf{z}=E(\mathbf{I})for in-distribution data, significantly accelerating convergence (see Sec. 3.5).
3.5 OOD Detection via Generative Prior
A key capability of our method is that it naturally exposes signals for out-of-distribution (OOD) detection, without requiring the training of additional classifier models.
Inference dynamics as an OOD signal.
Given an input image, analysis-by-synthesis optimizes latent variables and rendering parameters to minimize a reconstruction loss. For in-distribution inputs x\in\mathcal{X}_{\text{ID}}, the generative encoder provides an initialization that lies close to an optimal solution. Consequently, the initial reconstruction error of the generated hypothesis is inherently low. In contrast, OOD inputs x\in\mathcal{X}_{\text{OOD}} lie completely outside the support of the learned image distribution. The encoder fails to provide a near-optimal initialization, resulting in a severe structural mismatch and a high initial reconstruction loss.
We leverage this asymmetry to build an efficient OOD detector. Specifically, we run one forward pass through our method and use the initial reconstruction error (MSE and LPIPS) against the input image as our classification score. If this initial loss exceeds a calibrated threshold, the sample is flagged as OOD and routed to the full optimization loop (Algorithm 1); otherwise, we bypass the optimization and trust the feedforward lifter.
Automatic Threshold Calibration.
Importantly, this detection signal requires no additional trained classifiers. To set the decision threshold, we perform an automatic calibration step on a small held-out validation set (5 ID and 5 OOD objects), selecting the threshold that maximizes the F1 score. As we batch all objects and run a single encode-decode pass, this entire one-time calibration process is fast, taking a maximum of 500 milliseconds on CO3D. At test time, we can accurately detect OOD inputs in roughly 286 milliseconds without constructing expensive backpropagation graphs. We quantitatively evaluate our fast OOD detection and calibration on CO3D and RE10K (Zhou et al., 2018) in Section 4.3.
4 Experiments
We evaluate Infer3D’s capabilities across three core dimensions: (1) generalization to geometric and camera-level domain shifts, (2) robustness to appearance and environmental domain gaps, and (3) efficacy of our adaptive inference strategy. We report Peak Signal-to-Noise Ratio (PSNR, \uparrow), Structural Similarity Index Measure (SSIM, \uparrow), and Learned Perceptual Image Patch Similarity (LPIPS, \downarrow) (Zhang et al., 2018) for novel-view fidelity, Chamfer Distance (CD, \downarrow) for 3D geometry error, and the Area Under the Receiver Operating Characteristic Curve (AUROC, \uparrow) and F1 score (\uparrow) for OOD detection.
4.1 Geometric and Sensor Shift Generalization
We first evaluate how well our approach recovers consistent 3D geometry under extreme geometric perturbations, specifically out-of-distribution camera viewpoints and non-linear lens distortions.
- Hydrants
- Splatter Image
- 0.052
- 21.48
- 0.785
- 0.168
- 0.733
- 15.73
- 0.665
- 0.266
- Viewset Diffusion
- 0.145
- 20.95
- 0.724
- 0.216
- 0.782
- 14.88
- 0.631
- 0.321
- CATSplat
- 0.287
- 18.78
- 0.645
- 0.285
- 1.120
- 12.65
- 0.589
- 0.384
- Infer3D (DiffAE)
- 0.102
- 20.55
- 0.761
- 0.182
- 0.461
- 18.46
- 0.714
- 0.220
- Infer3D (StyleGAN)
- 0.220
- 17.73
- 0.722
- 0.224
- 0.637
- 17.08
- 0.694
- 0.251
- Vases
- Splatter Image
- 0.061
- 20.82
- 0.751
- 0.179
- 0.775
- 15.01
- 0.661
- 0.315
- Viewset Diffusion
- 0.138
- 19.98
- 0.684
- 0.245
- 0.802
- 14.12
- 0.628
- 0.368
- CATSplat
- 0.295
- 17.85
- 0.612
- 0.305
- 0.945
- 13.65
- 0.552
- 0.412
- Infer3D (DiffAE)
- 0.119
- 19.65
- 0.715
- 0.215
- 0.552
- 17.65
- 0.678
- 0.261
- Infer3D (StyleGAN)
- 0.245
- 16.92
- 0.675
- 0.258
- 0.725
- 16.27
- 0.658
- 0.292
- In- dist.
- Splatter Img.
- 0.122
- 24.27
- 0.911
- 0.107
- Infer3D (SG)
- 0.147
- 21.61
- 0.878
- 0.133
- OOD SO(3)
- Splatter Img.
- 0.181
- 18.12
- 0.822
- 0.208
- Infer3D (SG)
- 0.137
- 20.67
- 0.865
- 0.148
- OOD SE(3)
- Splatter Img.
- 0.323
- 14.27
- 0.771
- 0.308
- Infer3D (SG)
- 0.306
- 16.30
- 0.795
- 0.238
- 99% / 1%
- 0.943
- 21.42
- 20.53
- 21.45
- 2.1s
- 90% / 10%
- 0.955
- 20.91
- 20.34
- 21.16
- 19s
- 70% / 30%
- 0.971
- 19.76
- 19.92
- 20.54
- 55s
- 50% / 50%
- 0.986
- 18.61
- 19.50
- 19.94
- 1.4m
Viewpoint Robustness.
We evaluate on Multi-Category ShapeNet (Chang et al., 2015) (trained on a fixed \pm 15^{\circ} elevation ring) and CO3D (Reizenstein et al., 2021) (Hydrants and Vases), see appendix Fig. 9. We test under random SO(3) rotations and SE(3) translations that severely deviate from the training manifold. We compare against the state-of-the-art feedforward models Splatter Image (Szymanowicz et al., 2024), CATSplat (Roh et al., 2024), and Viewset Diffusion (Szymanowicz et al., 2023). As shown in Table 1 and Table 3, feedforward baselines degrade sharply under OOD shifts, often hallucinating or flattening geometry (Figure 4(a)). By explicitly inverting generative models, Infer3D successfully matches the observation while maintaining view-consistent structure, recovering performance levels comparable to ID inference.
We further evaluate viewpoint robustness against BRFI (Pavllo et al., 2023) and 3D GAN Inversion (Ko et al., 2023) on ShapeNet Cars, for which pretrained generators are available. We use BRFI’s released model, which is trained on the full SRN pose distribution, whereas Infer3D’s prior and lifter only see restricted elevation rings of ShapeNet Cars. We adapt 3D GAN Inversion using the official EG3D (Chan et al., 2022) Cars checkpoint, following its initialization protocol to train latent and pose encoders on SRN training renders with known poses. On cars with OOD \mathrm{SO}(3) viewpoints, Infer3D achieves 20.29 dB, outperforming BRFI (14.30 dB) and 3D GAN Inversion (15.23 dB), even when the baselines receive ground-truth poses (17.70 and 17.37 dB, respectively). Infer3D also preserves more of its ID performance than BRFI, with a drop of 1.14 versus 5.55 dB (Table 10).
For CO3D where scale-depth ambiguity is significant, we also incorporate a geometric consistency loss \mathcal{L}_{\text{depth}} to constrain the optimization to plausible absolute depth scales. We minimize the Mean Squared Error (MSE) between the rendered predicted depth map \hat{\mathbf{D}} and the ground-truth depth \mathbf{D} as \frac{1}{N}\sum_{i=1}^{N}(\hat{\mathbf{D}}_{i}-\mathbf{D}_{i})^{2}. Without extra guidance, the optimization struggles to resolve absolute scale in CO3D (as also reported in related works (Szymanowicz et al., 2024; Tewari et al., 2023; Szymanowicz et al., 2023)).
- Infer3D
- 0.972
- 0.961
- 0.997
- Image alignment
- 0.554
- 0.621
- 0.748
- \mathcal{L}_{\text{MSE}}
- 14.85
- 0.482
- 0.954
- \mathcal{L}_{\text{MSE}}+\mathcal{L}_{\text{LPIPS}}
- 16.20
- 0.315
- 0.725
- +\mathcal{L}_{\text{prior}} (Mean Latent Dist. Reg.)
- 17.45
- 0.255
- 0.580
- +\mathcal{L}_{\text{depth}} (Full Objective)
- 18.51
- 0.218
- 0.458
Sensor and Field-of-View Shift.
Standard feedforward models assume strict pinhole camera projection. We evaluate robustness to intrinsic parameter shifts by simulating realistic wide-angle and radial/tangential fisheye distortions (Lensfun Developers, 2024; Deng et al., 2025) on RealEstate10K (RE10K). To handle this, we augment our optimization loop with a Hybrid Neural Distortion Field. As shown in Table 3 and Figure 4(b), the baseline (CATSplat) misinterprets lens warping as scene geometry (e.g., curved walls). As a stronger baseline, Equidistant is given privileged access to the ground-truth source and target focal lengths and undistorts the input under an equidistant fisheye model before applying CATSplat. Because this model cannot capture the non-linear distortion in our inputs, residual warping remains. Infer3D explicitly models the forward imaging process, successfully disentangling the non-linear lens characteristics from the 3D geometry to recover a clean structural output.
4.2 Appearance Shift and In-the-Wild Generalization
Unseen Texture and Lighting.
We evaluate on the RealCars dataset (Du et al., 2025) (in-the-wild captures with complex reflections), restricting the training of our generative prior exclusively to synthetic SRN Cars (Sitzmann et al., 2019). For the 3D lifter, we use official Splatter Image weights pretrained on SRN Cars. Because standard pixel-level reconstruction fails under this synthetic-to-real gap, we integrate DINOv2 semantic feature optimization into Infer3D. While Splatter Image collapses (Chamfer Distance: 0.219) and generative baselines like Large Multi-View Gaussian Model (LGM) (Tang et al., 2024), trained on a much larger Objaverse (Deitke et al., 2023) dataset, hallucinate artifacts, our analysis-by-synthesis bypasses the texture nuisance and reconstructs the correct 3D pose and geometry, achieving a significantly lower mean Chamfer Distance of 0.131 (Table 5, Figure 5). For fairness, we also include a finetuned Splatter Image baseline where we provide it with the same DINO features we use as input (PCA-reduced features of channel-32) and pseudo-ground-truth depth from Depth Anything 3 (Lin et al., 2025). This improves the robustness of Splatter Image (Mean CD of 0.152 from 0.219) but still significantly underperforms Infer3D, demonstrating that inverse generative modeling remains essential for generalization.
The improvement also holds against optimization-based inversion methods trained on synthetic SRN Cars. Infer3D achieves a mean Chamfer Distance of 0.131, compared with 0.491 for BRFI (Pavllo et al., 2023) and 0.387 for 3D GAN Inversion (Ko et al., 2023), reducing error by 73% and 66%, respectively (Table 5).
Zero-Shot In-the-Wild Captures.
Figure 6 demonstrates Infer3D on casual smartphone photos with varying lighting, partial occlusions, and non-standard cropping. Feedforward baselines fail catastrophically as these images violate strict training preprocessing pipelines. By searching for the camera parameters that best align the generative prior to the noisy image, our compositional approach robustly recovers plausible shapes.
4.3 Adaptive Inference and System Analysis
While optimization-based inference is highly robust, it requires more compute than feedforward mapping. We analyze the initial reconstruction error from our generative prior to validate an adaptive system that selectively routes inputs to reduce the effective amortized time per sample.
OOD Detection and Adaptive Routing.
We follow the method of Section 3.5 to perform OOD detection. We use the encoder of Diffusion Autoencoders (DiffAE) (Preechakul et al., 2022) to provide a near-optimal initialization for ID inputs, which exhibits a low initial reconstruction error. As shown in Table 7, our initial reconstruction error metric achieves strong detection performance with an AUROC of 0.972 on CO3D Hydrants, 0.961 on Vases, and 0.997 on RE10K. We compare this with an image alignment baseline: the OOD image is fed directly to Splatter Image and the output 3D Gaussians are rendered at identity pose \mathbf{I}. We then build a classification score using the reconstruction accuracy of this render and the OOD image. Because encoder-based 3D reconstruction has a bias of copying the image at identity pose, this performs poorly and our method significantly outperforms it while requiring just roughly 286ms of latency. We also apply this adaptive strategy to a mixed stream of ID and OOD inputs (Table 5). In a stream with 10% OOD data, our system routes standard inputs through the fast feedforward lifter and reserves optimization for outliers, achieving better performance than Splatter Image alone, or optimization alone. The amortized runtime is just 19 seconds per sample. Finally, calibration of our adaptive threshold is sample-efficient and stable across sample sizes. Fitting on merely 10 held-out objects takes \approx\text{500ms} and yields an F1 score of 0.965 (see Table 7).
Ablations on Compute Tradeoffs.
We run inference for 783 iterations, initializing 600 hypotheses (30 rotations \times 20 latent codes) and pruning to 32, 10, and 5 at iterations 3, 122, and 302. Where available, an encoder provides one warm-start hypothesis. Full optimization settings are given in Section B.3.
We find that the computational cost of Infer3D can be explicitly scaled to prioritize speed without sacrificing robustness. By parallelizing particle optimization (B=10), full convergence is achieved efficiently in roughly 2.8 minutes. For applications requiring even faster turnaround, early stopping the optimization loop after just 100 steps yields a rapid 1.2-minute runtime per OOD sample. Notably, this early-stopping configuration still achieves a PSNR of 16.98 which still outperforms the baseline feedforward model Splatter Image (15.73) on OOD CO3D Hydrants. In practice, data streams mix standard inputs with occasional anomalies; pairing rapid OOD detection with analysis-by-synthesis (without early stopping) allows Infer3D to process mixed streams efficiently without bottlenecking pipelines (Table 5).
Objective and Optimization Ablations.
Finally, we validate our optimization objective and the necessity of our constrained approach. As detailed in Table 9, relying solely on pixel-wise MSE for CO3D yields poor geometry. Sequentially integrating perceptual penalties (\mathcal{L}_{\text{LPIPS}}), latent regularization (\mathcal{L}_{\text{prior}}), and depth consistency (\mathcal{L}_{\text{depth}}) is critical for recovering accurate out-of-distribution structures, improving Chamfer Distance from 0.954 to 0.458. Furthermore, we test whether simply updating the weights of the feedforward lifter on the OOD input (trivial test-time training) could achieve similar robustness. Table 13 demonstrates that this naive adaptation collapses the geometry and performs worse than the frozen baseline (12.41 vs. 15.73 PSNR), indicating that optimizing over an internal generative model is more effective than naive test-time adaptation of the lifter.
We further examine how pose and latent optimization contribute to our method. On OOD SO(3) ShapeNet Cars, removing pose or latent updates reduces PSNR by 3.10 and 2.27 dB, respectively, while removing both reduces it by 4.08 dB (Table 9). We do not change the initialization in these ablations, only whether the target variable is optimized further or selected among initialization candidates. These results support jointly refining shape and viewpoint during inference and show the gain is spread across the two optimization regimes.
The optimization also progressively improves the fit to the input image, reducing MSE by 86% and LPIPS by 67% over the reported checkpoints on OOD ShapeNet Cars (Fig. 7).
5 Limitations and Conclusion
Limitations.
While Infer3D significantly improves robustness to OOD shifts, several limitations remain. While our method excels at OOD recovery, purely optimization-based inference can result in slightly lower quantitative metrics on in-distribution data compared to a specialized feedforward network. However, our proposed adaptive inference strategy effectively neutralizes this issue by classifying inputs based on convergence dynamics, ensuring that optimization is only triggered when necessary. We further discuss this drop in appendix Section C.6. Additionally, the visual sharpness of our OOD reconstructions is bound by the capabilities of the underlying 2D generative prior. In this work, we utilized lighter-weight generators (e.g., DiffAE, StyleGAN2) which can sometimes struggle with high-frequency details. We believe that integrating state-of-the-art diffusion models as the generative backbone would resolve this, albeit at a higher computational cost.
Conclusion.
We presented a framework for robust monocular 3D reconstruction that treats inference as an inverse generative problem. We demonstrated that standard feedforward networks overfit to the training distribution, failing catastrophically under viewpoint, sensor, or appearance shifts. By combining a learned 3D lifter with a test-time optimization loop that enforces a 2D generative prior, we recover accurate geometry in scenarios where baselines produce collapsed artifacts. Furthermore, we showed that the dynamics of this optimization process serve as a strong signal for OOD detection, enabling an adaptive system that is both efficient on familiar data and robust to the unexpected. We hope this work encourages a shift from purely amortized inference toward hybrid methods for reliable 3D perception.
References
Appendix A Additional Figures
Here we provide some additional figures that we reference in the main body text.
\mathcal{W} latent space for semantic consistency. (b) Diffusion Autoencoder (DiffAE): Optimization leverages both a semantic latent \mathbf{z}_{sem} and a stochastic latent \mathbf{x}_{T}. Its architecture allows for an encoder-based warm-start.\mathrm{SE}(3) translations and \mathrm{SO}(3) rotations over the full viewing sphere, resulting in unconventional angles, extreme elevations, and partial occlusions that challenge standard feedforward priors.Appendix B Additional Method Details
B.1 In-the-wild generalization
In order to support running our 3D reconstruction inference pipeline on in-the-wild real input images, we first acquire pseudo-GT segmentation masks using Segment-Anything 2 (Ravi et al., 2024) by initializing multiple point prompts, and selecting the largest mask that is close to the center. We then follow the method of Out-of-Distribution appearance to recover the geometry \mathcal{S} and camera extrinsics \boldsymbol{\theta} (See Section 3.3).
B.2 Compute Resources
To run all our experiments we use 2 80GB A100 NVIDIA GPUs. At proposal batch size = 10, our full inference occupies a Peak VRAM of 48GB GPU memory.
B.3 Optimization Settings
Table 11 summarizes the optimization schedule. Iterations are indexed from 0 to 782. Each iteration updates all active hypotheses, processing at most B=10 simultaneously. Thus, B controls memory usage rather than the total population size.
- R
- 30\times 20=600
- Initial rotation–latent hypotheses
- N
- 783
- Total iterations
- B
- 10
- Maximum simultaneous hypotheses
- k_{t}
- 600\rightarrow 32\rightarrow 10\rightarrow 5
- Pruning at t=3,122,302
- \lambda_{\mathrm{MSE}}
- 1\rightarrow 10\rightarrow 2
- Changes at t=302,732
- \lambda_{\mathrm{LPIPS}}
- 0.5\rightarrow 2
- Change at t=302
- \lambda_{\mathrm{prior}} (DiffAE)
- 0.001
- Constant latent-prior weight
- \eta_{z}
- 0.01 with ramp-up and ramp-down
- First 5\% and final 25\% of iterations
- \eta_{\theta}
- 0.01
- Constant rendering-parameter learning rate
Initialization.
When an encoder E is available, we replace one random joint hypothesis with \mathbf{z}_{1}=E(\mathbf{I}) and identity camera pose. This hypothesis undergoes the same optimization and pruning as the remaining hypotheses. Without an encoder, all hypotheses are randomly initialized.
Prior-specific regularization.
For DiffAE, we apply a quadratic latent penalty centered on the mean of the encoder-embedded initial latent population, with weight 0.001. For StyleGAN2, we instead use noise-map regularization to penalize spatial correlations in the optimized noise maps.
Learning rates and batching.
The latent learning rate uses a base value of 0.01 with a cosine ramp-up over the first 5% of iterations and a ramp-down over the final 25%. The rendering-parameter learning rate remains 0.01. When the active population exceeds B=10, we process it in successive batches, completing an iteration after all active hypotheses have been updated.
Appendix C Additional Experiments
C.1 Component Ablations
We evaluate optimization variables, loss terms, and initialization counts on 25 OOD ShapeNet Cars using the StyleGAN2 prior. Component-removal experiments use identical examples and initializations. Unless specified otherwise, all settings follow the full configuration.
- Full Infer3D
- 20.29
- –
- Without pose optimization
- 17.19
- -3.10
- Without latent optimization
- 18.02
- -2.27
- Without both
- 16.21
- -4.08
- Without MSE
- 19.09
- -1.20
- Without LPIPS
- 19.76
- -0.53
- Without noise-map regularization
- 20.17
- -0.12
- Pose initializations: 30\rightarrow 10
- 19.97
- -0.32
- Latent initializations: 20\rightarrow 2
- 19.49
- -0.80
Removing MSE or LPIPS reduces PSNR by 1.20 and 0.53 dB, respectively, supporting their complementary contributions. Reducing the number of pose initializations from 30 to 10 costs 0.32 dB, while reducing latent initializations from 20 to 2 costs 0.80 dB. Noise-map regularization has a smaller effect of 0.12 dB.
C.2 Comparison with test-time training
We evaluate direct test-time training (TTT) on OOD CO3D Hydrants by updating the feedforward lifter’s weights to match the input image. As shown in Table 13, this update scheme degrades novel-view reconstruction quality relative to the frozen lifter, whereas Infer3D improves all three metrics. For this setting, optimizing the generative latent while keeping the networks frozen is more effective than directly adapting the lifter’s weights.
- Splatter Image
- 15.73
- 0.665
- 0.266
- Test-Time Training
- 12.41
- 0.569
- 0.382
- Infer3D (DAE)
- 18.46
- 0.714
- 0.220
C.3 Generative priors trained on diverse categories
To test compatibility with components trained on diverse categories, we combine a frozen class-conditional Equilibrium Matching (EqM) model (Wang & Du, 2025) trained on ImageNet (Deng et al., 2009) with a frozen Objaverse-trained Splatter Image lifter (Szymanowicz et al., 2024; Deitke et al., 2023). We evaluate on 25 partially occluded objects from a held-out set spanning six categories, using the same prior–lifter pair throughout. Infer3D-EqM reduces Chamfer Distance in every category and by approximately 30% overall (Table 14). Figure 10 illustrates improvements in object completeness, including the recovery of missing handles and body regions.
- Teapot
- 0.214
- 0.157
- 27%
- Mug
- 0.225
- 0.171
- 24%
- Vase
- 0.278
- 0.180
- 35%
- Pineapple
- 0.147
- 0.096
- 35%
- Wine bottle
- 0.145
- 0.109
- 25%
- Helmet
- 0.214
- 0.199
- 7%
- All
- 0.206
- 0.145
- 30%
C.4 Comparison with SAM 3D
Table 15 compares novel-view synthesis quality on ShapeNet across 11 categories. Infer3D achieves the best results on all three metrics under OOD \mathrm{SO}(3) input poses, while Splatter Image performs best on in-distribution inputs. Figure 11 presents selected SAM 3D failure cases, illustrating flattened or distorted geometry and missing structural components under challenging input orientations. We find that even in in-distribution settings, SAM3D does not accurately reconstruct the colors well and so the in-distribution NVS performance is also low. But the shape is not distorted in-distribution as it is OOD.
- In-distribution
- SAM 3D
- 16.00
- 0.79
- 0.181
- No data
- Splatter Image
- 24.27
- 0.911
- 0.107
- No data
- Infer3D (SG)
- 21.61
- 0.878
- 0.133
- OOD \mathrm{SO}(3)
- SAM 3D
- 16.18
- 0.79
- 0.194
- No data
- Splatter Image
- 18.12
- 0.822
- 0.208
- No data
- Infer3D (SG)
- 20.67
- 0.865
- 0.148
C.5 Potential application to robotic manipulation
Figure 12 illustrates a potential perception pipeline for robotic manipulation, where wrist-camera observations can involve unusual viewpoints and gripper occlusions. We estimate depth using Depth Anything 3 (Lin et al., 2025) and segment the target object using SAM 3 (Carion et al., 2025). Given the masked RGB image and estimated depth, Infer3D jointly optimizes the generative latent and camera parameters to recover the bowl geometry. This example demonstrates reconstruction from a partially occluded wrist-camera observation; its utility for downstream manipulation remains to be evaluated.
C.6 In-Distribution Trade-off
Run on every input, the optimizer alone is less accurate than the feedforward lifter on ID data: by 0.93 dB on CO3D Hydrants, 2.66 dB on ShapeNet, and 1.38 dB on RE10K (Tables 1, 3 and 3). We perform analysis about this drop and find that the performance gap is concentrated near the input view. On ID CO3D Hydrants, the feedforward advantage is 5.7 dB for views close to the input but only 0.9 dB for the most occluded views. Unlike the feedforward lifter, the lifter inside Infer3D never receives the input image directly, so it cannot copy visible details into nearby views; for views that require inferring occluded 3D structure, Infer3D is nearly as accurate. In practice, an image-conditioned feedforward model is preferable for narrow-baseline rendering close to the input view, whereas Infer3D is more robust for wide-baseline views and 3D geometry. The detector-routed system (Table 5) avoids this cost on inputs classified as ID.