arche-embed-org-118m-v1

A name encoder for organisations. Given a company's name, it finds the same company under another of its names: a previous name, a trading name, a transliteration, or its name in another language. It proposes candidates. It does not decide that two records are the same organisation.

Every test on this card was written down before it was run, and scored once. The ones it failed are listed with the ones it passed.

Where it fits in a match

arche matches two lists in four steps:

  1. Prepare the fields: clean names, parse addresses, read times and place roles. Rules, no model.
  2. Find candidates: which pairs are worth comparing at all. This model.
  3. Decide: match, review or different, from rules and Fellegiโ€“Sunter weights.
  4. Settle the review band: a cross-encoder decider or a person.

This model improves step 2 only. A true pair that blocking never proposes cannot be found by any later step, and that is what this model fixes: two names of one company that share no word. Whether a found pair then becomes a match is decided in steps 3 and 4. The arche docs page How arche improves a match gives the baseline and the result for every step.

What we promised, and what it did

Before each test ran, we wrote down what would count as a pass. This is the list, with the results. The reference in the last column is the name of the test in arche's lab notes; it is there so the files can be found, and the rest of this card uses plain names.

Test Pass mark, set beforehand Result Passed Lab ref
Finds other names of a company, better than TF-IDF recall@10 at least +2 points over TF-IDF, interval above 0, in Africa and outside +7.2 in Africa, +10.0 outside yes P1
One model for both groups within 2 points of a model trained on each group alone -0.35 in Africa, +0.1 outside yes P2
Training names cannot be read back out membership AUC at most 0.60, at most 0.05 of it due to training 0.51-0.52, +0.015 to +0.029 yes P3
Matching end to end gets better (UK care providers) recall at least +0.3 points, precision no more than 0.1 lower +0.10, precision unchanged no P4
Finds renamed UK companies, better than TF-IDF recall@10 at least +2 points over TF-IDF, interval above 0 +2.6 [+1.7, +3.5] yes P4b
Never worse than TF-IDF on a list it is meant for (a failure line) not triggered F1

"Recall@10" is the share of names whose organisation is among the model's first 10 candidates. "Interval" is the 95% bootstrap interval of the gain.

What it improves, against which baselines

