# 辅助学习

辅助学习是一种机器学习方法：模型在训练主任务的同时，还训练一个或多个辅助任务，利用这些并行目标作为归纳偏置，以改善主任务的特征学习、泛化或优化。<sup>[1](https://arxiv.org/abs/2609.29774)</sup> 辅助任务是对应用而言不太受关注、甚至无关的原子任务；之所以纳入，是因为它帮助网络的共享部分找到输入的丰富而稳健的表示，主任务可从中获益。<sup>[2](https://ar5iv.labs.arxiv.org/html/1805.06334)</sup> 目标是让主任务获得更好的泛化，该方法已被用于图像分类、推荐和强化学习。<sup>[3](https://proceedings.neurips.cc/paper_files/paper/2023/file/2a91fb5a4c03e0b6d889e1c52f775480-Paper-Conference.pdf)</sup> 在标准形式中，模型在共享参数 \( \theta \) 上最小化组合目标 \( \mathcal{L}_{\mathrm{main}}(\theta, \phi_{\mathrm{main}}) + \lambda \cdot \mathcal{L}_{\mathrm{aux}}(\theta, \phi_{\mathrm{aux}}) \)，权重 \( \lambda \) 通常在训练期间保持不变。<sup>[4](https://arxiv.org/html/1812.02224v2)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | 将并行的辅助目标作为归纳偏置进行训练，以改进主任务的特征、泛化或优化<sup>[1](https://arxiv.org/abs/2609.29774)</sup> |
| 标准损失 | \( \mathcal{L}_{\mathrm{main}} + \lambda \cdot \mathcal{L}_{\mathrm{aux}} \)，其中 \( \lambda \) 通常固定<sup>[4](https://arxiv.org/html/1812.02224v2)</sup> |
| 深度强化学习里程碑 | UNREAL智能体（雅德伯格及其同事，2016）在A3C中加入像素控制、奖励预测和价值回放<sup>[5](https://doi.org/10.48550/arxiv.1611.05397)</sup> |
| UNREAL增益 | 在迷宫（Labyrinth）上人类归一化分数为87%对54%；在57款雅达利（Atari）游戏上均值为880%、中位数为250%的人类归一化性能<sup>[5](https://doi.org/10.48550/arxiv.1611.05397)</sup> |
| 失败率 | 在DomainNet上，30对辅助-目标任务中有23对在等权条件下出现负迁移<sup>[6](https://proceedings.neurips.cc/paper_files/paper/2023/file/60f9118a849e8e9a0c67e2a36ad80ebf-Paper-Conference.pdf)</sup> |
| 检测工具 | 主损失与辅助损失之间的梯度余弦相似度决定是否施加辅助损失<sup>[4](https://arxiv.org/html/1812.02224v2)</sup> |
| 实证记录 | 辅助任务有时带来显著增益，有时带来边际改进或损害<sup>[7](https://arxiv.org/pdf/2204.00565v1.pdf)</sup> |

## 工作机制

人们援引若干机制来解释辅助任务为何有助于主任务。强化学习中最常见的观点是表示塑造：辅助损失迫使共享网络编码那些使辅助预测变得容易的特征，而这些特征最终对主目标有用。<sup>[7](https://arxiv.org/pdf/2204.00565v1.pdf)</sup> 第二种机制是正则化。由于辅助任务在设计上简单、稳健，并在一定程度上与主任务不相关，它们在优化过程中限制了参数空间；在多任务学习文献中，这被描述为一种归纳偏置，可降低过拟合风险和模型的Rademacher复杂度，即其拟合随机噪声的能力。<sup>[2](https://ar5iv.labs.arxiv.org/html/1805.06334)</sup><sup> • </sup><sup>[8](https://ar5iv.labs.arxiv.org/html/1706.05098)</sup>

第三种机制是优化过程中梯度的相互作用。辅助损失是否有帮助，取决于其梯度是否将共享参数推向同时也能降低主损失的方向。共享模块的容量起着根本性作用：如果共享模块容量过大，任务之间不会产生干扰；而如果容量过小，则可能发生干扰。<sup>[9](https://ar5iv.labs.arxiv.org/html/2005.00944)</sup>

## 实施方法

实践者的配方包含三个步骤：选择辅助任务、将其挂接到网络上、组合损失。

**选择任务。** 常见的辅助目标包括语言建模和自编码器重建，它们明确鼓励可迁移的表示；<sup>[8](https://ar5iv.labs.arxiv.org/html/1706.05098)</sup> 在强化学习中，则包括像素控制、奖励预测和价值函数回放。<sup>[5](https://doi.org/10.48550/arxiv.1611.05397)</sup> 什么使一个任务有用，是一个实证问题。在一项对以通用价值函数（GVF）形式表述的辅助任务的系统性研究中，基于贪心策略的任务往往有用，而基于主任务自身策略的任务常常属于最无用之列，有时甚至比无辅助基线表现更差。<sup>[7](https://arxiv.org/pdf/2204.00565v1.pdf)</sup>

**挂接输出头。** 辅助任务通常实现为网络共享主干上的额外输出头，因此只有输出头参数是任务特有的，而 \( \theta \) 是共享的。<sup>[4](https://arxiv.org/html/1812.02224v2)</sup>

**组合损失。** 大多数现有工作对辅助损失重新加权并与主损失求和，权重通过超参数优化调整；较新的方法在训练过程中动态加权损失。<sup>[3](https://proceedings.neurips.cc/paper_files/paper/2023/file/2a91fb5a4c03e0b6d889e1c52f775480-Paper-Conference.pdf)</sup> 具体方法包括：不确定性加权，它从带有任务相关不确定性的多任务似然中推导每个任务的相对权重；<sup>[8](https://ar5iv.labs.arxiv.org/html/1706.05098)</sup> 梯度相似度门控，它从主梯度和辅助梯度的余弦相似度近似 \( \lambda(t) \)；<sup>[4](https://arxiv.org/html/1812.02224v2)</sup> 以及ForkMerge，它周期性地将模型分叉为具有不同任务权重的分支，根据目标验证误差选择权重并合并分支，仅训练2个分支而非对 \( \lambda \) 进行网格搜索。<sup>[6](https://proceedings.neurips.cc/paper_files/paper/2023/file/60f9118a849e8e9a0c67e2a36ad80ebf-Paper-Conference.pdf)</sup> AuxiLearn针对两个核心挑战——设计有用的辅助任务并将它们组合成一个连贯的损失——在双层优化中使用隐式微分：内层问题用组合训练损失训练模型，外层问题针对在留出辅助集上评估的主任务性能来优化辅助参数。<sup>[10](https://ar5iv.labs.arxiv.org/html/2007.02693v3)</sup> AANG是一种高效的结构感知算法，用于自适应地组合一组辅助任务。<sup>[11](https://arxiv.org/pdf/2205.14082)</sup>

## 起源

在深度强化学习中，雅德伯格（Jaderberg）及其同事于2016年在arXiv上描述的UNREAL智能体将A3C框架与辅助控制和奖励任务相结合，这些任务除原始A3C外无需额外监督，它是该领域里程碑式的辅助学习智能体。<sup>[5](https://doi.org/10.48550/arxiv.1611.05397)</sup> 后来的论文将UNREAL引用为2017年（其ICLR版本）；arXiv记录为2016年，两个年份都出现在文献中。<sup>[5](https://doi.org/10.48550/arxiv.1611.05397)</sup><sup> • </sup><sup>[4](https://arxiv.org/html/1812.02224v2)</sup> 在监督学习中，刘（Liu）、戴维森（Davison）和约翰斯（Johns）于2019年在arXiv上描述的MAXL使用元学习，仅利用主任务标签来自动发现辅助标签。<sup>[12](https://doi.org/10.48550/arxiv.1901.08933)</sup>

## 变体

**无监督与自监督辅助任务。** UNREAL的像素控制训练独立的策略，这些策略最大化地改变输入图像上 \( n \times n \) 非重叠网格中每个单元的像素，通过n步[Q学习](https://www.edgepedia.org/zh/q-learning)从回放数据中以离策略方式优化，同时以在策略方式最小化A3C损失；奖励预测和价值函数回放补全了这一集合。<sup>[5](https://doi.org/10.48550/arxiv.1611.05397)</sup> 在监督学习中，自编码器和语言建模目标等自监督辅助任务发挥同样的作用。<sup>[8](https://ar5iv.labs.arxiv.org/html/1706.05098)</sup>

**对抗辅助任务。** 对抗辅助损失利用梯度反转层寻求最大化而非最小化域预测任务的训练误差，迫使产生域不变表示；这一设置在域适应中取得了成功。<sup>[8](https://ar5iv.labs.arxiv.org/html/1706.05098)</sup>

**基于梯度的组合。** 梯度相似度门控仅在其梯度与主梯度具有非负余弦相似度时最小化辅助损失，否则忽略它。<sup>[4](https://arxiv.org/html/1812.02224v2)</sup> 一种分解方法（ATTITTUD）根据期望主损失的泰勒展开，将辅助梯度拆分为对主任务有帮助、有干扰或无影响的成分，并将消除冲突梯度成分的PCGrad作为特例实例化。<sup>[6](https://proceedings.neurips.cc/paper_files/paper/2023/file/60f9118a849e8e9a0c67e2a36ad80ebf-Paper-Conference.pdf)</sup><sup> • </sup><sup>[13](https://ar5iv.labs.arxiv.org/html/2108.11346)</sup>

**自动发现。** 一种用于强化学习中辅助任务发现的生成-测试方法持续生成新任务，仅保留高效用的任务，效用由任务所诱导的特征对主任务的有用程度来衡量；它优于随机任务和无辅助基线。<sup>[14](https://arxiv.org/html/2210.14361)</sup>

## 应用

最清晰的定量结果来自深度强化学习。UNREAL在[迷宫](https://www.edgepedia.org/zh/labyrinth)（Labyrinth）上平均达到专家人类归一化分数的87%，而原始A3C为54%，并且平均学习速度快10倍，达到A3C最终性能所需数据不到10%。<sup>[5](https://doi.org/10.48550/arxiv.1611.05397)</sup> 在57款雅达利（Atari）游戏上，它达到880%的均值和250%的中位数人类归一化性能，超越了A3C和优先对决DQN（Prioritized Dueling DQN）。<sup>[5](https://doi.org/10.48550/arxiv.1611.05397)</sup>

在监督设置中，增益是有条件的。在DomainNet任务对上，30种辅助-目标组合中有23种在等权条件下导致负迁移，而ForkMerge在全部30种中都避免了负迁移。<sup>[6](https://proceedings.neurips.cc/paper_files/paper/2023/file/60f9118a849e8e9a0c67e2a36ad80ebf-Paper-Conference.pdf)</sup> 已发表的比较尚未确定辅助学习在ImageNet或MuJoCo上的基准记录。

## 局限与替代方法

**负迁移。** 辅助任务有时产生显著增益，有时带来边际改进或直接损害。<sup>[7](https://arxiv.org/pdf/2204.00565v1.pdf)</sup> ForkMerge区分弱负迁移和强负迁移：前者指在给定权重 \( \lambda \) 下迁移增益 \( \mathrm{TG}(\lambda, A) < 0 \)，后者指对 \( \lambda \) 取最大值后仍为负。<sup>[6](https://proceedings.neurips.cc/paper_files/paper/2023/file/60f9118a849e8e9a0c67e2a36ad80ebf-Paper-Conference.pdf)</sup> 选择不当或整合不当的辅助任务可能稀释学习信号、加剧过拟合或降低主任务性能。<sup>[15](https://proceedings.neurips.cc/paper_files/paper/2025/file/61c2975281d60d3b1ce4cefc157d99df-Paper-Conference.pdf)</sup>

**梯度冲突是弱信号。** 任务梯度 \( g_i \) 和 \( g_j \) 之间的梯度余弦相似度 \( \cos \phi_{ij} \) 在 \( \cos \phi_{ij} < 0 \) 时将梯度定义为冲突，但经验上负迁移与梯度冲突并不强相关：当任务梯度高度一致时负迁移可能更严重，而冲突梯度可能起到正则化作用。<sup>[6](https://proceedings.neurips.cc/paper_files/paper/2023/file/60f9118a849e8e9a0c67e2a36ad80ebf-Paper-Conference.pdf)</sup> 余弦相似度门控仅保证不发散，而不保证改进；它可以防止最坏情况的负迁移，但不保证正迁移。<sup>[4](https://arxiv.org/html/1812.02224v2)</sup> MAXL的诊断对同一尺度的解读不同：余弦相似度为-1意味着辅助标签与主任务相悖，0意味着无影响，1意味着辅助任务学到了相同特征而不提供有用信息。<sup>[16](https://proceedings.neurips.cc/paper/2019/file/92262bf907af914b95a0fc33c3f33bf6-Paper.pdf)</sup> 将梯度分解为有帮助、有干扰和中性的成分提供了更细粒度的检测器。<sup>[13](https://ar5iv.labs.arxiv.org/html/2108.11346)</sup>

**与邻近方法的关系。** 辅助学习被框定为迁移学习的一种实例，<sup>[11](https://arxiv.org/pdf/2205.14082)</sup> 与多任务学习的主要区别在于辅助目标本身并不受关注。<sup>[2](https://ar5iv.labs.arxiv.org/html/1805.06334)</sup>

## References

1. [An Analytical Theory of Auxiliary Learning](https://arxiv.org/abs/2609.29774)
2. [Auxiliary Tasks in Multi-task Learning](https://ar5iv.labs.arxiv.org/html/1805.06334)
3. [Joint Data-Task Generation for Auxiliary Learning](https://proceedings.neurips.cc/paper_files/paper/2023/file/2a91fb5a4c03e0b6d889e1c52f775480-Paper-Conference.pdf)
4. [Adapting Auxiliary Losses Using Gradient Similarity](https://arxiv.org/html/1812.02224v2)
5. [Jaderberg, Max and colleagues (2016). Reinforcement Learning with Unsupervised Auxiliary Tasks. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1611.05397)
6. [ForkMerge: Mitigating Negative Transfer in Auxiliary-Task Learning](https://proceedings.neurips.cc/paper_files/paper/2023/file/60f9118a849e8e9a0c67e2a36ad80ebf-Paper-Conference.pdf)
7. [What makes useful auxiliary tasks in reinforcement learning: investigating the effect of the target policy](https://arxiv.org/pdf/2204.00565v1.pdf)
8. [An Overview of Multi-Task Learning in Deep Neural Networks](https://ar5iv.labs.arxiv.org/html/1706.05098)
9. [Understanding and Improving Information Transfer in Multi-Task Learning](https://ar5iv.labs.arxiv.org/html/2005.00944)
10. [Auxiliary Learning by Implicit Differentiation (AuxiLearn)](https://ar5iv.labs.arxiv.org/html/2007.02693v3)
11. [AANG (Automating Auxiliary LearniNG) / An Analytical Theory of Auxiliary Learning (predecessor)](https://arxiv.org/pdf/2205.14082)
12. [Liu, Shikun, Davison, Andrew J., Johns, Edward (2019). Self-Supervised Generalisation with Meta Auxiliary Learning. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1901.08933)
13. [Auxiliary Task Update Decomposition: The Good, The Bad and The Neutral](https://ar5iv.labs.arxiv.org/html/2108.11346)
14. [Auxiliary task discovery through generate-and-test](https://arxiv.org/html/2210.14361)
15. [Automatic Auxiliary Task Selection and Adaptive Weighting Boost Molecular Property Prediction (AUTAUT)](https://proceedings.neurips.cc/paper_files/paper/2025/file/61c2975281d60d3b1ce4cefc157d99df-Paper-Conference.pdf)
16. [Self-Supervised Generalisation with Meta Auxiliary Learning (MAXL)](https://proceedings.neurips.cc/paper/2019/file/92262bf907af914b95a0fc33c3f33bf6-Paper.pdf)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Machine learning and neural computation › Machine learning methods › Ensemble, boosting, and transfer methods › Transfer learning and domain adaptation

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/auxiliary-learning

English original: https://www.edgepedia.org/auxiliary-learning
