                                 CAT Merging:
        A Training-Free Approach for Resolving Conflicts in Model Merging


                               Wenju Sun 1 Qingyong Li 1 Yangli-ao Geng 1 Boyang Li 2


                         Abstract                                                                                                                            Trimmed due to
                                                                                                                                                              high conflict
                                                                                          Task vector
     Multi-task model merging offers a promising                                           for task 1                                      Task vector
                                                                                                                                            for task 1
     paradigm for integrating multiple expert models                        Pre-trained                                         Pre-trained
                                                                              model                                               model
     into a unified model without additional training.
                                                                         Task vector                      Merged vector      Task vector
     Existing state-of-the-art techniques, such as Task                   for task 2                    based on magnitude    for task 2

     Arithmetic and its variants, merge models by ac-                             Trimmed due to
                                                                                                                                                           Merged vector
                                                                                                                                                         based on magnitude
     cumulating task vectors—the parameter differ-                                low magnitude

     ences between pretrained and finetuned models.                            Magnitude based Methods                                 CAT Merging (ours)
     However, task vector accumulation is often hin-
     dered by knowledge conflicts, leading to perfor-
     mance degradation. To address this challenge,                     Figure 1. Illustration of merging two conflicting task vectors.
     we propose Conflict-Aware Task Merging (CAT                       While masking low-magnitude components (the horizontal com-
     Merging), a novel training-free framework that                    ponent of Task 2) mitigates some interference, high-magnitude
     selectively trims conflict-prone components from                  dimensions (the vertical component of Task 1) can still induce
     the task vectors. CAT Merging introduces sev-                     significant conflicts. In contrast, the proposed CAT Merging proac-
     eral parameter-specific strategies, including pro-                tively identifies and trims high-conflict components, stabilizing
     jection for linear weights and masking for scal-                  model merging.
     ing and shifting parameters in normalization lay-
     ers. Extensive experiments on vision, language,
                                                                       expert models into a single unified model without additional
     and vision-language tasks demonstrate that CAT
                                                                       training (Matena & Raffel, 2022).
     Merging effectively suppresses knowledge con-
     flicts, achieving average accuracy improvements                   A notable advancement in model merging is Task Arithmetic
     of up to 2.5% (ViT-B/32) and 2.0% (ViT-L/14)                      (Ilharco et al., 2023b), which introduces the concept of task
     over state-of-the-art methods.                                    vectors—defined as the difference vector between the pre-
                                                                       trained and finetuned models in the parameter space. Task
                                                                       Arithmetic demonstrates that task-specific knowledge can
1. Introduction                                                        be effectively integrated into the pretrained model through
Fine-tuning pretrained foundation models has become a                  simple arithmetic operations, such as model merging by
standard paradigm for addressing downstream applications               adding task vectors to the pretrained parameters. Despite
(Brown et al., 2020). However, as the number of applica-               its effectiveness, the technique is vulnerable to performance
tions grows, managing and deploying numerous finetuned                 degradation caused by knowledge conflict (Sun et al., 2025;
models introduces significant costs and operational com-               Ortiz-Jimenez et al., 2023), or the imbalance and contradic-
plexity. To address this issue, multi-task model merging has           tion among the accumulated task vectors.
emerged as a promising solution by consolidating multiple              To address knowledge conflict, prior research has explored
    1                                                                  enhancing Task Arithmetic by trimming unimportant com-
      Key Laboratory of Big Data & Artificial Intelligence in
Transportation (Ministry of Education), School of Computer Sci-        ponents within task vectors. One typical importance metric
ence and Technology, Beijing Jiaotong University, Beijing, China       is the parameter magnitude. For instance, Ties-Merging
2
  College of Computing and Data Science, Nanyang Technolog-            (Yadav et al., 2023) trims small-magnitude elements in task
ical University, Singapore. Correspondence to: Yangli-ao Geng          vectors. PCBMerging (Du et al., 2024) refines this impor-
<gengyla@bjtu.edu.cn>, Qingyong Li <liqy@bjtu.edu.cn>.                 tance measure by considering inter-task correlations. Simi-
Proceedings of the 42 nd International Conference on Machine           larly, Twin-Merging (Lu et al., 2024) applies singular value
Learning, Vancouver, Canada. PMLR 267, 2025. Copyright 2025            decomposition to task vectors; leveraging singular values as
by the author(s).                                                      the importance metric, it retains components corresponding

                                                                   1
                      CAT Merging: A Training-Free Approach for Resolving Conflicts in Model Merging

to large singular values.                                              2022), resolving gradient direction conflicts (Chen et al.,
                                                                       2020; Liu et al., 2021; Javaloy & Valera, 2022; Navon et al.,
Despite the significant progress made by magnitude-based
                                                                       2022; Guo et al., 2022), or preventing over-prioritization of
methods, they often overlook the risk of merging high-
                                                                       certain tasks (Chen et al., 2018; He et al., 2022; Yang et al.,
magnitude components that may overwrite task-specific
                                                                       2023).
knowledge during integration. As illustrated in Figure 1,
methods like Ties-Merging prioritize dimensions with larger
magnitudes (e.g., the vertical component of the Task 1 vec-            2.2. Multi-Task Learning through Model Merging
tor), which can unintentionally overwrite critical informa-            Model merging has emerged as a promising approach for
tion from Task 2. This imbalance skews the merged model                integrating knowledge across different models without re-
towards Task 1, degrading performance on Task 2 and un-                training. Early techniques like Stochastic Weight Averag-
dermining the overall multi-task capability. In contrast, the          ing (SWA) (Izmailov et al., 2018) averages model weights
low-magnitude horizontal component of Task 2 carries valu-             averaging during the final stages of training to enhance
able information while exerting minimal negative impact on             generalization. This concept was further advanced by ap-
Task 1. Trimming these components is therefore counter-                proaches like SWAD (Cha et al., 2021) and Ensemble of
productive. This example highlights the dual objectives of             Averages (EoA) (Arpit et al., 2022). Additionally, Ilharco
effective model merging: (1) suppressing conflicts where               et al. (2023a) empirically demonstrate that parameter av-
dominant knowledge from one task undermines the perfor-                eraging can effectively combine knowledge from models
mance of others, and (2) preserving the unique and essential           trained on diverse tasks. Based on this, Fisher-Merging
knowledge required by each task.                                       (Matena & Raffel, 2022) applies the Fisher information ma-
Motivated by the dual objectives outlined above, we propose            trix (Fisher, 1925) to weigh the averaging process. Similarly,
Conflict-Aware Task Merging (CAT Merging), a feature-                  RegMean (Jin et al., 2023) formulates model merging as the
centric framework that addresses knowledge conflicts by                minimization of the distances between the merged model
trimming conflict-prone components from task vectors.                  and individual finetuned models in the parameter space.
Specifically, we focus on feature-level conflicts by analyzing         The pioneering work of Task Arithmetic (Ilharco et al.,
task vector components layer by layer. By adhering to the              2023b) introduces the concept of ”task vectors”—parameter
dual objectives above, CAT Merging involves tailored opera-            offsets of finetuned models from a pretrained model as the
tions for different types of parameters: feature projection for        origin. By scaling and combining these vectors, Task Arith-
linear weights, and masking for normalization scalers and              metic effectively balances task-general and task-specific
shifts. These strategies ensure that CAT Merging effectively           knowledge and achieves notable enhancement in model
mitigates knowledge conflicts in a training-free manner, rely-         merging. Building on this idea, Ties-Merging (Yadav et al.,
ing solely on a lightweight forward pass with few unlabeled            2023) and PCBMerging (Du et al., 2024) enhance the pro-
exemplars. We evaluate CAT Merging on diverse visual,                  cess by removing components in task vectors with negligible
language, and visual-language datasets, demonstrating its              magnitudes. PEFT (Zhang et al., 2023a) and MoLE (Wu
superiority over state-of-the-art methods while maintaining            et al., 2024) integrate Task Arithmetic with LoRA mod-
robustness with limited exemplars.                                     ules (Hu et al., 2022) to enhance flexibility. Additionally,
                                                                       STA (Zhou et al., 2025) randomly shuffle network layers to
2. Related Work                                                        eliminate knowledge conflict.

2.1. Traditional Multi-Task Learning                                   Some advanced approaches incorporate test-time train-
                                                                       ing techniques to further improve merging performance.
Multi-task learning (MTL) seeks to enhance performance by              AdaMerging (Yang et al., 2024b) trains layer-specific merg-
transferring knowledge from related tasks (Zhang & Yang,               ing coefficients. Additionally, representation surgery (Yang
2022). In MTL, the major challenge is referred to as nega-             et al., 2024a) and MoE router (Tang et al., 2024) train an
tive transfer (Liu et al., 2017; Zhang et al., 2023b), where           extra adapter to align representations. Since test-time adap-
the conflict knowledge among tasks results in degraded per-            tation requires additional training and samples, their appli-
formance compared to training them independently. To                   cation may be limited. Therefore, this paper focuses on
address this, researchers have explored strategies such as             training-free model merging.
sparsification (Ding et al., 2021; Sun et al., 2020; Liu et al.,
2019a), modularization (Tang et al., 2020; Ma et al., 2018),
                                                                       3. Preliminary
