Writing
Nov 2026 · 9 min read

Comparing address-matching models on a unified dataset

Address matching has historically lacked a common benchmark: methods ranging from string-similarity rules to deep learning have each been evaluated on their own data, making direct comparison difficult. In this post, we evaluate seven such methods on a single shared dataset of real address pairs and compare their performance against one another.

Try it yourself first. Same Place? is a short game built on the pairs from this study: you see two address records from two map datasets and decide whether they are the same place. You can play against one of the models, and the pairs it struggles with, the ones this post is about, are worth the most points.

The data

I used two open datasets, Overture Maps and Foursquare Open Source Places. Overture’s bridge files link each Overture place to its Foursquare record, which gives pairs of addresses for the same place written by two different sources (Connecticut only).

Data pipeline: two open datasets, linked with Overture's bridge files, cleaned, split by ZIP code, doubtful pairs set aside, duplicates removed, then non-matches added at 1:9
How the dataset is built. Details of each step are in the full write-up.

Then the negatives, the pairs that are not the same place. Random pairs are too easy, so I built several kinds, listed below. The two hard pair types are the non-identical matches and the look-alike streets; the models differ only on these. The dataset has a 1:9 ratio of matches to non-matches, and to avoid data leakage, each ZIP code belongs to only one of the train, validation and test splits.

Pair type Example Same place? Test pairs Evaluated on
Positive, identical 7 BACKUS AVE / 7 BACKUS AVE yes 3,543 yes
Positive, non-identical 12 ELM ST / 12 ELM STREET yes 843 yes
Different number 12 ELM ST / 14 ELM ST no 14,379 yes
Real look-alike street 100 N MAIN ST / 100 S MAIN ST no 15 no (too few)
Look-alike street 431 HALLETT ST / 431 HARRIET ST no 1,053 yes
Random two random addresses no 24,019 yes
Pair type How it’s built
Positive, identical An Overture place and its linked Foursquare record; the two addresses are identical after cleaning
Positive, non-identical The same link, but the two addresses differ
Different number Two places on the same street in the same ZIP; both addresses have a house number, and the numbers differ. At most 5 partners per place
Real look-alike street Two real places in the same ZIP with the same house number and similar street names (Jaro-Winkler > 0.8), more than 500 m apart
Look-alike street A real address with its street swapped for a different, similar-looking street from the same ZIP; house number kept. Generated because real look-alike pairs are too rare
Random Two random addresses from the same split

The models

Classical models get the address pre-chopped into pieces: house number, street and ZIP code. For each piece I compute string-similarity scores (Jaro-Winkler, Levenshtein, character-overlap measures and so on), plus a flag for pairs where one side has no house number: 23 features in total. When one side has no number, its house-number features are set to −1, meaning “not comparable”. I train logistic regression, a random forest and XGBoost on these features. XGBoost is the tree model used in the comparisons below.

Diagram of the classical set-up: two addresses are split into house number, street and ZIP, compared part by part into 23 similarity features, and passed to a classifier
The classical models: 23 similarity features comparing the two addresses part by part, then a classifier.

Neural models get only the two raw strings and have to learn the rest:

  • a siamese BiLSTM, which reads each address character by character, turns it into one vector, and compares the two vectors at the end;
  • ESIM, which reads word by word (with fastText word vectors) and lets each word of one address attend to the words of the other partway through;
  • DistilBERT as a bi-encoder, a pretrained transformer used like the siamese model: encode each address separately, compare at the end;
  • DistilBERT as a cross-encoder, where both addresses go in as one input, so every token can attend to every token of the other address from the first layer.

Each neural model is trained with three seeds; the ranges below are the minimum and maximum over the three.

Diagram of the three neural set-ups: bi-encoder, ESIM, cross-encoder
The neural set-ups differ in where the two addresses first meet (orange).

How I scored them

Each model is scored separately on each pair type: the share of matches it finds, or of non-matches it rejects. Two columns (shaded) matter most:

  • Missing number found: the share of true matches where one side has no house number (164 pairs, part of the non-identical matches). This is the group where the models differ most.
  • AUC, non-identical vs look-alike: how well a model tells real but differently written matches from look-alike streets, independent of the threshold.
ModelIdentical foundNon-identical foundMissing number foundDifferent number rejectedLook-alike street rejectedRandom rejectedAUC, non-identical vs look-alike
Logistic regression99.860.176.299.977.7100.00.776
Random forest100.084.096.3100.088.499.90.924
XGBoost100.083.694.5100.087.099.90.920
Siamese BiLSTM10087.0–89.369.5–75.699.9–100.069.8–73.199.5–99.80.878–0.893
ESIM (fastText)10087.3–90.371.3–75.698.1–99.073.5–80.499.8–99.90.861–0.890
DistilBERT bi-encoder10089.0–90.969.5–72.699.8–99.957.6–68.899.8–99.90.883–0.893
DistilBERT cross-encoder10080.3–83.063.4–66.599.9–10086.1–88.899.90.888–0.904

Test set. Neural models: min–max over three seeds. Highlighted: XGBoost and the DistilBERT cross-encoder.

