Introduction
Data merging is a cornerstone of modern analytics, yet it remains a significant challenge due to "surface form" variations. Traditional methods like exact string matching (equi-joins) or basic edit distance often fail to recognize that "D. Adams" and "Douglas Noel Adams" refer to the same entity. This paper proposes a deep metric learning framework that maps entity names into a shared vector space, ensuring that different variations of the same entity are clustered together while distinct entities are pushed apart.
Methodology
The core of the proposed system is a Siamese Triplet Network. Unlike standard classification models, this architecture processes three inputs simultaneously: an anchor (the reference name), a positive (a known variation of the same entity), and a negative (a different entity).
To handle the sequential nature of text, the model utilizes four layers of Gated Recurrent Units (GRUs). This choice allows the network to capture the importance of character order and punctuation—such as commas in "Adams, Douglas"—which are often lost in bag-of-words approaches. Character-level embeddings are employed to mitigate the "Out of Vocabulary" (OOV) issues common with rare names in word-based models like Word2Vec.
Global Triplet Selection via ANN
A primary innovation of this work is the shift from local to global triplet selection. In many metric learning applications, "semi-hard" negatives are selected from within a small training batch. However, in entity resolution, "hard negatives"—different entities with nearly identical names—are pervasive and highly confusing for models.
The authors implement a global mining strategy using an Approximate Nearest Neighbor (ANN) index (specifically the Annoy library). By indexing all vectors, the model can identify the absolute "hardest" negatives across the entire dataset during the training loop. This ensures the model is constantly challenged by the most similar-looking but distinct entities, leading to a more robust embedding space.
Experimental Results
The framework was evaluated on large-scale datasets derived from Wikidata and SEC filings, encompassing millions of names. The results demonstrate a substantial leap over baseline untrained representations:
- Recall Improvement: For person entities, recall increased from a 3% baseline to 81%. Company name recall rose from 16% to 74%.
- Precision@1: The model achieved a Precision@1 of 0.81 for people and 0.75 for companies, indicating that the nearest neighbor in the vector space is the correct match in the vast majority of cases.
- Mining Strategy Impact: Training with global hard negatives yielded 81% recall, significantly outperforming the 63% recall achieved with standard semi-hard mining.
Conclusion
By combining Siamese GRU networks with global hard negative mining via ANN, this approach provides a powerful alternative to traditional string-matching for dataset merging. While computationally more intensive due to the indexing requirements, the gains in accuracy and the ability to handle complex surface form variations make it a compelling solution for large-scale data integration tasks. Future work will explore extending this methodology to other entity types such as addresses and product descriptions.
Summary updated