03 · Safety · Open weights

PII in 12 Indian languages, any script.

cbx-indic-pii-extractor-58M

Finds personal data in 12 Indian languages and Indian English, in any script.

Finds it. Then redacts it.

Real, cached outputs from the model.

support-ticket.txt0 of 8 found

Hi team, I'm Rohan Mehta ([email protected], +91 98765-43210). Aadhaar: 4567 8912 3456. PAN: ABCDE1234F. UPI ID: rohan.mehta@okaxis. Bank account: 50100123456789, IFSC: HDFC0001234.

Benchmark

Measured against the alternative.

0.000

Precision — Indic PII Bench, 8,028 test documents

Full results ↗
  • cbx-indic-pii-extractor-58M0.945
  • Chitragupta (with its rules)0.912
  • IndicBERT-PII0.808
  • GLiNER-PII large0.727

From the model card

Finds personal information (PII) in Indian text and returns the exact position of each value with one of 27 labels, including Aadhaar, PAN, UPI IDs, IFSC codes, voter IDs and vehicle numbers. It reads 12 Indian languages and Indian English (Hindi, Bengali, Marathi, Tamil, Telugu, Kannada, Malayalam, Gujarati, Punjabi, Odia, Assamese, Urdu), in native script, romanised (Indian languages in English letters) and code-mixed text. 57.6M parameters; about 37 ms for a short message and 250 ms for a 2,000-character document on a CPU (8 threads), about 13 ms on a GPU.

This is the most accurate size and the recommended default. Also available in 36M and 17M sizes. A larger internal model, the teacher of the 36M and 17M sizes, scores higher (see Results); it is not released.

Model

58M

Licence

Apache 2.0

Fine-tuned from

jhu-clsp/mmBERT-small

Read the full model card ↗

Full results. Every number, from the card.

IndicPIIDetX v0.1 (CobuildX, DOI 10.57967/hf/11457): 10,035 synthetic documents in the same 13 languages and three writing styles, five document types (chat and SMS, emails and letters, forms with scan noise, call transcripts, chatbot prompts), 1,489 of them with no PII but with look-alike codes. Made independently of our training data (different generator, different name lists). Scores on its test split (8,028 documents). Typed F1: a predicted value counts if it overlaps an annotated value of the same type. Scored on the 14 types every model in the table can name (see How we evaluated). The benchmark's own scorer pairs each prediction with at most one annotated value, so its card shows slightly lower numbers.

ModelTyped F1PrecisionRecallDocuments without PII flaggedCPU, median per text
cbx-indic-pii-extractor-58M0.9300.9450.91519.9%16 ms
cbx-indic-pii-extractor-36M0.8880.9430.83913.4%8 ms
cbx-indic-pii-extractor-17M0.8690.9430.80616.2%5 ms
Larger internal model (teacher, not released)0.9570.9590.95515.0%–
Chitragupta (with its rules)0.9440.9120.97853.4%73 ms
Chitragupta (model only)0.9410.9040.98153.3%75 ms
IndicBERT-PII0.8130.8080.81861.0%21 ms
GLiNER-PII large0.4900.7270.37045.1%244 ms
  • Precision and false alarms are where this model is strongest: it flags 19.9% of the documents without PII, against 53.4% for Chitragupta.
  • Chitragupta finds more values (recall), mostly names and bank / ID numbers. Our larger internal model (the teacher of the 36M and 17M) scores 0.957.
  • All 27 labels (our models only): typed F1 0.896. With CUSTOMER_ID and NATIONAL_ID added to the 14 types: 0.904 (Chitragupta, which has no label for them, 0.871).
  • CPU time is the median over 200 texts of the Ylemis benchmark below (median 96 characters), one at a time, 8 threads, all models on the same machine. On longer texts the gap grows.

Two public benchmarks. These helped us decide what to add to our training data (ID-shaped codes that are not PII, new ID formats), so they are not blind tests for these models; the comparison is shown for reference.