What I found

1. All models handle the easy pairs. On identical matches, different-number pairs and random pairs, every model gets about 98–100% right. Overall accuracy would make the models look nearly identical.

2. Missing house numbers are where the models differ most. When one side of a true match has no house number (641 SCOFIELDTOWN RD / SCOFIELDTOWN RD), the neural models find only 63–76% of these matches, about 15 points below their rate on non-identical matches overall. The tree models don’t follow this pattern: they find 94–96% of them, more than of non-identical matches overall.

The likely reason is that the tree models get the house number segmented ahead of time: they compare it as its own field, marked “not comparable” when one side has none, which makes this comparison simple. The neural models get no such segmentation; they see only a string with a number missing. The marking matters: with the missing number read as 0 instead, XGBoost finds only 20% of these matches.

Matches with a missing house numberShare of true matches found at 0.5: all non-identical matches, and the 164 where only one side has a house number. Test set; neural ranges span three seeds.
All non-identical matches (843)House number on one side only (164)
TREE MODELS Random forest Random forest, All non-identical matches (843): 84.0% Random forest, House number on one side only (164): 96.3% XGBoost XGBoost, All non-identical matches (843): 83.6% XGBoost, House number on one side only (164): 94.5% NEURAL MODELS Siamese BiLSTM Siamese BiLSTM, All non-identical matches (843): 87.0–89.3% Siamese BiLSTM, House number on one side only (164): 69.5–75.6% ESIM (fastText) ESIM (fastText), All non-identical matches (843): 87.3–90.3% ESIM (fastText), House number on one side only (164): 71.3–75.6% DistilBERT bi-encoder DistilBERT bi-encoder, All non-identical matches (843): 89.0–90.9% DistilBERT bi-encoder, House number on one side only (164): 69.5–72.6% DistilBERT cross-encoder DistilBERT cross-encoder, All non-identical matches (843): 80.3–83.0% DistilBERT cross-encoder, House number on one side only (164): 63.4–66.5% 50 60 70 80 90 100 % of matches found at the 0.5 threshold (axis starts at 50)
Show as a table
ModelAll non-identicalNumber on one side only
Random forest84.0%96.3%
XGBoost83.6%94.5%
Siamese BiLSTM87.0–89.3%69.5–75.6%
ESIM (fastText)87.3–90.3%71.3–75.6%
DistilBERT bi-encoder89.0–90.9%69.5–72.6%
DistilBERT cross-encoder80.3–83.0%63.4–66.5%

3. On look-alike streets the neural models are level with the trees. With the missing-number matches set aside, every neural model ranks matches against look-alike streets about as well as XGBoost or better (AUC 0.89–0.94 against 0.91). XGBoost’s overall lead comes from the 164 missing-number matches.

Look-alike streets, with and without missing-number matchesHow well each model ranks true non-identical matches above look-alike streets: all of them, and without the 164 where one side has no house number. Test set; neural ranges span three seeds.
All non-identical matches (843)Without missing-number matches (679)
TREE MODELS XGBoost XGBoost, All non-identical matches (843): 0.920 XGBoost, Without missing-number matches (679): 0.910 NEURAL MODELS Siamese BiLSTM Siamese BiLSTM, All non-identical matches (843): 0.878–0.893 Siamese BiLSTM, Without missing-number matches (679): 0.913–0.923 ESIM (fastText) ESIM (fastText), All non-identical matches (843): 0.861–0.890 ESIM (fastText), Without missing-number matches (679): 0.894–0.914 DistilBERT bi-encoder DistilBERT bi-encoder, All non-identical matches (843): 0.883–0.893 DistilBERT bi-encoder, Without missing-number matches (679): 0.930–0.937 DistilBERT cross-encoder DistilBERT cross-encoder, All non-identical matches (843): 0.888–0.904 DistilBERT cross-encoder, Without missing-number matches (679): 0.908–0.928 0.84 0.88 0.92 0.96 AUC: non-identical matches vs look-alike streets (axis starts at 0.84)
Show as a table
ModelAll non-identicalWithout missing-number matches
XGBoost0.9200.910
Siamese BiLSTM0.878–0.8930.913–0.923
ESIM (fastText)0.861–0.8900.894–0.914
DistilBERT bi-encoder0.883–0.8930.930–0.937
DistilBERT cross-encoder0.888–0.9040.908–0.928

4. The bi- and cross-encoder rank the hard pairs equally; the cross-encoder separates them more cleanly. Their AUCs overlap (0.883–0.893 and 0.888–0.904); as in the results table, this is the AUC of non-identical matches against look-alike streets, so both rank these two pair types about equally well. The difference is in how their scores are spread. The cross-encoder scores most pairs close to 0 or 1, so almost any threshold works for it. The bi-encoder scores many look-alike streets just below the true matches, so it only separates the two near a threshold of 0.99. At the default 0.5 this makes them look very different: the bi-encoder finds 89–91% of the non-identical matches but rejects only 58–69% of the look-alike streets, while the cross-encoder finds 80–83% and rejects 86–89%.

