Manuscript Offprint
arXiv:2610.08075Optimization Encoders: Rethinking Second-Order Meta-Learning for Neural Fields
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
ABSTRACT
Conditional neural fields represent signals continuously, but their effectiveness depends on how the conditional latent representations are inferred from observed data. In meta-learning, this encoding occurs through gradient updates induced by the decoder, tying representation learning directly to decoder design. We formalize this connection by interpreting latent optimization as an optimization encoder, unifying the roles of second-order differentiation, latent parameterization, and task supervision. This concept enables second-order meta-learning for end-to-end training of the encoding procedure alongside the decoder, and clarifies which learning pathway first-order approximations discard. Guided by this view, we introduce Attentive Latent Fields (MetaLF), an equivariant transformer-based neural field that contextualizes a latent pointcloud through self-attention. These interactions shape both field predictions and the updates that construct their representation, allowing local observations to inform coherent non-local structure. Disentangling the inner encoding objective from outer task supervision unifies reconstruction, classification, and segmentation within an end-to-end meta-learning framework, using reconstruction-only latent adaptation at test time. Controlled experiments on polynomial fields link latent coordination to lower effective rank and stronger alignment with the underlying function space. Across image and 3D shape reconstruction, MetaLF improves fidelity within three to five gradient updates, while supporting semantic prediction across images, shapes, and volumes. Together, these findings position the optimization encoder perspective as a unified basis for designing neural fields around how representations are constructed, coordinated, and used. Code is made publicly available on GitHub.
Keywords Neural fields · implicit neural representations · meta-learning · representation learning · bilevel optimization · equivariant neural networks
1 Introduction
In recent years, neural fields [1] have gained traction for their ability to represent discretely sampled data as continuous signals. A neural field parameterizes a function that maps coordinates to field values, i.e. . For example, an RGB image can be represented by , which maps each spatial coordinate to its corresponding color. Conditional neural fields (CNFs) extend this formulation by conditioning the coordinate-based function on a sample-specific latent representation [2]:
This allows the shared parameters to capture structure across a dataset, while encodes variation specific to sample . Learning a CNF requires a mechanism for obtaining sample-specific representations. Existing approaches use amortized encoders [5], auto-decoding [2], or meta-learning [6–8]. In the functa framework [9], a representation is
Contributed equally
Corresponding author: rlv4001@med.cornell.edu
...
ENF
GT

Left ventricle myocardium

Right ventricle


Figure 1: Example use case of MetaLF meta-learning latent cardiac shape representations [3]. The first three panels illustrate smooth shape recovery as a shared latent pointcloud z is refined over gradient steps. MetaLF learns contextualized latent representations that preserve detail while capturing the underlying function, an ill-posed task for local representation models such as ENF [4].
constructed from a shared initialization through a small, fixed number of gradient updates. The inner loop adapts the latent representation while keeping the decoder fixed; the outer loop then updates the shared parameters to improve reconstruction after latent adaptation. This enables new signals to be represented within only a few gradient steps. Figure 1 illustrates this few-step fitting process for cardiac shape reconstruction.
Second-order meta-learning is central to the effectiveness of this approach, with first-order approximations typically yielding substantially worse reconstructions. Yet treating this distinction primarily as a choice of optimization method obscures its implications for model design. Second-order differentiation propagates the outer objective through the unrolled latent updates, accounting for how the decoder influences the representation obtained during adaptation. First-order variants omit this dependence on the decoder parameters. To understand what this gradient pathway learns, we revisit meta-learned CNFs from an encoder–decoder perspective.
Building on the view of optimization as encoding [10], we interpret the inner loop as an optimization encoder: a mapping from observed data to a latent representation, implemented through gradient updates rather than a separate feed-forward network (Figure 2a-b). Its encoding behavior is determined by the decoder's backward pass, together with the latent parameterization and inner objective. Second-order meta-learning therefore trains the encoding procedure and decoder end-to-end, just as a conventional encoder–decoder model learns both how to construct a representation and how to use it. This interpretation makes the decoder architecture a design choice for encoding itself: its expressivity and interactions shape both field predictions and the updates through which their representation is inferred (Figure 2c).
This observation motivates meta-learned Attentive Latent Fields (MetaLF), an equivariant transformer-based neural field that combines spatially localized representations with contextual interactions. Equivariant neural fields (ENFs) [4] provide a strong foundation for local fitting by conditioning predictions on a latent pointcloud, but lack direct information exchange among latent elements before decoding. Drawing on attention-based shape autoencoders [5], MetaLF extends ENF with self-attention that contextualizes the content of latents. These interactions shape both decoding and the gradients used for encoding, allowing local observations to inform coherent non-local structure while retaining fine detail.
The encoder–decoder perspective also clarifies the distinct roles of the inner and outer objectives. The inner objective determines how observations construct a representation, while the outer objective determines what that representation should support, i.e. they need not describe the same task. With end-to-end differentiation through adaptation, reconstruction updates can learn to produce representations useful for classification or segmentation, even though semantic labels are available only during meta-training. MetaLF accommodates these objectives through task-specific outputs while retaining reconstruction-only adaptation at test time (see Figure 3).
Our contributions follow from this perspective:
-
We formalize few-step meta-learning as an optimization encoder, identifying second-order differentiation as the pathway through which the outer objective trains the encoding procedure alongside the decoder. This clarifies which learning pathway first-order approximations discard.
-
Because the decoder also determines how representations are inferred, we introduce MetaLF to coordinate a latent pointcloud through equivariant self-attention. On controlled polynomial fields, this coordination yields more compact, function-aligned representations and improves reconstruction, linking architectural design to encoding behavior.
(a) Conventional encoder

(b) Optimization encoder

(c) Architecture shapes adaptation

Figure 2: Second-order meta-learning trains an optimization encoder whose behaviour is shaped by decoder architecture. (a) A conventional encoder maps an observed signal to a latent representation , which the decoder evaluates at a query coordinate . (b) In meta-learned neural fields, an explicit encoder is replaced by gradient updates on , forming an optimization encoder. Second-order differentiation propagates the outer objective through these unrolled updates, jointly shaping the finite-step encoding behavior and the decoder . (c) Because the decoder induces the latent updates, its architecture shapes the resulting adaptation trajectory. ENF represents a local fitting model, lacking direct exchange of context among localized latents. MetaLF instead coordinates these latents through attention. This shared context produces coherent updates that quickly capture non-local structure, as illustrated by fitting cardiac signed distance functions.
-
Extending this design to images and 3D shapes, we demonstrate improved reconstruction over functa-based baselines within three to five gradient updates, showing that contextual latent interactions benefit few-step fitting beyond the controlled setting.
-
Finally, our optimization encoder perspective disentangles the roles of the inner and outer loops, allowing distinct encoding and decoding objectives, respectively. We demonstrate end-to-end learning of segmentation and classification through reconstruction-based inner-loop encoding and outer-loop semantic supervision on images, shapes, and volumes.
such that transformations of the field correspond to transformations of the latent point set. ENFs implement this property by expressing interactions between query coordinates and latent elements through relative geometric quantities, specifically accounting for the group of roto-translations . The same local mapping is therefore shared across latent elements and transformed signals. This weight sharing provides an inductive bias for learning localized representations in which each latent element describes information associated with a region of the signal.
Gradient-based latent meta-learning Let the observations for sample i be divided into an inner set and an outer set. Starting from a shared initialization , the inner loop applies gradient updates to the latent representation using an objective , producing . The decoder parameters remain fixed during this adaptation. The outer loop then updates according to an objective evaluated after adaptation, thus corresponding to an instance of CAVIA [12]. The two objectives may use different observations or losses.
(a) MetaLF as an optimization encoder

