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

受控多样性:长度优化的自然语言生成

Controlled Diversity: Length-optimized Natural Language Generation

Faculty of Informatics and Mathematics, OTH Regensburg(雷根斯堡应用技术大学信息与数学学院)

Diana Marie Schenke, Timo Baumann

AI总结:

本文提出通过数据扩充和微调技术训练大语言模型遵循严格长度要求,实验表明该方法有效提升长度对齐度,并指出使用模型自身响应数据可避免质量下降。

摘要:

大语言模型(LLM)通常无法根据严格的长度要求调整其输出的长度,而这种能力将提升它们在需要遵循多样化用户和系统要求的应用中的实用性。我们提出了一种通过扩充现有数据并应用现有微调技术来训练LLM获得这种能力的方法,并根据训练后模型对长度要求的遵循程度以及相对于基线模型的整体响应质量对这些技术进行了比较。我们的结果表明,这些技术可以成功应用于训练LLM以遵循长度要求,训练后的模型生成的文本能更好地与长度要求对齐。我们的结果还表明,当使用非基线模型生成的数据进行训练时,我们的方法可能会改变响应质量。这在某些场景下允许同时对齐另一个训练目标,但在其他情况下则不可取。在包含模型自身响应的数据集上进行训练可以消除这一问题。

英文摘要:

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.

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

↑