[Paper Review] CNM: An Interpretable Complex-valued Network for Matching
This paper proposes CNM, a complex-valued neural network for semantic matching that models language using quantum-theoretic principles, representing words as complex vectors with amplitude (lexical meaning) and phase (higher-level semantics like polarity or ambiguity). The model achieves performance comparable to strong CNN and RNN baselines on QA tasks while enabling transparent, physically interpretable representations through its quantum-inspired design.
This paper seeks to model human language by the mathematical framework of quantum physics. With the well-designed mathematical formulations in quantum physics, this framework unifies different linguistic units in a single complex-valued vector space, e.g. words as particles in quantum states and sentences as mixed systems. A complex-valued network is built to implement this framework for semantic matching. With well-constrained complex-valued components, the network admits interpretations to explicit physical meanings. The proposed complex-valued network for matching (CNM) achieves comparable performances to strong CNN and RNN baselines on two benchmarking question answering (QA) datasets.
Motivation & Objective
- To investigate whether human language can be modeled using the mathematical framework of quantum physics.
- To explore the benefits of complex-valued representations in natural language processing for improved interpretability and performance.
- To develop a transparent neural network architecture grounded in quantum probability and Hilbert space formalism.
- To enable post-hoc interpretability by linking network components to physical meanings such as superposition, entanglement, and measurement.
Proposed method
- Linguistic units (words, sentences) are modeled as quantum states in a Semantic Hilbert Space (SHS), using complex-valued vectors with amplitude and phase components.
- Word embeddings are represented as complex numbers: z = r·e^{iθ}, where r is amplitude (lexical meaning) and θ is phase (higher-level semantics like sentiment or ambiguity).
- Addition of word vectors is defined via a nonlinear, phase-aware operation that combines amplitudes and phases, preserving quantum-like interference effects.
- A local matching scheme is designed to capture n-gram level interactions between sentence pairs in the complex-valued space.
- The network uses trainable measurements in the Semantic Hilbert Space, which are interpreted via nearest-neighbor words to provide post-hoc explanations.
- The model is trained end-to-end for question answering, with components constrained to preserve physical and mathematical coherence from quantum theory.
Experimental results
Research questions
- RQ1RQ1: Is it possible to model human language using the mathematical framework of quantum physics, particularly quantum probability and Hilbert space formalism?
- RQ2RQ2: Can complex-valued representations of natural language improve performance and interpretability in NLP tasks like semantic matching?
- RQ3RQ3: Can the components of a neural network be designed to be transparent and post-hoc interpretable by linking them to physical concepts such as superposition and measurement?
Key findings
- CNM achieves performance on par with strong CNN and RNN baselines on two benchmark question answering datasets, demonstrating competitive effectiveness.
- The ablation study confirms that complex-valued word embeddings outperform their real-valued counterparts, validating the benefit of complex representation in NLP.
- Learned measurements in the Semantic Hilbert Space correspond to interpretable linguistic concepts, such as named entities, verbs of movement, and topics like history or rebellion.
- The phase component of complex embeddings implicitly encodes higher-level semantic features such as polarity, ambiguity, and emotion, enabling post-hoc interpretability.
- The network’s transparent design allows direct physical interpretation of components—e.g., superposition states and measurement outcomes—enhancing model explainability.
- The complex-valued vector addition operation preserves interference effects, enabling richer semantic composition than classical linear addition.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.