计算机科学 > 计算与语言
[提交于 2025年9月2日]
标题:How Instruction-Tuning Imparts Length Control: A Cross-Lingual Mechanistic Analysis
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Adhering to explicit length constraints, such as generating text with a precise word count, remains a significant challenge for Large Language Models (LLMs). This study aims at investigating the differences between foundation models and their instruction-tuned counterparts, on length-controlled text generation in English and Italian. We analyze both performance and internal component contributions using Cumulative Weighted Attribution, a metric derived from Direct Logit Attribution. Our findings reveal that instruction-tuning substantially improves length control, primarily by specializing components in deeper model layers. Specifically, attention heads in later layers of IT models show increasingly positive contributions, particularly in English. In Italian, while attention contributions are more attenuated, final-layer MLPs exhibit a stronger positive role, suggesting a compensatory mechanism. These results indicate that instruction-tuning reconfigures later layers for task adherence, with component-level strategies potentially adapting to linguistic context.
提交历史
来自:Elisabetta Rocchetti[v1] 2025年9月2日 星期二 08:26:18 UTC