Same ranking, different score spreadYouden's J (share of non-identical matches accepted minus share of look-alike streets accepted) at every threshold. Validation set; one line per seed.
Bi-encoderCross-encoder
0 0.2 0.4 0.6 0.8 0 0.2 0.4 0.6 0.8 1 Bi-encoder, seed 0: best J 0.67 at threshold 0.999 Bi-encoder, seed 1: best J 0.66 at threshold 0.996 Bi-encoder, seed 2: best J 0.68 at threshold 0.992 Cross-encoder, seed 0: best J 0.76 at threshold 0.95 Cross-encoder, seed 1: best J 0.73 at threshold 0.87 Cross-encoder, seed 2: best J 0.77 at threshold 0.91 Threshold
Show as a table
ModelSeedBest JAt thresholdJ at 0.5
Bi-encoder00.670.9990.55
Bi-encoder10.660.9960.48
Bi-encoder20.680.9920.54
Cross-encoder00.760.950.74
Cross-encoder10.730.870.70
Cross-encoder20.770.910.76

5. Cross-attention brought no clear gain in ranking. Two pairs of models differ mainly in whether the two addresses attend to each other: the cross-encoder against the bi-encoder, and ESIM against the siamese BiLSTM. In both pairs the AUCs overlap:

Pair Without cross-attention With cross-attention
DistilBERT Bi-encoder: 0.883–0.893 Cross-encoder: 0.888–0.904
BiLSTM Siamese BiLSTM: 0.878–0.893 ESIM: 0.861–0.890

AUC of non-identical matches against look-alike streets, test set, min–max over three seeds.

The DistilBERT pair is the cleaner test, since ESIM also reads words where the siamese model reads characters.

What I’d do next

  • Give the neural models the house number separately, or at least a “number missing” signal, like the classical models have. That is where they fall behind.
  • Test it in a retrieval setting: real geocoding ranks many candidates, not one fixed pair.
  • Go beyond Connecticut.

Scoring by pair type is what showed this. A single overall number would say the trees beat the transformers; split by pair type, the neural models handle look-alike streets as well as the trees, and the gap is the missing-number pairs.

Everything is public

Addendum: ESIM and rare house numbers

A detail from building ESIM, not needed for the results above.

The problem. ESIM, following the original paper, uses word2vec vectors, which only cover words seen at least twice (min_count 2). Every other word becomes one shared “unknown” token. When both house numbers of a same-street pair are seen only once, 2147 SUMMER ST / 1867 SUMMER ST becomes UNK SUMMER ST / UNK SUMMER ST: the same input as the identical match 2147 SUMMER ST / 2147 SUMMER ST, with the opposite label. The model can’t tell the two apart, so each training run picks one answer for the whole group. All three seeds settled on “non-match”, finding at most 22% of the group’s identical matches. The group is small, about 0.6% of validation pairs, but telling two house numbers apart is the minimum a matcher should do.

First attempt: every word gets a vector (min_count 1). This removes the shared unknown token, but it did not fix the problem. word2vec builds a number’s vector from the words around it, not from its digits. Two numbers on the same street appear next to the same words, so their vectors end up nearly the same (cosine 0.93, against 0.57 for random pairs of numbers), and the model still can’t tell 2147 from 1867.

Three more settings, each changing how a rare number is embedded:

  • fastText (min_count 1) builds each word’s vector from its character pieces, so a number’s vector comes from its digits.
  • A random vector per rare word: each word word2vec drops gets its own fixed random vector instead of the shared unknown token. Two different numbers get unrelated vectors.
  • Stacked: each word’s word2vec and fastText vectors side by side.

Results on the rare-number group. fastText and the random vector both fix the group: on every seed they find every identical match, reject over 90% of the different-number pairs, and rank the two perfectly (AUC 1.00). Stacking also ranks the group perfectly and finds every match, but rejects only 75–88% of the different-number pairs.

fastText, the kept setting. Of the two that fix the group, each is better at one thing. The random vector rejects slightly more of the group’s different-number pairs (94–96% against 91–94%), while fastText ranks non-identical matches against look-alike streets better (AUC 0.87–0.90 against 0.85–0.88). The random vector’s edge is narrow by design: unrelated vectors are exactly the right signal for two unknown house numbers, but it gives every rare word an unrelated vector, so a rare spelling of a street in a true match also looks like a different street. fastText builds its vectors from character pieces, so it reads the numbers and keeps spelling variants close.

Characters (siamese) and sub-word pieces (DistilBERT) never had this problem.

SettingRare-number matches foundRare-number non-matches rejectedRare-number AUCAUC, non-identical vs look-alike
word2vec, min_count 21–22%95–100%0.663–0.7200.899–0.909
word2vec, min_count 140–78%68–83%0.678–0.8450.854–0.900
fastText100%91–94%1.0000.867–0.902
Random vector per rare word100%94–96%1.0000.847–0.877
Stacked100%75–88%1.0000.898–0.916

Validation set, min–max over three seeds. Highlighted: the two settings that fix the rare-number group. Shaded: the two columns they trade off on.

David Zhang
© 2026 All rights reserved.