Explainable natural language processing with matrix product states. (1st May 2022)
- Record Type:
- Journal Article
- Title:
- Explainable natural language processing with matrix product states. (1st May 2022)
- Main Title:
- Explainable natural language processing with matrix product states
- Authors:
- Tangpanitanon, Jirawat
Mangkang, Chanatip
Bhadola, Pradeep
Minato, Yuichiro
Angelakis, Dimitris G
Chotibut, Thiparat - Abstract:
- Abstract: 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. 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 fromAbstract: 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. 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. … (more)
- Is Part Of:
- New journal of physics. Volume 24:Number 5(2022)
- Journal:
- New journal of physics
- Issue:
- Volume 24:Number 5(2022)
- Issue Display:
- Volume 24, Issue 5 (2022)
- Year:
- 2022
- Volume:
- 24
- Issue:
- 5
- Issue Sort Value:
- 2022-0024-0005-0000
- Page Start:
- Page End:
- Publication Date:
- 2022-05-01
- Subjects:
- matrix product state -- entanglement entropy -- entanglement spectrum -- quantum machine learning -- natural language processing -- recurrent neural networks
Physics -- Periodicals
Physics
Periodicals
530.05 - Journal URLs:
- http://iopscience.iop.org/1367-2630 ↗
http://njp.org/index.html ↗
http://ioppublishing.org/ ↗ - DOI:
- 10.1088/1367-2630/ac6232 ↗
- Languages:
- English
- ISSNs:
- 1367-2630
- Deposit Type:
- Legaldeposit
- View Content:
- Available online (eLD content is only available in our Reading Rooms) ↗
- Physical Locations:
- British Library DSC - BLDSS-3PM
British Library HMNTS - ELD Digital store - Ingest File:
- 21954.xml