← Latest papers
🤖 machine learning

Generalizing the Geometry of Model Merging Through Frechet Averages

This paper proposes a general framework for model merging based on Fréchet averaging over appropriate manifolds to ensure symmetry invariance, demonstrating its ability to encompass existing methods like Fisher merging and providing a practical algorithm for merging low-rank adapters (LoRA) that addresses the limitations of current approaches.

Original authors: Marvin F. da Silva, Mohammed Adnan, Felix Dangel, Sageev Oore

Published 2026-05-01
📖 5 min read🧠 Deep dive

Original authors: Marvin F. da Silva, Mohammed Adnan, Felix Dangel, Sageev Oore

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you have a team of expert chefs. Each chef has mastered a specific dish: one makes the perfect lasagna, another the ideal sushi, and a third the finest soufflé. Now, you want to create a "Super Chef" who can cook all three dishes perfectly, but you don't have time to train a new chef from scratch. You just want to combine the existing chefs' knowledge.

In the world of AI, this is called Model Merging. You take the "weights" (the internal settings) of different AI models and try to blend them into one.

The Problem: The "Wrong Map"

The paper argues that the old way of doing this is like trying to mix these chefs' recipes by simply averaging their numbers on a piece of paper. This works fine if everyone is writing in the same language and using the same units.

But AI models have a hidden quirk: Symmetry.
Think of it like this: Chef A might write "2 cups of flour," while Chef B writes "1 cup of flour + 1 cup of flour." They mean the exact same thing, but the numbers look different. Or, Chef C might have swapped the order of their ingredients in the notebook, but the taste of the dish is identical.

In AI, there are many ways to write down the exact same "recipe" (model) using different numbers. If you just take the average of the numbers (Naive Averaging), you might end up with a recipe that says "0 cups of flour" because the positive and negative numbers canceled each other out. You've created a broken model that can't cook anything.

The authors call this stepping off the orbit. Imagine the "true" recipe exists on a circular track (an orbit). If you just draw a straight line between two points on the track, you cut across the middle of the circle and end up in the mud (a broken model), rather than staying on the track where the good recipes live.

The Solution: The "Smart Compass" (GeoMerge)

The paper proposes a new method called GeoMerge. Instead of just averaging numbers, they treat the space of AI models like a curved landscape (a Riemannian manifold).

  1. The Map: They realize that because of the symmetry (the different ways to write the same recipe), the "true" map isn't a flat sheet of paper. It's a folded, curved surface where different points actually represent the same thing.
  2. The Compass: They use a mathematical tool called a Fréchet Average. Think of this not as a simple average, but as finding the "center of gravity" on a curved surface.
  3. Alignment: Before they mix the models, they first "align" them. It's like making sure Chef A and Chef B are both using the same measuring cups and writing in the same order. They find the specific version of each chef's recipe that is closest to the others, ignoring the cosmetic differences in how the numbers are written.
  4. The Path: Instead of cutting straight through the mud, they walk along the curved path (a geodesic) that stays on the track of "good recipes."

Why This Matters for "LoRA" (The Specialized Chefs)

The paper focuses heavily on a popular technique called LoRA (Low-Rank Adaptation). Imagine these are not full chefs, but specialized sous-chefs who only tweak a few specific ingredients to make a dish better.

The authors found that when you try to merge these specialized tweaks using old methods, the "symmetry" problem is even worse. The sous-chefs' notes are so flexible that they can be written in thousands of different ways that all mean the same thing.

  • Old Method (KnOTS): Tries to force the notes into alignment using a rigid, step-by-step math trick (SVD). It works okay, but it's like trying to force square pegs into round holes.
  • GeoMerge: Recognizes that the notes naturally live on a curved surface. It uses the "Smart Compass" to find the true center of the group without forcing them into a rigid shape.

The Results

The researchers tested this on a large AI model (Llama 3) that had been specialized for different types of language puzzles (Natural Language Inference).

  • The Outcome: GeoMerge created a "Super Chef" that performed better than the previous best method (KnOTS).
  • The Efficiency: Even better, GeoMerge did this while keeping the "size" of the recipe small. The old method ended up with a massive, bloated recipe (high rank), while GeoMerge kept it lean and efficient, proving it understood the geometry of the problem better.

In a Nutshell

The paper says: Don't just average the numbers. AI models are like recipes that can be written in many different languages. If you want to merge them, you first need to translate them into a common language (alignment) and then find the center of the group using a map that respects the shape of the world (geometry), rather than a flat ruler. This prevents the "Super Chef" from becoming a broken mess.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →