Instructions to use northlight-ai/finbert-esg-multilingual-small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use northlight-ai/finbert-esg-multilingual-small with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="northlight-ai/finbert-esg-multilingual-small")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("northlight-ai/finbert-esg-multilingual-small") model = AutoModelForSequenceClassification.from_pretrained("northlight-ai/finbert-esg-multilingual-small", device_map="auto") - Notebooks
- Google Colab
- Kaggle
mmBERT ESG classifier: a multilingual drop-in for FinBERT-ESG
Built by Pankaj Garg at Northlight.
Try it in your browser: esg-multilingual-demo (runs locally with transformers.js; first load ~270 MB).
This model classifies a sentence as None, Environmental, Social or Governance. It uses the same label strings and order as yiyanghkust/finbert-esg, so code that reads label from a text-classification pipeline keeps working. Two things differ from FinBERT: the model is multilingual, and it is MIT-licensed.
One-line swap
from transformers import pipeline
# before: pipeline("text-classification", model="yiyanghkust/finbert-esg")
clf = pipeline("text-classification", model="northlight-ai/finbert-esg-multilingual-small")
clf("The company reduced its Scope 1 emissions by 12% in 2023.") # [{'label': 'Environmental', 'score': 0.999}]
Labels (config.id2label, identical to FinBERT-ESG): 0 None, 1 Environmental, 2 Social, 3 Governance.
Use the Auto classes. The architecture is ModernBERT, not BERT. Code copied from the FinBERT card that hard-codes BertTokenizer / BertForSequenceClassification must switch to AutoTokenizer / AutoModelForSequenceClassification. It also needs a transformers version with ModernBERT support. Testing used transformers 5.20.2 and torch 2.14; older versions are untested. The context window is 8,192 tokens; training used 256.
Results on human-labelled data
None of these sets was used for training or for checkpoint selection; the checkpoint was picked by dev loss on teacher labels. The choice between the small and base sizes was made on the English and Spanish sets below, using a rule fixed before any base or Spanish result was available; small's Round 1 English score was already known. For the released size, these numbers are therefore slightly optimistic. Scores are four-class macro-F1 from GPU bf16 inference (batch 64, maximum length 512). The default CPU pipeline example above uses fp32; see Export for the small precision-dependent differences. Ξ is this model minus FinBERT-ESG. The 95% intervals are paired bootstraps (2,000 resamples) over whole reports or company identifiers (the Spanish runs use raw NIFs; see Limitations), because sentences from one report are correlated.
| Set | Language | Labels | n | FinBERT-ESG | This model | Ξ (95% CI) |
|---|---|---|---|---|---|---|
| nowzero/ESG-EN test | en | human, sustainability-report sentences (13 reports, 9 companies) | 1,000 | 0.644 | 0.723 (small) | +7.9 (report CI +5.2 to +12.5) |
| DReggio/esg-spanish-events gold, single-label items | es | human (one annotator), news headlines (103 companies; 106 raw NIF identifiers) | 1,468 | 0.222 | 0.756 (small) | +53.4 (raw-NIF CI +49.3 to +57.3) |
Why small and not base. We also trained an mmBERT-base version (308M parameters; 307,533,316 in the saved classifier) with the same recipe. Before seeing its results, we fixed the rule that base would be released only if it clearly beat small. It did not:
| Set | small | base | base β small (95% CI) |
|---|---|---|---|
| English, human | 0.723 | 0.731 | +0.8 (report CI β3.4 to +3.0) |
| Spanish, human | 0.756 | 0.732 | β2.4 (raw-NIF CI β4.4 to β0.5) |
| Korean (provenance unstated) | 0.550 | 0.616 | +6.6 (+3.0 to +10.2) |
On CPU, base ran 2.5Γ slower than small (10.6 vs 26.3 sentences/s). The two were timed in separate jobs on a shared machine, so this ratio is approximate. Each size was trained once (seed 19), so the intervals reflect resampling of the test data, not training variance. Small is the release.
Comparison with an English/Vietnamese multi-label model
nguyen599/ViBERT-ESG-base is an Apache-2.0 mBERT model trained on English and Vietnamese (ViEn-ESG-100). Its head is multi-label (independent sigmoids), and its label 0 is literally "Neural", which we map to None for this comparison. It is one comparator, not an exhaustive survey of multilingual ESG models.
We report both the original raw-logit argmax and a threshold-decoded single-label adaptation: choose the largest Environmental/Social/Governance logit if it is greater than zero (sigmoid probability >0.5); otherwise predict None. This adaptation ignores the "Neural" logit and returns one class even when several ESG labels pass the threshold. It is not a full multi-label evaluation. Scores below use the same stored bf16 logits and the same evaluation items.
| Set | ViBERT argmax | ViBERT threshold-decoded | This model (bf16) |
|---|---|---|---|
| English, human | 0.6760 | 0.6920 | 0.7234 |
| Spanish, human | 0.5342 | 0.5356 | 0.7559 |
| Korean (provenance unstated) | 0.3551 | 0.3404 | 0.5499 |
The English point-estimate gap is +4.7 points against argmax and +3.1 against threshold decoding; no confidence interval or significance claim is made for the threshold comparison. Spanish and Korean are zero-shot for ViBERT. Our fine-tuning text includes Spanish but does not include Korean, so the Spanish comparison has unequal training-language coverage; Korean is zero-shot for both models. These results do not establish superiority over multilingual ESG models generally.
Korean (label provenance not stated)
The nmixx-fin/twice_kr_esg_cls card does not say whether its labels are human or model-made. Korean was not in the training text, so this is a zero-shot check.
| n | FinBERT-ESG | This model | Ξ (95% CI, item bootstrap) |
|---|---|---|---|
| 1,000 | 0.055 | 0.550 (small) | +49.5 (+45.8 to +53.2) |
Other languages: agreement with the teacher only
On 250 public financial-news sentences per language, labelled by the teacher LLM (not by humans):
| Language | FinBERT-ESG | This model (small) |
|---|---|---|
| en | 0.437 | 0.601 |
| de | 0.203 | 0.681 |
| fr | 0.235 | 0.670 |
| es | 0.367 | 0.690 |
| zh | 0.216 | 0.784 |
| ja | 0.193 | 0.738 |
These numbers show agreement with Qwen3.5-4B, the model whose labels the student was trained on. They are not accuracy. A second model (MiniCPM5-2B) agreed with the teacher on ESG at Cohen's ΞΊ = 0.39 overall (200 items), so the reference labels are noisy. For German, French, Chinese and Japanese, no human-labelled ESG test data was found, so quality in those languages is unverified.
Speed
GPU figures are cold-start rates on the first English human split, with no GPU warmup and CPU tokenization included in the timed loop. The RTX 5070 Ti was shared with other jobs, and base was timed separately, so these are rough end-to-end measurements, not isolated steady-state GPU benchmarks.
| Model | Parameters | GPU bf16, batch 64 (sentences/s) | CPU fp32, 2 threads, batch 32 (sentences/s) |
|---|---|---|---|
| FinBERT-ESG | 110M | ~1,230 | 15.3 |
| This model (small) | 141M | ~1,180 | 26.3 |
| mmBERT-base (not released; timed in a separate job) | 308M | ~470 | 10.6 |
Training
- Initialisation:
jhu-clsp/mmBERT-small(MIT). - Text: 52,000 sentences from FineWeb (English) and FineWeb-2 (de, fr, es, zh, ja), both ODC-By 1.0; see the attribution in NOTICE. Sentences were filtered for finance-related URLs and keywords. Before training, every exact or near duplicate of the English human set and of the news test set was removed. The Spanish and Korean sets were checked after training: none of their items appears verbatim in the training text, and the one near-duplicate flag was the 3-word headline "Recompra de Acciones".
- Labels: one constrained single-token decision per sentence using
Qwen/Qwen3.5-4B, run locally, whose model licence is Apache-2.0. This describes the teacher model licence, not a licence assignment to its generated labels. No human labels and no FinBERT outputs were used in training. - Recipe: AdamW, constant lr 3e-5 (no warmup or decay scheduler), weight decay 0.01, gradient norm clipping 1.0, gradient checkpointing, batch 32, 2 epochs, max length 256, bf16 autocast, seed 19. The checkpoint with the lowest dev loss (1,548 teacher-labelled sentences) was kept.
Training data are imbalanced, not equally sampled by language. English has 24,925 sentences (47.9%), German 11,996 (23.1%), French 6,188 (11.9%), Spanish 5,761 (11.1%), Chinese 1,769 (3.4%) and Japanese 1,361 (2.6%). Chinese and Japanese together account for only 6.0%. Only one source parquet shard per language was scanned, so those two pools were exhausted early. Class counts are None 34,031 (65.4%), Environmental 3,694 (7.1%), Social 7,210 (13.9%) and Governance 7,065 (13.6%). Chinese has only 143 Environmental and 213 Social training items; Japanese has only 175 Environmental and 152 Governance items. Their Environmental dev supports are only 6 and 4, respectively.
The ESG student alone took about 5.8 minutes to train (15.7 minutes for the three-task job). Through the ViBERT comparison, the recorded finance GPU/light-job elapsed-time total is 3,583 seconds (0.995 hours), including failed jobs and smoke tests: Rounds 1β2 account for 3,562 seconds (0.989 hours), and ViBERT job 2697 adds 21 seconds. This is scheduled job elapsed time, not measured accelerator-active time.
Reproducibility gaps: the project lacks a deterministic script to download the English human CSV or build the Spanish/Korean evaluation JSONL from the source parquet files. The 220-item Spanish multi-label-only hit rate was recomputed from stored predictions but is not emitted by the main scoring script. There is no committed git history of the protocol; advance-rule claims rely on local logs, filesystem timestamps and recorded hashes, not independently timestamped registration. These gaps remain; the recipe above does not make the pipeline fully reproducible.
Export
ONNX (fp32, opset 18) exports cleanly from PyTorch. On 128 sentences the largest logit difference was 8.6e-6, and all 128 predicted labels matched. The file is 563 MB for small, mostly the 256k-token embedding matrix. The demo Space is configured to load the int8 export described below with transformers.js (dtype: "q8").
An int8 version (onnx/model_quantized.onnx: the 256k-token embedding table is stored in int8, all other weights stay fp32; 268 MB instead of 563 MB) scores macro-F1 0.722 vs 0.723 (fp32) on English, 0.756 vs 0.756 on Spanish and 0.557 vs 0.555 on Korean; its label matches fp32 on 99.6% or more of sentences in each set. In transformers.js, pick it with dtype: "q8".
Precision matters: the main tables use GPU bf16, while ONNX parity uses CPU fp32 as its reference. Korean is 0.549858 (rounded 0.550) in bf16 and 0.555021 (0.555) in fp32: four of 1,000 near-tied predictions change with precision (ko_185, ko_255, ko_325, ko_736). The independent review found PyTorch fp32 and ONNX fp32 agree on all four. This is a precision effect, not a new checkpoint. English is 0.7234 in bf16 versus 0.7233 in fp32; Spanish is 0.7559 in both. CPU ONNX parity does not verify browser WebAssembly/WebGPU execution, which remains untested.
Limitations
- All 1,000 English evaluation rows are tagged Manufacturing. Three companies (3M, AcBel Polytech and Croda International) contribute 724 rows (72.4%); the full set covers 13 sustainability/TCFD reports from 9 companies. The model beat FinBERT on 9 of 13 reports, tied on 2 and lost on 2 (AcBel 2021 by 4.5 points, TSMC by 2.1).
- Per-report macro-F1 always averages four classes, assigning zero F1 to unsupported classes. Goldfields 2018 lacks two gold classes (perfect-score ceiling 0.500); Goldfields 2019, SK hynix 2022 and TSMC 2022 each lack one (ceiling 0.750). These small-report scores are not comparable to unrestricted four-class scores; the TSMC loss is 2.8 points when averaging its three supported classes.
- The largest English confusion pair is None versus Social: 83 of 267 errors (31.1%). The model labels some Social sentences as None, while FinBERT over-predicts Social.
- On Spanish, FinBERT-ESG (an English-only model) scores near zero on Governance (F1 0.006), so most of the Spanish gain reflects FinBERT not working in Spanish, not a fine-grained quality edge. Across all 1,688 Spanish headlines, the any-label hit rate is 0.769 for this model vs 0.283 for FinBERT. On the 220 multi-label headlines only, it is 0.9091 (200/220) vs 0.2182 (48/220).
- The Spanish set has one annotator and contains headlines, not sentences. Its card's label-count table (557 None) does not match the released files (478 None-only rows, derived from the label flags). The flags disagree with
pillar_profileon five rows (four train, one validation); we score the flags. Its taxonomy is Governance-heavy (ISSB/SASB codebook). The all-headlines and multi-label-only hit rates are reported above; a hit means the predicted class matches any flagged label. - Spanish pools all three gold splits: 1,080 train, 156 validation and 232 test single-label rows. We never trained on this dataset, but the pooled score is not comparable to models such as
DReggio/mrbert-es-esgevaluated only ongold_test. Ongold_testalone, small scores 0.7200, FinBERT 0.2067 and base 0.6839 (small scores 0.7668 ongold_train). There are 63 excess duplicate headlines (100 rows in 37 repeated groups, without conflicting labels), mostly CNMV boilerplate. Deduplicating to 1,405 items gives small 0.7480, base 0.7286 and FinBERT 0.2181. - The Spanish set covers 103 companies represented by 106 raw NIF identifiers. The stored intervals use the 106 raw identifiers, which split three companies. The independent review's merged 103-company sensitivity check gave +49.5 to +57.3 points for small minus FinBERT and β4.3 to β0.5 for base minus small, with the size decision unchanged.
- Percentile bootstrap intervals are approximate with few unequal clusters: 13 English reports (10β206 items each), 9 companies (12β270), and only 7β12 teacher-test publishers per language. They can be skewed. Here the company interval is narrower than the report interval because pooling AcBel's opposing yearly gains cancels variation; fewer clusters do not guarantee a wider interval. Rare-class dropout in publisher resamples (3.5% of English and 3.0% of German draws in the review) assigns zero F1 to the missing class and can skew intervals downward.
- The Korean set does not say how its labels were made. Korean was not in the training text.
- Every evaluation set is CC-BY-NC or noncommercial. They were used only to measure the model and are not redistributed here.
- The model's output is a sentence-level topic label. It is not an ESG rating and says nothing about whether a company performs well.
An internal pre-publication verification audit (2026-11-26) recomputed English, Spanish, Korean, teacher-test and ViBERT scores from saved predictions with sklearn, checked label mappings and leakage, and matched the stored scores. Its sensitivity checks underpin the qualifications above; no new training or inference was run for these documentation fixes.
Licence
MIT; see LICENSE for the full text and copyright notice. This model uses data from FineWeb and FineWeb-2, made available by Hugging Face under ODC-By 1.0. Training text copyright remains with the original web publishers. Labels were generated using Qwen3.5-4B, whose model licence is Apache-2.0. See NOTICE for attribution and upstream notices and LICENSES.md for scope and conditions.
Citation
If you use this model, please cite it:
@misc{garg2026finbertesgmultilingual,
author = {Garg, Pankaj},
title = {finbert-esg-multilingual-small: A Multilingual, MIT-Licensed Drop-in Replacement for FinBERT-ESG},
year = {2026},
publisher = {Hugging Face},
doi = {10.57967/hf/11884},
howpublished = {\url{https://huggingface.co/northlight-ai/finbert-esg-multilingual-small}}
}
Please also cite the original FinBERT-ESG work, whose label scheme this model follows:
@article{huang2023finbert,
author = {Huang, Allen H. and Wang, Hui and Yang, Yi},
title = {{FinBERT}: A Large Language Model for Extracting Information from Financial Text},
journal = {Contemporary Accounting Research},
volume = {40},
number = {2},
pages = {806--841},
year = {2023},
doi = {10.1111/1911-3846.12832}
}
For the human evaluation datasets, please cite their requested sources:
- Jaeyoung Lee and Misuk Kim (2026). TRAE: Trustworthy Automated ESG Annotation via Multi-Agent Consensus and Confidence Assessment. Proceedings of the 2026 IEEE International Conference on Data Mining (ICDM). ESG-EN dataset.
- Damien Reggio (2026). ESG News Classification and Market Response in Spanish Equity Markets. Master's thesis, FernUni Switzerland. Spanish ESG dataset.
- Downloads last month
- 78
Model tree for northlight-ai/finbert-esg-multilingual-small
Base model
jhu-clsp/mmBERT-smallDatasets used to train northlight-ai/finbert-esg-multilingual-small
HuggingFaceFW/fineweb-2
Space using northlight-ai/finbert-esg-multilingual-small 1
Evaluation results
- Macro-F1 on ESG-EN (humantest set self-reported0.723
- Macro-F1 on esg-spanish-events (humanself-reported0.756
- Macro-F1 on twice_kr_esg_cls (Koreanself-reported0.550