Geometric Merging of Neural Networks
- Merging several fine-tuned neural networks into a single model is attractive whenever retraining is expensive, the original training data is unavailable, or a collection of specialised checkpoints already exists. The approaches proposed for this task are diverse. Among them, Fisher merging draws on the geometry of model space by weighting each parameter with the diagonal Fisher information of the respective checkpoint — yet it evaluates this geometry only at the checkpoints themselves. This thesis formulates merging as the computation of a Fréchet mean on the neuromanifold and approximates it with the time-discrete Riemannian calculus of Heeren, Rumpf, Wardetzky and Wirth, together with the polygonal-spider construction of Heeren, Zhang, Rumpf and Smith, which is transferred here from shape space to the space of neural network parameters. The quadratic Fisher form is chosen as the discretisation energy; it agrees with the Kullback–Leibler divergence to second order and is shown to be admissible up to a fixed positive constant. The resulting discrete Euler–Lagrange equations decouple coordinate-wise into tridiagonal systems, which are solved by the Thomas algorithm; the metric between the checkpoints is obtained via a softmax-kernel interpolation. The Fisher merge arises exactly as the single-segment case, so that comparing the two methods isolates precisely the contribution of path resolution. The construction is evaluated on a Mandelbrot escape-time regression task, on the medical image classification benchmark DermaMNIST, and on the GLUE tasks RTE, MRPC and SST-2 with BERT-base. When the source models are trained under controlled conditions, the multi-segment construction significantly improves on the Fisher merge: by 25% in test MSE on the toy task, and with large effect sizes in AUC and accuracy on DermaMNIST. At foundation-model scale, the ranking is task-dependent. The analysis traces this back to the interpolated metric becoming only weakly position-dependent further from the anchor points, whereas the Fisher merge is the exact minimiser at the checkpoints, where the Fisher information is estimated directly.
| Author: | Mattis Berghoff |
|---|---|
| Document Type: | Master's Thesis |
| Tag: | Computational Differential Geometry; Deep Learning; Information Geometry |
| MSC-Classification: | 53-XX DIFFERENTIAL GEOMETRY (For differential topology, see 57Rxx. For foundational questions of differentiable manifolds, see 58Axx) |
| 68-XX COMPUTER SCIENCE (For papers involving machine computations and programs in a specific mathematical area, see Section -04 in that area) | |
| Granting Institution: | Technische Universität Berlin |
| Advisor: | Sebastian Pokutta, Christoph von Tycowicz |
| Year of first publication: | 2026 |
| Page Number: | 142 |

