How Instruction-Tuning Imparts Length Control: A Cross-Lingual Mechanistic Analysis

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Rocchetti, Elisabetta, Ferrara, Alfio
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866918134197256192
author Rocchetti, Elisabetta
Ferrara, Alfio
author_facet Rocchetti, Elisabetta
Ferrara, Alfio
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2509_02075
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle How Instruction-Tuning Imparts Length Control: A Cross-Lingual Mechanistic Analysis
Rocchetti, Elisabetta
Ferrara, Alfio
Computation and Language
Artificial Intelligence
I.2.7
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.
title How Instruction-Tuning Imparts Length Control: A Cross-Lingual Mechanistic Analysis
topic Computation and Language
Artificial Intelligence
I.2.7
url https://arxiv.org/abs/2509.02075