arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2112.08628cond-mat.dis-nncond-mat.stat-mechcs.CLcs.LGquant-ph
收藏

基于矩阵乘积状态的可解释自然语言处理

Explainable Natural Language Processing with Matrix Product States

Quantum Technology Foundation (Thailand)(泰国量子技术基金会);Thailand Center of Excellence in Physics, Ministry of Higher Education, Science, Research and Innovation(高等教育、科学、研究和创新部泰国卓越物理中心);Chulalongkorn University(朱拉隆功大学);Mahidol University(玛希隆大学);Blueqat Inc.(Blueqat公司);Technical University of Crete(克里特理工大学);National University of Singapore(新加坡国立大学)

Jirawat Tangpanitanon, Chanatip Mangkang, Pradeep Bhadola, Yuichiro Minato, Dimitris G. Angelakis, Thiparat Chotibut

摘要:

尽管递归神经网络(RNN)在自然语言处理(NLP)中取得了经验上的成功,但由于本质上复杂的非线性计算,对RNN的理论理解仍然有限。我们系统地分析了RNN在一个无处不在的NLP任务中的行为,即电影评论的情感分析,通过一类称为递归算术电路(RAC)和矩阵乘积状态(MPS)的RNN之间的映射。使用冯-诺依曼纠缠熵(EE)作为信息传播的代理,我们表明,单层RAC具有最大的信息传播能力,所反映的EE的饱和度。扩大的键尺寸超过EE饱和阈值并不增加模型的预测精度,所以可以推断出一个极小模型,最好地估计的数据统计。虽然饱和EE小于面积法则所允许的最大EE,但我们的极小模型在现实情感分析数据集上仍然达到约99%的训练准确率。因此,低EE并不是反对为NLP采用单层RAC的理由。与人们普遍认为长距离信息传播是RNN成功的主要来源相反,我们证明了单层RAC从信息传播和词向量嵌入之间的微妙相互作用中获得了高表达能力。我们的工作揭示了RAC中学习的现象学,更普遍地说,使用多体量子物理学的工具,揭示了RNN对NLP的可解释性。

英文摘要:

Despite empirical successes of recurrent neural networks (RNNs) in natural language processing (NLP), theoretical understanding of RNNs is still limited due to intrinsically complex non-linear computations. We systematically analyze RNNs' behaviors in a ubiquitous NLP task, the sentiment analysis of movie reviews, via the mapping between a class of RNNs called recurrent arithmetic circuits (RACs) and a matrix product state (MPS). Using the von-Neumann entanglement entropy (EE) as a proxy for information propagation, we show that single-layer RACs possess a maximum information propagation capacity, reflected by the saturation of the EE. Enlarging the bond dimension beyond the EE saturation threshold does not increase model prediction accuracies, so a minimal model that best estimates the data statistics can be inferred. Although the saturated EE is smaller than the maximum EE allowed by the area law, our minimal model still achieves ~99% training accuracies in realistic sentiment analysis data sets. Thus, low EE is not a warrant against the adoption of single-layer RACs for NLP. Contrary to a common belief that long-range information propagation is the main source of RNNs' successes, we show that single-layer RACs harness high expressiveness from the subtle interplay between the information propagation and the word vector embeddings. Our work sheds light on the phenomenology of learning in RACs, and more generally on the explainability of RNNs for NLP, using tools from many-body quantum physics.

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

↑