(b) Outer objectives shape behavior of
Figure 3: MetaLF as an optimization encoder. (a) gradient updates encode observations into a spatially grounded, globally contextualized latent representation through -equivariant self-attention (SA) layers and cross-attention (CA) with a query coordinate. (b) During meta-training, task-specific outer objectives can shape the decoder through second-order gradients across the adaptation steps. Global contextualization of the latent point set therefore enables flexible meta-training: the same inner-loop encoder can learn representations tailored to diverse downstream objectives.
Since every latent update is computed through , the adapted representation depends on the decoder parameters. Model-agnostic meta-learning (MAML) accounts for this dependency by differentiating the outer objective through the sequence of inner updates [6]. The resulting meta-gradient contains mixed second-order derivatives with respect to and . First-order meta-learning (FOMAML) omits these terms to reduce the computational cost of meta-training [7]. In this scenario, the decoder still receives a direct gradient from , and still shapes every subsequent inner update, but it omits the pathway through which can steer the influence. Details on the MAML and FOMAML training loops are provided in Appendix A.1.
3 Meta-learning as an optimization encoder
3.1 Unrolling latent adaptation
Let denote the coordinate-value observations available for sample . Starting from a shared initialization , the inner loop adapts the latent representation by minimizing , while keeping the decoder parameters fixed. We write one gradient update as and define the complete adaptation procedure by
where denotes repeated applications of the update operator. The map is the optimization encoder, whose output is decoded at a query coordinate as .
This computation has the same input-output structure as a conventional encoder-decoder: observations are mapped to a latent representation, which is subsequently used to produce predictions. The difference lies in the implementation of the encoder. Rather than applying a separate feed-forward network, constructs its representation through a sequence of gradient updates with shared dynamics.
The optimization encoder is determined by the initialization , the latent parameterization, the inner objective, the learning rate , the number of updates , and the decoder . In particular, it depends on because every latent update is computed through the decoder. The resulting formulation is a finite-step bilevel optimization problem, in which the outer objective depends on the trajectory induced by the inner updates [13, 14].
3.2 Training through the optimization encoder
Since is parameterized entirely by , the outer objective can only train it through the decoder. Let denote the outer loss for sample , and define . Differentiating the inner update in Eq. 1 gives
Thus, even though is fixed within the inner loop, it affects every update through the gradient field induced by the decoder. Since is a separate parameter rather than a function of , whether is fixed or learned, and the exact meta-gradient decomposes as
The first term updates the decoder while holding the inferred representation fixed. The second differentiates through the computation that produced . As shown in Appendix A.2, this term contains mixed derivatives , which inject the dependence on at each inner step, and products of , which transport these contributions through the remaining updates.
This yields a direct correspondence with conventional encoder–decoder training. For an amortized encoder , the outer objective propagates to the encoder according to
Full MAML preserves the analogous path through : the outer loss trains not only how the decoder uses a representation, but also how its inner gradient dynamics construct that representation. A first-order approximation removes the second derivatives of the inner loss, replacing by and by 0. Since , this gives , leaving only the direct term in Eq. 2.
The resulting distinction is therefore structural: Conventional encoder-decoder training backpropagates through a feed-forward encoder, MAML backpropagates through an optimization encoder, and first-order training truncates the encoder path. In this view, second-order differentiation is the mechanism by which the outer objective trains the finite-step inference procedure itself.
3.3 Inner and outer objectives
CNFs are typically optimized as a variation of autoencoders, where and are the same reconstruction term. More generally, the inner and outer objectives may use different data or supervision within the bilevel formulation of meta-learning [6, 14]. Let denote the observations used for adaptation and the supervision available during meta-training. The general formulation is
(3)
The inner objective determines how observations are encoded into , whereas the outer objective specifies what the representation should support. The inner objective must be computable from test-time observations. However, the outer objective may use supervision available only during meta-training.
Full second-order differentiation couples the objectives through the second term in Eq. 2. The gradient of with respect to the adapted representation is propagated through the updates induced by . The outer objective can therefore train how the inner objective constructs a representation, even when the two losses express different tasks.
4 Attentive Latent Fields
Most CNFs are designed from a neural-field-first perspective: sample-specific variation is captured through a latent representation z, while architectural design focuses primarily on mapping z and a query coordinate to a field value. In meta-learned neural fields, interactions among latent elements can shape both field decoding and the gradient updates through which z is inferred. ENFs [4] take an important step by providing spatial structure to z, but do not explicitly model interactions among its latent elements before field decoding. The optimization encoder perspective suggests that such interactions are consequential not only for decoding, but also for the gradient dynamics through which z is constructed. We therefore propose MetaLF, a decoder-only transformer [15] that uses equivariant self-attention to shape and coordinate a latent point set before evaluating the output field at query coordinates.
Architecture Let be a latent pointcloud, where is the pose of latent and is its content. Both are sample-specific variables adapted by the optimization encoder. Inspired by transformer-based shape autoencoders [5], MetaLF projects the latent contents to token features and processes them with layers of -equivariant self-attention as illustrated in Figure 4.
MetaLF self-attention layer

