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

关于多重集和图上的词汇不变性

On Lexical Invariance on Multisets and Graphs

Institute for Artificial Intelligence(人工智能研究所);Peking University(北京大学)

Muhan Zhang

AI总结:

本文研究了多重集和图上的词汇不变性问题,证明了最具表达能力的词汇不变函数在多重集上仅以唯一元素计数为输入,在图上仅以邻接矩阵和差异矩阵为输入,并在TU datasets上验证了定理。

摘要:

在本文中,我们使用多重集和图作为媒介,研究了一个称为词汇不变性的新问题。传统上在NLP领域,词汇不变性表示无论输入的具体词汇或基于单词的表示如何,句子的语义含义应保持不变。例如,“The movie was extremely entertaining”与“The film was very enjoyable”具有相同的含义。在本文中,我们研究了一个更具挑战性的设定,即函数的输出对应用于输入词汇空间的任何单射变换保持不变。例如,如果我们指定一个将1映射到a、2映射到b、3映射到c的单射变换,那么多重集{1,2,3,2}等价于多重集{a,b,c,b}。我们研究了多重集和图上最具表达能力的词汇不变(和排列不变)函数的充分必要条件,并证明对于多重集,该函数必须具有一种仅以原始多重集中唯一元素的计数多重集作为输入的形式。例如,{a,b,c,b}上最具表达能力的词汇不变函数必须具有一种仅对{1,1,2}进行操作的形式(意味着有1、1、2个唯一元素分别对应于a、c、b)。对于图,我们证明最具表达能力的词汇不变和排列不变函数必须具有一种仅以邻接矩阵和差异矩阵作为输入的形式,其中差异矩阵的第个元素在节点i和节点j具有相同特征时为1,否则为0。我们在TU datasets上进行了合成实验以验证我们的定理。

英文摘要:

In this draft, we study a novel problem, called lexical invariance, using the medium of multisets and graphs. Traditionally in the NLP domain, lexical invariance indicates that the semantic meaning of a sentence should remain unchanged regardless of the specific lexical or word-based representation of the input. For example, ``The movie was extremely entertaining'' would have the same meaning as ``The film was very enjoyable''. In this paper, we study a more challenging setting, where the output of a function is invariant to any injective transformation applied to the input lexical space. For example, multiset {1,2,3,2} is equivalent to multiset {a,b,c,b} if we specify an injective transformation that maps 1 to a, 2 to b and 3 to c. We study the sufficient and necessary conditions for a most expressive lexical invariant (and permutation invariant) function on multisets and graphs, and proves that for multisets, the function must have a form that only takes the multiset of counts of the unique elements in the original multiset as input. For example, a most expressive lexical invariant function on {a,b,c,b} must have a form that only operates on {1,1,2} (meaning that there are 1, 1, 2 unique elements corresponding to a,c,b). For graphs, we prove that a most expressive lexical invariant and permutation invariant function must have a form that only takes the adjacency matrix and a difference matrix as input, where the (i,j)th element of the difference matrix is 1 if node i and node j have the same feature and 0 otherwise. We perform synthetic experiments on TU datasets to verify our theorems.

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

↑