- Introduced by
- Mikolov et al. (Word2Vec); weak supervision framework: Ratner et al.
- Year
- 2013–2016
- Type
- Word embedding with noisy/programmatic labels
- Family
- Deep learning / NLP / CV
What does it do?
Weakly Supervised Word2Vec denotes an approach that trains Word2Vec-style static word embeddings while using automatically generated, noisy, or heuristic labels in place of manual annotation.
Labeling functions, distant supervision, or keyword rules assign soft labels to parts of an unlabeled corpus, and these labels bias which contexts and examples shape the learned vectors. The approach combines established component methods rather than forming a single canonical algorithm under this name.
The intuition behind the method
Standard Word2Vec learns only from co-occurrence statistics in raw text and ignores any task-specific distinction. Imperfect labels from keyword lists, rule-based taggers, or distant supervision can add that distinction at low annotation cost. The labels are used to weight or filter training contexts, while the Word2Vec objective continues to draw on unlabeled text, so general distributional structure is retained. How much the labels can steer the vectors depends on how accurate they are.
History
Word2Vec was introduced by Mikolov et al. (2013), and the negative-sampling and phrase-handling methods are presented in the cited Advances in Neural Information Processing Systems paper. Weak supervision through labeling functions and a label model was formalised for training-data creation in the data programming work of Ratner et al. (2016). Combining these two lines of work into a single Word2Vec variant is an approach rather than a named original method.
When to use it
Choose this approach when you need domain-specific static word embeddings, have little manually annotated data, and can write labeling heuristics such as keyword lists, gazetteers, or existing databases that cover your domain. It is most relevant where general-purpose embeddings represent domain vocabulary poorly, for example in biomedical, legal, or low-resource-language text. Manual labels are still required: a held-out gold set is needed for evaluation and for estimating the precision of each labeling function, so the approach reduces annotation effort rather than removing it. Do not use it when (1) a pretrained contextual model such as BERT or RoBERTa can be adapted to your domain at acceptable cost, since contextual models handle polysemy that static vectors cannot; (2) your labeling functions are unreliable or close to random, because the resulting embeddings may be worse than purely unsupervised ones; or (3) you must explain individual word associations to a non-specialist audience, since the weak-supervision layer adds steps that are hard to communicate.
Limitations and considerations
- Label noise enters through the filtering step and through label-conditional negative sampling, so errors in the labeling functions directly shape the geometry of the embedding space.
- The vectors are static: each word has one vector regardless of context, so polysemous domain terms are merged into a single representation.
- Labeling functions require domain knowledge and repeated revision, and their coverage determines which vocabulary receives any label signal.
- No standard evaluation protocol has been established for this combined approach, which makes results across studies difficult to compare.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Adds task-relevant signal to Word2Vec training without manual labeling of the whole corpus, because labels come from labeling functions applied to unlabeled text.
- The unsupervised Skip-Gram or CBOW objective still draws on unlabeled text, including tokens that receive no weak label, so distributional structure is kept.
- Low-confidence contexts can be downweighted or removed at the filtering step, which limits how much label noise reaches the training objective.
- The output is a standard static embedding table, so it can be passed to existing downstream models that accept word vectors without architectural changes.
Applications
- Biomedical text (possible use): building domain embeddings from scientific or clinical literature, with labeling functions based on controlled vocabularies such as MeSH terms.
- Legal text (possible use): domain-adapted vectors for classifying contracts or case law, guided by keyword heuristics drawn from statutory language.
- Low-resource languages (possible use): task-relevant embeddings where only small manually labeled datasets exist.
- Opinion mining in niche domains (possible use), where general-purpose embeddings may misrepresent domain vocabulary.
- Entity-mention clustering (possible use) as a preparatory step before a supervised named entity recognition model is trained.
- Retrieval features (possible use): query and document representations shaped by relevance heuristics drawn from existing knowledge bases.
How it works
How it works
Labeling functions, such as keyword dictionaries, regular expressions, distant supervision from a knowledge base, or heuristic rules, are applied to the unlabeled corpus. They produce noisy and sometimes conflicting labels for tokens or spans. A label model, in the style of the data programming approach of Ratner et al. (2016), can aggregate these signals into probabilistic soft labels.
Each sentence or context receives a confidence score derived from its aggregated weak labels. Low-confidence contexts can be removed or given lower weight, so that training relies more on examples where the label signal is reliable. The cut-off or weighting scheme is a design choice, and no standard value is established for this approach.
The filtered or weighted corpus is used to train a Word2Vec model with the Skip-Gram or CBOW objective (Mikolov et al., 2013), with negative sampling (Mikolov et al., 2013). Label-conditional negative sampling, in which negative examples are drawn with the label structure in mind, is a design option of this approach rather than an established Word2Vec procedure. Its effect on the geometry of the embedding space depends on label quality and is not established by the cited sources.
After initial training, a lightweight classification head can be added and trained with a cross-entropy loss on the weakly labeled examples, adjusting the embeddings toward the target categories. This stage is a design option of the approach and not a documented step of Word2Vec. Because it can move vectors away from the distributional structure learned from unlabeled text, its strength needs to be controlled.
Embedding quality is assessed with intrinsic tests, such as word similarity or analogy benchmarks, and with extrinsic tasks such as classification or named entity recognition. Extrinsic evaluation uses held-out manually labeled examples. Because the training labels are noisy, performance on clean gold data is the main check, and accuracy of the weak labels alone is not a sufficient measure.
Common pitfalls
- Judging the embeddings by weak-label accuracy alone, rather than by performance on a clean, held-out gold set and on intrinsic benchmarks.
- Combining correlated labeling functions as if they were independent, which can make a few shared errors look like agreement between sources.
- Applying keyword rules with low coverage to specialised text such as clinical notes, so that most terms of interest receive no label signal.
- Dropping the unsupervised training stage and fine-tuning only on weakly labeled examples, which can overfit the embeddings to the labeling heuristics.
- Removing rare tokens with a minimum-count threshold, although rare domain terms are often the vocabulary that domain adaptation is meant to cover.
Frequently asked questions
How is Weakly Supervised Word2Vec different from standard Word2Vec?
Standard Word2Vec uses only co-occurrence statistics from raw text. The weakly supervised variant uses noisy, programmatically generated labels to change training, through filtering or weighting of contexts, label-conditional negative sampling, or a later fine-tuning step. The aim is an embedding space that reflects task-relevant categories as well as distributional proximity.
When should I prefer this over fine-tuning a pretrained BERT model?
Static weakly supervised embeddings are a lighter option when a contextual model cannot be run on your target hardware, when latency or memory limits rule out transformer inference, or when a static vocabulary table is required by the downstream system. Where a pretrained contextual model can be adapted to your domain, it is usually the stronger starting point, because it handles context-dependent word meaning.
How do I check whether my labeling functions are good enough?
Measure coverage (the fraction of the corpus that receives a label), precision against a small manually labeled sample, and the rate of conflict and agreement among the labeling functions. Low coverage or low precision will limit how much useful signal reaches the embeddings, and the embeddings should be compared against an unsupervised baseline on the same gold test set.
Can I use this approach without the Snorkel framework?
Yes. Any method that assigns probabilistic or hard labels without full manual annotation falls under weak supervision, including distant supervision from a database, keyword rules, or heuristic crowd-sourced labels. Snorkel is one implementation associated with the data programming approach, but the method does not depend on it.
Does this method require GPU resources?
Standard Word2Vec training does not require a GPU. GPU hardware may speed up training on very large corpora, but it is not a requirement of the method. A label aggregation step, if used, is usually light by comparison, although its cost depends on the chosen label model.
Related methods
Sources
Mikolov, T., Sutskever, I., Chen, K., Corrado, G., & Dean, J. (2013). Distributed representations of words and phrases and their compositionality. Advances in Neural Information Processing Systems, 26.
Open publication referenceRatner, A. J., De Sa, C. M., Wu, S., Selsam, D., & Re, C. (2016). Data programming: Creating large training sets, quickly. Advances in Neural Information Processing Systems, 29.
Open publication reference