Character-level deep conflation for business data analytics

Zhe Gan, P. D. Singh, Ameet Joshi, Xiaodong He, Jianshu Chen, Jianfeng Gao, Li Deng

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:

  1. Bidirectional LSTM: This model processes character sequences in both forward and backward directions to capture global, long-range dependencies.
  2. 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 CNN architecture extracts local character patterns (n-grams) using multi-scale filters and max-pooling, providing robustness to sequence variations.

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.

Performance comparison of Bag-of-Characters (BoC), LSTM, and CNN models across various retrieval 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

Abstract

Connecting different text attributes associated with the same entity (conflation) is important in business data analytics since it could help merge two different tables in a database to provide a more comprehensive profile of an entity. However, the conflation task is challenging because two text strings that describe the same entity could be quite different from each other for reasons such as misspelling. It is therefore critical to develop a conflation model that is able to truly understand the semantic meaning of the strings and match them at the semantic level. To this end, we develop a character-level deep conflation model that encodes the input text strings from character level into finite dimension feature vectors, which are then used to compute the cosine similarity between the text strings. The model is trained in an end-to-end manner using back propagation and stochastic gradient descent to maximize the likelihood of the correct association. Specifically, we propose two variants of the deep conflation model, based on long-short-term memory (LSTM) recurrent neural network (RNN) and convolutional neural network (CNN), respectively. Both models perform well on a real-world business analytics dataset and significantly outperform the baseline bag-of-character (BoC) model.
BibTeX
@inproceedings{gan2017character,
  author = {Zhe Gan and P. D. Singh and Ameet Joshi and Xiaodong He and Jianshu Chen and Jianfeng Gao and Li Deng},
  title = {{Character-level deep conflation for business data analytics}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2017},
  url = {https://openreview.net/forum?id=zjFex7w7Oso},
}
Figure