Abstract
Short text matching often faces the challenges that there are great word mismatch and expression diversity between the two texts, which would be further aggravated in languages like Chinese where there is no natural space to segment words explicitly. In this paper, we propose a novel lattice based CNN model (LCNs) to utilize multi-granularity information inherent in the word lattice while maintaining strong ability to deal with the introduced noisy information for matching based question answering in Chinese. We conduct extensive experiments on both document based question answering and knowledge based question answering tasks, and experimental results show that the LCNs models can significantly outperform the state-of-the-art matching models and strong baselines by taking advantages of better ability to distill rich but discriminative information from the word lattice input.
Introduction
In English, spaces provide clear word boundaries. In contrast, Chinese text is a continuous string of characters, requiring Chinese Word Segmentation (CWS) as a prerequisite for most NLP tasks. However, CWS tools are imperfect, and a single incorrect segmentation can lead to cascading errors in downstream tasks like Question Answering (QA). Traditional models typically choose between character-level representations (which are robust but lose semantic depth) or word-level representations (which are semantically rich but sensitive to segmentation errors).
The Word Lattice Representation
To overcome the limitations of rigid segmentation, we propose representing sentences as a Word Lattice. A word lattice is a directed acyclic graph where nodes represent characters and edges represent all possible words found in a comprehensive dictionary (e.g., BaiduBaike). This allows the model to consider multiple potential segmentations simultaneously.
By utilizing a lattice, the model avoids committing to a single, potentially incorrect segmentation. As shown in Figure 1, a string can be interpreted as a single long word or multiple shorter ones, allowing the matching task to decide which granularity is most relevant.
Lattice CNN Architecture
The proposed Lattice CNN (LCN) architecture extends standard convolutional neural networks to operate on graph-structured data. The model employs a Siamese architecture to encode both the question and the candidate answer into vectors for comparison.
Key Innovations:
- Lattice Convolutional Layer: Instead of sliding over a flat sequence, the kernel slides over all possible paths in the lattice, capturing multi-granularity information across characters and words.
- Gated Pooling: Lattices naturally introduce "noise" by including words that may not be contextually relevant. The LCN-gated model uses a dynamic gating mechanism to assign weights to different paths, effectively de-noising the input by suppressing irrelevant word combinations.
- Siamese Structure: Two identical LCN towers encode the question and answer, which are then compared via an MLP to produce a final matching score.
Experimental Results
We evaluated LCNs on two major Chinese QA benchmarks from the NLPCC-2016 evaluation task: Document Based Question Answering (DBQA) and Knowledge Based Relation Extraction (KBRE).
- DBQA Task: The LCN-gated model achieved a new state-of-the-art with an MRR (Mean Reciprocal Rank) of 0.8902, surpassing the previous state-of-the-art of 0.8768.
- KBRE Task: The model achieved a P@1 (Precision at 1) of 93.60%.
The results demonstrate that LCNs are particularly effective at handling "word mismatch" problems. By integrating character-level safety nets with word-level semantic anchors, the model maintains high precision even when exact word matches are absent or segmentations are ambiguous.
Conclusion
Lattice CNNs provide a robust solution to the Chinese word segmentation bottleneck in QA. By treating sentences as lattices and employing gated pooling to manage noise, LCNs capture the rich, multi-granular nature of the Chinese language more effectively than traditional sequence-based models while remaining computationally efficient.
Reference: Lai, Y., Feng, Y., Yu, X., Wang, Z., Xu, K., & Zhao, D. (2019). Lattice CNNs for Matching Based Chinese Question Answering. Proceedings of the AAAI Conference on Artificial Intelligence.
Summary updated