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

语言模型理解提示语的歧义性:通过生成探索句法不确定性

The Language Model Understood the Prompt was Ambiguous: Probing Syntactic Uncertainty Through Generation

Universitat Pompeu Fabra(庞培法布拉大学);New York University(纽约大学)

Laura Aina, Tal Linzen

摘要:

当一个句子的开头与多个句法分析兼容时,就会出现暂时的句法歧义。我们检查在何种程度上神经语言模型(LM)表现出不确定性,在这种分析时,处理暂时模糊的输入,以及如何通过消除歧义的线索调制的不确定性。我们探测LM的期望,从它产生:我们使用随机解码来获得一组句子完成,并估计LM分配给每个解释的概率的基础上,跨完成的分析分布。与基于评分的有针对性的句法评估方法不同,这种技术可以探索研究人员事先没有假设的完成。我们应用这种方法来研究两个LM(GPT2和LSTM)对三种类型的临时歧义的行为,使用来自人类句子处理实验的材料。我们发现,LM可以同时跟踪多个分析,不同的结构和背景下的不确定性程度不同。作为对消除歧义线索的回应,LMs通常会选择正确的解释,但偶尔的错误会指向潜在的改进领域。

英文摘要:

Temporary syntactic ambiguities arise when the beginning of a sentence is compatible with multiple syntactic analyses. We inspect to which extent neural language models (LMs) exhibit uncertainty over such analyses when processing temporarily ambiguous inputs, and how that uncertainty is modulated by disambiguating cues. We probe the LM's expectations by generating from it: we use stochastic decoding to derive a set of sentence completions, and estimate the probability that the LM assigns to each interpretation based on the distribution of parses across completions. Unlike scoring-based methods for targeted syntactic evaluation, this technique makes it possible to explore completions that are not hypothesized in advance by the researcher. We apply this method to study the behavior of two LMs (GPT2 and an LSTM) on three types of temporary ambiguity, using materials from human sentence processing experiments. We find that LMs can track multiple analyses simultaneously; the degree of uncertainty varies across constructions and contexts. As a response to disambiguating cues, the LMs often select the correct interpretation, but occasional errors point to potential areas of improvement.

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

↑