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

生成文本中句法模板的检测与度量

Detection and Measurement of Syntactic Templates in Generated Text

Northeastern University(东北大学);Allen Institute for AI(艾伦人工智能研究所);University of Washington(华盛顿大学);The University of Texas at Austin(德克萨斯大学奥斯汀分校)

Chantal Shaib, Yanai Elazar, Junyi Jessy Li, Byron C. Wallace

AI总结:

该研究定义句法模板以分析LLM生成文本的句法重复特征,发现模型生成文本的模板化比例更高且多源自预训练数据,模板可用于区分模型、任务及分析风格记忆。

摘要:

近期关于大语言模型(LLM)生成文本多样性评估的研究多聚焦于词级特征。本文开展句法特征分析,以刻画模型中超出常见n元组的广义重复现象。具体而言,我们定义了句法模板,并发现模型在下游任务中生成模板化文本的比例高于人类参考文本中的比例。研究发现,模型生成文本中76%的模板可在预训练数据中找到(人类撰写文本中该比例仅为35%),且这些模板不会在RLHF(基于人类反馈的强化学习)等微调过程中被覆盖。这种与预训练数据的关联使我们能够分析无法获取预训练数据的模型中的句法模板。我们还发现,作为特征的模板能够区分不同模型、任务和领域,可用于定性评估常见的模型构建方式。最后,我们证明模板可作为分析LLM对训练数据风格记忆的有效工具。

英文摘要:

Recent work on evaluating the diversity of text generated by LLMs has focused on word-level features. Here we offer an analysis of syntactic features to characterize general repetition in models, beyond frequent n-grams. Specifically, we define syntactic templates and show that models tend to produce templated text in downstream tasks at a higher rate than what is found in human-reference texts. We find that most (76%) templates in model-generated text can be found in pre-training data (compared to only 35% of human-authored text), and are not overwritten during fine-tuning processes such as RLHF. This connection to the pre-training data allows us to analyze syntactic templates in models where we do not have the pre-training data. We also find that templates as features are able to differentiate between models, tasks, and domains, and are useful for qualitatively evaluating common model constructions. Finally, we demonstrate the use of templates as a useful tool for analyzing style memorization of training data in LLMs.

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

↑