Figure 4: A receiving latent attends to neighbouring source latents using bi-invariant geometric attributes . Keys and values combine this geometry with the source content , and their attention-weighted aggregation produces the updated feature .
Self-attention (SA) is leveraged to update the content features for each latent point based on its latent neighbourhood, while poses are used as the geometric reference frame for attention. Each SA-block applies layer-normalized (LN) spatial self-attention followed by a GeGLU feed-forward network (FFN), with residual connections around both operations:
After the SA stack, the contextualized latent pointcloud is interpolated at a query coordinate using ENF cross-attention. The purpose of self-attention is therefore to separate communication among latent variables from field decoding: latent information is first combined and distilled, and only then mapped back to the output domain.
Equivariant attention and decoding We extend ENF cross-attention to self-attention by expressing spatial interactions through bi-invariant relative attributes. Following [4], we denote bi-invariant geometric attributes in blue: where
with for translation equivariance and in the roto-translation setting. Unlike ENF cross-attention, each self-attention query corresponds to a latent with its own content. We therefore compute queries from the receiving latent,
and use relative geometry as the base of a FiLM-modulated key [16]:
where is a Gaussian random Fourier feature embedding [17]. This parameterization gives attention a geometric base while allowing the source content to modify the interaction. The resulting attention logits are
where the second term is the Gaussian spatial windowing proposed by [4] in order to promote locality. Values are similarly conditioned on relative geometry:
Attention aggregates these values over the nearest latent poses. Together with the Gaussian window, this promotes local feature interaction, while stacking several blocks allows information to propagate over longer distances.
MetaLF subsequently applies ENF-style cross-attention between a query coordinate x and the contextualized latent pointcloud (see Appendix A.3.1). Since x has no content feature, this operation retains the positional query of ENF. We use the same nearest-neighbour and Gaussian windowing mechanisms and add a residual GeGLU block [18] before the final output projection as per [5]. Since all pose-dependent interactions are functions of bi-invariant attributes, the self-attention and cross-attention operations preserve equivariance under G (see Appendix A.3.2).
Self-attention changes both how the adapted latents are decoded and the gradient field through which they are inferred. Since each prediction depends on interactions among latent variables, an inner-loop update to one latent can incorporate information represented by its neighbors. MAML differentiates through these coupled updates, allowing the outer objective to shape how local latents should coordinate to form a coherent representation within a small number of adaptation steps.
5 Experiments
We conduct two sets of experiments to evaluate MetaLF. First, we use polynomial fields with known underlying functions to study how self-attention shapes meta-learned latent representations and helps capture structure beyond local observations. We subsequently evaluate MetaLF on image reconstruction, SDF fitting, meta-classification, and meta-segmentation, testing reconstruction quality and end-to-end learning of downstream objectives. Across experiments, we compare against Functa [9], ENF [4], and additional relevant baselines.
5.1 Polynomial fields
For a behavioral analysis of MAML we consider the task of polynomial field reconstruction up to degree six, for which the function family is described by
Defining a known function family allows us to investigate both reconstruction quality and the geometry of the learned optimization encoder. For this formal analysis, we use a latent set of and evaluate how latent dynamics change with self-attention depth. We report reconstruction mean squared error (MSE), the effective rank of the latent spectrum [19], and the polynomial tangent fraction , which measures the alignment of local decoder variations with the ground-truth polynomial function space. Formal definitions and further implementation details are provided in Appendix A.4.1. We additionally compare FOMAML and MAML training dynamics in Appendix A.4.2.
Table 1 reports polynomial reconstruction quality and the corresponding latent-space geometry under MAML optimization. As self-attention depth increases, the effective rank of MetaLF's latent representation seems to converge toward 28, which is the minimum dimensionality required to describe the degree-six polynomial family, indicating that self-attention reorganizes the latent space toward a compact basis aligned with the underlying function class. This geometric compression coincides with a monotonic improvement in PSNR, with MetaLF () achieving the highest fidelity among all methods. Appendix Figure 7 further illustrates this effect, showing attention coupling extending across increasingly non-local latent neighborhoods as grows.
Table 1: MetaLF self-attention improves both encoding structure and reconstruction quality. Increasing yields lower-dimensional, more polynomial-aligned encodings (effective rank , tangent fraction ) and higher decoded-field PSNR. Results are averaged over three seeds.
| Full-grid PSNR ↑ (dB) | MAML geometry | |||
|---|---|---|---|---|
| MAML | FOMAML | |||
| Functa | 37.31 (0.31) | 35.03 (1.32) | 128.27 (2.11) | 0.539 (0.006) |
| ENF | 44.15 (0.56) | 32.95 (0.65) | 118.14 (13.54) | 0.418 (0.031) |
| MetaLF () | 42.28 (0.13) | 33.25 (0.62) | 72.85 (4.78) | 0.619 (0.035) |
| MetaLF () | 63.79 (1.35) | 37.40 (1.87) | 33.31 (0.29) | 0.837 (0.004) |
| MetaLF () | 64.24 (0.82) | 38.30 (0.76) | 31.09 (0.31) | 0.861 (0.004) |
5.2 End-to-end meta-learning
Here we apply MetaLF to a number of meta-learning tasks, evaluating its ability to construct useful representations through an expressive optimization encoder. We consider signal reconstruction and SDF fitting as inner-outer objective pairs that share the same reconstruction loss, as well as meta-classification and meta-segmentation, where the outer objective diverges from the inner reconstruction target and instead supervises a downstream semantic task in end-to-end fashion. We detail the per-task training setup in Appendix A.5.
Image reconstruction For image reconstruction, we consider the CIFAR10 [20], CelebA [21], and ImageNet-1K [22] datasets. We set and compare reconstruction quality at matched latent budgets with inner steps. As shown in Table 2, MetaLF outperforms both Functa and ENF under both bi-invariant settings, achieving near-lossless reconstruction on CIFAR10 and substantial gains on the higher-resolution CelebA and ImageNet benchmarks. Notably, MetaLF shows little sensitivity to the choice of geometric group.
The small differences between group parameterizations also appear in ENF, while MetaLF consistently improves reconstruction under either choice. We additionally provide an ablation of the MetaLF parameterization and an analysis of computational costs in Appendix A.6.1, and evaluate MetaLF in a generative setting in Appendix A.6.2.
Table 2: Test-set reconstruction PSNR (dB, ↑) for CIFAR10, CelebA (64x64) and ImageNet-1K (128x128), averaged over three seeds.
| CIFAR10 | CelebA | ImageNet | ||
|---|---|---|---|---|
| Functa | 36.2 (0.1) | 32.6 (0.1) | 23.1 (0.0) | |
| ENF | 42.5 (0.3) | 35.7 (0.1) | 27.7 (0.0) | |
| ENF | 42.4 (0.2) | 35.7 (0.1) | 27.6 (0.0) | |
| MetaLF | 47.7 (0.2) | 39.4 (0.0) | 32.0 (0.0) | |
| MetaLF | 47.9 (0.1) | 39.5 (0.1) | 31.9 (0.0) | |
Shape reconstruction For shape reconstruction, we consider 3D models from the ShapeNet-Part [23] and ShapeNet-Core [24] subsets of ShapeNet [25]. We additionally consider cardiac shapes derived from 3D MRI segmentations of the left ventricle (LV) blood pool, LV myocardium (Myo), and the right ventricle (RV) (ACDC [3]), and describe any preprocessing in Appendix A.5.2. For all tasks, reconstruction is optimized by fitting per-shape SDFs using inner steps, with all three cardiac shapes being rendered simultaneously from the same adapted latent representation. Table 3 shows that MetaLF () consistently improves shape reconstruction, indicating that aggregating information beyond local latent neighborhoods helps capture globally coherent geometry while preserving local detail. The large gain for the thin, connected myocardium highlights the value of non-local coordination.
Table 3: MAML-based shape reconstruction IoU for the ShapeNet-Part, -Core, and ACDC hold-out test-sets. Values are the mean (standard deviation) over three seeds.
| ShapeNet IoU ↑ | ACDC IoU ↑ | ||||
|---|---|---|---|---|---|
| Part | Core | LV | Myo | RV | |
| Functa | 4.0 (0.1) | 5.0 (0.0) | 1.2 (0.0) | 1.1 (0.0) | 1.2 (0.0) |
| SpatialFuncta | 49.0 (2.2) | 46.2 (2.3) | 69.4 (5.5) | 47.2 (2.6) | 55.5 (2.0) |
| ENF | 65.5 (0.5) | 67.2 (1.9) | 77.1 (2.1) | 37.3 (2.6) | 64.7 (1.1) |
| MetaLF | 76.7 (1.5) | 78.2 (4.0) | 89.3 (0.5) | 77.9 (0.4) | 79.5 (2.7) |
Meta-classification In meta-classification, we train an additional linear classifier on top of the pre-CA intermediate latent representation. A cross-entropy classification loss is backpropagated from this head together with the standard reconstruction loss during the outer step only, i.e. . We test this end-to-end meta-learning setting for CIFAR10, ImageNet-1K and ShapeNet-Core classification, and list results in Table 4. While classification gains on ShapeNet-Core are modest, MetaLF achieves substantially higher accuracy on CIFAR10 (83.3%), and performance separates further with scale: MetaLF ( ) reaches 42.6% top-1 accuracy on ImageNet-1K against 4–7% for baselines. MetaLF also substantially outperforms the strongest prior end-to-end meta-classification work on both image datasets (MWT [26]). We provide a more extensive discussion on these results in Appendix A.5.3.
Table 4: MAML-based classification and reconstruction on the CIFAR10, ImageNet-1K, and ShapeNet-Core hold-out test sets. PSNR (dB) and IoU are mean (standard deviation) over test items; image accuracy is top-1 (binomial standard error) and ShapeNet accuracy is macro-averaged over its 55 classes.
| ImageNet | CIFAR10 | ShapeNet-Core | ||||
|---|---|---|---|---|---|---|
| PSNR ↑ | Acc. ↑ | PSNR ↑ | Acc. ↑ | IoU ↑ | Acc. ↑ | |
| MWT | 21.8 (-) | 24.1 (-) | 30.9 (-) | 64.7 (-) | - | - |
| Functa | 21.6 (2.5) | 7.4 (0.1) | 23.1 (1.9) | 57.7 (0.5) | 25.6 (8.0) | 1.8 (9.4) |
| SpatialFuncta | 25.5 (2.5) | 4.1 (0.1) | 36.5 (2.9) | 42.6 (0.5) | 48.6 (12.9) | 64.8 (30.8) |
| ENF | 26.3 (2.7) | 4.5 (0.1) | 39.2 (3.3) | 34.4 (0.5) | 48.8 (13.2) | 57.3 (34.3) |
| MetaLF | 27.9 (2.9) | 42.6 (0.2) | 37.8 (2.4) | 83.3 (0.4) | 55.3 (16.9) | 70.8 (24.7) |
Meta-segmentation We extend the decoder with segmentation outputs and jointly optimize reconstruction and segmentation in the outer loop, while retaining reconstruction-only adaptation at test time. We evaluate the same method across diverse segmentation tasks on OMBRIA [27], ShapeNet-Part [23], and OASIS [28], covering 2D images, 3D shapes, and 3D images, respectively, with and . Table 5 shows that MetaLF consistently outperforms the evaluated few-step baselines across all three datasets. On OASIS, MetaLF achieves foreground Dice, exceeding the reported performance of the implicit segmentation method NISF [29] (81.0%) and approaching MetaSeg [30] (91.0%) with only five fitting steps, compared with 100 for MetaSeg. Although these published results use different protocols, they place MetaLF within reach of specialized segmentation methods at a small adaptation budget. These results demonstrate that MetaLF can learn an effective semantic representation through reconstruction updates alone, extending the benefit of the optimization encoder perspective beyond signal fitting to dense prediction. Details on meta-segmentation are described in Appendix A.5.4.
Table 5: Meta-learned segmentation on the OMBRIA, ShapeNet-Part, and OASIS hold-out test sets. Header K denotes test-time fitting steps for our methods. Scores are the pooled flood IoU for OMBRIA, instance mIoU for ShapeNet-Part, and five-class foreground Dice for OASIS. Parentheses denote standard deviations over test items. Failed denotes non-fit/divergence under the attempted recipes.
| OMBRIA (K = 3) | ShapeNet-Part (K = 5) | OASIS (K = 5) | |
|---|---|---|---|
| IoU ↑ | mIoU ↑ | Dice ↑ | |
| OmbriaNet | 72.4 | - | - |
| MetaSeg (K = 100) | - | - | 91.0 (1.1) |
| NISF | - | - | 81.0 (0.7) |
| Functa | 39.9 | Failed | Failed |
| SpatialFuncta | 68.9 | 78.7 (19.1) | 78.2 (1.1) |
| ENF | 69.9 | 81.2 (17.5) | 83.9 (1.1) |
| MetaLF | 72.3 | 83.4 (16.7) | 86.9 (0.9) |
Limitations and future work MetaLF benefits most from datasets with shared underlying structure as exemplified in Table 3 (ACDC) and Appendix A.6.2 (CelebA), while performance gains are more modest for heterogeneous data. This suggests that latent attention is most effective when the decoder can learn common structure across samples. Equivariant self-attention further introduces a computational tradeoff, where increasing requires additional attention matrices to account for each neighbour's relative geometry. Although broader interactions allow for more informed updates, we found that global attention resulted in overly smooth reconstructions, while localized attention improved reconstruction quality and training stability. Exploring more flexible attention neighbourhoods may help balance these effects. Beyond attention, second-order training and iterative test-time latent optimization remain computational costs even when only a few updates are required. Future work should further examine how decoder design, inner- and outer-loop field sampling, and latent pointcloud size affect this balance. MetaLF represents one design choice informed by the optimization encoder perspective, providing a basis for investigating these choices.
6 Conclusion
In this work, we formalize few-step adaptation of latent variables as an optimization encoder, showing how second-order meta-learning trains the process that constructs a representation alongside the decoder that uses it. This perspective makes decoder architecture a design choice for inference itself and directly motivates MetaLF: equivariant self-attention coordinates spatially grounded latents, shaping the gradient updates through which local observations inform a coherent representation. Our controlled analysis links this coordination to more compact, function-aligned latent geometry, while our experiments demonstrate improved few-step image and shape reconstruction. By separating the inner encoding objective from outer task supervision, MetaLF also learns representations for classification and segmentation in an end-to-end fashion through reconstruction-only adaptation at test time. Together, these results establish optimization encoding as a practical basis for designing neural fields that capture local detail, coordinate non-local structure, and support semantic prediction within a small number of gradient updates.
Acknowledgments
This study was supported by ZonMw Rubicon under grant no. 04520252520006.
References
[1] Yiheng Xie et al. Neural fields in visual computing and beyond. In Computer Graphics Forum, volume 41, pages 641–676. Wiley Online Library, 2022.
[2] Jeong Joon Park et al. DeepSDF: Learning continuous signed distance functions for shape representation. In 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 165–174. IEEE, 2019.
[3] Olivier Bernard et al. Deep learning techniques for automatic MRI cardiac multi-structures segmentation and diagnosis: Is the problem solved? IEEE Transactions on Medical Imaging, 37(11):2514–2525, 2018.
[4] David Wessels et al. Grounding continuous representations in geometry: Equivariant neural fields. In International Conference on Learning Representations, volume 2025, pages 59774–59794, 2025.
[5] Biao Zhang, Jiapeng Tang, Matthias Niessner, and Peter Wonka. 3DShape2VecSet: A 3D shape representation for neural fields and generative diffusion models. ACM Transactions on Graphics (TOG), 42(4):1–16, 2023.
[6] Chelsea Finn, Pieter Abbeel, and Sergey Levine. Model-agnostic meta-learning for fast adaptation of deep networks. In International Conference on Machine Learning, pages 1126–1135. PMLR, 2017.
[7] Alex Nichol, Joshua Achiam, and John Schulman. On first-order meta-learning algorithms. arXiv preprint arXiv:1803.02999, 2018.
[8] Vincent Sitzmann, Eric Chan, Richard Tucker, Noah Snavely, and Gordon Wetzstein. MetaSDF: Meta-learning signed distance functions. Advances in Neural Information Processing Systems, 33:10136–10147, 2020.
[9] Emilien Dupont, Hyunjik Kim, SM Eslami, Danilo Rezende, and Dan Rosenbaum. From data to functa: Your data point is a function and you can treat it like one. In Proceedings of the 39th International Conference on Machine Learning, pages 5694–5725. PMLR, 2022.
[10] Jin Xu, Jean-Francois Ton, Hyunjik Kim, Adam Kosiorek, and Yee Whye Teh. MetaFun: Meta-learning with iterative functional updates. In International Conference on Machine Learning, pages 10617–10627. PMLR, 2020.
[11] Taco S Cohen, Mario Geiger, and Maurice Weiler. A general theory of equivariant CNNs on homogeneous spaces. Advances in Neural Information Processing Systems, 32, 2019.
[12] Luisa Zintgraf, Kyriacos Shiarli, Vitaly Kurin, Katja Hofmann, and Shimon Whiteson. Fast context adaptation via meta-learning. In International Conference on Machine Learning, pages 7693–7702. PMLR, 2019.
[13] Dougal Maclaurin, David Duvenaud, and Ryan Adams. Gradient-based hyperparameter optimization through reversible learning. In International Conference on Machine Learning, pages 2113–2122. PMLR, 2015.
[14] Luca Franceschi, Paolo Frasconi, Saverio Salzo, Riccardo Grazzi, and Massimiliano Pontil. Bilevel programming for hyperparameter optimization and meta-learning. In International Conference on Machine Learning, pages 1568–1577. PMLR, 2018.
[15] Ashish Vaswani et al. Attention is all you need. Advances in Neural Information Processing Systems, 30, 2017.
[16] Ethan Perez, Florian Strub, Harm de Vries, Vincent Dumoulin, and Aaron Courville. FiLM: Visual reasoning with a general conditioning layer. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 32, 2018.
[17] Matthew Tancik et al. Fourier features let networks learn high frequency functions in low dimensional domains. Advances in neural information processing systems, 33:7537–7547, 2020.
[18] Noam Shazeer. GLU variants improve transformer. arXiv preprint arXiv:2002.05202, 2020.
[19] Olivier Roy and Martin Vetterli. The effective rank: A measure of effective dimensionality. In 2007 15th European Signal Processing Conference, pages 606–610. IEEE, 2007.
[20] Alex Krizhevsky et al. Learning multiple layers of features from tiny images. 2009.
[21] Ziwei Liu, Ping Luo, Xiaogang Wang, and Xiaoou Tang. Deep learning face attributes in the wild. In Proceedings of the IEEE International Conference on Computer Vision, pages 3730–3738, 2015.
[22] Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. ImageNet: A large-scale hierarchical image database. In 2009 IEEE Conference on Computer Vision and Pattern Recognition, pages 248–255. Ieee, 2009.
[23] Li Yi et al. A scalable active framework for region annotation in 3D shape collections. ACM Transactions on Graphics (ToG), 35(6):1–12, 2016.
[24] Xumin Yu et al. PoinTr: Diverse point cloud completion with geometry-aware transformers. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 12498–12507, 2021.
[25] Angel X Chang et al. ShapeNet: An information-rich 3d model repository. arXiv preprint arXiv:1512.03012, 2015.
[26] Alexander Gielisse and Jan van Gemert. End-to-end implicit neural representations for classification. In 2025 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 18728–18737. IEEE, 2025.
[27] Georgios I Drakonakis, Grigorios Tsagkatakis, Konstantina Fotiadou, and Panagiotis Tsakalides. OmbriaNet — Supervised flood mapping via convolutional neural networks using multitemporal Sentinel-1 and Sentinel-2 data fusion. IEEE Journal of Selected Topics in Applied Earth Observations and Remote Sensing, 15:2341–2356, 2022.
[28] Daniel S Marcus, Tracy H Wang, Jamie Parker, John G Csernansky, John C Morris, and Randy L Buckner. Open Access Series of Imaging Studies (OASIS): cross-sectional MRI data in young, middle aged, nondemented, and demented older adults. Journal of Cognitive Neuroscience, 19(9):1498–1507, 2007.
[29] Nil Stolt-Ansó, Julian McGinnis, Jiazhen Pan, Kerstin Hammernik, and Daniel Rueckert. NISF: Neural implicit segmentation functions. In International Conference on Medical Image Computing and Computer-Assisted Intervention, pages 734–744. Springer, 2023.
[30] Kushal Vyas, Ashok Veeraraghavan, and Guha Balakrishnan. Fit pixels, get labels: Meta-learned implicit networks for image segmentation. In International Conference on Medical Image Computing and Computer-Assisted Intervention, pages 194–203. Springer, 2025.
[31] Zhenguo Li, Fengwei Zhou, Fei Chen, and Hang Li. Meta-SGD: Learning to learn quickly for few-shot learning. arXiv preprint arXiv:1707.09835, 2017.
[32] Matthias Bauer, Emilien Dupont, Andy Brock, Dan Rosenbaum, Jonathan Richard Schwarz, and Hyunjik Kim. Spatial functa: Scaling functa to imagenet classification and generation. arXiv preprint arXiv:2302.03130, 2023.
[33] Vincent Sitzmann, Julien Martel, Alexander Bergman, David Lindell, and Gordon Wetzstein. Implicit neural representations with periodic activation functions. Advances in Neural Information Processing Systems, 33:7462–7473, 2020.
[34] Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
[35] Paul Friedrich, Florentin Bieder, Julian McGinnis, Julia Wolleb, Daniel Rueckert, and Philippe C Cattin. Med-Functa: A unified framework for learning efficient medical neural fields. arXiv preprint arXiv:2502.14401, 2025.
[36] Francis Williams. Point cloud utils, 2022. https://www.github.com/fwilliams/point-cloud-utils.
[37] Amos Gropp, Lior Yariv, Niv Haim, Matan Atzmon, and Yaron Lipman. Implicit geometric regularization for learning shapes. arXiv preprint arXiv:2002.10099, 2020.
[38] Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. arXiv preprint arXiv:1711.05101, 2017.
[39] Ilya Loshchilov and Frank Hutter. SGDR: Stochastic gradient descent with warm restarts. arXiv preprint arXiv:1608.03983, 2016.
[40] Erik Bekkers, Sharvaree Vadgama, Rob Hesselink, Putri van der Linden, and David Wilson Romero. Fast, expressive SE(n) equivariant networks through weight-sharing in position-orientation space. In International Conference on Learning Representations, volume 2024, pages 6703–6727, 2024.
[41] Tsung-Yi Lin, Priya Goyal, Ross Girshick, Kaiming He, and Piotr Dollár. Focal loss for dense object detection. In Proceedings of the IEEE International Conference on Computer Vision, pages 2980–2988, 2017.
[42] David M Knigge et al. Space-time continuous PDE forecasting using equivariant neural fields. Advances in Neural Information Processing Systems, 37:76553–76577, 2024.
[43] Xingchao Liu, Chengyue Gong, and Qiang Liu. Flow straight and fast: Learning to generate and transfer data with rectified flow. arXiv preprint arXiv:2209.03003, 2022.
[44] Min Jin Chong and David Forsyth. Effectively unbiased FID and inception score and where to find them. In 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 6069–6078. IEEE, 2020.
[45] Mikolaj Bińkowski, Danica J Sutherland, Michael Arbel, and Arthur Gretton. Demystifying MMD GANs. arXiv preprint arXiv:1801.01401, 2018.
[46] William Peebles and Saining Xie. Scalable diffusion models with transformers. In 2023 IEEE/CVF International Conference on Computer Vision (ICCV), pages 4172–4182. IEEE, 2023.
A Appendix
A.1 Meta-learning training loop
In a standard neural field setting without an instance-specific latent code, the inner loop adapts a copy of the neural-field parameters to each sample, while the outer loop updates their shared initialization. MAML differentiates through the full sequence of inner-loop updates, whereas FOMAML computes the gradient at the final adapted parameters while ignoring the optimization trajectory.
Conditional neural fields instead associate each sample with a latent representation . Following CAVIA [12], the inner loop adapts only , starting from a shared initialization , while the outer loop updates the shared decoder parameters . Although remains fixed during inner-loop adaptation, it determines the gradients used to update . As shown in Algorithm 1, MAML retains this dependence and differentiates through the latent updates, while FOMAML stops the gradient through the adaptation trajectory.
Algorithm 1 Meta-learning a conditional neural field
Require: Inner learning rate , outer learning rate , number of inner steps , method
1: Initialize the shared decoder and latent initialization
2: while not converged do
3: Sample a batch of signals
4: for all do
5: Sample inner and outer observations and
6: Initialize
7: end for
8: for do
9: for all do
10:
11: if then
12:
13: else
14:
15: end if
16: end for
17: end for
18:
19:
20: end while
A.2 Differentiating through the optimization encoder
Here we derive the gradient through the complete latent adaptation that describes MAML. For sample i, recall the inner update
where dependence on the inner observations is omitted for readability. The resulting optimization encoder is the composition which returns . Although is not updated in the inner loop, every update in Eq. 4 depends on it through the gradient of the inner objective.
Let
Applying the chain rule to one inner update gives
(6)
The mixed derivative introduces the dependence on the decoder parameters at step , while transports all dependencies accumulated at earlier steps through the next update. Repeated substitution in Eq. 6 yields
where the product preceding is the identity. When the shared initialization is independent of , , so
Now let denote the outer objective. Its total derivative with respect to the decoder parameters is
Substituting Eq. 8 into Eq. 9 gives the expanded meta-gradient
(10)
Thus, each term represents a dependency introduced through at inner step and propagated through every subsequent update before reaching the outer objective. Equivalently, the same derivative can be written in reverse mode. Define the adjoint at the final representation as
and propagate it backwards through the inner updates according to
The decoder gradient is then
which is identical to Eq. 10. If the shared initialization is learned, its gradient follows from the same backward recursion:
Full MAML retains both components of the inner-update Jacobian: the Hessian-dependent transport and the mixed-derivative injection . In the first-order approximation, the adaptation trajectory is detached when computing the outer gradient. Equivalently for the decoder gradient, this makes and . Since with respect to , this gives , and the second term in Eq. 9 vanishes. The decoder therefore receives only : first-order training executes the same forward optimization encoder but does not backpropagate the outer objective through the computation that constructed its representation.
A.3 Extended description of MetaLF
A.3.1 Cross-attention
While the main contributions of MetaLF lie in its design from an optimization encoder perspective, its mapping from latent features to field values builds on the ENF decoder of [4]. Equivariant cross-attention with field coordinates x largely follows their implementation:
Here, is the contextualized feature of latent after the self-attention stack. Since a field coordinate has no content feature, its query is constructed from its position relative to each latent pose. The relative attribute is for translations and for roto-translations.
Ground truth
Reconstruction
CelebA
action
joint action
SE(n) action
SE(n) joint action