ModelYlemis India-PII: typed F1IndiaPII-Bench: typed F1IndiaPII-Bench: look-alike codes flagged
cbx-indic-pii-extractor-58M0.9860.94613.3%
cbx-indic-pii-extractor-36M0.9810.95819.8%
cbx-indic-pii-extractor-17M0.9820.94412.3%
Chitragupta (with its rules)0.9410.90047.0%
Chitragupta (model only)0.9310.89047.7%
IndicBERT-PII0.7270.63264.0%
GLiNER-PII large0.8670.93456.2%

On our own held-out synthetic test set (same generators as the training data, so optimistic) the span F1 is 0.995.

Speed (one text at a time, end to end; NVIDIA TITAN RTX fp16, Intel i7-10700 CPU with 8 threads):

Short message (~340 characters)Document (2,000 characters)
GPU12.6 ms13.3 ms
CPU37 ms250 ms
How we evaluated
  • Same runs for every model. We ran every model ourselves, on the same texts, with the same scorer.
  • Types. Each model's labels were mapped to the 14 types every model in the table can name: PERSON, ADDRESS, PHONE, EMAIL, AADHAAR, PAN, TAX_ID (GSTIN), IFSC, UPI_ID, VOTER_ID, VEHICLE_REG, PASSPORT, DRIVERS_LICENSE, BANK_ACCOUNT. A predicted PIN code counts as an address. Annotated values of other types are left out, and predictions on them are not counted.
  • Settings. IndicBERT-PII at its card's threshold 0.5, GLiNER-PII at 0.3 with one fixed prompt list; texts longer than a model's limit (IndicBERT-PII 512 tokens, GLiNER 768 words) were read in consecutive windows. Adjacent pieces of the same type are joined for every model alike.
  • No overlap with training data. No IndicPIIDetX document appears in our training data, even with numbers and codes ignored; its names come from different lists (a few common names occur in both).
  • Teacher. The larger internal model is a fine-tuned mmBERT-base (307M parameters); it is not released.

Know its limits. Before you ship it.

Limitations

  • Names written in native script, especially less common names, are missed more often than by the larger internal model.
  • CUSTOMER_ID, NATIONAL_ID, PATIENT_ID, EMPLOYEE_ID and RATION_CARD values are found less reliably than names, phones and emails, and bank account numbers are sometimes labelled as other account types.
  • Phone numbers written in a 3-3-4 pattern (784-448-0140) can be read as Aadhaar numbers.
  • Values next to each other in JSON or CSV with no space between them can be returned as one span.
  • AMOUNT and DATE cover every amount and date, also prices and dates not tied to a person; benchmarks that label only personal ones count those as false alarms.
  • Trained on synthetic text only. Sensitive attributes such as health, religion or caste are not detected.
  • A detection aid, not a guarantee: keep human review where redaction must be complete.

Training data

What it learned from.

01

Fine-tuned from mmBERT-small

(a multilingual ModernBERT encoder) on our synthetic Indian PII data.

02

Vocabulary cut to 40,000 tokens

(from 256,000): every token of the Indian scripts and Urdu, every byte and single character, every token the training data uses, then the most frequent rest. Any text can still be read; rarer words are split into smaller pieces. Use the tokenizer in this repo, not mmBERT's. Accuracy is unchanged by the cut; the model is 2.4x smaller than the full fine-tuned model.

About 74,000 synthetic documents in the 13 languages and three writing styles, made by us: templates written by large language models (gpt-5.4-mini, and Sarvam-30B for an earlier part), with every personal value filled in by code (valid checksums for Aadhaar, PAN, GSTIN and similar), plus documents full of codes that are not PII, and forms, tables, key-value records, CSV and JSON. No real personal data.

3 sizes. Smaller is faster, larger is more accurate.

Run it on your own data. In the CobuildX Console.

Sign in to the console to call this model live, compare sizes and create an API key.