Fine-tuned from mmBERT-small
(a multilingual ModernBERT encoder) on our synthetic Indian PII data.
03 · Safety · Open weights
cbx-indic-pii-extractor-58M
Finds personal data in 12 Indian languages and Indian English, in any script.
Real, cached outputs from the model.
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
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.
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.
| Model | Typed F1 | Precision | Recall | Documents without PII flagged | CPU, median per text |
|---|---|---|---|---|---|
| cbx-indic-pii-extractor-58M | 0.930 | 0.945 | 0.915 | 19.9% | 16 ms |
| cbx-indic-pii-extractor-36M | 0.888 | 0.943 | 0.839 | 13.4% | 8 ms |
| cbx-indic-pii-extractor-17M | 0.869 | 0.943 | 0.806 | 16.2% | 5 ms |
| Larger internal model (teacher, not released) | 0.957 | 0.959 | 0.955 | 15.0% | – |
| Chitragupta (with its rules) | 0.944 | 0.912 | 0.978 | 53.4% | 73 ms |
| Chitragupta (model only) | 0.941 | 0.904 | 0.981 | 53.3% | 75 ms |
| IndicBERT-PII | 0.813 | 0.808 | 0.818 | 61.0% | 21 ms |
| GLiNER-PII large | 0.490 | 0.727 | 0.370 | 45.1% | 244 ms |
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.
| Model | Ylemis India-PII: typed F1 | IndiaPII-Bench: typed F1 | IndiaPII-Bench: look-alike codes flagged |
|---|---|---|---|
| cbx-indic-pii-extractor-58M | 0.986 | 0.946 | 13.3% |
| cbx-indic-pii-extractor-36M | 0.981 | 0.958 | 19.8% |
| cbx-indic-pii-extractor-17M | 0.982 | 0.944 | 12.3% |
| Chitragupta (with its rules) | 0.941 | 0.900 | 47.0% |
| Chitragupta (model only) | 0.931 | 0.890 | 47.7% |
| IndicBERT-PII | 0.727 | 0.632 | 64.0% |
| GLiNER-PII large | 0.867 | 0.934 | 56.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) | |
|---|---|---|
| GPU | 12.6 ms | 13.3 ms |
| CPU | 37 ms | 250 ms |
Limitations
784-448-0140) can be read as Aadhaar numbers.Training data
(a multilingual ModernBERT encoder) on our synthetic Indian PII data.
(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.
Sign in to the console to call this model live, compare sizes and create an API key.