---
title: "【AI 核心深度 M5-125】解释 TIES 与 DARE 的核心思想。（Core Principles of TIES-Merging and DARE in Model Merging）深度数理推导与工程落地解析"
canonical_url: "https://airsota.com/2026/10/01/science-depth-m5-125-model-merging-distillation/"
date_published: "2026-10-01T14:38:55-07:00"
date_modified: "2026-10-01T14:38:55-07:00"
language: "zh-CN"
categories: ["AI 核心深度 856 题 (Science Depth)", "TalentMe (AI 学习与算法架构)", "大厂算法与面试备考 (Interview Guides &amp; Math)"]
tags: ["applied-scientist", "machine-learning", "model-merging-distillation", "module-m5", "science-depth"]
summary: "TIES：修剪小值 + 符号一致时合并 + 按符号选多数，缓解干扰；DARE：随机丢弃增量并重缩放，减少冗余与冲突。"
publisher: "AirSOTA (https://airsota.com)"
---

# 【AI 核心深度 M5-125】解释 TIES 与 DARE 的核心思想。（Core Principles of TIES-Merging and DARE in Model Merging）深度数理推导与工程落地解析

> **Executive Summary**: TIES：修剪小值 + 符号一致时合并 + 按符号选多数，缓解干扰；DARE：随机丢弃增量并重缩放，减少冗余与冲突。

> 
**所属模块**：`M5 · NLP 与大语言模型 (NLP & Large Language Models)` | **专题分类**：`模型合并与蒸馏 (Model Merging & Distillation)` | **难度等级**：`Easy`

### 一、核心一句话结论 (One-Sentence Summary)

**TIES：修剪小值 + 符号一致时合并 + 按符号选多数，缓解干扰；DARE：随机丢弃增量并重缩放，减少冗余与冲突。**

*TIES-Merging resolves destructive parameter interference via magnitude trimming, sign election, and disjoint merging, while DARE applies random delta dropout and unbiased rescaling to eliminate parameter redundancy.*

### 二、核心考点要义 (Key Insights)

- 📌 TIES：修剪（去掉小幅度值）→ 选符号（多数投票）→ 只合并同号项

- 📌 DARE：随机把增量置零并重缩放（数学上近似原增量）

- 📌 目标：缓解多个任务向量相加时的'干扰'

**English Insights:**

- *The interference dilemma: naive task vector summation suffers from sign conflicts where opposing parameter updates cancel each other out*

- *TIES triad: Trim (zero out bottom magnitude noise), Elect Sign (majority voting on directional consensus), and Disjoint Merge (sum only sign-aligned parameters)*

- *DARE mechanics: Drop random delta parameters with probability $p$ and Rescale surviving weights by $,1/(1-p),$, maintaining an unbiased expectation while dramatically reducing interference density*

### 三、核心数学原理与机理推导 (Mathematical Principles & Derivation)

$$text{TIES}: text{trim}+text{elect sign}+text{disjoint merge};qquad text{DARE}: text{drop }delta, text{rescale }1/(1-p)$$

