SimpleStrat:通过分层实现语言模型生成的多样化
SimpleStrat: Diversifying Language Model Generation with Stratification
AI总结:
针对LLM生成多样性不足的问题,提出SimpleStrat方法,利用模型自身将空间分层并在推理时随机采样,并引入CoverageQA数据集评估,显著提升了召回率并降低了KL散度。
摘要:
从大型语言模型(LLMs)生成多样化响应对于规划/搜索和合成数据生成等应用至关重要,在这些应用中,多样性在不同生成中提供了不同的答案。先前的方法依赖于提高温度来增加多样性。然而,与普遍看法相反,我们表明这种方法不仅随着温度升高会产生质量较低的个体生成,而且它还依赖于模型的下一个token概率与答案的真实分布相似。我们提出了SimpleStrat,这是一种替代方法,它使用语言模型本身将空间划分为多个层。在推理时,随机选择一个层,并从该层内抽取样本。为了衡量多样性,我们引入了CoverageQA,这是一个包含多个同等合理答案的欠指定问题的数据集,并通过测量输出分布与有效真实答案上的均匀分布之间的KL散度来评估多样性。由于为专有模型计算每个响应/解决方案的概率是不可行的,我们测量了真实解决方案的召回率。我们的评估表明,与GPT-4o相比,使用SimpleStrat实现了0.05的召回率提升,并且与Llama 3相比,KL散度平均降低了0.36。
英文摘要:
Generating diverse responses from large language models (LLMs) is crucial for applications such as planning/search and synthetic data generation, where diversity provides distinct answers across generations. Prior approaches rely on increasing temperature to increase diversity. However, contrary to popular belief, we show not only does this approach produce lower quality individual generations as temperature increases, but it depends on model's next-token probabilities being similar to the true distribution of answers. We propose SimpleStrat, an alternative approach that uses the language model itself to partition the space into strata. At inference, a random stratum is selected and a sample drawn from within the strata. To measure diversity, we introduce CoverageQA, a dataset of underspecified questions with multiple equally plausible answers, and assess diversity by measuring KL Divergence between the output distribution and uniform distribution over valid ground truth answers. As computing probability per response/solution for proprietary models is infeasible, we measure recall on ground truth solutions. Our evaluation show using SimpleStrat achieves higher recall by 0.05 compared to GPT-4o and 0.36 average reduction in KL Divergence compared to Llama 3.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。