Controlled Diversity: Length-optimized Natural Language Generation

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Schenke, Diana Marie, Baumann, Timo
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915174022119424
author Schenke, Diana Marie
Baumann, Timo
author_facet Schenke, Diana Marie
Baumann, Timo
contents LLMs are not generally able to adjust the length of their outputs based on strict length requirements, a capability that would improve their usefulness in applications that require adherence to diverse user and system requirements. We present an approach to train LLMs to acquire this capability by augmenting existing data and applying existing fine-tuning techniques, which we compare based on the trained models' adherence to the length requirement and overall response quality relative to the baseline model. Our results demonstrate that these techniques can be successfully applied to train LLMs to adhere to length requirements, with the trained models generating texts which better align to the length requirements. Our results indicate that our method may change the response quality when using training data that was not generated by the baseline model. This allows simultaneous alignment to another training objective in certain scenarios, but is undesirable otherwise. Training on a dataset containing the model's own responses eliminates this issue.
format Preprint
id arxiv_https___arxiv_org_abs_2502_19347
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Controlled Diversity: Length-optimized Natural Language Generation
Schenke, Diana Marie
Baumann, Timo
Computation and Language
Artificial Intelligence
LLMs are not generally able to adjust the length of their outputs based on strict length requirements, a capability that would improve their usefulness in applications that require adherence to diverse user and system requirements. We present an approach to train LLMs to acquire this capability by augmenting existing data and applying existing fine-tuning techniques, which we compare based on the trained models' adherence to the length requirement and overall response quality relative to the baseline model. Our results demonstrate that these techniques can be successfully applied to train LLMs to adhere to length requirements, with the trained models generating texts which better align to the length requirements. Our results indicate that our method may change the response quality when using training data that was not generated by the baseline model. This allows simultaneous alignment to another training objective in certain scenarios, but is undesirable otherwise. Training on a dataset containing the model's own responses eliminates this issue.
title Controlled Diversity: Length-optimized Natural Language Generation
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2502.19347