CelebA SE(2)
ACDC
ACDC SE(3)
Figure 5: MetaLF is equivariant under a group action defined by its bi-invariant feature a. Rows show translation-equivariant ( ) and roto-translation-equivariant (SE(n)) MetaLF models on CelebA and ACDC myocardium. Columns show ground truth, reconstruction in the canonical frame, pose-only translation, joint translation of poses and queries, pose-only roto-translation, and the corresponding joint roto-translation. Acting on poses alone transforms the represented field; applying the same group element jointly to poses and queries preserves predicted values at corresponding coordinates when the model respects that symmetry. Accordingly, joint translations match the canonical reconstruction in every row, whereas joint roto-translation does so only for the SE(n) models.
Values use the same geometry-conditioned FiLM parameterization as in self-attention, now evaluated between field coordinates and latent poses. We also retain the Gaussian spatial window and normalize attention over the nearest latents, denoted by . A single cross-attention head aggregates their contributions:
where denotes the normalized attention weight. To increase the expressivity of the decoder, we further apply a residual GeGLU feed-forward block to the aggregated feature before the final output projection as done by [5]:
This block follows the same structure as the feed-forward blocks in the self-attention stack. It adds a pointwise nonlinear refinement after spatial aggregation while preserving equivariance.
A.3.2 Equivariance
Equivariance of the decoded field follows from invariance under a joint transformation of the query coordinate and latent poses. For , let : the group acts on poses, while content channels remain unchanged. We show that
The initial features are unchanged by this action. Suppose that the features entering a self-attention block are also unchanged. Since
all queries, keys, and values computed from these features and attributes remain unchanged. Spatial windowing is likewise unchanged when expressed through these attributes, and Euclidean nearest-neighbour sets are preserved under translations and rotations. Attention therefore produces the same aggregated features. Layer normalization, GeGLU, and residual additions operate only on feature channels, so this property holds throughout the self-attention stack by induction.
For cross-attention, bi-invariance gives
The positional queries, content-derived keys, and geometry-conditioned values are consequently unchanged, as are their attention weights. Thus . The pointwise GeGLU block and final projection preserve this equality, establishing the claimed equivariance. Below we describe 2D and 3D equivariance in detail, and we demonstrate the behaviour in Figure 5 using examples from the CelebA [21] and ACDC [3] datasets.
2D example For translations, and . Translating both coordinates and poses by leaves this difference unchanged:
For roto-translations, let with , and use . Under ,
Then
The self-attention attributes and are unchanged by the same calculation. Transforming the latent poses therefore translates or rotates the decoded image while preserving its channel values.
3D example Translation equivariance in follows from the same cancellation. For roto-translations, poses carry a three-dimensional frame . Given , the cross-attention attribute satisfies
and relative orientations satisfy
Together with invariance of the relative translations, these identities establish bi-invariance for both attention operations. For a decoded signed distance field, rigidly transforming the latent poses therefore moves the represented shape: the field value at after transformation equals its value at before transformation.
A.3.3 General implementation details
As observed by [4], we find that initialization of the latent poses typically benefits from maximum coverage of the output field. We therefore similarly initialize latents to a grid formation and break symmetry by adding a small amount of Gaussian noise . Given this configuration, we typically set to 4 and 8 for 2D and 3D fields respectively, thus defining the nearest neighbours of a query coordinate during cross-attention. We further use , corresponding to neighbours in 2D and in 3D. Optimization encoding of is learned together with meta-SGD [31], which significantly boosts performance across experiments. Coordinate positions of latent poses are further stabilized during training using a tanh function, thus ensuring that latent positions do not diverge from the grid defined between -1 and 1. Finally, to accommodate MAML, we implement MetaLF and baselines in JAX.
We further note that FiLM modulation in MetaLF self-attention may use either the bi-invariant geometric feature or the content feature as modulation base, as their combined value shares the same expressive ceiling. However, we noticed that optimization using the geometric feature as a basis resulted in much more stable convergence, which we hypothesize is due to the feature being more consistent over the course of training, as the relative orientation of the latent pointcloud does not fluctuate severely. The influence of the content feature is thus zero at the start of training, and may be utilized more as training progresses as deemed necessary to fulfill the modeling objective.
A.4 Controlled analysis
A.4.1 Polynomial-field implementation and geometry metrics
Fields and latent representation. We sample polynomial fields on from the space of polynomials of total degree at most six, of which the output space contains monomials. Fields are represented on a grid, while raw coefficients are sampled independently from Unif and scaled by , with an additional factor of 0.5 for the constant term. Both ENF [4] and MetaLF use tokens with latent states initialized on a grid, while Functa [9] instead uses a flat 512-dimensional latent. Further Functa meta-learning settings are as described in [32], i.e. a FiLM-modulated SIREN network [33] with , and 15 layers of width 512.
Training and evaluation protocol. Models are trained for 500 epochs with batch size 32. Each inner loop returns 256 grid observations sampled uniformly without replacement. We apply inner updates and differentiate the outer loss through all three updates using full second-order MAML. MetaLF uses meta-SGD [31] to optimize inner learning rates, initialized with 0.1 for pose and 0.01 for content, Adam [34] with outer learning rate , and global gradient-norm clipping at 1. During evaluation, each diagnostic field is fitted from a deterministic 256-coordinate mask, and all geometry quantities are evaluated on the complete grid.
Content Jacobian and update-scaled geometry. For one fitted field, let denote the decoder output on the complete grid. We hold the adapted poses fixed and differentiate only with respect to the content part of , i.e. :
Let be the diagonal matrix of content step sizes for . Given that we use meta-SGD [31], its diagonal contains the learned positive-valued content update learning rates. We then define the meta-SGD-scaled Gauss-Newton matrix as
Latent effective rank. Let be the eigenvalues of retained under the numerical threshold . After normalizing the retained spectrum with , we define the latent effective rank by
This quantity uses entropy to measure the effective number of retained singular modes of the update-scaled Jacobian. When the spectrum is flat across modes, . When one mode dominates, is close to one. The implementation sets when has zero energy.
Polynomial tangent fraction. Let
be the matrix of monomials of total degree at most six, evaluated on the full grid. The orthogonal projector onto the resulting polynomial subspace is
We measure how much of the local decoder variation lies in this subspace using
This ratio lies between zero and one and gives the fraction of local output-change energy within the 28-dimensional polynomial subspace. Values near one indicate that small content perturbations mainly produce changes within the polynomial family; values near zero indicate that these changes mainly fall outside it. We compute the projection using the discrete Euclidean inner product on the grid samples, thus summarizing local variation across content directions.
A.4.2 FOMAML and MAML training behaviour
We provide an analysis of the training dynamics on CIFAR10 reconstruction in Figure 6. Compared to the simpler task of polynomial field reconstruction (see Table 1), the latent effective rank gradually increases during MAML training on CIFAR10. This is consistent with the greater complexity and diversity of natural images, for which capturing variation may require responses spread across more latent directions. FOMAML instead maintains a much lower effective rank that gradually declines, alongside limited improvement in reconstruction quality. Stopping the gradient through the adapted latents prevents the outer objective from directly training the encoding procedure, which helps explain this difference. Full MAML retains this pathway, allowing reconstruction supervision to shape how the inner updates construct the latent representation.
Full MAML FOMAML
(a) GN participation

