The Marauder's Map: Bézier Manifolds Reveal Hidden Surfaces for Model Merging and Ensembling
Authors: Abhiram Iyer, Mark T. Harnett, Sarthak Chandra
Organizations: Department of Electrical Engineering and Computer Science, MIT, Cambridge, MA · McGovern Institute for Brain Research, MIT, Cambridge, MA · Department of Brain and Cognitive Sciences, MIT, Cambridge, MA · International Centre for Theoretical Sciences (ICTS-TIFR), Bengaluru, KA, India
Neural circuits are famously more robust than deep networks. This is often explained through degeneracy, where structurally distinct configurations support the same function. However, real biological systems exhibit a more flexible form of degeneracy in which specialized circuits continually adapt towards new competencies through localized changes while preserving existing function. Deep learning studies degeneracy through mode connectivity, which connects same-task networks by low-loss curves, sheets, or volumes. However, the field lacks a counterpart to flexible degeneracy, which demands more than ordinary mode connectivity. Defining such an analogue requires asking whether many independently initialized models trained on distinct tasks can be connected by a high-dimensional region of multi-task solutions. We introduce Nimbus, which learns a high-dimensional Bézier manifold connecting N specialists, going beyond the one-dimensional paths and two-dimensional sheets of mode connectivity work. A naive parameterization would scale combinatorially with N, but Nimbus requires learning corrections of only 3 interaction orders, showing that the connecting manifold has surprisingly low complexity yet supports multi-task competencies. The resulting manifold forms a navigable "Marauder's Map" that connects specialist models through a shared geometry of competent solutions. Trained across vision and language domains, Nimbus produces manifolds that are functionally and locally weight-flat: ensembles sampled from them degrade more gracefully than baselines under input and weight perturbations, with the largest gains in NLL loss and calibration error. Nimbus supplies a deep learning interpretation of flexible degeneracy, recasting model connectivity from a low-dimensional path between distant solutions into a high-dimensional volume of nearby ones.
Figures & tables
Figure 1: Local degrees of freedom in biological learning. Dendrites support synaptic clustering (yellow), deletion (dashed), and filopodia (blue) carrying silent synapses that can become active. These localized mechanisms of change let circuits learn without overwriting existing function.
Figure 2: Nimbus constructs a low-loss, high-dimensional volume through a small number of corrections. a. Constructing multi-task models through linear interpolation of independent task-trained models results in high NLL due to feature differences and neuron asymmetries. b. We hypothesize the existence of an ideal connecting manifold that can demonstrate low loss on the joint set of tasks in its entire volume. c. ( left ) Could an arbitrary Bézier manifold defined over a simplex satisfy this requirement? Even if it could, a naive parameterization would require combinatorially many correction terms, e.g., the green dots indicate learned quadratic corrections for every edge. ( right ) Nimbus demonstrates that such manifolds not only exist, but can be parameterized through only a small number of corrective terms shared per-degree.
Figure 3: The Bézier manifold induced by Nimbus is flat in loss. a. Each point in the triangle heatmap corresponds to a mixing weight w∈Δ2 . For ConvNeXt ( N=3 , D={2,3} ), linear connectivity between 3 disjoint models crosses many high-loss barriers, while Nimbus is uniformly low in NLL loss (lower is better). NLL ≈3.4 is chance. b. We can compare the linear paths towards the vertex average and the paths towards Nimbus ’s centroid starting from any vertex. After moving roughly half an inter-expert distance, linear interpolation produces poorly functioning models while the path along Nimbus ’s manifold yields access to an infinite set of highly competent solutions. c. Top-3 and top-5 accuracy (higher is better) stay uniformly high across the interior, while ECE (lower is better) stays uniformly low, indicating that any convex combination of specialists (plus learned corrections) yields a competent merged multi-task model. d. Even when Nimbus is optimized over N=4 specialists, the low-loss Δ3 tetrahedron is bounded by lower-dimensional surfaces, each of which effectively merges subsets of specialist models. We visualize here two unique sets of N=3 tasks as two faces of the tetrahedron. NLL ≈3.7 is chance.
Figure 4: Per-task metrics for ensembling on Nimbus ’s manifold versus an ensemble of jointly trained models. a. ConvNeXt ( N=7 ), b. ViT-B/32 ( N=8 ), and c. nanoGPT ( N=7 ) per-task metrics such as top-3 accuracy (higher is better), NLL (lower is better), and ECE (lower is better) under logit ensembling for Nimbus (purple) versus a baseline ensemble of jointly trained models (orange). Nimbus achieves lower NLL and comparable or higher top-3 accuracy than the baseline on every task in all settings and is well-calibrated under logit ensembling.
Figure 5: Input corruption for vision and language experiments. a. Sample image tasks for ViT-B/32 experiments. Gaussian noise of magnitude ε∈{0.0,0.05,0.1,0.2,0.3,0.5,0.75,1.0} relative to each image’s ℓ2 -norm is added. b. Sample text tasks for nanoGPT experiments. Input tokens are independently replaced with a uniform random token from the BPE vocabulary with probability p∈{0.0,0.05,0.1,0.25,0.5,0.75,1.0} . Corrupted tokens are highlighted in red.
Figure 6: Nimbus is more robust to input perturbations than baselines. a. ConvNeXt ( N=7 ), b. ViT-B/32 ( N=8 ), and c. nanoGPT ( N=7 ) robustness to input perturbations under logit ensembling for metrics such as top-3 accuracy (higher is better), NLL (lower is better), and ECE (lower is better). We compare between Nimbus (purple) versus a baseline ensemble of ∣D∣ jointly trained models (orange) and ∣D∣+N jointly trained models (green), and versus a single jointly trained model with 4× the effective compute (gold) as Nimbus (only computationally feasible to run for ConvNeXt). Nimbus finds a more functionally flat manifold than baselines.
Figure 7: Nimbus is more robust to weight perturbations than baselines. a. ConvNeXt ( N=7 ), b. ViT-B/32 ( N=8 ), and c. nanoGPT ( N=7 ) robustness to weight perturbations under logit ensembling for metrics such as top-3 accuracy (higher is better), NLL (lower is better), and ECE (lower is better). Weight perturbations are additive Gaussian noise ε relative to the norm of the model’s own weights. We compare between Nimbus (purple) versus a baseline ensemble of ∣D∣ jointly trained models (orange) and ∣D∣+N jointly trained models (green), and versus a single jointly trained model with 4× the effective compute (gold) as Nimbus (only computationally feasible to run for ConvNeXt). Nimbus finds a more weight-flat manifold than baselines.
Mode connectivity studies low-loss paths between separately trained neural-network solutions and what those paths reveal about optimization and model behavior.
The escalating parameter counts in modern deep learning models pose a fundamental challenge to efficient training and resolution of overfitting. We address this by introducing the Mapping Networks which replace the high dimensional weight space by a compact, trainable latent vector based on the hypothesis that the trained parameters of large networks reside on smooth, low-dimensional manifolds. Henceforth, the Mapping Theorem enforced by a dedicated Mapping Loss, shows the existence of a mapping from this latent space to the target weight space both theoretically and in practice. Mapping Networks significantly reduce overfitting and achieve comparable to better performance than target network across complex vision and sequence tasks, including Image Classification, Deepfake Detection etc, with 99.5%, i.e., around 500× reduction in trainable parameters.
Lord Sen, Shyamapada Mukherjee
National Institute of Technology Rourkela, Odisha, India
A central question in modern machine learning is how much a trained model can be compressed without changing its behavior, to reduce the memory, compute and energy required to deploy it. To study this, we quantify functional degeneracy through the behavioral recovery rank, the number of leading behavioral-Hessian eigendirections required to recover a model's performance to a given tolerance. Using it as a geometric benchmark for compression, we find that the rank flattens once the task is saturated, while the number of parameters retained by one-shot pruning keeps growing. This gap suggests that functional degeneracy is distributed across parameter directions and not exposed by individual weights or neurons.
Maria Matveev, Pascal Esser, Ayush Bharadwaj +2
Department of Mathematics, LMU Munich · Munich Center for Machine Learning (MCML) · Independent +3
Neural networks can learn multiple tasks, but how learning organizes shared computation into specialized and reusable components remains poorly understood. In this work, we show that sparsity inducing regularization promotes functional modularity in multitask networks without predefined module boundaries. Using functional profiling in multilayer perceptrons and a lightweight transformer, we identified compact, task-selective subnetworks, termed functional tokens. Across rule-based task families, selectively retaining these tokens preserves their associated functions while reducing performance on other tasks. Such specialization develops preferentially in deeper layers during training, while earlier layers retain shared computation. Regularization strength and form shape module compactness and specialization, while task weighting alters functional allocation. Moreover, extracted functional tokens can be recombined through alternative pathways to reconstruct a learned composite computation without retraining, preserving their connectivity and learned weights. Our results suggest that sparsity-constrained optimization shapes not only parameter use but also the organization and reuse of learned computation.
Bowen Shi, Qi Ouyang, Long Qian
Institute for Advanced Study in Physics, Zhejiang University, Hangzhou 310058, China · Center for Quantitative Biology, Academy for Advanced Interdisciplinary Studies, Peking University, Beijing 100871, China · ZJU–Hangzhou Global Scientific and Technological Innovation Center, Hangzhou 311200, China +1