Papers › BERTifying the Hidden Markov Model for Multi-Source Weakly Supervised Named Entity Recognition

BERTifying the Hidden Markov Model for Multi-Source Weakly Supervised Named Entity Recognition

26 May 2021ACL 2021 5arXiv:2105.12848archive 2025-07-28

Yinghao Li, Pranav Shetty, Lucas Liu, Chao Zhang, Le Song

We study the problem of learning a named entity recognition (NER) tagger using noisy labels from multiple weak supervision sources. Though cheap to obtain, the labels from weak supervision sources are often incomplete, inaccurate, and contradictory, making it difficult to learn an accurate NER model. To address this challenge, we propose a conditional hidden Markov model (CHMM), which can effectively infer true labels from multi-source noisy labels in an unsupervised way. CHMM enhances the classic hidden Markov model with the contextual representation power of pre-trained language models. Specifically, CHMM learns token-wise transition and emission probabilities from the BERT embeddings of the input tokens to infer the latent true labels from noisy observations. We further refine CHMM with an alternate-training approach (CHMM-ALT). It fine-tunes a BERT-NER model with the labels inferred by CHMM, and this BERT-NER's output is regarded as an additional weak source to train the CHMM in return. Experiments on four NER benchmarks from various domains show that our method outperforms state-of-the-art weakly supervised NER models by wide margins.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2105.12848")

Code

Syntology Ran 0 of 20 code samples harvested from 2 repositories linked to this paper; 20 have no recorded run.

By repository: official repository: 15 samples from 1 repository, 0 ran; community (archive-listed): 5 samples from 1 repository, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Yinghao-Li/CHMM-ALT officialmentioned on GitHubpytorchApache-2.0 report
Yinghao-Li/Sparse-CHMM mentioned on GitHubpytorchApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

20 samples harvested; 0 ran; 0 honoured the contract we drafted; 20 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

20unverified

Licence: 0 of the 20 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

batch_prep Yinghao-Li/CHMM-ALT/src/chmm/dataset.py official repository unverified Apache-2.0 (permissive) · 796e527adb2ed3d8 · report
bc5cdr_annotators Yinghao-Li/CHMM-ALT/data_constr/src/wiser_annotator.py official repository unverified Apache-2.0 (permissive) · ebe8e4be2bc36479 · report
binary_search Yinghao-Li/CHMM-ALT/data_constr/src/data.py official repository unverified Apache-2.0 (permissive) · 07c3eac7eb4ccba4 · report
collate_fn Yinghao-Li/CHMM-ALT/src/chmm/dataset.py official repository unverified Apache-2.0 (permissive) · 0e2242a9ea204327 · report
construct_spacy_doc Yinghao-Li/CHMM-ALT/data_constr/src/skweak_annotator.py official repository unverified Apache-2.0 (permissive) · 1513a7e3c40ee51a · report
first_nonzero_idx Yinghao-Li/CHMM-ALT/data_constr/src/util.py official repository unverified Apache-2.0 (permissive) · 0bbaea3681a4d767 · report
get_overlaps Yinghao-Li/CHMM-ALT/data_constr/src/data.py official repository unverified Apache-2.0 (permissive) · 93b0b65911d51415 · report
laptop_annotators Yinghao-Li/CHMM-ALT/data_constr/src/wiser_annotator.py official repository unverified Apache-2.0 (permissive) · b7f01e56a9691559 · report
load_bc5cdr_sentences Yinghao-Li/CHMM-ALT/data_constr/src/io.py official repository unverified Apache-2.0 (permissive) · 4182f6dbfbb21083 · report
load_conll_2003_data Yinghao-Li/CHMM-ALT/data_constr/src/io.py official repository unverified Apache-2.0 (permissive) · 80f211d366ececf3 · report
load_src_metrics Yinghao-Li/CHMM-ALT/src/chmm/dataset.py official repository unverified Apache-2.0 (permissive) · f837fba980069ba0 · report
load_wikigold_data Yinghao-Li/CHMM-ALT/data_constr/src/io.py official repository unverified Apache-2.0 (permissive) · 223f33cec8c8003d · report
ncbi_annotators Yinghao-Li/CHMM-ALT/data_constr/src/wiser_annotator.py official repository unverified Apache-2.0 (permissive) · 092662782020e348 · report
one_hot Yinghao-Li/CHMM-ALT/data_constr/src/util.py official repository unverified Apache-2.0 (permissive) · 94f946467c015b2d · report
one_hot_to_string Yinghao-Li/CHMM-ALT/data_constr/src/util.py official repository unverified Apache-2.0 (permissive) · ceaaa5aea0a1ffec · report
batch_prep Yinghao-Li/Sparse-CHMM/sparse_chmm/collate.py community (archive-listed) unverified Apache-2.0 (permissive) · 6a3a0bf29f78b0d6 · report
collate_fn Yinghao-Li/Sparse-CHMM/sparse_chmm/collate.py community (archive-listed) unverified Apache-2.0 (permissive) · e14737726145e981 · report
log_matmul Yinghao-Li/Sparse-CHMM/sparse_chmm/math.py community (archive-listed) unverified Apache-2.0 (permissive) · 294c159dee8bc557 · report
log_maxmul Yinghao-Li/Sparse-CHMM/sparse_chmm/math.py community (archive-listed) unverified Apache-2.0 (permissive) · e89483f11a57dcbe · report
logsumexp Yinghao-Li/Sparse-CHMM/sparse_chmm/math.py community (archive-listed) unverified Apache-2.0 (permissive) · 9b68df96cc5a0174 · report

Tasks

NERNamed Entity RecognitionNamed Entity Recognition (NER)Weakly-Supervised Named Entity Recognitionnamed-entity-recognition

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

AdamAttentionAttention DropoutBERTDense ConnectionsDropoutLayer NormalizationLinear LayerLinear Warmup With Linear DecayMulti-Head AttentionResidual ConnectionSoftmaxWeight DecayWordPiece

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections