arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2308.07645cs.CL
收藏

引导语言生成:利用对比专家指导与负向提示实现连贯且多样的合成数据生成

Steering Language Generation: Harnessing Contrastive Expert Guidance and Negative Prompting for Coherent and Diverse Synthetic Data Generation

Mathematical Sciences Institute, Australian National University(澳大利亚国立大学数学科学研究所);Research School of Astronomy & Astrophysics, Australian National University(澳大利亚国立大学天文与天体物理研究学院);School of Computing, Australian National University(澳大利亚国立大学计算学院);Department of Astronomy, The Ohio State University(俄亥俄州立大学天文学系)

Charles O'Neill, Yuan-Sen Ting, Ioana Ciuca, Jack Miller, Thang Bui

AI总结:

本文提出推理时方法 STEER,通过对比专家指导和负向提示重塑 logit,在语义保真与多样真实之间动态平衡,提升三类合成数据生成效果。

摘要:

大型语言模型(LLM)在生成具有高质量和高效用的合成数据方面拥有巨大潜力,这类数据在从下游模型训练到实际数据利用的众多应用中都有用武之地。然而,尽管当代模型能力令人印象深刻,它们始终难以同时生成兼具连贯性与多样性的数据。为解决连贯性问题,我们提出对比专家指导,该方法强调经过微调的语言模型与基础语言模型在 logit 分布上的差异,以确保对领域的遵循。为确保多样性,我们利用现有的真实样本和合成样本作为模型的负向提示。我们将这种针对 logit 重塑的双管齐下方法称为 STEER:Semantic Text Enhancement via Embedding Repositioning(通过嵌入重定位进行语义文本增强)。STEER 在推理阶段运行,并系统性地引导 LLM 在遵循数据分布(确保语义保真度)与偏离先前合成示例或现有真实数据集(确保多样性和真实性)之间取得平衡。这种精细的平衡是通过在潜在空间中动态地靠近或远离选定表示来实现的。在三个不同任务上,STEER 相较以往的合成数据生成技术表现出更优性能,并在数据多样性与连贯性之间展现出更好的平衡,这三个任务分别是假设生成、有毒与无毒评论生成,以及常识推理任务生成。我们展示了 STEER 如何通过其超参数对多样性—连贯性权衡进行精细控制,凸显了其多功能性。

英文摘要:

Large Language Models (LLMs) hold immense potential to generate synthetic data of high quality and utility, which has numerous applications from downstream model training to practical data utilisation. However, contemporary models, despite their impressive capacities, consistently struggle to produce both coherent and diverse data. To address the coherency issue, we introduce contrastive expert guidance, where the difference between the logit distributions of fine-tuned and base language models is emphasised to ensure domain adherence. In order to ensure diversity, we utilise existing real and synthetic examples as negative prompts to the model. We deem this dual-pronged approach to logit reshaping as STEER: Semantic Text Enhancement via Embedding Repositioning. STEER operates at inference-time and systematically guides the LLMs to strike a balance between adherence to the data distribution (ensuring semantic fidelity) and deviation from prior synthetic examples or existing real datasets (ensuring diversity and authenticity). This delicate balancing act is achieved by dynamically moving towards or away from chosen representations in the latent space. STEER demonstrates improved performance over previous synthetic data generation techniques, exhibiting better balance between data diversity and coherency across three distinct tasks: hypothesis generation, toxic and non-toxic comment generation, and commonsense reasoning task generation. We demonstrate how STEER allows for fine-tuned control over the diversity-coherency trade-off via its hyperparameters, highlighting its versatility.

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

↑