(b) Upper response scale
(c) Post-adaptation error
(d) Beyond training horizon
Figure 6: Training progress on CIFAR10 reconstruction for MAML (blue) and FOMAML (red). (a) MAML develops a higher latent effective rank, while the first-order controls remain at lower ranks. (b) MAML generally has smaller upper response factors, although these fluctuate during training. (c) MAML's reconstruction error decreases substantially over training epochs, whereas the first-order controls plateau after an initial improvement. (d) Both methods perform best near the three-step training horizon, with reconstruction error gradually increasing under further adaptation.
The upper response scale measures how strongly an inner-loop update can respond along the most sensitive latent direction, accounting for both decoder sensitivity and the inner learning rate. The higher effective rank, together with a generally lower upper response scale, suggests that MAML spreads its local response more evenly across latent directions, with less concentration in the most sensitive directions. Finally, we measure how additional inner steps affect reconstruction beyond the three-step training horizon (Figure 6d). MAML improves slightly with a fourth update, while FOMAML achieves its lowest mean error at three steps. Further updates gradually worsen reconstruction for both methods. This is consistent with the optimization encoder perspective: the decoder learns to use the structured latent representations produced within the training horizon, and additional updates may move these representations away from the distribution encountered during training.
Figure 7 compares how tokens interact on the encoding and decoding sides as decoder depth increases. Without self-attention ( ), each token affects only its local neighbourhood of the output field. Updates are therefore coupled only between spatially adjacent tokens, which results in the banded structure of the token grid. Adding self-attention layers makes this coupling denser and less local: the mean off-diagonal coupling rises from 0.36 at to 0.67 at . As a result, an inner-loop gradient step on one token increasingly interacts with updates on distant tokens. The decoding-side routing changes in a matching way. With a single attention layer, a token's non-self influence is routed almost entirely to its immediate neighbours. Deeper decoders spread this influence over progressively larger neighbourhoods: the off-diagonal routing mass grows from 0.26 to 0.69, and the normalized row entropy grows from 0.28 to 0.63 between and . The two views therefore describe the same mechanism from opposite directions. As attention spreads information from each token further across the grid, the decoder's sensitivity to each latent also becomes less local, and the optimization encoder has to solve a more strongly coupled inner problem. Under this view, controls how far a local latent edit spreads through the reconstruction.
A.5 Experimental details
A.5.1 Image reconstruction
For image reconstruction, we use MetaLF with self-attention layers, four attention heads, hidden width 128, and 64 content channels per latent token. We summarize the dataset-specific settings in Table 6, where and denote the number of nearest neighbours used for self-attention and cross-attention, respectively. The frequency scales control the positional embeddings used for query and value modulation.
(a) Encoding-side geometry