The measure is recall@k: the share of names whose organisation is among the top k candidates. Baselines:

  • character TF-IDF (3-grams, arche's CharNgramIndex): the classical retriever any model must beat;
  • the base model, not tuned (intfloat/multilingual-e5-small);
  • LinkTransformer (lt-wikidata-comp-multi, lt-wikidata-comp-en), with its own pooling;
  • word blocking (arche's default): candidates that share a name word.

Other names of the same legal entity (GLEIF LEI)

Test entities the model never saw, split by entity. Figures are the mean of 3 training seeds; seed 0 is published.

Test recall@1 recall@10 recall@50 recall@10, no shared word
Outside Africa: 8,739 fresh names character TF-IDF 0.511 0.675 0.730 0.139
base model, not tuned 0.515 0.699 0.783 0.299
LinkTransformer multi 0.691
this model 0.569 0.775 0.843 0.467
Africa: 2,200 queries, 4,321 names character TF-IDF 0.452 0.631 0.722 0.054
base model, not tuned 0.414 0.622 0.751 0.161
LinkTransformer multi 0.598
this model 0.507 0.702 0.783 0.236

Gain in recall@10 over TF-IDF: +10.0 points [+8.8, +11.1] outside Africa, +7.2 [+5.3, +9.1] in Africa. When the two names share no word, it finds three times as many as TF-IDF outside Africa and four times as many in Africa. One model serves both groups as well as a model trained on each alone (-0.35 points [-1.2, +0.4] in Africa, +0.1 [-0.2, +0.4] outside). The African test names had been used twice before, by two earlier models, so its figures are optimistic; the outside-Africa test is fresh.

Renamed UK companies

UK LEI records carry the Companies House number, so the truth is free. Queries are the records' previous and trading names that differ from the company's current name. Each is searched among the companies registered in its postcode district, after an exact pass on current and previous names has linked what it can. Measured: recall@10 of this model against character TF-IDF, with the pass set beforehand at +2 points and the interval above 0.

Scored once, on the test half: 8,791 renamed companies, of which the exact pass links 5,810. Among the 2,981 it does not link:

Top 10 candidates in the district Recall@10
word blocking (shares a name word) 0.386
character TF-IDF 0.395
this model 0.420
this model and TF-IDF together 0.439
ceiling: the true company is registered in that district 0.817

+2.6 points [+1.7, +3.5] over TF-IDF: a pass. Where the old and current names share no word (1,830 names), it finds 180 against TF-IDF's 114. Previous legal names: 943 against 893; trading names: 310 against 283. End to end, the same lane gains nothing (66.31% recall either way): the matcher does not accept a changed name, so the extra candidates go to review, which is where they belong.

End to end: small on UK care providers (not passed)

CQC care providers matched against Companies House (12,972 providers whose company is on the register; the truth is the company number CQC records, which the matcher never sees). Both arms ran the same matcher; arm B adds this model's 10 nearest company names in the postcode district to word blocking.

Precision Recall
Exact name, then the matcher, word blocking 99.726% 98.15%
Exact name, then the matcher, word blocking plus this model 99.726% 98.25%

+0.10 points of recall [+0.05, +0.15] at unchanged precision, against a bar of +0.3: not a pass. UK company names are unique and mostly written as the register writes them, so the exact pass finds 97.3% first. On its own the matcher gains +1.35 points with the model (175 more correct links for 2 more wrong ones), and among providers whose company shares no word with them it finds 323 against 310.

What it does not improve, and what would

  • It does not make a renamed company a match. It brings the right company into the candidates; the matcher still decides on how alike the two names are, and a changed name is not alike. On renamed UK companies (development half), of the 2,942 names the exact pass missed, the matcher correctly linked 176 (6%), and 57% of all the links it made on its own were wrong. A renamed company is found for review, not linked on its own.
  • What would: a decider that reads more than two names. The registered address, the name history, and relationships such as one company owning another (Companies House PSC data) are evidence a name cannot carry. A cross-encoder decider for organisations that reads them is the planned next step. On Nigerian health facilities a cross-encoder decider exists and passes in seven states; there, larger backbones (e5-base, mDeBERTa, AfroXLMR, e5-large) did no better than e5-small: the limit was the inputs, not the model size.

Where it fails

  • Companies House names alone: no gain for an earlier model trained only outside Africa: recall@10 0.608 to 0.611, +0.3 points [-0.4, +1.1]. This model was not re-run on that test.
  • It is not a place or facility model. A name encoder from another domain did harm on Nigerian health facilities.
  • A rebrand that keeps nothing of the old name cannot be found by any name method.
  • Fusing with TF-IDF made it worse on the LEI test (earlier model, 0.742 against 0.778 outside Africa). In another domain fusing helped. Test it on your data.
  • No shared word is still hard: recall@10 is 0.47 outside Africa and 0.24 in Africa when the names share no word.

Not tested: lists other than LEI, Companies House and CQC; people's names, addresses, or anything that is not an organisation's name; embedding inversion (below).

Training names cannot be read back out

An encoder has no decoder, so it cannot write out a name it was trained on. What it can leak is membership: whether a given pair of names was in the training set. Each trained and each held-out pair was scored by cosine and by rank:

Group Score Membership AUC [95%] Base model Due to training [95%]
Africa cosine 0.507 [0.480, 0.534] 0.482 +0.024 [0.013, 0.035]
Africa rank 0.523 [0.501, 0.546] 0.494 +0.029 [0.018, 0.041]
Outside cosine 0.511 [0.492, 0.530] 0.495 +0.016 [0.008, 0.025]
Outside rank 0.510 [0.493, 0.527] 0.495 +0.015 [0.008, 0.023]

0.5 is a coin toss; the bar was at most 0.60, with at most 0.05 due to training. The released files hold no training name: the tokenizer is the base model's, and arche_training.json carries settings and digests only. The first version of this check failed because the fine-tune's save rewrote the tokenizer files in a newer format with the same vocabulary; the release ships the base model's files instead, checked identical token for token. Embedding inversion (a separate model trained to turn vectors back into text) was not tested. The training names are public LEI data.

Use

With arche (pip install "arche-core[detect2]"):

from arche.resolve import reconcile
from arche.retrieval import EncoderIndex, TextEncoder

encoder = TextEncoder.from_pretrained("arche-embed-org-118m-v1")   # pinned revision, weights checked

names = ["Brindle Foods Limited", "Harrow Park Bakery Ltd", "Societe Brindle Alimentation SA"]
EncoderIndex(names, encoder).search("Brindle Foods Ltd", k=2)   # [(0, 0.965), (2, 0.701)]

# or add its candidates to arche's own blocking; arche's comparators still decide
result = reconcile(suppliers, register, entity="legal_entity", retrieve=encoder, retrieve_k=10)

With transformers alone:

import torch
from transformers import AutoModel, AutoTokenizer

tok = AutoTokenizer.from_pretrained("unpatterned-labs/arche-embed-org-118m-v1")
model = AutoModel.from_pretrained("unpatterned-labs/arche-embed-org-118m-v1").eval()

def embed(names):
    batch = tok(["query: " + n for n in names], padding=True, truncation=True, max_length=64, return_tensors="pt")
    with torch.no_grad():
        out = model(**batch).last_hidden_state
    mask = batch["attention_mask"].unsqueeze(-1).float()
    return torch.nn.functional.normalize((out * mask).sum(1) / mask.sum(1), dim=-1)

The search in both snippets was run on the release files and gives the same scores. The names are invented; suppliers and register stand for your two lists. The weights digest is pinned in every arche receipt that uses the model.

transformers 4.57.3 and later 4.x versions print a warning about "an incorrect regex pattern" when loading this model. It is wrong here: those versions show it for any local model whose config.json they saved, whatever the model type. The tokenizer files are the base model's, byte for byte, and the token ids are identical (checked on 20,000 names).

Details

Base intfloat/multilingual-e5-small (MIT), weights sha256:c111805f9aef42ea...
Licence Apache-2.0 (base model MIT; training data CC0 1.0)
Weights model.safetensors, sha256:90f52043991a4b4842b32e7e1616f0ab621d8de817c7f96ebb7c3837878b10d8
Parameters 118M, 384 dimensions, 471 MB
Training data GLEIF LEI Golden Copy, 2026-11-21 08:00 UTC, CC0 1.0
Training pairs 8,096 pairs of names of one legal entity, from Africa and outside it, with hard negatives (sha256:a7fbe1c05afeb28f...)
Settings 2 epochs, batch 64, lr 2e-5, warmup 0.1, temperature 0.05, max length 64, seed 0
Input prefix every name with query: , mean pooling, L2-normalised, cosine
Speed CPU p95 18-28 ms a name at 4 threads (measured on earlier models of the same architecture)

Sole proprietors were excluded from training, because their names are people's names. Annulled and duplicate registrations were excluded. Organisations can still be named after people.

Contains data from the Global Legal Entity Identifier Foundation (GLEIF) LEI Golden Copy, released under CC0 1.0.

Other parts of arche

The other steps of a match (reading addresses, place roles and times, deciding, review) are not part of this model. Where each stands, with its own tests and results, is on the arche docs page How arche improves a match.

Downloads last month
-
Safetensors
Model size
0.1B params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for unpatterned-labs/arche-embed-org-118m-v1

Finetuned
(238)
this model