提出词法不变性新理论,揭示多集合与图的最优不变函数形式。
On Lexical Invariance on Multisets and Graphs
- 基于注入变换,推导出多集合与图的词法不变函数必要形式。
- 多集合情形下仅需输入唯一元素的频次分布,如{1,1,2}。
- 图结构中只需邻接矩阵与节点特征差异矩阵,适合图神经网络设计。
本文研究一种新问题——词法不变性,以多重集和图作为载体。传统NLP中,词法不变性指句子语义不随具体词汇表达变化。本文拓展至更复杂场景:函数输出对输入词法空间的任意单射变换保持不变。例如,多重集{1,2,3,2}等价于{a,b,c,b},只要存在单射映射。本文证明了最表达力的词法不变(且排列不变)函数在多重集上的必要形式是仅依赖原多重集中唯一元素频次的多重集;如{a,b,c,b}对应的函数仅作用于{1,1,2}(表示元素a、c、b各出现1、1、2次)。对于图结构,证明最表达力的词法不变且排列不变函数必须仅依赖邻接矩阵与差分矩阵((i,j)元素为1当且仅当节点i与j特征相同)。在TU数据集上进行了合成实验验证定理。
原文摘要 · Abstract (English)
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.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。