(b) Decoding-side routing

source token
Figure 7: Optimization encoder-side coupling (top) and decoder-side attention routing (bottom) evaluated on the polynomial fields dataset, shown with increasing number of MetaLF self-attention layers () for latent tokens. Additional layers allow information to propagate beyond local latent neighborhoods while retaining the spatial structure of the representation.
Optimization Inner and outer objectives both minimize MSE. We use inner updates and differentiate through all three updates using MAML. The shared latent initialization is learned together with the decoder, while meta-SGD learns a separate learning rate for each latent coordinate and each inner step, initialized to 0.1 for pose and 0.2 for content. These rates are optimized using a separate Adam optimizer with learning rate 0.2 and constrained to . The decoder and shared initialization use Adam with the outer learning rates in Table 6 and global gradient-norm clipping at 1. We use Adam parameters and , constant learning rates, and no weight decay. For ImageNet, we accumulate gradients over eight microbatches of eight images to obtain an effective batch size of 64.
Table 6: MetaLF training settings for image reconstruction. Settings are shared by the and variants. The inner coordinate count is per adaptation step.
| CIFAR10 | CelebA | ImageNet-1K | |
|---|---|---|---|
| Latent tokens N | 25 | 36 | 169 |
| Initial latent grid | (5, 4) | (6, 4) | (13, 4) |
| Query/value frequency scales | (1, 3) | (1, 3) | (2, 10) |
| Inner / outer coordinates | 1,024/1,024 | 4,096/4,096 | 4,096/16,384 |
| Effective batch size | 32 | 32 | 64 |
| Training epochs | 150 | 50 | 2 |
| Outer learning rate |
Data and coordinate sampling CIFAR10 images retain their native resolution. CelebA images are center-cropped to and resized to using bilinear interpolation with antialiasing. For both datasets, every pixel is used in each inner update and in the outer reconstruction loss. ImageNet training instead uses images at their native resolution, without resizing or cropping. Due to hardware limitations, we randomly sample 4,096 pixels for each inner update and an independent set of 16,384 pixels for the outer loss as also performed by [35]. The outer set may overlap the inner observations. Pixel-center coordinates are normalized independently along each axis to .
Model selection and evaluation For CIFAR10, we divide the original training set into 49,900 training images and 100 validation images. For CelebA, we use the official split of 162,770 training, 19,867 validation, and 19,962 test images, with the first eight validation images used for checkpoint selection. For ImageNet, we hold out five training images per class, leaving 1,276,167 training images and 5,000 development images. In each case, we select the checkpoint with the highest mean validation PSNR. Final evaluation uses the 10,000 CIFAR10 test images, the 19,962 CelebA test images, and the 50,000 official ImageNet validation images reserved as a test set. ImageNet evaluation resizes each image directly to using antialiased bilinear interpolation and uses all 16,384 pixels at each of the three inner steps. All datasets are scored on the full fitted grid.
Baselines We re-run Functa and ENF reconstruction baselines that are also reported by [4]. In general, we retrieve slightly higher test-set PSNR values among baselines, which may be due to slight differences in parameterization and a slightly longer optimization time. We notably identify much higher PSNR values for Functa on the CelebA and ImageNet-1K datasets, while obtaining a slightly lower PSNR for CIFAR10 (38.1dB compared to our 36.2dB). Functa is retrained with the settings proposed by [32]. For consistency with ENF, we further adopt its latent parameterization, using the same number of latent tokens and content channels per token for each dataset.
A.5.2 Shape reconstruction
For shape reconstruction, a per-object SDF represents each ShapeNet sample, while each ACDC frame is represented by three jointly decoded SDF channels for the RV, LV blood pool, and LV myocardium. We initialize MetaLF with self-attention layers, hidden width 128, four heads, and 32 content channels per token, and we initialize query and value frequency scales to 1 and 3 respectively. Table 7 summarizes the remaining settings.
Table 7: Shape-reconstruction settings. Coordinate counts refer to the SDF data term; ACDC additionally uses surface anchors. ShapeNet settings are shared by the 16-category and 55-category experiments.
| ShapeNet | ACDC | |
|---|---|---|
| Latent tokens N | 27 | 256 |
| Initial latent grid | (3, 8) | (6, 8) |
| Near-surface fraction | 75% | 50% |
| Inner / outer coordinates | 1,638/8,192 | 24,000/24,000 |
| Training epochs | 100 | 200 |
SDF preprocessing For ShapeNet, we construct an SDF cache from ShapeNetCore-v2 meshes as per [4]. Each mesh is made watertight using Point Cloud Utils [36] with reconstruction resolution 20,000, centered at its surface-area-weighted centroid, and scaled such that the longest bounding-box side has length one. We save 100,000 uniform points in and 100,000 area-sampled surface points perturbed by isotropic Gaussian noise with standard deviation 0.01, together with their signed distances.
For ACDC, we use the labelled end-diastolic and end-systolic segmentations. Each structure mask is zero-padded, converted to a surface by marching cubes at level 0.5, and smoothed with 20 Taubin iterations before computing signed distances. Each volume axis is normalized independently to . We cache uniform queries, near-surface queries with Gaussian perturbation scales 0.02 and 0.005, and exact surface points with their structure-channel identities. The pools contain 200,000 uniform points, approximately 200,000 near-surface points, and 100,000 surface points per frame, with the latter two divided across the three structures.
Optimization and sampling All methods use full second-order MAML with latent updates. Adam [34] optimizes the decoder with learning rate and global gradient-norm clipping at 1. Meta-SGD [31] learns one rate per latent coordinate, shared across all five inner steps, using a separate Adam optimizer at and clamping the rates to . Rates are initialized to 0.05 for posed coordinates and 0.01 for content, while the Functa variants initialize all rates to 0.01. Both optimizers use constant learning rates, , and , without weight decay.
For each signal, we randomly sample coordinates as described in Table 7 without replacement, and randomly alternate entries to inner and outer sets. For ACDC, all 24,000 inner observations are reused at every step. We additionally sample 1,024 exact surface anchors per ACDC frame, shared by the inner and outer objectives.
Reconstruction objectives For ShapeNet, both objectives use the mean absolute difference between and , with and target SDF . No additional geometric penalties are used. For ACDC, the data term is instead the mean absolute difference between predicted and target SDFs clipped to . Both inner and outer objectives add an on-surface penalty with weight 1, an eikonal penalty [37] with weight 0.1, and a balanced inside/outside logistic loss with weight 1.
Data splits and evaluation The ShapeNet-Part experiment uses ShapeNetCore-v2 instances from the 16 ShapeNet-Part categories, while ShapeNet-Core uses all 55 available categories. We use category-stratified 80/10/10 splits, yielding 22,456/2,800/2,822 and 41,951/5,220/5,299 training/validation/test shapes, respectively. IoU is evaluated on all 100,000 cached uniform points per shape.
Of the pooled 150 patients from the ACDC dataset, we assign 120 patients to training, five to checkpoint selection, and 25 to testing. With two cardiac phases per patient, this gives 240 training, 10 selection, and 50 test volumes. At test time, we fit with SDF targets and the same composite objective used at training time. Predictions are scored against the original segmentation on the native voxel grid. All reported shape-reconstruction results report IoU percentages as mean and standard deviation averaged over three differently seeded training runs.
Baselines We train Functa, SpatialFuncta, and ENF using the same dataset-specific splits, sampling, objectives, and training budgets. ENF uses the same token counts and 32 content channels as MetaLF, with hidden width 128, attention dimension 64, three heads, and eight cross-attention neighbours. SpatialFuncta uses the corresponding or grid with 32 channels, trilinear interpolation, and a six-layer SIREN of width 256 with . This setting replaces the initial 15-layer, configuration, which failed to fit ShapeNet and became unstable during training on ACDC. Global Functa uses a 1,024-dimensional latent and a 15-layer SIREN of width 256 with , for which its low scores reflect poor fitting under this five-step recipe. The content budgets of ENF, SpatialFuncta, and MetaLF are matched.
A.5.3 Meta-classification
For Table 4, we jointly train the representation and classifier through latent adaptation steps using full second-order MAML. The inner loop uses reconstruction supervision only, while class labels enter through the outer objective. We meta-learn the decoder, shared latent initialization, and classifier, for which the outer objective becomes
where sg denotes stop-gradient and both losses are averaged over the current batch.
MetaLF configuration The MetaLF classifier mean-pools the final self-attention features, and subsequently applies a linear layer to return the class logits. Table 8 lists any dataset-specific settings.
Optimization and augmentation Adam [34] updates the decoder and latent initialization at , while a separate AdamW optimizer [38] trains the classifier with peak learning rate , weight decay 0.05, and cosine decay [39]. The classification head warmup is five epochs for CIFAR10 and ShapeNet and 249,500 training images for ImageNet. During training, we utilize a random latent dropout rate of 60% for the classification head. We further augment training with random horizontal flips.
Sampling and evaluation For CIFAR10, all methods sample all 1,024 pixel grid locations during training and test-time. ImageNet training uses native-resolution images, reserving five training images per class for performance selection. A random sampler returns three inner sets of 2,048 pixels and an independently sampled outer set of 8,192 pixels. Final top-1 accuracy is reported on all 50,000 official validation images. Accuracy uses native-resolution sampled adaptation with the same coordinate budget. The reported PSNR is calculated using images resized to as in the reconstruction-only scenario (see Appendix A.5.1). ShapeNet-Core is similarly preprocessed as described in Appendix A.5.2. We report mean IoU and its sample standard deviation across test shapes. ShapeNet accuracy is the unweighted mean of the 55 category accuracies, with sample standard deviation across categories. Image accuracy uses the binomial standard error, and image PSNR variability is across test images.
Baselines We train Functa, SpatialFuncta, and ENF locally with the same objective function and dataset splits listed above. ENF and SpatialFuncta match MetaLF's token counts and content channels, while global Functa uses a 1,024-dimensional latent on every dataset. All methods use mean pooling, layer normalization, and a linear classifier, reading MetaLF's final self-attention features, ENF's adapted content tokens, SpatialFuncta's grid modulations, or Functa's single global modulation vector.
Findings As can be observed from Table 4, reconstruction quality for meta-classification is typically lower compared to when we only consider reconstruction quality as the outer objective (Table 2). This is in line with earlier work on combined reconstruction and classification (MWT, [26]), indicating that reconstruction and classification are not
Table 8: MetaLF meta-classification settings. Coordinate counts describe training; evaluation differences are specified below.
| CIFAR-10 | ImageNet-1K | ShapeNet-Core | |
|---|---|---|---|
| Latent tokens | 64 | 256 | 27 |
| Initial latent grid | |||
| Content channels per token | 16 | 32 | 32 |
| Hidden width | 128 | 256 | 128 |
| 4 | 4 | 2 | |
| (8, 4) | (16, 4) | (6, 8) | |
| Inner / outer coordinates | 1,024/1,024 | 2,048/8,192 | 2,730/8,192 |
| Training epochs | 100 | 10 | 100 |
| Initial pose/content step sizes | 0.1/0.2 | 0.1/0.2 | 0.05/0.01 |
| Meta-SGD optimizer learning rate | 0.2 | 0.2 |
necessarily synergistic tasks. This may be due to the potentially high in-class visual variability, which may result in distal latent reconstruction regions that are semantically close, requiring the model to make a trade-off.
Despite this trade-off, MetaLF extends naturally to meta-classification by adding a linear classification head and a classification loss to the outer objective, while retaining reconstruction-only adaptation in the inner loop. With random horizontal flips as the only image augmentation, MetaLF achieves 42.6% top-1 accuracy on ImageNet-1K, exceeding the 24.1% reported for MWT by 18.5 percentage points (Table 4). Development accuracy continued to improve towards the end of the 10-epoch training schedule, with no clear plateau, suggesting that longer training or a larger decoder may yield further gains.
On CIFAR10, MetaLF matches or exceeds the 82.1% accuracy reported for a two-step ENF classifier, which trains a downstream PÑNITA classifier [40] on representations meta-learned for reconstruction. MetaLF achieves an accuracy of 83.3% using only random horizontal flips, compared to ENF using 50 random crops with flips per image. These results support the effectiveness of end-to-end MetaLF meta-classification with substantially less data augmentation.
A.5.4 Meta-segmentation
For Table 5, we jointly meta-learn reconstruction and segmentation using full second-order MAML. The decoder predicts signal values and segmentation logits as separate output channels of the same network. The inner loop adapts only the latent representation using reconstruction supervision, while the segmentation loss is only backpropagated in the outer objective. At test time, the decoder and learned step sizes remain fixed, and latent adaptation requires no segmentation labels.
For each batch, we optimize
where sg denotes stop-gradient. The segmentation term is binary cross-entropy for OMBRIA, 50-way cross-entropy for ShapeNet-Part, and 36-way focal loss with for OASIS as also in [30]. We set for OMBRIA and increase it linearly from zero to one over the first 50 training epochs for the two 3D datasets, updating the weight at every outer step.
Architecture and optimization. MetaLF uses four attention heads, while remaining settings are given in Table 9. Optimization is performed with AdamW [38], which jointly updates the decoder and shared latent initialization with learning rate , weight decay , and global gradient-norm clipping at 1. A separate Adam optimizer [34] learns one Meta-SGD [31] step size per latent coordinate and inner step; its gradients are not clipped. For OASIS, the Meta-SGD optimizer rate is held at 0.2 through epoch 10, decreased linearly to 0.05 by epoch 20, and held constant thereafter. No data augmentation is used in these experiments.
OMBRIA preprocessing and sampling Each OMBRIA sample consists of co-registered Sentinel-1 and Sentinel-2 images before and after a flood. Sentinel-1 has one channel per time point and Sentinel-2 is an RGB image, giving eight reconstruction channels and one flood logit. Data is further split into 614/10/70 training/validation/test examples.
For each outer loop, we draw 6,144 coordinates which are divided into three 2,048 coordinate inner sets, where each inner loop minimizes the eight-channel MSE. The outer set contains 4,096 flood and 4,096 background pixels,
Table 9: MetaLF meta-segmentation settings. Coordinate counts describe one training signal; ShapeNet-Part additionally supervises annotated surface points. The same number of inner steps is used during training and testing.
| OMBRIA | ShapeNet-Part | OASIS | |
|---|---|---|---|
| Latent tokens N | 169 | 27 | 3510 |
| Initial latent grid | |||
| Content channels per token | 64 | 32 | 64 |
| Hidden width | 128 | 128 | 192 |
| 4 | 2 | 4 | |
| (13, 4) | (6, 8) | (13, 8) | |
| Query/value frequency scales | (2, 10) | (1, 3) | (2, 10) |
| Inner steps K | 3 | 5 | 5 |
| Inner coordinates | 2,048 | 2,048 | 32,768 |
| Outer reconstruction coordinates | 8,192 | 10,240 | 32,768 |
| Outer segmentation coordinates | 8,192 | 2,048 | 32,768 |
| Batch size | 1 | 4 | 1 |
| Training epochs | 200 | 100 | 200 |
| Initial pose/content step sizes | 0.1/0.2 | 0.05/0.01 | 0.1/0.2 |
| Meta-SGD optimizer rate | 0.2 | 0.2 → 0.05 |
supervising both reconstruction MSE and binary cross-entropy simultaneously. Table 5 pools intersections and unions over all 70 test images before taking their ratio.
ShapeNet-Part preprocessing and sampling For ShapeNet-Part segmentation, we join the official 2,048-point part annotations to the preprocessed ShapeNet data. SDF preprocessing follows the shape-reconstruction setup described in Section A.5.2. This gives a training/validation/test split of 12,082/1,866/2,868 objects. Each outer loop iteration draws 20,480 SDF queries within the uniform and near-surface coordinate pools, with the 25/75 ratio described earlier. Both reconstruction objectives minimize mean absolute error after applying tanh(s/0.1) to predicted and target SDFs.
The decoder outputs one SDF value and 50 part class logits. Segmentation supervision is applied only at the 2,048 registered annotated surface points, using cross-entropy over all 50 parts. We first average IoU calculation over category parts within each object and subsequently over test objects, while test-time fitting uses the same SDF sampling budget with all annotated points getting scored. In Table 5, parentheses report the population standard deviation of instance mIoU over the 2,868 test objects.
OASIS preprocessing and sampling We use the Neurite OASIS-1 derivatives, which are affinely aligned, skull-stripped, bias-corrected T1 MRI with corresponding 35-structure segmentation, for which we assign 334/40/40 of the 414 subjects to training/validation/testing. We center-crop the supplied volumes to as in [30]. The decoder predicts MRI intensity and 36 logits, including background.
Training operates on the cropped full-resolution volumes. Each of five inner steps receives 32,768 observations, with sampled uniformly and proportional to MRI gradient magnitude. The inner loss is MSE divided by the stop-gradient mean squared target intensity of that step. The outer set has 32,768 coordinates: uniform background, background adjacent to foreground, foreground voxels at interfaces between distinct foreground labels, and balanced over foreground labels. The outer objective uses uniformly weighted MRI MSE and a focal loss [41].
Local baselines and failed recipes Functa, SpatialFuncta, and ENF are trained with the same output-channel additions, reconstruction-only inner loop, joint outer objective, splits, and dataset-specific coordinate budgets. SpatialFuncta uses the MetaLF grid shape and content-channel count, with a six-layer, width-256 SIREN and . Interpolation is bilinear for OMBRIA and trilinear for the 3D datasets. Its outer learning rate is reduced to for OMBRIA and ShapeNet-Part, and remains for OASIS. ENF matches the token counts and content channels, uses attention dimension 64, hidden width 128 with three heads for OMBRIA and ShapeNet-Part, and width 192 with four heads for OASIS. Its relative attributes, frequency scales, and cross-attention neighbour counts match MetaLF.
Functa is standardized to use a 1,024-dimensional latent. Its OMBRIA result uses a six-layer, width-256, SIREN for which training collapsed mid-training. SpatialFuncta's ShapeNet-Part result likewise diverged at a late training stage. Thus, these two numeric entries do not represent completed 200- and 100-epoch runs, respectively. Global Functa failed to fit or diverged under the attempted ShapeNet-Part and OASIS recipes; these outcomes are reported as failed. The ShapeNet-Part attempts started from a 15-layer, width-256, SIREN and included seven
Optical before
25th percentile
Optical after

