TAPIOCA: 为什么任务感知剪枝能提升模型对分布外数据的能力
TAPIOCA: Why Task- Aware Pruning Improves OOD model Capability
AI总结:
本文研究了任务感知剪枝在分布外数据上的改进机制,通过实验发现剪枝能提升OOD准确性,其核心贡献是通过几何解释说明任务感知剪枝如何调整模型表示以适应任务需求。
摘要:
近期的研究表明,任务感知层剪枝可以提高模型在特定任务上的性能,如TALE所示。本文探讨了这种改进何时发生以及为何会发生。我们首先证明,在受控的多项式回归任务和大型语言模型中,此类剪枝在分布内(ID)数据上没有好处,但能一致地提高分布外(OOD)准确性。我们进一步通过实验证明,OOD输入会诱导出层间范数和成对距离的分布,这些分布偏离ID分布的相应分布。这导致了任务感知剪枝的几何解释:每个任务诱导出一个任务适应的几何结构,通过ID输入上观察到的表示分布来经验性地表征。OOD输入可以引入任务适应几何的扭曲版本。任务感知剪枝识别出创建或放大这种扭曲的层;通过移除这些层,它将OOD表示的范数和成对距离转向在适应分布上观察到的值。这使OOD输入与模型的任务适应几何重新对齐,并提高性能。我们通过受控分布偏移和残差缩放干预提供了因果证据,并在不同模型规模上展示了一致的行为。
英文摘要:
Recent work [Peer et al., 2022, Naim et al., 2026b] has shown that task-aware layer pruning can improve model performance on particular tasks. We investigate when and why such improvements occur, using small transformers trained from scratch as testbeds on controlled polynomial regression tasks, then confirming our findings on large language models (LLMs). In both cases, such pruning yields no increase in accuracy on in-distribution (ID) data but consistently improves out- of-distribution (OOD) performance and generalizes such gains across multiple distribution shifts. We offer a geometric explanation of this phenomenon. Each task with an ID distribution induces a task-adapted geometry. OOD inputs induce layerwise norm, pairwise-distance and variance structure profiles that can devi- ate from the corresponding ID profiles. Task-aware pruning identifies layers that amplify this distortion; removing these layers shifts OOD profiles toward those of the adapted distribution. We provide causal evidence that this geometric re- alignment improves OOD performance through controlled distribution shifts and residual-scaling interventions. This behavior is consistent across model scales.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。