数学机理：**问题：任务向量相加的干扰**——直接相加 Στ_i 时，若不同任务向量在**同一参数**上有**相反的符号**（一个想增大、一个想减小），则相加后相互抵消，导致**两个任务都学不好**。**TIES（Trim, Elect Sign & Merge，Yadav 等 2023）** 的三步：(1) **Trim（修剪）**——对每个任务向量，把**幅度很小**的值置零（只保留 top-k% 的重要参数）；理由：小值多为噪声、且易造成冲突。(2) **Elect Sign（选符号）**——对每个参数位置，统计各任务向量的**符号**，取**多数符号**作为'合并方向'（sign voting）。(3) **Disjoint Merge（不相交合并）**——只把**符号与多数符号一致**的那些值相加（忽略符号冲突的项）。**效果**——缓解干扰（避免相互抵消），使多任务合并更稳定。**DARE（Drop And REscale，Yu 等 2023）** 的思想——观察到微调的增量（Δθ=θ_ft−θ_base）具有**大量冗余**（很多参数变化很小或可省略）；故 (1) **Drop**——**随机**把增量中的一部分（比例 p）置零；(2) **Rescale**——把剩余的非零值**放大 1/(1−p)**（补偿丢弃的部分，使期望不变）。**数学依据**——若丢弃是随机的，则'丢弃 + 重缩放'后的增量在**期望上**等于原增量（无偏估计）；这使'随机稀疏化'不损失信息（期望意义上）。**效果**——(a) 减少冗余（更稀疏的增量）；(b) **减少冲突**（随机丢弃使不同任务向量的冲突参数更可能被'错开'）；(c) 可与 TIES 组合（DARE + TIES 是常用组合）。**其他方法**——(a) **Model Soup**（简单平均多个微调模型）；(b) **SLERP**（球面插值，保持范数）；(c) **Fisher Merging**（用 Fisher 信息加权）；(d) **RegMean**（最小二乘解）。**共同目标**——在'合并多个模型/任务向量'时**最大化保留各任务能力、最小化干扰**。

  📖 查看英文严格数学推导 (English Mathematical Derivation)

Mathematical Mechanism: **1. The Root Cause of Merging Interference**: For parameter index $k$ across tasks $i$ and $j$, if $text{sign}(tau_{i, k}) = -text{sign}(tau_{j, k})$, naive addition $tau_{i, k} + tau_{j, k}$ causes cancellation, destroying fine-tuned representations in both tasks. **2. TIES-Merging Protocol (Yadav et al., 2023)**: (a) *Trim*: Retain only the top-$k%$ highest-magnitude values per task vector, zeroing out redundant noisy weights: $$hat{tau}_i = text{KeepTopK}(tau_i, rho)$$ (b) *Elect Sign*: For each coordinate $j$, compute the aggregate directional consensus via majority sign voting weighted by magnitude: $$gamma_j = text{sgn}left( sum_{i=1}^M hat{tau}_{i, j} right)$$ (c) *Disjoint Merge*: Calculate the coordinate-wise mean strictly over task vectors matching the elected sign $gamma_j$: $$tau_{text{merged}, j} = frac{1}{|mathcal{S}_j|} sum_{i in mathcal{S}_j} hat{tau}_{i, j}, quad mathcal{S}_j = {i mid text{sgn}(hat{tau}_{i, j}) = gamma_j}$$ **3. DARE (Drop And REscale, Yu et al., 2023)**: Based on extreme delta parameter redundancy, DARE applies a Bernoulli mask $m_j sim text{Bernoulli}(1-p)$ with drop probability $p in [0.9, 0.99]$: $$tilde{tau}_{i, j} = frac{m_j}{1 - p} tau_{i, j}$$ Since $mathbb{E}[tilde{tau}_{i, j}] = frac{mathbb{E}[m_j]}{1-p} tau_{i, j} = tau_{i, j}$, DARE provides an *unbiased estimator* of the original task vector while sparsifying updates by 90-99%, practically eliminating collision overlap across models.

  

### 四、工业级落地权衡与工程考量 (Industrial Trade-offs)

深度剖析与工程权衡：① **'符号冲突导致抵消'是干扰的核心机制**——TIES 的'符号投票 + 只合并同号'直接针对这一点；面试中能解释这一点是深度理解的标志。② **'DARE 的数学依据（无偏估计）'很优雅**——随机丢弃 + 重缩放使期望不变，故'稀疏化不损失信息'；这与 dropout 的思想相通（随机置零 + 重缩放）。③ **'修剪小值'的双重作用**——(a) 去噪（小值多为噪声）、(b) 减少冲突（小值易与别的任务冲突）；故 Trim 是有效的前置步骤。④ **'DARE + TIES 组合'是实践常用**——先用 DARE 随机稀疏化（减少冗余），再用 TIES 处理符号冲突；两者互补。⑤ **'合并的前提是同一基座'**——所有任务向量必须基于**同一个** θ_base（否则'方向'无意义）；这是使用前提。⑥ **面试要点**——被问'TIES 与 DARE'，应给出'**TIES 三步（修剪/选符号/只合并同号）针对符号冲突；DARE（随机丢弃 + 重缩放）基于无偏估计减少冗余**'与'**组合使用**'；能解释'符号冲突为何导致抵消'是深度理解的标志。

  ⚙️ 查看英文落地权衡分析 (English Systems & Trade-offs)

