arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.20333cs.AI
收藏

SoftSkill: 用于上下文适应的行为压缩

SoftSkill: Behavioral Compression for Contextual Adaptation

The University of Hong Kong(香港大学);Huawei Research(华为研究院);City University of Hong Kong(香港城市大学);Huazhong University of Science and Technology(华中科技大学)

Xijia Tao, Yihua Teng, Xinyu Fu, Ziru Liu, Kecheng Chen, Yuzhi Zhao, Suiyun Zhang, Rui Liu, Lingpeng Kong

AI总结:

提出SoftSkill方法,通过可训练的软技能前缀压缩自然语言技能为紧凑连续向量,在冻结基模型上提升问答和数学任务性能,减少标记数量。

摘要:

智能体技能通常以自然语言Markdown文件形式部署,编码回答策略、证据使用习惯和任务流程。这些文件可读且可移植,但间接消耗:对于每个任务实例,冻结的语言模型必须将长文本制品转换为生成时行为。本文探讨自然语言技能是否可以初始化一个紧凑的连续上下文对象,通过可训练的软增量进行优化,同时基模型保持冻结。我们提出SoftSkill,一种冻结骨干方法,通过下一词预测调整此类软技能,并在推理时将其部署为潜在行为先验。在我们的主要单轮设置中,在Qwen3.5-4B上使用长度为32的SoftSkill前缀,相比无技能提示在SearchQA上提升8.3分,LiveMath上提升42.1分,DocVQA上提升1.3分。相对于SkillOpt,SoftSkill在SearchQA上准确率提升5.2分,LiveMath上提升12.5分,同时用少量虚拟标记替换数百到数千个Markdown技能标记。我们进一步研究了作为更难边界情况的智能体执行,其中稀疏轨迹模仿提供了有用信号,但尚未稳健地压缩长程过程行为。更广泛地说,结果表明某些任务技能更适合被视为紧凑的潜在控制,而不是在推理时重新解释的额外Markdown,用于控制冻结模型如何进入任务。

英文摘要:

Natural-language skills let agents reuse task knowledge, yet deploying a long Markdown document makes the model interpret that knowledge anew on every call. We ask whether the behavior induced by a skill can be carried by a compact, trainable context. SoftSkill initializes virtual token embeddings from a skill document and optimizes a soft skill with next-token prediction while keeping the language model frozen. The resulting conditioning sequence can occupy the skill section or another supported prompt location. On Qwen3.5-4B, a 32-token soft skill improves over no skill by 7.6, 42.1, and 1.3 points on SearchQA, LiveMath, and DocVQA. It also exceeds the optimized textual skill on SearchQA and LiveMath by 4.5 and 12.5 points, respectively, while replacing skill documents of hundreds to thousands of tokens. The same approach improves multi-step agent execution: on Qwen3.6-35B-A3B, OfficeQA and ALFWorld rise by 8.2 and 14.1 points over no skill; on Qwen3.5-4B with aligned action decoding, ALFWorld success rises from 44/134 with the untrained initialization to 91/134 after training. These findings show that a skill document can serve as the starting point for a continuous control that improves both answers and actions without updating the backbone.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