Abstract
This paper presents a character-level deep learning framework for entity conflation—the process of matching disparate text records that refer to the same entity across different databases. By mapping character sequences into a shared semantic vector space using Convolutional Neural Networks (CNNs) and Long Short-Term Memory (LSTM) networks, we demonstrate significant improvements over traditional bag-of-characters (BoC) methods. Our results indicate that CNNs are particularly effective for this task, achieving over 98% Recall@1 on a business name dataset, primarily due to their ability to capture local n-gram patterns that are robust to word reordering and typos.
Introduction
In business data analytics, integrating information from multiple sources is a fundamental challenge. A single entity, such as a customer or employee, often appears with varying representations across different database tables due to manual entry errors, formatting differences, or missing information. For instance, a record might appear as "emilio yentsch" in one table and "ydntsch emilip" in another. Traditional keyword matching or simple string distance metrics often fail to capture the semantic equivalence of these messy, real-world strings. This paper explores "deep conflation," using neural networks to learn robust representations of strings at the character level to facilitate accurate record linkage.
Methods
The authors frame the conflation task as a ranking problem. Given a query string from one database, the model ranks all candidate strings from another database based on their cosine similarity. The architecture consists of two primary components: character-level feature extraction and a similarity-based ranker.
Deep Feature Extraction
Instead of using words as tokens, the model embeds individual characters into dense vectors. Two distinct neural network architectures were evaluated for processing these sequences:
- Bidirectional LSTM: This model processes character sequences in both forward and backward directions to capture global, long-range dependencies.
- Convolutional Neural Network (CNN): This architecture applies 1D convolutional filters of varying sizes (bigrams, trigrams, and 4-grams) across character embeddings, followed by a max-pooling layer.
The resulting feature vectors are compared using cosine similarity. The entire system is trained end-to-end using a softmax loss function to maximize the similarity of positive pairs relative to negative samples.
Results and Discussion
The models were evaluated using 10-fold cross-validation on a proprietary corporate dataset containing 10,000 manually annotated name pairs. Performance was measured primarily through Recall@K metrics.
CNN Dominance
The CNN model significantly outperformed both the LSTM and the BoC baseline. As shown in the results, the CNN achieved a Recall@1 of 98.9% to 99.2%, effectively solving the dataset. In contrast, the LSTM reached approximately 87%, and the BoC baseline hovered around 82-83%.
Robustness to Reordering
A key insight from this study is that local sequential order is more critical than global order for name matching. While an LSTM is sensitive to the overall sequence (and thus confused by reversed first and last names), the CNN's use of n-gram filters and max-pooling allows it to identify the same entity regardless of where specific character patterns appear. This makes the CNN inherently robust to word reordering and common typos. Qualitatively, the few errors made by the CNN occurred in highly ambiguous cases that would challenge human annotators.
Practical Application
For production environments, the authors identified a cosine similarity score of 0.62 as a reliable empirical threshold for automated record merging.
Conclusion
Character-level CNNs provide a powerful and robust solution for business data conflation. By bypassing word-level tokenization and focusing on local character patterns, these models handle the inherent noise of real-world data with high precision and efficiency. Future work will involve expanding the character vocabulary to support international datasets and applying this architecture to other messy text fields in business analytics, such as addresses or product descriptions.
Summary updated