Instruction tuning has become an essential process for optimizing the performance of large language models (LLMs). However, current text-to-text instruction tuning methods, referred to as TextTuning, exhibit significant limitations in terms of generalization, robustness, and controllability, primarily due to the absence of explicit task structures. In this paper, we introduce JsonTuning, a novel structure-to-structure approach for instruction tuning. By utilizing the versatile and structured format of JSON to represent tasks, JsonTuning enhances generalization by enabling the model to comprehend essential task elements and their interrelations, improves robustness by reducing ambiguity, and increases controllability by providing explicit control over the output. We conduct a comprehensive comparative analysis between JsonTuning and TextTuning using various language models and evaluation benchmarks. Our experimental results demonstrate that JsonTuning consistently outperforms TextTuning across a range of applications, showing marked improvements in performance, robustness, and controllability. By addressing the inherent limitations of TextTuning, JsonTuning reveals significant potential for developing more effective and reliable LLMs capable of managing diverse scenarios.
翻译:指令微调已成为优化大语言模型性能的关键过程。然而,当前基于文本到文本的指令微调方法(称为TextTuning)在泛化性、鲁棒性和可控性方面存在显著局限,这主要源于其缺乏明确的任务结构。本文提出JsonTuning,一种新颖的结构到结构指令微调方法。通过利用JSON这种通用且结构化的格式来表示任务,JsonTuning能够增强模型的泛化能力——使其理解关键任务元素及其相互关系;通过减少歧义性提升鲁棒性;并通过提供对输出的显式控制来提高可控性。我们使用多种语言模型和评估基准,对JsonTuning与TextTuning进行了全面的对比分析。实验结果表明,在一系列应用中,JsonTuning始终优于TextTuning,在性能、鲁棒性和可控性方面均显示出显著提升。通过解决TextTuning的固有局限,JsonTuning为开发能够应对多样化场景、更高效可靠的大语言模型展现了巨大潜力。