and soft parameter sharing (Gao et al., 2020; Hazimeh et al.,
2021). Others focus on the optimization process, such as               Notations. Let W0 = {W0l }L    l=1 denote the parameters
dynamically weighting task-specific loss (Sener & Koltun,              of a pretrained network with L layers, where W0l repre-
2018; Liu et al., 2019a; 2022; Hu et al., 2023; Chen et al.,           sents the parameters of layer l. The network is finetuned


                                                                   2
                       CAT Merging: A Training-Free Approach for Resolving Conflicts in Model Merging

independently on K tasks using their respective datasets                where the input features are computed using only the unper-
D1 , . . . , DK , yielding finetuned parameters W1 , . . . , WK .       turbed parameters {Wk1 , . . . , Wkl−1 }. This allows the total
For a given task k, the task vector Tk = {Tkl }Ll=1 is defined
                                                                                                    l
                                                                        feature shift at layer l, ∆fk|i = fkl (Wk + Ti ) − fkl (Wk ), to
as the difference between the finetuned parameters Wk and               be controlled under a mild Lipschitz assumption:
the pretrained parameters W0 :                                          Assumption 4.1 (Lipschitz Continuity of Network Layers).
            Tk = Wk − W0 = {Wkl − W0l }L                                On the line segment between Wk and Wk + Ti , the function
                                       l=1 .                 (1)
                                                                        of layer l, denoted as fkl , is γl -Lipschitz continuous with
                                                                        respect to its input (i.e., the output of layer l − 1).
The dimensions of W0l and Tkl vary depending on the param-
eter type in layer l. Specifically, if layer l is a linear layer,       Lemma 4.2. By Assumption 4.1, we have:
then W0l , Tkl ∈ Rdl ×dl+1 , where dl and dl+1 are the input
and output dimensions of layer l, respectively. For other
                                                                                       l
                                                                                    ∥∆fk|i           l−1
                                                                                           ∥ ≤ γl ∥∆fk|i ∥ + ∥∆fˆk|i
                                                                                                                 l
                                                                                                                     ∥,             (6)
parameters, such as element-wise scale or shift parameters
(e.g., in layer normalization), W0l , Tkl ∈ Rdl .                       where ∆fˆk|i
                                                                                 l
                                                                                     = fˆkl (Wk + Ti ) − fkl (Wk ).

Task Arithmetic. Our objective is to merge K finetuned                  Intuitively, Lemma (4.2) decomposes the feature shift at
models {Wk }Kk=1 into a single multi-task model Wmtl that
                                                                                                                        l−1
                                                                        layer l into (i) the propagated feature shift ∆fk|i from the
performs well on all tasks. Task Arithmetic (Ilharco et al.,            previous layer and (ii) the layer-wise parameter perturbation
2023b) achieves this by simply adding task vectors to W0 :              ∆fˆk|i
                                                                            l
                                                                               caused by Til . We refer the reader to Section A.1 for
                                      K                                 the detailed proof.
                                      X
                   Wmtl = W0 + α            Tk ,             (2)        We further consider how perturbations in the features ex-
                                      k=1                               tracted from the network affect the task-specific loss and
where α > 0 is a manual scaling factor (we let α = 1 for                impose a continuity condition on the loss function:
notational simplicity; our method allows for different α val-           Assumption 4.3 (Lipschitz Continuity of Loss Function).
ues). Despite its simplicity, this approach often suffers from          On the line segment between Wk and Wk + Ti , the loss
knowledge conflicts when task vectors interfere, motivating             function L is β-Lipschitz continuous with respect to the
our more refined trimming strategy.                                     final output of the network.

                                                                        Combining the above, we have
4. Knowledge Conflict
                                                                        Theorem 4.4 (An Upper Bound on Knowledge Conflict).
Knowledge conflict (Sun et al., 2025) arises in model merg-             Suppose that Assumptions 4.1 and 4.3 hold for any task k
ing when task vectors are misaligned due to divergent mag-              and task vector Ti , the knowledge conflict follows
nitudes or directions. Direct aggregation, as employed in
Task Arithmetic, often leads to performance degradation                                              L
                                                                                                 L  Y
                                                                                                 X             
across tasks. We formally define knowledge conflict in Task                       |∆Lk|i | ≤ β               γm ∥∆fˆk|i
                                                                                                                    l
                                                                                                                        ∥.          (7)
Arithmetic as the increase in task-specific loss incurred by                                     l=1 m=l+1
incorporating other task vectors. On a given task k, associ-
ated with the loss function Lk (.), the conflict introduced by          The proof is provided in Section A.2. Theorem 4.4 suggests
another task vector Ti (i ̸= k) is quantified as:                       that to reduce the upper bound on knowledge conflict, we
                                                                        can directly minimize the layer-wise perturbations ∥∆fˆk|i
                                                                                                                               l
                                                                                                                                   ∥
            ∆Lk|i = Lk (Wk + Ti ) − Lk (Wk ) .               (3)        for each layer. In the next section, we develop a practical
                                                                        merging algorithm to do so.
As mentioned, a task vector Ti can be separated into network
layers Ti = {Ti1 , . . . , TiL }, where the superscript denotes
the layer index. The effect of a perturbation Ti propagates
                                                                        5. Methodology
through the layers. Without loss of generality, we suppose              As introduced in Section 4, our approach adopts a layer-wise
all layers are sequentially stacked, i.e., the input to layer l         strategy to analyze and mitigate knowledge conflict locally
is the output of layer l − 1, where the l-th layer feature on           at each layer. Several existing methods attempt to reduce
task k, denoted as fkl (.), can be written as:                          conflict by preserving components deemed important to
                                                                        each task. For example, Fisher Merging (Matena & Raffel,
      fkl (Wk + Ti ) = fkl (fkl−1 (Wk + Ti ); Wkl + Til ).   (4)
                                                                        2022) utilizes the Fisher Information Matrix to retain task-
To isolate the local effect of Til , we define:                         important weights, while Ties Merging (Yadav et al., 2023)
                                                                        and PCB Merging (Du et al., 2024) prune low-magnitude
         fˆkl (Wk + Ti ) = fkl (fkl−1 (Wk ); Wkl + Til ),    (5)        parameters.

                                                                    3
                      CAT Merging: A Training-Free Approach for Resolving Conflicts in Model Merging

Although suppressing unimportant parameters can reduce                   5.1. Linear Weight Trimming
some conflicts, these approaches overlook a critical issue:
                                                                         Linear layers transform features via matrix multiplica-
high-magnitude parameters—often considered important—
                                                                         tion. Given Xk ∈ Rn×dl extracted by former layers
can themselves be major sources of knowledge conflict.
                                                                         {Wk1 , . . . , Wkl−1 }, the weight matrix W ∈ Rdl ×dl+1 pro-
These components may overpower others during merging,
                                                                         duce the output as follows:
distorting or suppressing the feature representations vital
to different tasks. As a result, even when low-magnitude
                                                                                                f (Xk ; W ) = Xk W.                    (9)
parameters are pruned, significant knowledge conflict still
exists, degrading multi-task performance.                                To mitigate knowledge conflicts at this layer, we aim to
In contrast to existing trimming techniques, we propose a                remove interfering components from other task vectors
method that explicitly balances two objectives: (1) mini-                Ti , i ̸= k. We introduce a removal basis Bk ∈ Rdl+1 ×c ,
mizing interference between tasks and (2) preserving the                 representing a c-dimensional core sub-parameter space for
knowledge encoded in task vectors. For each task k, we                   task k. For any i ̸= k, we define a projection operator
define the task-specific transformation Φk that trims other              Φk (Ti ) = Ti − Ti Bk Bk⊤ which discards components of Ti
task vectors in the same layer, i.e., Ti (i ̸= k). The objective         aligned with Bk , preserving task-specific knowledge while
for Φk (.) is to minimize the layer-wise knowledge conflict              minimizing interference with task k.
    l
∆fk,i while maintaining the representational integrity of Ti .           Using the layer-wise loss from Eq. (8), we formulate the
Formally, considering all task vectors yields the following              optimization objective for Bk as:
objective for Φk (.):
             X                                     2
       min          fˆk Wk + Φk (Ti ) − fk (Wk )                          X                                            2
        Φk
             i̸=k |               {z                 }                           Xk W0 +Tk +Ti −Ti Bk Bk⊤ − Xk (W0 +Tk )
                                                                                                                                   F
                    Inter-task Knowledge Conflict ∆fˆk|i
                                                     l
                                                                          i̸=k
                                                               (8)                   X                                                 2
                + λ fˆi (W0 + Φk (Ti )) − fi (Wi ) ,
                                                           2
                                                                              +λ            Xi (W0 +Ti −Ti Bk Bk⊤ ) − Xi (W0 +Ti ) F
                                                                                     i̸=k
                  |              {z                }                          X                                                
                          Intra-task Knowledge Deviation                                                    2                 2
                                                                          =             Xk Ti −Xk Ti Bk Bk⊤ F +λ Xi Ti Bk Bk⊤ F .
where λ controls the trade-off between reducing conflict and                  i̸=k
preserving knowledge.                                                                                                             (10)
                                                                                                            2                      2
Based on the computational rules of different parameter                  Applying the identity ∥Xk Ti ∥F =            Xk Ti Bk Bk⊤ F       +
                                                                                              2
types, we design tailored trimming operations. Specifically,              Xk Ti −Xk Ti Bk Bk⊤ F (see Appendix A.3 for the proof),
for modern transformer-based networks, the parameters can                we recast the objective as a maximization problem:
be broadly classified into three categories:

   • Weight parameters in linear layers, which involve ma-                       X                      2                 2
                                                                                                                             
                                                                           max              Xk Ti Bk Bk⊤ F −λ Xi Ti Bk Bk⊤ F . (11)
     trix multiplication operations;                                        Bk
                                                                                 i̸=k

   • Scale parameters in normalization layers, which scale
     normalized features through element-wise Hadamard                   The optimal removal basis P  Bk is constructed from the top-c
     products;                                                           eigenvectors of the matrix: i̸=k Ti⊤ (Xk⊤ Xk −λXi⊤ Xi )Ti ,
                                                                         where the full derivation is provided in Appendix A.4. Here,
   • Shift parameters, which modify features through
                                                                         c is a manually defined dimensionality hyperparameter. A
     element-wise addition.
                                                                         higher value of c corresponds to the removal of more in-
                                                                         formation. In low-sample regimes, we recommend setting
Most parameters in modern architectures fall into these                  c = 2 or 3 to avoid introducing noise.
categories. Notably, convolutional weights are treated analo-
gously to linear weights, since convolution can be expressed
                                                                         5.2. Scaling Parameter Trimming
as a linear operation (Sun et al., 2023). Furthermore, com-
plex modules such as attention blocks can be decomposed                  Normalization layers are crucial for stabilizing the training
into multiple linear transformations—e.g., for query, key,               of modern neural networks. Although normalization itself
and value projections—allowing the trimming strategy to be               is a parameter-free operation, widely used layers such as
applied independently to each component. In the following                batch normalization and layer normalization typically in-
section, we provide detailed layer-wise implementations of               clude an affine transformation, which consists of scale and
Φk (.) tailored to each parameter type.                                  shift parameters. In this section, we focus on merging the

                                                                     4
                        CAT Merging: A Training-Free Approach for Resolving Conflicts in Model Merging

scale parameters across tasks. At a normalization layer l,       Algorithm 1 The model merging process
the scaler W ∈ Rdl performs element-wise multiplication          Input: Pretrained model W0 ; Task vectors {T1 , . . . , TK };
on the normalized feature xk ∈ Rdl :                                      Unlabeled exemplar-set {M1 , . . . , MK }
                                                                 Output: Merged model Wmtl
                                                               1 // Collecting the input features
                     f (xk ; W ) = xk ◦ W,                (12)     for k = 1 to K do
                                                               2      Initialize task inputs: Xk1 = Mk
                                                                       for l = 1 to L do
where ◦ denotes element-wise (Hadamard) multiplication.
                                                               3           Xkl+1 = f (Xkl ; W0l + Tkl )
To reduce interference at this layer, we introduce a binary
removal mask mk ∈ {0, 1}dl applied to task vectors Ti (i ̸= 4 // Compute basis or mask
k), such that the refined task vector Φk (Ti ) = Ti − Ti ◦ mk      for k = 1 to K; l =P    1 to L do
                                                                        l
has minimal influence on task k. Adapting the layer-wise       5      Φ   =
                                                                        k    arg min Φk l
                                                                                             i̸=k  
loss from Eq. (8), we define the objective:                                l    l      l
                                                                       ∥fk W0 + Tk + Φlk (Til ) − fkl (W0l + Tkl )∥2
                                                                                + λ∥fil (W0l + Φlk (Til )) − fil (W0l + Til )∥2 , // Eq. (8)
XX                                                               2   6 // Edit all task vectors
            xk ◦ W0 +Tk +Ti −Ti ◦mk −xk ◦(W0 +Tk )
                                                                           for k = 1 to K; l = 1 to L; i = 1 to K, i ̸= k do
 i̸=k xk
            X                                                          7      Til = Φlk (Til )
                                                          2
     +λ          ∥xi ◦(W0 +Ti −Ti ◦mk )−xi ◦(W0 +Ti )∥                 8   // Merging
            xi                                                                            P
                                                      !                      Wmtl = W0 + α k Tk
     X X                             2
                                        X            2                       return Wmtl
 =               ∥xk ◦Ti −xk ◦Ti ◦mk∥ +λ ∥xi ◦Ti ◦mk∥ .
     i̸=k   xk                                xi
                                               (13)
                                             2
Using the identity ∥xk ◦ Ti − xk ◦ Ti ◦ mk ∥     +
               2                2                                          XX                                                                        2
∥xk ◦ Ti ◦ mk ∥ = ∥xk ◦ Ti ∥ , we reformulate the                                       ∥xk +(W0 +Tk +Ti −Ti ◦mk )−xk −(W0 +Tk )∥
problem as a maximization objective:                                        i̸=k xk
                                                                                       X                                                         2
                                                                                +λ            ∥xi +(W0 +Ti −Ti ◦mk )−xi −(W0 +Ti )∥
                                                           !                            xi
     X X              2
                          X              2
  max    ∥xk ◦Ti ◦mk ∥ −λ   ∥xi ◦Ti ◦mk ∥                      .
                                                                                                                                         !
  mk
                                                                                X X                         2
                                                                                                                   X                 2
        i̸=k     xk                      xi                                 =                  ∥Ti −Ti ◦ mk ∥ +λ        ∥Ti ◦ mk ∥           .
                                                              (14)              i̸=k      xk                       xi
                                                                                                                                                 (16)
This motivates selecting the top-c dimensions in mk
corresponding     to the largest                                           Similarly, the mask mk can be determined by a maximiza-
P       P                2
                               P components    2
                                                  of the vector:
   i̸=k    xk (x k ◦ Ti )  − λ   xi (x i ◦ Ti )   , with remain-           tion problem:
ing entries set to 0. The selection of c is match the number                                                               !
of basis Bk used in the previous linear weight trimming to                         X X                2
                                                                                                           X             2
                                                                              max           ∥Ti ◦ mk ∥ −λ      ∥Ti ◦ mk ∥ . (17)
reduce noise from limited exemplars. Full mathematical                          mk
                                                                                       i̸=k    xk                  xi
derivations are provided in Appendix A.5.
                                                                           Assuming data is approximately balanced across tasks, the
5.3. Shifting Parameter Trimming
                                                                                   P mk is obtained by selecting the top-c compo-
                                                                           optimal mask
                                                                           nents of i̸=k (Ti )2 and setting the corresponding entries of
Shift parameters W ∈ Rdl adjust features via element-wise
                                                                           mk to 1, with the rest set to 0. Full derivations are provided
addition, the transformation applied to input xk ∈ Rdl is
                                                                           in Appendix A.6.
defined as:
                                                                           We have now finished discussing the trimming strategy for
                                                                           all major parameter types. During the merging process, we
                      f (xk ; W ) = xk + W.                   (15)
                                                                           start with a layer-by-layer forward pass using only a small
                                                                           number of unlabeled samples—typically two or three per
                                                                           task—to collect necessary inputs for parameter trimming.
We also adopt a binary removal mask mk ∈ {0, 1}dl , yield-                 The collected inputs are then processed to compute the
ing a refined vector Φk (Ti ) = Ti − Ti ◦ mk . The corre-                  corresponding basis or masks for editing task vectors based
sponding objective function becomes:                                       on the parameter type. The computed basis or masks are

                                                                       5
                      CAT Merging: A Training-Free Approach for Resolving Conflicts in Model Merging


Table 1. Multi-task performance when merging ViT-B/32 models on eight vision tasks. The best and second-best performances are written
in bold and underlined text. The “#best” column represents the number of datasets where the method performs the best.
Method                    SUN397      Cars    RESISC45       EuroSAT       SVHN        GTSRB   MNIST      DTD      Avg Acc    #best
Pretrained                  62.3      59.7        60.7         45.5         31.4        32.6     48.5      43.8      48.0        -
Individual                  75.3      77.7        96.1         99.7         97.5        98.7     99.7      79.4      90.5        -
Traditional MTL             73.9      74.4        93.9         98.2         95.8        98.9     99.5      77.9      88.9        -
Weight Averaging            65.3      63.4        71.4         71.7         64.2        52.8     87.5      50.1      65.8       0
Fisher Merging              68.6      69.2        70.7         66.4         72.9        51.1     87.9      59.9      68.3       2
RegMean                     65.3      63.5        75.6         78.6         78.1        67.4     93.7      52.0      71.8       0
Task Arithmetic             55.2      54.9        66.7         78.9         80.2        69.7     97.3      50.4      69.1       0
Ties-Merging                59.8      58.6        70.7         79.7         86.2        72.1     98.3      54.2      72.4       0
TATR                        62.7      59.3        72.3         82.3         80.5        72.6     97.0      55.4      72.8       0
Ties-Merging & TATR         66.3      65.9        75.9         79.4         79.9        68.1     96.2      54.8      73.3       0
Consensus Merging           65.7      63.6        76.5         77.2         81.7        70.3     97.0      57.1      73.6       0
PCB Merging                 63.8      62.0        77.1         80.6         87.5        78.5     98.7      58.4      75.8       3
CAT Merging (ours)          68.1      65.4        80.5         89.5         85.5        78.5     98.6      60.7      78.3       4


                       Table 2. Multi-task performance when merging ViT-L/14 models on eight vision tasks.
Method                    SUN397      Cars    RESISC45       EuroSAT       SVHN        GTSRB   MNIST      DTD      Avg Acc    #best
Pretrained                  66.8      77.7        71.0          59.9        58.4        50.5     76.3      55.3      64.5        -
Individual                  82.3      92.4        97.4         100.0        98.1        99.2     99.7      84.1      94.2        -
Traditional MTL             80.8      90.6        96.3          96.3        97.6        99.1     99.6      84.4      93.5        -
Weight Averaging            72.1      81.6        82.6         91.9         78.2        70.7     97.1      62.8      79.6       0
Fisher Merging              69.2      88.6        87.5         93.5         80.6        74.8     93.3      70.0      82.2       1
RegMean                     73.3      81.8        86.1         97.0         88.0        84.2     98.5      60.8      83.7       1
Task Arithmetic             73.9      82.1        86.6         94.1         87.9        86.7     98.9      65.6      84.5       0
Ties-Merging                76.5      85.0        89.3         95.7         90.3        83.3     99.0      68.8      86.0       0
TATR                        74.6      83.7        87.6         93.7         88.6        88.1     99.0      66.8      85.3       0
Ties-Merging & TATR         76.3      85.3        88.8         94.4         90.8        88.7     99.2      68.8      86.5       0
Consensus Merging           75.0      84.3        89.4         95.6         88.3        82.4     98.9      68.0      85.2       0
PCB Merging                 76.2      86.0        89.6         95.9         89.9        92.3     99.2      71.4      87.6       0
CAT Merging (ours)          78.7      88.5        91.1         96.3         91.3        95.7     99.4      75.7      89.6       6


applied to all task vectors, enabling the final merging in             6. Experiments
Eq. (2) with minimal knowledge conflict. The detailed
implementation of this process is described in Algorithm 1.            6.1. Settings

To simplify analysis, we have assumed the scaling factor α             Datasets. We select diverse datasets to evaluate our work,
(cf. Eq. (2))to be 1 in the above analysis, but setting α to an-       including eight vision datasets: SUN397 (Xiao et al., 2016),
other positive value does not affect the resulting conclusion.         Cars (Krause et al., 2013), RESISC45 (Cheng et al., 2017),
For example, in Eqs. (10) & (11), by explicitly including              EuroSAT (Helber et al., 2019), SVHN (Netzer et al., 2011),
α, the optimal P vector Bk corresponds to the eigenvector              GTSRB (Stallkamp et al., 2011), MNIST (LeCun & Cortes,
                             ⊤     ⊤            ⊤                      2010), DTD (Cimpoi et al., 2014), six visual-language
of the matrix:      i̸=k (αTi )(Xk Xk − λXi Xi )(αTi ) =
  2
    P        ⊤    ⊤            ⊤                                       datasets: COCO Caption (Chen et al., 2015), Flickr30k
α      i̸=k Ti (Xk Xk − λXi Xi )Ti . Since scaling a matrix            Caption (Plummer et al., 2015), Textcaps (Sidorov et al.,
by a positive constant α2 does not alter its eigenvectors,             2020), OKVQA (Marino et al., 2019), TextVQA (Singh
our theoretical conclusions remain valid. In practice, α is a          et al., 2019), and ScienceQA (Lu et al., 2022), and eight
critical hyperparameter that must be tuned carefully.                  NLP tasks in the GLUE benchmark (Wang et al., 2019).
                                                                       Baselines. We compare our proposed method with various
                                                                       training-free model merging methods, including the straight-
                                                                       forward Weight Average, Fisher Merging (Matena & Raffel,


                                                                   6
                      CAT Merging: A Training-Free Approach for Resolving Conflicts in Model Merging


                        Table 3. Multi-task performance when merging RoBERTa models on eight NLP tasks.
          Method                CoLA       MNLI      MRPC       QNLI      QQP      RTE     SST2     STS-B     Average    #best
          Task Arithmetic         6.68     66.23      78.46     78.62     72.69    53.43   83.49     27.10     58.34      1
          Ties-Merging            9.46     59.34      74.71     65.93     41.29    47.29   72.13      9.21     47.42      0
          TATR                   10.20     65.44      72.56     75.73     74.58    55.18   78.87     37.46     58.39      0
          PCB Merging            11.40     50.85      77.63     78.22     55.78    60.29   75.57     67.01     59.59      1
          CAT Merging (ours)     33.20     72.33      68.22     82.92     76.05    62.82   89.33     15.57     62.56      6


                     Table 4. Multi-task performance when merging BLIP models on six vision-language tasks.
          Method               COCO Caption        Flickr30k Caption    Textcaps    OKVQA      TextVQA       ScienceQA   #best
                                   CIDEr                CIDEr             CIDEr     Accuracy   Accuracy      Accuracy
          Pretrained                0.07                 0.03              0.05       42.80        21.08       40.50       -
          Task Arithmetic           0.86                 0.50              0.39       17.71         0.49       40.10       1
          Ties-Merging              0.53                 0.27              0.22       27.95         0.57       40.35       0
          TATR                      0.46                 0.31              0.21       28.30        14.74       42.98       0
          PCB Merging               0.71                 0.52              0.30       36.04         1.88       43.01       0
          CAT Merging (ours)        0.91                 0.53              0.36       44.07        19.69       46.36       5



2022), RegMean (Jin et al., 2023), Task Arithmetic (Ilharco             average accuracies of 78.3% on ViT-B/32 and 89.6% on
et al., 2023b), Ties-Merging (Yadav et al., 2023), Task Arith-          ViT-L/14. Notably, substantial improvements are observed
metic in Trust Region (TATR) (Sun et al., 2025), Consensus              on challenging datasets such as EuroSAT (89.5%, ViT-B/32)
Merging (Wang et al., 2024), and PCB Merging (Du et al.,                and GTSRB (95.7%, ViT-L/14). Additional results for ViT-
2024). We also provide the performance of some baseline                 B/16 and comparisons with test-time training methods are
methods, such as the pretrained model, the individual task              provided in the supplementary materials.
model, and the traditional multi-Task learning model.
                                                                        Evaluation on NLP tasks. We evaluate CAT Merging on
Implementation details. Our implementation strictly fol-                eight diverse NLP tasks using RoBERTa, covering both clas-
lows Task Arithmetic (Ilharco et al., 2023b). For the vision            sification and regression (e.g., STS-B). For classification,
tasks, we employ the vision encoder from CLIP (Radford                  we report accuracy, while for regression we report the mean
et al., 2021) as the pretrained backbone, experimenting with            of Pearson and Spearman correlations. As summarized
both ViT-B/32 and ViT-L/14 architectures. Task vectors are              in Table 3, CAT Merging consistently outperforms base-
directly sourced from the repository provided by Ilharco                line methods, achieving the best results on six out of eight
et al. (2023b). After merging the models, we evaluate and               tasks, demonstrating strong generalization and robustness
report the accuracy of each task, along with the overall aver-          in model merging for language tasks.
age accuracy. For the visual-language tasks, we derive task
                                                                        Evaluation on visual-language tasks. Table 4 reports re-
vectors by finetuning the visual question-answering (VQA)
                                                                        sults using the BLIP model on six vision-language tasks
version of BLIP (Li et al., 2022), training each task for 6,000
                                                                        that potentially conflict with each other (Tiong et al., 2024).
steps. The architecture of BLIP includes an image encoder,
                                                                        CAT Merging achieves top performance on five of six bench-
a text encoder, and a text decoder, with all components
                                                                        marks, highlighting its effectiveness in multimodal tasks.
finetuned during training. We use CIDEr as the evaluation
metric for caption tasks and accuracy for VQA tasks. For
the NLP tasks, we use RoBERTa (Liu et al., 2019b) as the                6.3. Ablation Study
backbone. Task vectors are obtained from Lu et al. (2024).              This section performs an ablation study to evaluate the ef-
Following their setting, we reserve 10% of the training set             fectiveness of the parameter-specific trimming techniques
for validation and employ the original validation data as the           in CAT Merging, including the trimming of linear weights,
test set.                                                               normalization scalers, and shift parameters. Table 5 presents
                                                                        the results with ViT-B/32 and ViT-L/14 architectures.
6.2. Comparison Results
                                                                        Excluding the trimming of linear weights leads to a signifi-
Evaluation on vision tasks. Tables 1 and 2 present the                  cant performance drop, with average accuracies of 71.5%
merging results on eight image classification benchmarks.               (ViT-B/32) and 85.6% (ViT-L/14). Similarly, removing the
CAT Merging achieves state-of-the-art performance, with                 trimming of normalization scalers and shifts also causes


                                                                   7
                                                                                       CAT Merging: A Training-Free Approach for Resolving Conflicts in Model Merging

                                                                                                                                                                                                              D   7 D V N  $ U L W K P H W L F                    E   & $ 7  0 H U J L Q J
  Table 5. An ablation study of CAT Merging, where we selectively                                                                                                                                                                                         
  trim three different types of network parameters.                                                                                                                                                                                                                                                          1
                                                       Trimmed parameters                                                  Architecture
                                                                                                                                                                                                                                                          




                                                                                                                                                                                               R
                 Linear                                     Normalization
                                                                                                Shift            ViT-B/32          ViT-L/14                                                                                                                                                                  2
                 weight                                        scaler
                                               ×                           ✓                     ✓                     71.5              85.6
                                                                                                                                                                                                                                                          
                                               ✓                           ×                     ✓                     76.8              89.2                                                                                                                                                          3
                                               ✓                           ✓                     ×                     77.8              88.7                                                                                  C                                                   C
                                               ✓                           ✓                     ✓                     78.3              89.6
                                                                                                                                                                                               Figure 3. Visualization of knowledge conflict on Cars and RE-
                                                                                                                                             
     $ Y J  $ F F     9 L 7  %    




                                                                                                                                                 $ Y J  $ F F     9 L 7  /    
                                                                                                                                                                                               SISC45 (i.e., ∆LCars,RESISC45 + ∆LRESISC45,Cars ) when merging
                                                                                                                                                                                             ViT-L/14 models with different merging weights αC and αR .

                                                                                                  9 L 7  %   
                                                                                                9 L 7  /   
                                                                                                                                                                                           hyperparameters, including weight λ and c, is provided in
                                                                                                                                                                                      Appendix C.4.
                                                                        D   1 X P E H U  R I  H [ H P S O D U V
                                                                                                                                                                                               6.5. Analysis of Knowledge Conflict
 $ Y J  $ F F    




                                                                                                                                                                                             This section investigates the effectiveness of CAT Merg-
                                                                                                                                                                                               ing in mitigating knowledge conflict. Specifically, we
                                                              7 D V N  $ U L W K P H W L F       7 $ 7 5                                                                                     consider the task vectors corresponding to Cars and RE-
                                                            7 L H V  0 H U J L Q J              & $ 7  0 H U J L Q J                                                                       SISC45 and merge them using distinct scaling factors, i.e.,
                                                                                                                                                                    Wmtl = W0 + αC TCars + αR TRESISC45 . Figure 3 visualizes
                                                                                   E                                                                                                        the knowledge conflict during merging under different merg-
                                                                                                                                                                                               ing coefficients. For Task Arithmetic, regions with minimal
                                                                                                                                                                                               knowledge conflict are primarily concentrated where both
  Figure 2. (a) Average accuracy (%) of CAT Merging on eight                                                                                                                                   αC and αR are close to 0. In contrast, CAT Merging effec-
  vision tasks with different numbers of exemplars per task. (b)                                                                                                                               tively reduces knowledge conflict, enabling the use of much
  Average accuracy (%) on eight vision tasks with ViT/L-14 models                                                                                                                              larger α values.
  versus different α (scaling factor in Task Arithmetic, cf. Eq. (2)).
                                                                                                                                                                                               7. Conclusion
   performance degradation. With all three types trimmed, we                                                                                                                                   In this work, we propose CAT Merging, a novel training-free
   achieve the highest average accuracy. These findings high-                                                                                                                                  technique for multi-task model merging. By introducing
   light the importance of mitigating knowledge conflict in all                                                                                                                                parameter-specific strategies, such as projection for linear
   types of parameters.                                                                                                                                                                        weights and masking for normalization and shift parame-
                                                                                                                                                                                               ters, CAT Merging effectively resolves inter-task knowl-
   6.4. Sensitivity Analysis                                                                                                                                                                   edge conflicts while preserving task-specific information.
                                                                                                                                                                                               Experimental results across diverse vision, language, and
  Sensitivity analysis of exemplar number. As shown in
                                                                                                                                                                                               vision-language tasks demonstrate the effectiveness of CAT
  Figure 2 (a), CAT Merging is robust to the number of exem-
                                                                                                                                                                                               Merging. We achieve significant accuracy improvements of
  plars. It achieves strong results even with just one exemplar
                                                                                                                                                                                               up to 2.5% on ViT-B/32 and 2.0% on ViT-L/14 compared
  per task (76.61% for ViT-B/32 and 89.01% for ViT-L/14).
                                                                                                                                                                                               to existing methods. CAT Merging also exhibits strong ro-
  This is likely due to the patch-based design of ViT, which
                                                                                                                                                                                               bustness in the case with only a few exemplars, providing a
  splits one image into several patches, ensuring the diversity
                                                                                                                                                                                               practical solution for real-world multi-task scenarios where
  of each layer input even with limited samples.
                                                                                                                                                                                               retraining is infeasible.
   Sensitivity analysis of α. In Figure 2 (b), with different val-
   ues of α, CAT Merging achieves more stable performance                                                                                                                                      Impact Statement
   than Task Arithmetic. The stability should be attributed to
   suppressing knowledge conflict among task vectors, ana-                                                                                                                                     This paper presents work whose goal is to advance the field
   lyzed further in the next section. A detailed analysis of other                                                                                                                             of Machine Learning. There are many potential societal

                                                                                                                                                                                           8
                     CAT Merging: A Training-Free Approach for Resolving Conflicts in Model Merging

consequences of our work, none which we feel must be                 Chen, Z., Ngiam, J., Huang, Y., Luong, T., Kretzschmar,
specifically highlighted here.                                         H., Chai, Y., and Anguelov, D. Just pick a sign: Opti-
                                                                       mizing deep multitask models with gradient sign dropout.
Acknowledgments                                                        In Advances in Neural Information Processing Systems,
                                                                       volume 33, pp. 2039–2050, 2020.
This work was supported, in part, by the Fundamental
Research Funds for the Central Universities under Grants             Cheng, G., Han, J., and Lu, X. Remote sensing image
2023JBZY037, 2022JBQY007, and 2024YJS047, by the                       scene classification: Benchmark and state of the art. Pro-
Beijing Natural Science Foundation under Grant L231019,                ceedings of the IEEE, 105(10):1865–1883, 2017. doi:
by the National Natural Science Foundation of China un-               10.1109/JPROC.2017.2675998.
der Grants 62276019 and 62306028, by the Shenzhen
Science and Technology Program Project under Grant                   Cimpoi, M., Maji, S., Kokkinos, I., Mohamed, S., and
KJZD20240903102742055, and by the National Research                    Vedaldi, A. Describing textures in the wild. In IEEE
Foundation Fellowship (NRF- NRFF13-2021-0006), Singa-                  Conference on Computer Vision and Pattern Recognition,
pore.                                                                  June 2014.

                                                                     Ding, K., Dong, X., He, Y., Cheng, L., Fu, C., Huan, Z.,
References                                                             Li, H., Yan, T., Zhang, L., Zhang, X., and Mo, L. Mssm:
                                                                       A multiple-level sparse sharing model for efficient multi-
Arpit, D., Wang, H., Zhou, Y., and Xiong, C. Ensemble
                                                                       task learning. In International ACM SIGIR Conference
  of averages: Improving model selection and boosting
                                                                       on Research and Development in Information Retrieval,
  performance in domain generalization. In Advances in
                                                                       pp. 2237–2241, 2021. URL https://doi.org/10.
  Neural Information Processing Systems, volume 35, pp.
                                                                       1145/3404835.3463022.
  8265–8277, 2022.

Brown, T., Mann, B., Ryder, N., Subbiah, M., Kaplan, J. D.,          Du, G., Lee, J., Li, J., Jiang, R., Guo, Y., Yu, S., Liu, H.,
  Dhariwal, P., Neelakantan, A., Shyam, P., Sastry, G.,                Goh, S. K., Tang, H.-K., He, D., and Zhang, M. Parameter
  Askell, A., Agarwal, S., Herbert-Voss, A., Krueger, G.,              competition balancing for model merging. In Advances
  Henighan, T., Child, R., Ramesh, A., Ziegler, D., Wu, J.,            in Neural Information Processing Systems, 2024.
  Winter, C., Hesse, C., Chen, M., Sigler, E., Litwin, M.,
                                                                     Fisher, R. A. Theory of statistical estimation. In Mathemat-
  Gray, S., Chess, B., Clark, J., Berner, C., McCandlish,
                                                                       ical proceedings of the Cambridge philosophical society,
  S., Radford, A., Sutskever, I., and Amodei, D. Language
                                                                       volume 22, pp. 700–725, 1925.
  models are few-shot learners. In Advances in Neural
  Information Processing Systems, volume 33, pp. 1877–               Gao, Y., Bai, H., Jie, Z., Ma, J., Jia, K., and Liu, W. Mtl-
  1901, 2020.                                                          nas: Task-agnostic neural architecture search towards
Cha, J., Chun, S., Lee, K., Cho, H.-C., Park, S., Lee, Y., and         general-purpose multi-task learning. In IEEE Conference
  Park, S. Swad: Domain generalization by seeking flat                 on Computer Vision and Pattern Recognition, June 2020.
  minima. In Advances in Neural Information Processing
                                                                     Guo, X., Li, B., , and Yu, H. Improving the sample ef-
  Systems, volume 34, pp. 22405–22418, 2021.
                                                                       ficiency of prompt tuning with domain adaptation. In
Chen, S., Crammer, K., He, H., Roth, D., and Su,                      Findings of the Conference on Empirical Methods in Nat-
  W. J. Weighted training for cross-task learning. In                  ural Language Processing, December 2022.
  International Conference on Learning Representations,
                                                                     Hazimeh, H., Zhao, Z., Chowdhery, A., Sathiamoorthy, M.,
  2022. URL https://openreview.net/forum?
                                                                       Chen, Y., Mazumder, R., Hong, L., and Chi, E. Dselect-
  id=ltM1RMZntpu.
                                                                       k: Differentiable selection in the mixture of experts with
Chen, X., Fang, H., Lin, T.-Y., Vedantam, R., Gupta, S.,               applications to multi-task learning. In Advances in Neural
  Dollár, P., and Zitnick, C. L. Microsoft coco captions:             Information Processing Systems, volume 34, pp. 29335–
  Data collection and evaluation server. arXiv preprint                29347, 2021.
  arXiv:1504.00325, 2015.
                                                                     He, Y., Feng, X., Cheng, C., Ji, G., Guo, Y., and Caver-
Chen, Z., Badrinarayanan, V., Lee, C.-Y., and Rabinovich,              lee, J. Metabalance: Improving multi-task recommenda-
  A. GradNorm: Gradient normalization for adaptive loss                tions via adapting gradient magnitudes of auxiliary tasks.
  balancing in deep multitask networks. In International               In International ACM Web Conference, pp. 2205–2215,
  Conference on Machine Learning, volume 80, pp. 794–                  2022. doi: 10.1145/3485447.3512093. URL https:
  803, 10–15 Jul 2018.                                                //doi.org/10.1145/3485447.3512093.

                                                                 9
                     CAT Merging: A Training-Free Approach for Resolving Conflicts in Model Merging

Helber, P., Bischke, B., Dengel, A., and Borth, D. Eu-                   International Conference on Machine Learning, volume
  rosat: A novel dataset and deep learning benchmark                     162 of Proceedings of Machine Learning Research, pp.
  for land use and land cover classification. IEEE Jour-                 12888–12900. PMLR, 17–23 Jul 2022. URL https://
  nal of Selected Topics in Applied Earth Observations                   proceedings.mlr.press/v162/li22n.html.
  and Remote Sensing, 12(7):2217–2226, 2019. doi:
 10.1109/JSTARS.2019.2918242.                                          Liu, B., Liu, X., Jin, X., Stone, P., and Liu, Q. Conflict-
                                                                         averse gradient descent for multi-task learning. In Ad-
Hu, E. J., yelong shen, Wallis, P., Allen-Zhu, Z., Li, Y.,               vances in Neural Information Processing Systems, vol-
 Wang, S., Wang, L., and Chen, W. LoRA: Low-rank adap-                   ume 34, pp. 18878–18890, 2021.
  tation of large language models. In International Confer-
  ence on Learning Representations, 2022. URL https:                   Liu, P., Qiu, X., and Huang, X. Adversarial multi-task learn-
 //openreview.net/forum?id=nZeVKeeFYf9.                                  ing for text classification. In Association for Computa-
                                                                         tional Linguistics, pp. 1–10, July 2017. doi: 10.18653/v1/
Hu, Y., Xian, R., Wu, Q., Fan, Q., Yin, L., and Zhao, H.                 P17-1001. URL https://aclanthology.org/
  Revisiting scalarization in multi-task learning: A theo-               P17-1001.
  retical perspective. In Advances in Neural Information
 Processing Systems, volume 36, pp. 48510–48533, 2023.                 Liu, S., Johns, E., and Davison, A. J. End-to-end multi-task
                                                                         learning with attention. In IEEE Conference on Computer
Ilharco, G., Ribeiro, M. T., Wortsman, M., Schmidt, L.,                  Vision and Pattern Recognition, June 2019a.
   Hajishirzi, H., and Farhadi, A. Editing models with task
   arithmetic. In International Conference on Learning                 Liu, S., James, S., Davison, A., and Johns, E. Auto-lambda:
   Representations, 2023a.                                               Disentangling dynamic task relationships. Transactions
                                                                         on Machine Learning Research, 2022. ISSN 2835-
Ilharco, G., Ribeiro, M. T., Wortsman, M., Schmidt, L.,                  8856. URL https://openreview.net/forum?
   Hajishirzi, H., and Farhadi, A. Editing models with task              id=KKeCMim5VN.
   arithmetic. In International Conference on Learning Rep-
   resentations, 2023b. URL https://openreview.                        Liu, Y., Ott, M., Goyal, N., Du, J., Joshi, M., Chen, D.,
   net/forum?id=6t0Kwf8-jrj.                                             Levy, O., Lewis, M., Zettlemoyer, L., and Stoyanov, V.
                                                                         Roberta: A robustly optimized bert pretraining approach.
Izmailov, P., Podoprikhin, D., Garipov, T., Vetrov, D., and              arXiv preprint arXiv:1907.11692, 2019b.
  Wilson, A. G. Averaging weights leads to wider optima
  and better generalization. In Conference on Uncertainty              Lu, P., Mishra, S., Xia, T., Qiu, L., Chang, K.-W., Zhu,
  in Artificial Intelligence, pp. 876–885, 2018.                         S.-C., Tafjord, O., Clark, P., and Kalyan, A. Learn to
                                                                         explain: Multimodal reasoning via thought chains for
Javaloy, A. and Valera, I. Rotograd: Gradient homoge-                    science question answering. In Advances in Neural Infor-
  nization in multitask learning. In International Confer-               mation Processing Systems, 2022.
  ence on Learning Representations, 2022. URL https:
  //openreview.net/forum?id=T8wHz4rnuGL.                               Lu, Z., Fan, C., Wei, W., Qu, X., Chen, D., and Cheng, Y.
                                                                         Twin-merging: Dynamic integration of modular expertise
Jin, X., Ren, X., Preotiuc-Pietro, D., and Cheng, P. Dataless            in model merging. In Advances in Neural Information
   knowledge fusion by merging weights of language mod-                  Processing Systems, 2024.
   els. In International Conference on Learning Represen-
   tations, 2023. URL https://openreview.net/                          Ma, J., Zhao, Z., Yi, X., Chen, J., Hong, L., and Chi,
   forum?id=FCnohuR6AnM.                                                E. H. Modeling task relationships in multi-task learn-
                                                                        ing with multi-gate mixture-of-experts. In Interna-
Krause, J., Stark, M., Deng, J., and Fei-Fei, L. 3d object              tional ACM SIGKDD International Conference on Knowl-
  representations for fine-grained categorization. In IEEE              edge Discovery & Data Mining, pp. 1930–1939, 2018.
  International Conference on Computer Vision Workshops,                doi: 10.1145/3219819.3220007. URL https://doi.
  June 2013.                                                            org/10.1145/3219819.3220007.
LeCun, Y. and Cortes, C. MNIST handwritten digit                       Marino, K., Rastegari, M., Farhadi, A., and Mottaghi, R. Ok-
  database. 2010. URL http://yann.lecun.com/                            vqa: A visual question answering benchmark requiring
  exdb/mnist/.                                                          external knowledge. In IEEE Conference on Computer
                                                                        Vision and Pattern Recognition, 2019.
Li, J., Li, D., Xiong, C., and Hoi, S. BLIP: Bootstrapping
  language-image pre-training for unified vision-language              Matena, M. S. and Raffel, C. A. Merging models with fisher-
  understanding and generation. In Chaudhuri, K., Jegelka,              weighted averaging. In Advances in Neural Information
  S., Song, L., Szepesvari, C., Niu, G., and Sabato, S. (eds.),         Processing Systems, volume 35, pp. 17703–17716, 2022.

                                                                  10
                    CAT Merging: A Training-Free Approach for Resolving Conflicts in Model Merging

Navon, A., Shamsian, A., Achituve, I., Maron,                         memory rramework with knowledge projection for task-
  H., Kawaguchi, K., Chechik, G., and Fetaya,                         incremental learning. In IEEE Conference on Computer
  E.     Multi-task learning as a bargaining game.                    Vision and Pattern Recognition, June 2023.
  In International Conference on Machine Learn-
  ing, volume 162, pp. 16428–16446, 17–23 Jul                       Sun, W., Li, Q., Wang, W., ao Geng, Y., and Li, B. Task
  2022. URL https://proceedings.mlr.press/                            arithmetic in trust region: A training-free model merg-
  v162/navon22a.html.                                                 ing approach to navigate knowledge conflicts. arXiv
                                                                      preprint arXiv:2501.15065, 2025. URL https://
Netzer, Y., Wang, T., Coates, A., Bissacco, A., Wu, B.,               arxiv.org/abs/2501.15065.
  Ng, A. Y., et al. Reading digits in natural images with
  unsupervised feature learning. In NIPS workshop on deep           Sun, X., Panda, R., Feris, R., and Saenko, K. Adashare:
  learning and unsupervised feature learning, volume 2011,            Learning what to share for efficient deep multi-task learn-
  pp. 4, 2011.                                                        ing. In Advances in Neural Information Processing Sys-
                                                                      tems, volume 33, pp. 8728–8740, 2020.
Ortiz-Jimenez, G., Favero, A., and Frossard, P. Task arith-
  metic in the tangent space: Improved editing of pre-              Tang, A., Shen, L., Luo, Y., Yin, N., Zhang, L., and Tao, D.
  trained models. In Advances in Neural Information Pro-              Merging multi-task models via weight-ensembling mix-
  cessing Systems, volume 36, pp. 66727–66754, 2023.                  ture of experts. In International Conference on Machine
                                                                      Learning, 2024. URL https://openreview.net/
Plummer, B. A., Wang, L., Cervantes, C. M., Caicedo, J. C.,           forum?id=nLRKnO74RB.
  Hockenmaier, J., and Lazebnik, S. Flickr30k entities:
  Collecting region-to-phrase correspondences for richer            Tang, H., Liu, J., Zhao, M., and Gong, X. Progres-
  image-to-sentence models. In IEEE International Con-                sive layered extraction (ple): A novel multi-task learn-
  ference on Computer Vision, December 2015.                          ing (mtl) model for personalized recommendations. In
                                                                      ACM Conference on Recommender Systems, pp. 269–278,
Radford, A., Kim, J. W., Hallacy, C., Ramesh, A., Goh,
                                                                      2020. doi: 10.1145/3383313.3412236. URL https:
  G., Agarwal, S., Sastry, G., Askell, A., Mishkin, P.,
                                                                      //doi.org/10.1145/3383313.3412236.
  Clark, J., Krueger, G., and Sutskever, I. Learning
  transferable visual models from natural language su-              Tiong, A., Zhao, J., Li, B., Li, J., Hoi, S., and Xiong, C.
  pervision. In International Conference on Machine                   What are we measuring when we evaluate large vision-
  Learning, volume 139, pp. 8748–8763, 18–24 Jul                      language models? an analysis of latent factors and biases.
  2021. URL https://proceedings.mlr.press/                            In Annual Conference of the North American Chapter of
  v139/radford21a.html.                                               the Association for Computational Linguistics, 2024.
Sener, O. and Koltun, V. Multi-task learning as multi-
                                                                    Wang, A., Singh, A., Michael, J., Hill, F., Levy, O., and
  objective optimization. In Advances in Neural Informa-
                                                                     Bowman, S. R. GLUE: A multi-task benchmark and
  tion Processing Systems, volume 31. Curran Associates,
                                                                     analysis platform for natural language understanding. In
  Inc., 2018.
                                                                     International Conference on Learning Representations,
Sidorov, O., Hu, R., Rohrbach, M., and Singh, A. Textcaps:           2019. URL https://openreview.net/forum?
  A dataset for image captioning with reading comprehen-             id=rJ4km2R5t7.
  sion. In European Conference on Computer Vision, pp.
  742–758, 2020. ISBN 978-3-030-58536-5.                            Wang, K., Dimitriadis, N., Ortiz-Jimenez, G., Fleuret, F.,
                                                                     and Frossard, P. Localizing task information for improved
Singh, A., Natarajan, V., Shah, M., Jiang, Y., Chen, X.,             model merging and compression. In International Con-
  Batra, D., Parikh, D., and Rohrbach, M. Towards vqa                ference on Machine Learning, 2024.
  models that can read. In IEEE Conference on Computer
  Vision and Pattern Recognition, June 2019.                        Wu, X., Huang, S., and Wei, F. Mixture of loRA experts. In
                                                                     International Conference on Learning Representations,
Stallkamp, J., Schlipsing, M., Salmen, J., and Igel, C. The          2024. URL https://openreview.net/forum?
  german traffic sign recognition benchmark: A multi-class           id=uWvKBCYh4S.
  classification competition. In International Joint Confer-
  ence on Neural Networks, pp. 1453–1460, 2011.                     Xiao, J., Ehinger, K. A., Hays, J., Torralba, A., and Oliva,
                                                                      A. Sun database: Exploring a large collection of scene
Sun, W., Li, Q., Zhang, J., Wang, W., and Geng, Y.-                   categories. International Journal of Computer Vision,
  a. Decoupling learning and remembering: A bilevel                   119:3–22, 2016.

                                                               11
                     CAT Merging: A Training-Free Approach for Resolving Conflicts in Model Merging

Yadav, P., Tam, D., Choshen, L., Raffel, C., and Bansal,
  M. TIES-merging: Resolving interference when merging
  models. In Advances in Neural Information Processing
  Systems, 2023.
Yang, E., Pan, J., Wang, X., Yu, H., Shen, L., Chen, X.,
  Xiao, L., Jiang, J., and Guo, G. Adatask: A task-aware
  adaptive learning rate approach to multi-task learning.
  AAAI Conference on Artificial Intelligence, 37(9):10745–
  10753, Jun. 2023. URL https://ojs.aaai.org/
  index.php/AAAI/article/view/26275.
Yang, E., Shen, L., Wang, Z., Guo, G., Chen, X., Wang,
  X., and Tao, D. Representation surgery for multi-task
  model merging. In International Conference on Ma-
  chine Learning, 2024a. URL https://openreview.
  net/forum?id=Sbl2keQEML.
Yang, E., Wang, Z., Shen, L., Liu, S., Guo, G., Wang,
  X., and Tao, D. Adamerging: Adaptive model merg-
  ing for multi-task learning. In International Confer-
  ence on Learning Representations, 2024b. URL https:
  //openreview.net/forum?id=nZP6NgD3QY.
Zhang, J., chen, s., Liu, J., and He, J. Composing parameter-
  efficient modules with arithmetic operation. In Advances
  in Neural Information Processing Systems, volume 36,
  pp. 12589–12610, 2023a.
Zhang, W., Deng, L., Zhang, L., and Wu, D. A survey
  on negative transfer. IEEE/CAA Journal of Automatica
  Sinica, 10(2):305–329, 2023b. doi: 10.1109/JAS.2022.
  106004.

Zhang, Y. and Yang, Q. A survey on multi-task learning.
  IEEE Transactions on Knowledge and Data Engineer-
  ing, 34(12):5586–5609, 2022. doi: 10.1109/TKDE.2021.
  3070203.

Zhou, H., Gokaslan, A., Kuleshov, V., and Hariharan,
  B.   Interfering with interference: Blind shuffling
  and superposition for better multi-model compression,
  2025. URL https://openreview.net/forum?
  id=4wuvmJRAU4.




                                                                12
                       CAT Merging: A Training-Free Approach for Resolving Conflicts in Model Merging

A. Theoretical Proofs
A.1. Proof of Lemma (4.2)
Let Wk be the parameters for task k, and let Ti be the task vector of task i. The feature shift at layer l caused by Ti is defined
as:

                                                  l
                                                ∆fk|i = fkl (Wk + Ti ) − fkl (Wk ).

We aim to prove the following bound:

                                                   l
                                                ∥∆fk|i           l−1
                                                       ∥ ≤ γl ∥∆fk|i ∥ + ∥∆fˆk|i
                                                                             l
                                                                                 ∥.

        l−1
where ∆fk|i = fkl−1 (Wk + Ti ) − fkl−1 (Wk ), and ∆fˆk|i
                                                     l
                                                         = fˆkl (Wk + Ti ) − fkl (Wk ).

Proof. The feature shift at layer l can be decomposed as:


    l
  ∆fk|i = fkl (fkl−1 (Wk + Ti ); Wkl + Til ) − fkl (fkl−1 (Wk ); Wkl )
         = fkl (fkl−1 (Wk + Ti ); Wkl + Til ) − fkl (fkl−1 (Wk ); Wkl + Til ) + fkl (fkl−1 (Wk ); Wkl + Til ) − fkl (fkl−1 (Wk ); Wkl ).
                                                                                                                                    (18)
Under the norm-induced triangular inequality, we have:
   l
∥∆fk|i ∥ ≤ ∥fkl (fkl−1 (Wk + Ti ); Wkl + Til ) − fkl (fkl−1 (Wk ); Wkl + Til )∥ + ∥fkl (fkl−1 (Wk ); Wkl + Til ) − fkl (fkl−1 (Wk ); Wkl )∥.
                                                                                                                                  (19)
- For the first part, we apply the γl -Lipschitz continuity of fkl :

                         ∥fkl (fkl−1 (Wk + Ti ); Wkl + Til ) − fkl (fkl−1 (Wk ); Wkl + Til )∥ ≤ γl ∥∆fk|i
                                                                                                      l−1
                                                                                                          ∥.

- For the second part:
                                 ∥fkl (fkl−1 (Wk ); Wkl + Til ) − fkl (fkl−1 (Wk ); Wkl )∥ = ∥∆fˆk|i
                                                                                                 l
                                                                                                     ∥.

Combining these two terms, we conclude:

                                                   l
                                                ∥∆fk|i           l−1
                                                       ∥ ≤ γl ∥∆fk|i ∥ + ∥∆fˆk|i
                                                                             l
                                                                                 ∥.




A.2. Proof of Theorem 4.4
Theorem 4.4 (An Upper Bound on Knowledge Conflict).
Suppose that Assumptions 4.1 and 4.3 hold for any task k and task vector Ti , the knowledge conflict follows
                                                                 L
                                                             L  Y
                                                             X              
                                              |∆Lk|i | ≤ β                γm ∥∆fˆk|i
                                                                                 l
                                                                                     ∥.                                            (20)
                                                             l=1 m=l+1


Proof. Recall that in Lemma (4.2), we derive the following recursive Lipschitz bound:
                                                   l
                                                ∥∆fk|i           l−1
                                                       ∥ ≤ γl ∥∆fk|i ∥ + ∥∆fˆk|i
                                                                             l
                                                                                 ∥.

                                                                  13
                      CAT Merging: A Training-Free Approach for Resolving Conflicts in Model Merging

We use recursive substitution starting from layer L down to l = 1:

        L
     ∥∆fk|i           L−1
            ∥ ≤ γL ∥∆fk|i ∥ + ∥∆fˆk|i
                                   L
                                      ∥
                                             
                             L−2
              ≤ γL γL−1 ∥∆fk|i   ∥ + ∥∆fˆk|i
                                         L−1
                                             ∥ + ∥∆fˆk|i
                                                     L                  L−2
                                                         ∥ = γL γL−1 ∥∆fk|i ∥ + γL ∥∆fˆk|i
                                                                                       L−1
                                                                                           ∥ + ∥∆fˆk|i
                                                                                                   L
                                                                                                       ∥
                                                                                                                       (21)
                        L
                    L  Y
                    X             
                ≤               γm ∥∆fˆk|i
                                       l
                                           ∥.
                    l=1 m=l+1



Using Assumption 4.3, which states that L is β-Lipschitz continuous with respect to the network’s final output, we conclude:

                                                                L
                                                            L  Y
                                                            X             
                                             |∆Lk|i | ≤ β               γm ∥∆fˆk|i
                                                                               l
                                                                                   ∥.                                  (22)
                                                            l=1 m=l+1




A.3. Frobenius Norm Decomposition of Orthogonal Projection
Assume that B has orthonormal columns (i.e., B T B = I), then, for any matrix M , the following equation holds:

                                                      2                     2           2
                                         M BB ⊤ F + M − M BB ⊤ F = ∥M ∥F .                                             (23)


Proof.
                                         2                       2
                                M BB ⊤ F + M − M BB ⊤ F
                                         2                       2
                           = M BB ⊤ F + M (I − BB ⊤ ) F
                           =T r((M BB ⊤ )⊤ M BB ⊤ ) + T r((M (I − BB ⊤ ))⊤ M (I − BB ⊤ ))
                           =T r(BB ⊤ M ⊤ M BB ⊤ ) + T r((I − BB ⊤ )⊤ M ⊤ M (I − BB ⊤ ))
                           =T r(BB ⊤ BB ⊤ M ⊤ M ) + T r((I − BB ⊤ )(I − BB ⊤ )⊤ M ⊤ M )
                           =T r(BB ⊤ M ⊤ M ) + T r((I − BB ⊤ )(I ⊤ − (BB ⊤ )⊤ )M ⊤ M )                                 (24)
                           =T r(BB ⊤ M ⊤ M ) + T r((I − BB ⊤ )(I − BB ⊤ )M ⊤ M )
                           =T r(BB ⊤ M ⊤ M ) + T r((I − BB ⊤ − BB ⊤ + BB ⊤ BB ⊤ )M ⊤ M )
                           =T r(BB ⊤ M ⊤ M ) + T r((I − BB ⊤ )M ⊤ M )
                           =T r(M ⊤ M )
                                   2
                           = ∥M ∥F




A.4. Solution of Eq.(9)
Let Xk ∈ Rn×d be the feature and Ti ∈ Rd×h represent the task vector of the task i. Now our target is learning a group of
removal basis Bk ∈ Rh×c for task k such that:
                                             X                   2                          2
                                       max           Xk Ti Bk Bk⊤ F − λ Xi Ti Bk Bk⊤ F                                 (25)
                                        Bk
                                              i̸=k



Then we have:

                                                               14
                    CAT Merging: A Training-Free Approach for Resolving Conflicts in Model Merging

                                     X                            2                                    2
                                               Xk Ti Bk Bk⊤ F − λ Xi Ti Bk Bk⊤ F
                                     i̸=k
                                     X
                                 =          Tr(Xk Ti Bk Bk⊤ Ti⊤ Xk⊤ ) − λT r(Xi Ti Bk Bk⊤ Ti⊤ Xi⊤ )
                                     i̸=k
                                     X
                                 =          Tr(Ti Bk Bk⊤ Ti⊤ Xk⊤ Xk ) − λT r(Ti Bk Bk⊤ Ti⊤ Xi⊤ Xi )
                                     i̸=k
                                     X
                                            Tr Ti Bk Bk⊤ Ti⊤ Xk⊤ Xk − λXi⊤ Xi
                                                                                                       
                                 =
                                     i̸=k
                                     X
                                            Tr Bk Bk⊤ Ti⊤ Xk⊤ Xk − λXi⊤ Xi Ti
                                                                           
                                 =                                                                                                  (26)
                                     i̸=k
                                                                                                           
                                                         X
                                 =Tr Bk Bk⊤                    Ti⊤ Xk⊤ Xk − λXi⊤ Xi Ti 
                                                                                                   

                                                         i̸=k
                                                                             
                                                                        
                                                                             
                                      ⊤ X ⊤         ⊤         ⊤
                                                                             
                                 =Tr  B
                                      k
                                               Ti Xk  Xk − λX i Xi   Ti
                                                                          B k
                                                                              
                                          i̸=k                               
                                         |              {z               }
                                                                            G

The above equation implies that the largest c eigenvectors of G admit an optimal solution.

A.5. Solution of Eq.(12)
Let xk ∈ Rd be the feature and Ti ∈ Rd represents the task vector of the task i for a scaler of a normalization layer. Now
our target is learning a group of removal binary mask mk ∈ {0, 1}d for task k such that:
                                                                                         
                                    X X                       2    X                    2
                               max            xlk ◦ Til ◦ mlk − λ      xli ◦ Til ◦ mlk  .                            (27)
                               mk
                                        i̸=k       xlk                                     xli


Then we have:
                                                                                                                       
                                 X          X                           2            X                              2
                                                     xlk ◦ Til ◦ mlk       −λ              xli ◦ Til ◦ mlk             
                                 i̸=k       xlk                                      xli
                                    d                                                       d
                                                                                                                                !
                                 X XX                                       2
                                                                                           XX                               2
                             =                           (xk,z Ti,z mk,z ) − λ                         (xi,z Ti,z mk,z )
                                 i̸=k       xk z=1                                         xi z=1
                                 d
                                                                                                                    !
                                 X                X X                           2
                                                                                           X                    2
                             =          m2k,z                    (xk,z Ti,z ) − λ                (xi,z Ti,z )                       (28)
                                 z=1              i̸=k     xk                              xi
                                 d
                                                                                                                    !
                                 X                X X                           2
                                                                                           X                    2
                             =          mk,z                     (xk,z Ti,z ) − λ                (xi,z Ti,z )
                                 z=1              i̸=k     xk                              xi
                                                  |                             {z                                  }
                                                                                gz
                                 d
                                 X
                             =          mi,k gz .
                                 z=1

The above equation implies that in mk , dimensions corresponding to the largest c values of gz should be set to 1, while
others should be 0.

                                                                            15
                    CAT Merging: A Training-Free Approach for Resolving Conflicts in Model Merging

A.6. Solution of Eq.(13)
Let xk ∈ Rd be the feature and Ti ∈ Rd represents the task vector of the task i for shift parameters. Now our target is
learning a group of removal binary mask mk ∈ {0, 1}d for task k such that:
                                                                                  !
                                       X X                 2
                                                                 X              2
                                   max         ∥Ti ◦ mk ∥ − λ        ∥Ti ◦ mk ∥ .                                 (29)
                                         mk
                                               i̸=k      xk                                   xi


Suppose 0 < λ < 1 and all tasks have an equal amount of data n, then we have:
                                                                                                        !
                                 X X                             2
                                                                              X                     2
                                               ∥Ti ◦ mk ∥ − λ                          ∥Ti ◦ mk ∥
                                 i̸=k     xk                                  xi
                                  X                       2                              2
                                                                                              
                             =n           ∥Ti ◦ mk ∥ − λ ∥Ti ◦ mk ∥
                                  i̸=k
                                               X                         2
                                                                              
                             =n(1 − λ)                 ∥Ti ◦ mk ∥
                                               i̸=k
                                    d                                                          d
                                                                                                                                !
                                 X XX                                             2
                                                                                              XX                            2
                             =                        (xk,z Ti,z mk,z ) − λ                             (xi,z Ti,z mk,z )
                                 i̸=k     xk z=1                                              xi z=1                                (30)
                                                 d
                                                                                  !
                                               X X
                                                                2
                             =n(1 − λ)                         Ti,z m2k,z
                                               i̸=k     z=1
                                               d
                                               X               X
                                                                       2
                             =n(1 − λ)                mk,z            Ti,z
                                               z=1             i̸=k
                                                               | {z }
                                                                     gz
                                               d
                                               X
                             =n(1 − λ)                mi,k gz ,
                                               z=1
The above equation implies that in mk , dimensions corresponding to the largest c values of gz should be set to 1, while
others should be 0.

B. Experiment Details
This section introduces some additional details of experiments, including the detailes of the experimental environment,
datasets, and baselines.

B.1. Environment
All experiments detailed in our manuscript and appendix were conducted on a workstation running Ubuntu 16.04, equipped
with 2 Intel Xeon 2.60GHz CPUs, 256 GB of memory, and 6 NVIDIA RTX3090 GPUs. We leverage Python 3.8 to
implement all the methods.

B.2. Datasets
Our experiments strictly follow Task Arithmetic (Ilharco et al., 2023b) and leverage the following eight widely-used image
classification datasets:

  • SUN397 (Xiao et al., 2016): A large-scale scene classification dataset containing 108,754 images organized into 397
    categories. Each category includes at least 100 images, making it a diverse benchmark for scene recognition tasks.
  • Stanford Cars (Cars) (Krause et al., 2013): A fine-grained car classification dataset featuring 16,185 images of 196
    distinct car models. The dataset is evenly divided into training and test splits, enabling robust model evaluation.

                                                                                  16
                    CAT Merging: A Training-Free Approach for Resolving Conflicts in Model Merging

  • RESISC45 (Cheng et al., 2017): A remote sensing image classification dataset with 31,500 images spanning 45 scene
    classes. Each class contains approximately 700 images, covering a variety of landscapes and man-made structures.

  • EuroSAT (Helber et al., 2019): A satellite imagery dataset designed for land-use and land-cover classification,
    consisting of 27,000 labeled and geo-referenced images distributed among 10 categories, such as forests, residential
    areas, and agricultural fields.

  • SVHN (Netzer et al., 2011): A digit classification dataset derived from real-world house numbers captured in Google
    Street View. It includes 10 digit classes, with 73,257 training images, 26,032 test images, and an additional 531,131
    samples for extended training.

  • GTSRB (Stallkamp et al., 2011): The German Traffic Sign Recognition Benchmark, comprising over 50,000 images
    across 43 traffic sign categories. This dataset is widely used for evaluating traffic sign recognition systems.

  • MNIST (LeCun & Cortes, 2010): A classic handwritten digit classification dataset containing 60,000 training images
    and 10,000 test images, evenly distributed across 10 digit classes.

  • DTD (Cimpoi et al., 2014): The Describable Textures Dataset, which includes 5,640 images spanning 47 texture
    categories, with around 120 images per category. It is designed for texture recognition tasks.

We also leverage the following six vision-language datasets:

  • COCO Caption (Chen et al., 2015): A large-scale image captioning dataset derived from the MS COCO dataset. It
    contains over 330,000 images, with each image annotated with five different captions, facilitating training for generating
    natural language descriptions of images.

  • Flickr30k Caption (Plummer et al., 2015): A dataset for image captioning and retrieval tasks, consisting of 31,000
    images sourced from Flickr. Each image is paired with five descriptive sentences, capturing a variety of objects, scenes,
    and actions in the images.

  • TextCaps (Sidorov et al., 2020): A challenging image captioning dataset focusing on reasoning over both visual and
    textual content in images. It includes 145,000 image-caption pairs, where captions must integrate text from the image
    to provide meaningful descriptions.

  • OKVQA (Marino et al., 2019): A knowledge-based visual question-answering dataset designed to evaluate the ability
    to answer open-ended questions about images using external knowledge. It consists of more than 14,000 questions and
    corresponding answers requiring reasoning beyond the image content.

  • TextVQA (Singh et al., 2019): A dataset for visual question answering where reading and understanding text present
    in images is crucial. It includes over 45,336 questions across 28,408 images, requiring the integration of textual and
    visual reasoning to generate accurate answers.

  • ScienceQA (Lu et al., 2022): A multi-modal dataset designed for science-related question answering. It contains over
    21,208 multi-modal multiple-choice questions paired with textual explanations and images across various scientific
    disciplines, such as biology, physics, and chemistry, supporting reasoning-based evaluation.

B.3. Baselines.
Our experiments are associated with several baseline approaches. The details of these baselines are as follows:

  • Pretrained directly employs a pretrained model to predict across multiple tasks. Since it does not incorporate
    any downstream task-specific information during model training, its performance on downstream tasks is typically
    suboptimal.

  • Individual. In this approach, an independent finetuned model is used for each task. While it avoids interference
    between tasks, it cannot perform multiple tasks simultaneously. It serves as a reference upper bound for model merging
    approaches.

                                                             17
                    CAT Merging: A Training-Free Approach for Resolving Conflicts in Model Merging

  • Traditional MTL aggregates the original training data from all tasks to train a single multi-task model.

  • Weight Averaging directly averages model parameters from multiple tasks into a single model, enabling multi-task
    learning without additional training.

  • Fisher Merging (Matena & Raffel, 2022) leverages the Fisher information matrix to assess parameter importance,
    merging model parameters based on this importance.

  • RegMean (Jin et al., 2023) refines weight matrices by adjusting and linearly combining rows, utilizing statistical
    information derived from the training data.

  • Task Arithmetic (Ilharco et al., 2023b) introduces the concept of a “task vector,” defined as the difference between
    finetuned model parameters and pretrained model parameters. Multiple task vectors are then combined and added to
    the pretrained model to facilitate multi-task learning.

  • Ties-Merging (Yadav et al., 2023) eliminates unimportant parameters from the task vector and resolves sign conflicts
    among parameters, reducing interference during the final task vector merging process.

  • TATR (Sun et al., 2025). This method advances task arithmetic by restricting the merging within a trust region to
    mitigate knowledge conflict.

  • TATR & Ties-Merging (Sun et al., 2025; Yadav et al., 2023). This method combines the trust region restriction in
    TATR into Ties-Merging to enhance the performance.

  • Consensus Merging (Wang et al., 2024) computing a group of masks for each task vector to minimize the distance in
    parameter space between the merged model and the finetuned model.

  • PCB Merging (Du et al., 2024) trims components in the task vector that have small magnitudes and are not significantly
    related to other tasks.

C. Additional Experiments
C.1. Comparison on ViT-B/16
Table 6 presents the results of various model merging methods using the ViT-B/16 architecture. As we can see, CAT Merging
significantly improves the multi-task performance of Task Arithmetic, raising the average performance from 73.8% to
82.1%.

                        Table 6. Multi-task performance when merging ViT-B/16 models on eight tasks.
  Method                SUN397      Cars    RESISC45       EuroSAT      SVHN       GTSRB      MNIST    DTD     Avg Acc
  Pretrained               63.8     64.6        65.7          54.5        52.0       43.3       51.7   45.1      55.0
  Individual               81.8     86.8        96.9          99.7        97.8       99.1       99.7   82.0      92.9
  Weight Averaging         67.7     70.0        75.3          79.5        74.9       60.1       94.4   43.8      70.7
  Fisher Merging           68.5     69.9        75.2          80.4        73.2       61.2       94.5   50.7      71.7
  RegMean                  69.1     71.6        77.6          88.8        83.7       70.2       96.9   54.6      76.6
  Task Arithmetic          61.1     65.9        74.0          76.2        88.0       73.9       98.4   53.0      73.8
  Ties-Merging             69.1     72.5        80.5          84.0        85.0       71.5       98.1   54.9      77.0
  TATR                     67.4     70.4        77.9          81.7        87.6       77.2       98.3   55.6      77.0
  CAT Merging (ours)       72.9     75.9        83.1          92.8        88.2       82.7       98.8   62.7      82.1



C.2. Comparing with Test-time Training based Methods
Table 7 shows that our CAT Merging achieves comparable or superior performance relative to two representative training-
based techniques, demonstrating its effectiveness without incurring additional computational costs.

                                                            18
                                            CAT Merging: A Training-Free Approach for Resolving Conflicts in Model Merging


                                                        Table 7. Multi-task performance when merging on eight vision tasks.
  Method                                        SUN397         Cars              RESISC45             EuroSAT         SVHN                GTSRB              MNIST       DTD       Avg Acc
                                                                                                  ViT-B/32
  TW AdaMerging                                   58.0             53.2               68.8            85.7             81.1                        84.4        92.4       44.8      71.1
  TW AdaMerging++                                 60.8             56.9               73.1            83.4             87.3                        82.4        95.7       50.1      73.7
  LW AdaMerging                                   64.5             68.1               79.2            93.8             87.0                        91.9        97.5       59.1      80.1
  LW AdaMerging++                                 66.6             68.3               82.2            94.2             89.6                        89.0        98.3       60.6      81.1
  Surgery Merging                                 63.8             59.9               83.3            97.9             87.0                        87.0        98.6       69.4      80.9
  CAT Merging (ours)                              68.1             65.4               80.5            89.5             85.5                        78.5        98.6       60.7      78.3
                                                                                                  ViT-L/14
  AdaMerging                                      79.0             90.3               90.8            96.2             93.4                        98.0        99.0       79.9      90.8
  AdaMerging++                                    79.4             90.3               91.6            97.4             93.4                        97.5        99.0       79.2      91.0
  Surgery Merging                                 75.7             84.4               93.1            98.8             91.3                        93.4        99.1       76.1      89.0
  CAT Merging (ours)                              78.7             88.5               91.1            96.3             91.3                        95.7        99.4       75.7      89.6


                                      
            $ Y J  $ F F    




                                      

                                                                                        9 L 7  %                      9 L 7  %   
                                                                                          9 L 7  /                      9 L 7  /   
                                                                                                                                                        
                                                                     D                                                                             E  c

           Figure 4. Average accuracy (%) of CAT Merging on eight vision tasks with different values of λ (a) and c (b).


C.3. Generalization Comparison
This section explores the generalization ability of CAT Merging. Specifically, we merge models using task vectors from six
tasks and evaluate their performance on two unseen tasks (MNIST and EuroSAT). The results in Table 8 show that CAT
Merging outperforms all baselines on both seen and unseen datasets, with an average performance improvement of 3.4%
and 2.6%, respectively. This improvement in generalization is attributed to CAT Merging’s ability to handle knowledge
conflicts, ensuring that model updates move toward a more globally optimal direction.


                                       Table 8. Generalization results on two unseen tasks when merging ViT-B/32 models on six tasks.
  Method                                        SUN397       Cars             RESISC45         DTD          SVHN      GTSRB              Avg Acc           MNIST       EuroSAT     Avg Acc
  Task Arithmetic                                63.3        62.4                75.1          57.8           84.6     80.4                    70.6          77.2        46.2        61.7
  Ties-Merging                                   67.8        66.2                77.2          56.7           77.1     70.9                    69.3          75.9        43.3        59.6
  TATR                                           66.0        64.1                77.9          60.1           83.9     81.8                    72.3          77.2        47.7        62.5
  CAT Merging (Ours)                             70.4        68.4                85.3          63.6           82.8     83.8                    75.7          77.8        52.3        65.1



C.4. Sensitivity Analysis
This section analyzes the sensitivity of two additional hyper-parameters λ and c.
Sensitivity analysis of weight λ. In Figure 4 (a), λ significantly impacts performance only when set to 0, where the accuracy
drops sharply to 65.33% (ViT-B/32) and 74.84% (ViT-L/14). This indicates that neglecting task-specific knowledge severely
degrades the results. For λ > 0, the performance remains stable across a wide range of values, demonstrating the robustness
of CAT Merging.

                                                                                                        19
                     CAT Merging: A Training-Free Approach for Resolving Conflicts in Model Merging

Sensitivity analysis of c. c affects the number of task vector components are trimmed. As illustrated in Figure 4 (b), the
performance of CAT Merging remains stable for small c, peaking at c = 2 for ViT-B/32 and c = 3 for ViT-L/14. Larger
values lead to a partial decline as more knowledge is discarded, with ViT-B/32 dropping to 69.89% at c = 128.

Table 9. Computational complexity comparison (in seconds) for merging ViT-B/32 and ViT-L/14 models across eight vision tasks,
measured on a single RTX 3090 GPU.
                 Method       TA w/ Surgery    AdaMerging       TATR     PCB Merging       CAT Merging (ours)
                 ViT-B/32         12621             8276         176           43                  46
                 ViT-L/14         36826            16299         283          131                 150


C.5. Analysis of Computational Complexity
The computational overhead of CAT Merging is reasonable and practically efficient. Specifically, CAT Merging involves
two main steps:

   • Feature Extraction: This step is lightweight and efficient, requiring only a small number (2–3 per task) of unlabeled
     samples;
   • Eigendecomposition: While eigendecomposition has theoretically higher computational complexity, in practice,
     we efficiently mitigate this through GPU parallelization. Moreover, CAT Merging only requires the eigenvectors
     corresponding to the top-c (2-4 in our work) eigenvalues, enabling further acceleration through specialized methods
     (e.g., torch.lobpcg). Empirical results (provided in the table 9, measured on a single RTX3090 GPU in seconds)
     demonstrate that CAT Merging significantly outperforms training-based counterparts (e.g., TA w/ Surgery (Yang et al.,
     2024a), AdaMerging (Yang et al., 2024b)) in terms of computational efficiency.


                Table 10. Balance comparison for merging ViT-B/32 and ViT-L/14 models across eight vision tasks.
                 Method      Fisher Merging   RegMean      Task Arithmetic   PCB Merging    CAT Merging (ours)
                 ViT-B/32        13.78          8.46            8.95            6.85               6.21
                 ViT-L/14         6.79          6.86            5.11            3.49               2.51



C.6. Analysis of the Balance during Merging
As shown in Table 1 and 2, while CAT Merging achieves superior average performance, it does not always yield the highest
accuracy on every individual dataset.
Specifically, we observe that Fisher Merging exhibits better performance on certain datasets (e.g., Cars and SUN397),
likely because its weighting mechanism, based on the Fisher information matrix, implicitly prioritizes tasks with weaker
performance (larger gradients produce higher Fisher information scores). Conversely, PCB Merging achieves superior
performance on datasets like SVHN and MNIST, where masking low-magnitude vector components implicitly favors tasks
with stronger finetuning outcomes (assuming larger vector magnitudes correlate with greater task specialization).
However, both Fisher and PCB merging tend to perform less consistently across other tasks. In contrast, our CAT Merging
framework explicitly targets inter-task knowledge conflicts and aims for a balanced integration across tasks. To quantitatively
illustrate this balance, we measured the standard deviation of accuracy drops (defined as the accuracy difference between
task-specific models and the merged model) across tasks. As shown in the table 10, CAT Merging demonstrates significantly
lower variance, reflecting its ability to merge multiple tasks more evenly, without undue preference towards any particular
task.

C.7. Analysis of Knowledge Conflict
This section provides more evidence about the effective mitigation of knowledge conflict in CAT Merging. Figure 5
visualizes the knowledge conflict during merging under different merging coefficients. As can be seen, CAT Merging
consistently has lesser knowledge conflict than Task Arithmetic.

                                                               20
                                          CAT Merging: A Training-Free Approach for Resolving Conflicts in Model Merging




                  D   7 D V N  $ U L W K P H W L F                    E   & $ 7  0 H U J L Q J                                                    D   7 D V N  $ U L W K P H W L F                    E   & $ 7  0 H U J L Q J
                                                                                                                              1                                                                   
                                                                                                                                                                                                                                                         1




                                                                                                                                       RESISC45
Cars




                                                                                                                                                                                                    
                                                                                                                                2                                                                                                                      2

                                                                                                                                                                                                    
                                                                                                                          3                                                                                                                3
                             SUN397                                                   SUN397                                                                            Cars                                                 Cars
                                            (a) SUN397 and Cars                                                                                                                   (b) Cars and RESISC45

                  D   7 D V N  $ U L W K P H W L F                    E   & $ 7  0 H U J L Q J                                                    D   7 D V N  $ U L W K P H W L F                    E   & $ 7  0 H U J L Q J
                                                                                                                                                                                                    
                                                                                                                                1                                                                                                                      1
EuroSAT




                                                                                                                                       SVHN
                                                                                                                                                                                                                                                     2
                                                                                                                                2
                                                                                                                                                                                                                                                         2
                                                                                                                                                                                                    
                                                                                                                          3                                                                                                                3
                            RESISC45                                                 RESISC45                                                                        EuroSAT                                              EuroSAT
                                      (c) RESISC45 and EuroSAT                                                                                                                    (d) EuroSAT and SVHN

                  D   7 D V N  $ U L W K P H W L F                    E   & $ 7  0 H U J L Q J                                                    D   7 D V N  $ U L W K P H W L F                    E   & $ 7  0 H U J L Q J
                                                                                                                                                                                                    
                                                                                                                                1                                                                                                                      1
GTSRB




                                                                                                                                       MNIST




                                                                                                                              2                                                                                                                    2
                                                                                                                                2                                                                                                                      2
                                                                                                                                                                                                    
                                                                                                                          3                                                                                                                3
                               SVHN                                                     SVHN                                                                          GTSRB                                                GTSRB
                                           (e) SVHN and GTSRB                                                                                                                     (f) GTSRB and MNIST

                                                                                      D   7 D V N  $ U L W K P H W L F                    E   & $ 7  0 H U J L Q J
                                                                                                                                  
                                                                                                                                                                                                    1

                                                                                                                                                                                                    2
                                                                   DTD




                                                                                                                                  
                                                                                                                                                                                                    2
                                                                                                                                  
                                                                                                                                                                                              3
                                                                                                   MNIST                                                   MNIST
                                                                                                                 (g) MNIST and DTD

                                               Figure 5. Visualization of knowledge conflict when merging two ViT-L/14 models.




                                                                                                                                   21