Deep Dive & Engineering Trade-offs: ① **The Unbiased Dropout Elegance of DARE**: DARE proves that 90-99% of fine-tuned weight shifts are redundant noise. By randomly zeroing out delta coordinates and scaling the survivors by $1/(1-p)$, the expected forward pass activations are mathematically preserved while sparsifying parameter space enough that multiple distinct expert models rarely collide on the same coordinate. ② **Complementary Pipeline (DARE + TIES)**: In modern production pipelines (e.g., Open LLM Leaderboard merges), best practice combines both methods: first apply DARE to strip 90% parameter redundancy, then apply TIES to resolve remaining directional sign conflicts on the sparse delta vectors. ③ **Layer-Specific Pruning Ratios**: Lower transformer layers encode general linguistic features and are highly sensitive to perturbations; higher layers encode domain-specific reasoning and exhibit higher tolerance for aggressive pruning and merging. ④ **Model Soup vs Spherical Linear Interpolation (SLERP)**: Model Soup works best for homogeneous checkpoints from the same fine-tuning run, SLERP optimizes two-model blending on spherical manifolds preserving geometric norm, while TIES/DARE excel at combining multiple diverse domain specialists. ⑤ **Interview Strategy**: Articulate why naive summation cancels opposing updates, detail the 3-step TIES algorithm (Trim, Elect Sign, Disjoint Merge), derive DARE's unbiased expectation formula $mathbb{E}[tilde{tau}] = tau$, and explain their synergistic combination.

  

### 五、常见面试避坑陷阱 (Common Pitfalls & Traps)

- ⚠️ 直接相加任务向量而不处理符号冲突

- ⚠️ 用不同基座模型的任务向量做合并

**English Pitfalls:**

- *Summing unpruned task vectors directly, causing widespread coordinate cancellation and output degradation across all merged tasks*

- *Applying DARE rescaling directly to raw base weights rather than strictly to the delta task vector $tau = theta_{text{ft}} - theta_{text{base}}$*

- *Omitting post-merge validation on base language modeling perplexity, leading to silent degradation of general instruction-following*

### 六、高频深度面试追问与预测 (Follow-Up Questions)

- **为什么'符号冲突'会导致干扰？**

- *Why does DARE's random dropout and rescaling maintain an unbiased expectation of the task vector in parameter space?*

- **DARE 的数学依据是什么？**

- *How do TIES-Merging and SLERP differ when combining two fine-tuned checkpoints versus ten multi-task checkpoints?*

### 七、知识图谱对齐 (Knowledge Graph Anchor)

- 🔗 **关联底层卡片**：`模型权重合并技术：SLERP 球面插值、Ties-Merging 与 Task Arithmetic` (`Model Merging: SLERP, Ties-Merging & Task Vectors`)

- 🗺️ **知识图谱模块**：`大语言模型全景图谱`

  

#### 🔬 算法科学家与机器学习深度考察全量题库 (Science Depth)

  本题收录于 **TalentMe 算法科学家深度考察真题库 (Science Depth)**。全库共 856 道硬核考点，深度覆盖数学统计、经典ML、深度学习、Transformer、大语言模型、多模态、推荐系统与 MLOps。支持 Jev 面经智能匹配、一键离线单文件 HTML 手册导出并直连 Obsidian 本地记忆。

  [👉 前往 TalentMe 交互式研读本题 (M5-125) →](https://talentme.airsota.com/tools/science-depth/M5-125)

---
*Source: [AirSOTA Knowledge Matrix](https://airsota.com/2026/10/01/science-depth-m5-125-model-merging-distillation/) · Complete Index: [llms.txt](https://airsota.com/llms.txt)*
