[Paper Review] One-shot and few-shot learning of word embeddings
This paper proposes a method for one-shot and few-shot learning of word embeddings by fine-tuning only the embedding vectors of a new word while freezing all other network weights, using gradient descent on context sentences and negative samples from prior experience. The approach achieves performance comparable to full retraining with significantly less data and minimal interference with existing knowledge.
Standard deep learning systems require thousands or millions of examples to learn a concept, and cannot integrate new concepts easily. By contrast, humans have an incredible ability to do one-shot or few-shot learning. For instance, from just hearing a word used in a sentence, humans can infer a great deal about it, by leveraging what the syntax and semantics of the surrounding words tells us. Here, we draw inspiration from this to highlight a simple technique by which deep recurrent networks can similarly exploit their prior knowledge to learn a useful representation for a new word from little data. This could make natural language processing systems much more flexible, by allowing them to learn continually from the new words they encounter.
Motivation & Objective
- To enable deep learning systems to learn new word meanings from only one or a few examples, mimicking human one-shot learning capabilities.
- To address the limitation of standard word embedding models that cannot generalize to new words after initial training.
- To develop a method that integrates new word representations without catastrophic forgetting of previously learned knowledge.
- To explore whether a pre-trained network can leverage its internal knowledge to infer meaningful representations for rare or unseen words from minimal context.
Proposed method
- Freeze all network weights except for the embedding vectors of the new word, allowing only these to be updated during training.
- Use stochastic gradient descent with a learning rate of 0.01 to optimize the new word's embeddings over 100 epochs on sentences containing the word.
- Incorporate negative samples from the network’s prior experience to improve generalization and prevent overfitting to the few training examples.
- Initialize the new word’s embedding using three strategies: a rarely used token embedding, a zero vector, or the centroid of surrounding word embeddings.
- Compare the performance of the optimization-based method against the centroid baseline and full retraining on the entire corpus.
- Evaluate on a test set of 100 new words, measuring perplexity improvements and generalization to unseen contexts.
Experimental results
Research questions
- RQ1Can a pre-trained deep network learn a meaningful representation for a new word using only one or a few sentences?
- RQ2Does fine-tuning only the new word’s embedding, while freezing all other weights, prevent catastrophic interference and preserve existing knowledge?
- RQ3How does the performance of the proposed optimization method compare to simple centroid initialization and full retraining?
- RQ4To what extent does the method generalize to words that are semantically or syntactically consistent with the network’s existing knowledge?
Key findings
- The optimization-from-centroid method improved perplexity by 64% (11 percentage points) on average over the centroid baseline, with no instances of performing worse.
- The paired t-test confirmed the improvement was highly significant (t(99) = -20.5, p < 1×10⁻¹⁶).
- Despite receiving only 2.5% less training data, the proposed method performed comparably to full retraining, with no significant difference in performance (t(99) = 0.9, p = 0.39).
- The method effectively leveraged the network’s pre-existing syntactic and semantic knowledge to produce contextually appropriate embeddings for new words.
- The approach demonstrated robustness across diverse words and contexts, suggesting it captures structural patterns in language beyond simple vector averaging.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.