Ground truth
SpatialFuncta
ENF
MetaLF
IoU: 45.25%
IoU: 50.32%
IoU: 49.33%
Median
IoU: 31.81%
IoU: 34.50%
IoU: 66.95%
75th percentile
IoU: 81.02%
IoU: 80.03%
IoU: 81.52%
Figure 8: Qualitative example for OMBRIA meta-segmentation, illustrating the 25th percentile, median, and 75th percentile MetaLF test-set performance sample in terms of IoU. In the median case, SpatialFuncta and ENF produce extensive false-positive flood predictions around cloudy regions, whereas MetaLF largely suppresses them. This pattern is consistent with non-local latent interactions using broader spatial context to resolve ambiguous local signals.
single-setting interventions, none yielding a fitted model. The final OASIS attempt used a six-layer, width-256, SIREN and the common five-step recipe; it failed to fit before non-finite gradients stopped training at step 12,542.
Findings We note that MetaLF often performs similarly to spatially structured baselines (SpatialFuncta and ENF) when local information is sufficient for accurate segmentation. Our qualitative comparisons suggest that MetaLF distinguishes itself when long-range spatial context is needed to resolve ambiguous local cues. In the median OMBRIA example (see Figure 8), SpatialFuncta and ENF produce extensive false-positive flood predictions around cloudy regions, whereas MetaLF largely suppresses these errors. This behaviour is consistent with MetaLF's non-local latent interactions allowing evidence from spatially separated regions to inform local predictions.
A.6 Additional results
A.6.1 Parameterization and computational costs
Latent pointcloud parameterization We ablate latent pointcloud settings for CIFAR10 reconstruction in Table 10. With increasing pointcloud size, dimensionality, and number of MetaLF self-attention layers, we intuitively identify a steady improvement in reconstruction quality. Even for the diverse task of CIFAR10 reconstruction for which reconstruction can be considered a relatively localized task, we notice that the contextualizing expressivity of the MetaLF decoder can offer significant gains in reconstruction quality. Conversely, additional self-attention layers yield only small reconstruction gains when the number of latents N = 1, consistent with the absence of interactions between distinct latent tokens. An example of how progressively increasing the granularity of the latent pointcloud z affects reconstruction is shown in Figure 9.
Computational cost analysis Table 11 compares parameter counts, reconstruction costs, and meta-training costs on CIFAR10 at matched latent content budgets. Spatial Functa has the lowest costs among the evaluated configurations. Within MetaLF, additional self-attention layers increase parameter count and latency, while the increase in FLOPs is comparatively modest. ENF illustrates why fewer parameters do not necessarily imply less computation: its wide query-dependent transformations are repeatedly evaluated across the image.
16.70 dB
20.95 dB
26.21 dB
31.99 dB
38.88 dB
GT

