arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2611.09454cs.LGcs.AIcs.CL
收藏

从LoRA到语言:从适配器中恢复技能文档

From LoRA to Language: Recovering Skill Documents from Adapters

QpiAI

Saranya Dintakurthy Swadha, Pavan C Shekar, Arpit Jain, Aswanth Krishnan

AI总结:

本研究提出从LoRA适配器及冻结基础模型恢复技能文档的任务,提出Executing Writer等方法,在ALFWorld等基准上取得显著效果,可提升Llama-3.1-8B性能。

摘要:

智能体技能是指导语言模型处理一类任务的简短文档。为节省上下文,这些文档正被越来越多地编译为低秩适配器(LoRA),其保留了行为但丢失了文本:适配器难以阅读、编辑、审计或迁移到其他模型。我们提出问题:能否从适配器及其冻结的基础模型中恢复出技能文档?我们通过恢复文档包含的原始关键指令比例及其解决的任务来评估恢复效果。仅读取权重时,我们尝试的方法恢复效果很差;从权重到文本的学习映射仅传递了约1比特的文档信息。运行适配器的效果要好得多:在适配模型顶部训练的小型生成模型Executing Writer,能恢复出保留技能中39%-44%的关键指令,而使用其他技能适配器仅能恢复1.3%-1.5%;在适配了41个外部技能的适配器上,其恢复的文档能恢复原始任务增益的85%-91%。这些最佳结果来自训练时存储了文档的适配器;仅基于行为训练的适配器对训练生成模型来说要困难得多(仅能恢复1%-2%的指令)。对于这类适配器,我们测试了一种智能体,它运行基础模型和适配模型,并从两者的差异处生成技能文档。在ALFWorld上,其生成的技能恢复了LoRA增益的58%-71%,且可迁移到无法加载该LoRA的模型,将Llama-3.1-8B的性能从5%提升至55%。这类技能是否来自适配器取决于适配器学到的内容:当无法推断其行为时,适配器是来源;当可以推断时,不使用适配器的奖励循环也能达到相同效果。

英文摘要:

Agent skills are short documents that teach a language model how to handle a class of tasks. To save context, these documents are increasingly compiled into low-rank adapters (LoRA), which keep the behaviour but lose the text: an adapter is hard to read, edit, audit or move to another model. We ask whether the skill document can be written back from the adapter and its frozen base model, and we score each recovered document by the share of the original's key instructions it states and by the tasks it solves. Reading the weights alone recovered little with the methods we tried; a learned map from weights to text passed on about one bit of the document. Running the adapter worked much better. The Executing Writer, a small writer trained on top of the adapted model, recovers 39-44% of the key instructions of held-out skills, against 1.3-1.5% with another skill's adapter, and on adapters fitted to 41 external skills its documents restore 85-91% of the original's task gain. These strongest results are on adapters whose training stored the document; adapters trained on behaviour alone are much harder for trained writers (1-2% of instructions). For these adapters we test an agent that runs the base and adapted models and writes a skill from where they differ. On ALFWorld its skills recover 58-71% of a LoRA's gain and carry over to models that cannot load the LoRA, lifting Llama-3.1-8B from 5% to 55%. Whether such a skill comes from the adapter depends on what the adapter learned: when its behaviour cannot be guessed, the adapter is the source; when it can, a reward loop without the adapter does as well.

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

↑