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

操纵基于Transformer的模型:可控性、可引导性与鲁棒干预

Manipulating Transformer-Based Models: Controllability, Steerability, and Robust Interventions

Lightcap;Department of Future(未来系);Turkish Aeronautical Association(土耳其航空航天协会)

Faruk Alpay, Taylan Alpay

AI总结:

该研究针对基于Transformer的语言模型细粒度控制难题,提出涵盖提示、激活、权重三层干预的统一框架,理论与实验验证其可控编辑效果,为可控鲁棒语言模型设计奠基。

摘要:

基于Transformer的语言模型在自然语言处理任务中表现出色,但细粒度控制仍具挑战性。本文探索了通过在提示、激活值、权重三个层面进行原则性干预来操纵Transformer模型的方法。我们将可控文本生成形式化为一个优化问题,可通过提示工程、参数高效微调、模型编辑和强化学习解决。我们提出了一个涵盖提示层引导、激活干预和权重空间编辑的统一框架。我们分析了鲁棒性与安全影响,包括对抗性攻击和对齐缓解措施。理论上,我们证明最小化的权重更新可实现目标行为改变,且副作用有限。实验上,我们在情感控制和事实编辑任务中取得了超过90%的成功率,同时保留了基础性能,不过存在泛化性与特异性的权衡。我们讨论了伦理层面的双重用途风险以及严格评估的必要性。本研究为设计可控且鲁棒的语言模型奠定了基础。

英文摘要:

Transformer-based language models excel in NLP tasks, but fine-grained control remains challenging. This paper explores methods for manipulating transformer models through principled interventions at three levels: prompts, activations, and weights. We formalize controllable text generation as an optimization problem addressable via prompt engineering, parameter-efficient fine-tuning, model editing, and reinforcement learning. We introduce a unified framework encompassing prompt-level steering, activation interventions, and weight-space edits. We analyze robustness and safety implications, including adversarial attacks and alignment mitigations. Theoretically, we show minimal weight updates can achieve targeted behavior changes with limited side-effects. Empirically, we demonstrate >90% success in sentiment control and factual edits while preserving base performance, though generalization-specificity trade-offs exist. We discuss ethical dual-use risks and the need for rigorous evaluation. This work lays groundwork for designing controllable and robust language models.

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

↑