Figure 9: Reconstruction quality as a function of latent pointcloud size. The example uses MetaLF with and per-latent content size of .
Table 10: CIFAR-10 validation set reconstruction PSNR for MetaLF capacity variations. Rows vary the number of latents ; grouped columns vary latent channels and self-attention depth .
| N | D = 16 | D = 32 | D = 64 | |||
|---|---|---|---|---|---|---|
| 1 | 18.92 | 19.06 | 20.57 | 20.62 | 22.36 | 22.49 |
| 4 | 22.69 | 23.03 | 24.77 | 25.29 | 27.58 | 28.42 |
| 9 | 25.59 | 26.47 | 28.61 | 29.77 | 32.72 | 34.20 |
| 16 | 28.47 | 29.85 | 32.54 | 34.17 | 39.17 | 40.78 |
| 25 | 31.29 | 33.18 | 36.67 | 38.82 | 46.44 | 48.28 |
A.6.2 Generative modeling
Though not the main focus of our work, we note that MAML implicitly provides structure to the latent space, as the limited number of optimization steps originating from the same initial latent forces together the latent representation in a contiguous and meaningful way [42]. Therefore, we provide an additional experiment for generative modeling, where we compare ENF and MetaLF for which we train rectified flow [43], and for which results are presented in Table 12. In both cases, we generate both parts of the latent pointcloud simultaneously, i.e. for we generate both points and content from random Gaussian noise. We can then decode the latents with their respective frozen, meta-learned neural field decoder (examples presented in Figure 10).
We evaluate generated images using Fréchet Inception Distance (FID) [44], Kernel Inception Distance (KID) [45], and feature coverage. FID compares Gaussian approximations to real and generated Inception-feature distributions through their means and covariances, whereas KID measures their discrepancy using a polynomial-kernel maximum mean discrepancy. Lower values indicate closer distributional agreement. Coverage measures the fraction of real images
Table 11: Compute on CIFAR10 (32 × 32) with three full-image inner loop steps and 1,600 content scalars, with ENF and MetaLF additionally fitting 50 pose scalars. Spatial Functa uses latents. Parameters include the shared decoder, trainable initialization, and trainable adaptation rates. Reconstruction includes encoding and decoding, while training includes a full second-order meta-update. Timings use one NVIDIA H100 GPU and report the median with the interquartile interval below, across 100 synchronized calls. FLOPs count logical XLA arithmetic (multiply-add = 2), excluding transcendentals. Bold and underline denote the lowest and second-lowest costs.
| Model | Params (M) ↓ | Reconstruction (B = 1) | Meta-training (B = 32) | ||
|---|---|---|---|---|---|
| GFLOPs ↓ | ms/image ↓ | GFLOPs ↓ | ms/update ↓ | ||
| Functa | 6.187 | 11.975 | 1.383[1.382, 1.390] | 1147.983 | 40.367[40.364, 40.419] |
| Spatial Functa | 0.354 | 3.846 | 0.572[0.570, 0.573] | 368.079 | 14.543[14.537, 14.557] |
| ENF | 0.610 | 33.232 | 1.870[1.868, 1.870] | 3188.983 | 116.081[116.032, 116.099] |
| MetaLF () | 0.362 | 10.748 | 1.219[1.218, 1.220] | 1031.587 | 50.863[50.836, 50.993] |
| MetaLF () | 1.120 | 11.435 | 3.173[3.170, 3.174] | 1088.456 | 58.189[58.082, 58.206] |
| MetaLF () | 1.878 | 12.123 | 5.131[5.128, 5.139] | 1145.331 | 66.946[66.894, 67.184] |
(a) CIFAR10

(b) CelebA
Figure 10: Uncurated examples generated using latent rectified flow based on the reconstruction meta-learned MetaLF (MetaLF-Diffuser) representation models.
with a generated neighbour within a feature-space neighbourhood defined by the fifth-nearest real neighbour. Higher coverage indicates broader coverage of the real-data distribution, complementing FID and KID.
On CelebA, MetaLF representations yield substantially better generative results than ENF under the same DiT backbone [46]: FID decreases from 18.82 to 13.05, while coverage increases from to . This is consistent with MetaLF being a more effective meta-learner for face representations: centered faces and the relatively consistent arrangement of facial features provide shared spatial regularities that its latent self-attention can exploit. On CIFAR10, where object identity, pose, background, and spatial arrangement vary more strongly between samples, the difference is smaller, with ENF and MetaLF performing similarly under DiT.
The MetaLF self-attention architecture also serves as a competitive diffusion-style generative backbone. Here, both backbones are trained with flow matching to predict a latent velocity field. Replacing DiT with the full-attention MetaLF-Diffuser (parameter-matched to DiT: 12 layers, 384 hidden width) improves CIFAR10 FID from 20.08 to 18.83 and coverage from to , while retaining similar performance on CelebA (FID 13.38 versus 13.05), thus supporting utility beyond representation learning. Models are trained for 500 epochs.
Table 12: Generative modeling on CIFAR10 and CelebA using 50,000 generated samples, evaluated against 10,000 and 19,962 test images, respectively. CIFAR10 models are class-conditioned; CelebA models are unconditional. KID is reported as mean block standard error.
| Model | CIFAR10 | CelebA | ||||
|---|---|---|---|---|---|---|
| FID ↓ | KID ×103↓ | Cov. (%) ↑ | FID ↓ | KID ×103↓ | Cov. (%) ↑ | |
| ENF (DiT) | 18.58 | 6.89 ±0.14 | 93.06 | 18.82 | 17.82 ±0.18 | 70.51 |
| MetaLF (DiT) | 20.08 | 7.22 ±0.18 | 90.56 | 13.05 | 11.05 ±0.12 | 86.43 |
| MetaLF (MetaLF-Diffuser) | 18.83 | 6.59 ±0.19 | 92.87 | 13.38 | 11.57 ±0.14 | 86.53 |