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

非自然语言处理:语言模型如何处理机器生成的提示词?

Unnatural language processing: How do language models handle machine-generated prompts?

Universitat Pompeu Fabra (UPF)(庞培法布拉大学);ICREA(加泰罗尼亚研究与高等研究院)

Corentin Kervadec, Francesca Franzon, Marco Baroni

AI总结:

本研究探讨语言模型如何处理机器生成的非自然语言提示词,发现即使输出相似,机器与人类提示词在网络处理路径、困惑度、注意力分布及单元激活上均表现不同,仅自然语言提示词能激活真正的语言回路。

摘要:

语言模型提示词优化研究表明,语义和语法结构良好的手工提示词,其表现往往不如自动生成的、无明显含义或句法结构的词元序列,包括来自模型嵌入空间的向量序列。我们使用机器生成的提示词来探究模型如何响应非自然语言表达构成的输入。我们研究了不同规模模型在多个语义任务中,对连续和离散机器生成提示词的响应行为,并将其与对人类生成的自然语言提示词的响应行为进行比较。即使产生相似的输出,机器生成和人类生成的提示词也会通过网络处理路径触发不同的响应模式,包括不同的困惑度、不同的注意力和输出熵分布,以及不同的单元激活配置。我们对不同提示词类型激活的单元性质提供了初步见解,表明只有自然语言提示词能招募真正的语言回路。

英文摘要:

Language model prompt optimization research has shown that semantically and grammatically well-formed manually crafted prompts are routinely outperformed by automatically generated token sequences with no apparent meaning or syntactic structure, including sequences of vectors from a model's embedding space. We use machine-generated prompts to probe how models respond to input that is not composed of natural language expressions. We study the behavior of models of different sizes in multiple semantic tasks in response to both continuous and discrete machine-generated prompts, and compare it to the behavior in response to human-generated natural-language prompts. Even when producing a similar output, machine-generated and human prompts trigger different response patterns through the network processing pathways, including different perplexities, different attention and output entropy distributions, and different unit activation profiles. We provide preliminary insight into the nature of the units activated by different prompt types, suggesting that only natural language prompts recruit a genuinely linguistic circuit.

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

↑