论文

单个 LLM 智能体完成小模型的剪枝与定点权重修复

Scalpel and Brush: Pruning and Targeted Weight Editing of a Small Language Model by a Single LLM Agent

精选理由

用 DeepSeek-V4.1-Flash 当'手术刀',直接改 Qwen2.5-Math-1.5B 的权重:0.0084% 的改动换来 BLEU 大涨,剪掉 15% 神经元几乎不掉分。最诚实的是作者自己承认:普通流程拿到位置信息也能做到,做模型压缩或解释性研究的值得一读。

一篇 arXiv 论文将模型修复与剪枝统一为稀疏权重编辑任务,由基于 DeepSeek-V4.1-Flash 的 DeepSeek Harness 智能体对 Qwen2.5-Math-1.5B-Instruct 执行三类操作:定点权重修复、按结构化方式将 MLP 神经元置零的剪枝,以及带修复的整层移除,每任务限 50 次开发集评估。

正文

在常微分方程任务上,只改动 0.0084% 的权重就使二阶方程测试 BLEU 提升 24-32%,多项式右端方程提升 1.8-2.5 倍;但独立替换检查显示 BLEU 提升来自记号对齐而非解题正确性。剪枝方面,移除 12.5-15% 的 MLP 神经元可让模型缩小 9.4-11.2%,两个隐藏测试集上平均 BLEU 损失不超过 0.01,而按层均分的标准剪枝在所有测试比例下都无法满足该约束。

七分类 GoEmotions 任务上,权重编辑把测试集 macro-F1 从 0.100 提到 0.396-0.451。论文的关键发现是:标准非 LLM 流程一旦获得智能体找到的干预位置和形式,就能复现大部分性能,智能体搜索与非智能体搜索的严格对比仍是开放问题。

原文 · arXiv: DeepSeek

Scalpel and Brush: Pruning and Targeted Weight Editing of a Small Language Model by a Single LLM Agent

It has recently been shown that an LLM can itself edit the weights of a language model, yet it remains unclear which part of such a result is due to the agent and which part is reproduced by a random edit of the same shape, by an instruction in the prompt, or by a standard procedure without an LLM. We unify repair and pruning as sparse weight edits to optimize a metric we specify, using BLEU as an example: three tasks -- targeted weight repair ("brush"), structured MLP neuron pruning ("scalpel", zeroing pruned weights), and layer removal with repair - are assigned to a DeepSeek Harness agent powered by DeepSeek-V4.1-Flash, with up to 50 dev evaluations. We study Qwen2.5-Math-1.5B-Instruct in three independent runs per task, with final evaluation on two hidden splits. On ordinary differential equations, changing at most 0.0084% of weights raised test BLEU by 24-32% on second-order equations and by a factor of 1.8-2.5 on equations with polynomial right-hand sides. An independent substitution check showed that higher BLEU reflects notation alignment rather than improved correctness. Masks that remove 12.5-15% of MLP neurons shrink the model by 9.4-11.2% with mean BLEU loss of at most 0.01 on both hidden splits, whereas standard pruning with equal shares per layer failed the constraint at all tested shares. On seven-class GoEmotions classification, edits raise macro-F1 from 0.100 to 0.396-0.451 on test and from 0.175 to 0.455-0.476 on holdout. A ridge-based classifier written into agent-selected weight rows yields macro-F1 of 0.424 and 0.464. Pruning search with the same evaluation limit removes 15.9% of neurons versus 14-21.4% for agent runs passing the hidden check. Standard procedures without an LLM reproduce much of the performance once given the location and form of intervention found by the agent; a comparison of agentic and non-agentic search remains open.

产业坐标与信源核验

本条情报归属 AITOP「论文」核心栏目,重点聚焦中国 AI 产业与国产大模型生态。在跨区域产业观察坐标中,该动态直接关联「AI 开发者工具链、Coding Agent 与工程化实践」研究主线,反映出当前技术演进与商业落地的最新风向。涉及核心实体与技术议题包括:DeepSeek、Qwen2.5、模型剪枝、权重编辑,读者可通过下方标签进入对应专题页查阅历史脉络与关联对比。

信源核验说明:本文原始信息发布自一手权威信源「arXiv: DeepSeek」(Tier-1 一手发布),具备高确定性参考价值。