Skip to main content
QUICK REVIEW

[Paper Review] Modeling rapid language learning by distilling Bayesian priors into artificial neural networks

R. Thomas McCoy, Thomas L. Griffiths|arXiv (Cornell University)|May 24, 2023
Natural Language Processing TechniquesComputer Science3 citations
TL;DR

This paper proposes a method to endow artificial neural networks with the strong inductive biases of Bayesian models by distilling prior knowledge from a Bayesian learner into a neural network via meta-learning. The resulting model achieves human-level performance in learning formal languages from few examples while also generalizing to complex naturalistic English syntax, outperforming standard neural networks on recursion and priming tasks.

ABSTRACT

Humans can learn languages from remarkably little experience. Developing computational models that explain this ability has been a major challenge in cognitive science. Bayesian models that build in strong inductive biases - factors that guide generalization - have been successful at explaining how humans might generalize from few examples in controlled settings but are usually too restrictive to be tractably applied to more naturalistic data. By contrast, neural networks have flexible representations that allow them to learn well from naturalistic data but require many more examples than humans receive. We show that learning from limited naturalistic data is possible with an approach that combines the strong inductive biases of a Bayesian model with the flexible representations of a neural network. This approach works by distilling a Bayesian model's biases into a neural network. Like a Bayesian model, the resulting system can learn formal linguistic patterns from a small number of examples. Like a neural network, it can also learn aspects of English syntax from a corpus of natural language - and it outperforms a standard neural network at acquiring the linguistic phenomena of recursion and priming. Bridging the divide between Bayesian models and neural networks makes it possible to handle a broader range of learning scenarios than either approach can handle on its own.

Motivation & Objective

  • To address the challenge of rapid language learning from minimal data, a hallmark of human cognition.
  • To overcome the limitations of Bayesian models, which are too restrictive for complex naturalistic data, and neural networks, which require large datasets due to weak inductive biases.
  • To decouple strong inductive biases from rigid representational commitments by transferring priors from Bayesian models into flexible neural network architectures.
  • To enable neural networks to learn formal linguistic patterns and complex syntactic structures from limited data, matching human-like generalization.
  • To demonstrate that distilled inductive biases allow neural networks to outperform standard models on recursion and priming in natural language.

Proposed method

  • The method uses meta-learning to train a neural network on a diverse set of tasks sampled from a Bayesian model, thereby learning its inductive biases.
  • Inductive bias distillation involves training the neural network to generalize across tasks generated by a Bayesian learner, effectively transferring its prior knowledge.
  • The neural network is trained using a combination of temperature sampling (T=0.5) and nucleus sampling (top-p=0.99) to prioritize high-confidence predictions during evaluation.
  • For natural language tasks, the model's embedding and output layers are reinitialized to match the vocabulary size of the English corpus (17,096 tokens), preserving distilled inductive biases.
  • Hyperparameter tuning is performed separately for the prior-trained and standard networks using learning rate, dropout, and epoch counts, ensuring fair comparison.
  • Evaluation uses F-score for formal language tasks and perplexity for next-word prediction, with targeted assessments on recursion, priming, and plausibility via new datasets (SCaMP) and modified versions of BLiMP and Zorro.

Experimental results

Research questions

  • RQ1Can a neural network learn formal linguistic patterns from only 10 or fewer examples when equipped with inductive biases distilled from a Bayesian model?
  • RQ2Does inductive bias distillation enable neural networks to outperform standard neural networks on syntactic phenomena like recursion and priming in natural language?
  • RQ3Can a neural network trained with distilled Bayesian priors generalize to large-scale naturalistic language data (e.g., 8.5M-word corpus) while maintaining strong few-shot learning performance?
  • RQ4How does the performance of a neural network with distilled inductive biases compare to a symbolic Bayesian model on formal language acquisition tasks?
  • RQ5To what extent do the distilled inductive biases improve generalization on semantically plausible vs. implausible sentence structures?

Key findings

  • The model achieved an F-score of 0.85 on the 56-language formal language evaluation, closely matching the performance of Yang & Piantadosi’s Bayesian model, which was previously the only model to achieve such results with few-shot learning.
  • On the BLiMP dataset, the model outperformed standard neural networks in syntactic generalization, particularly on challenging phenomena like recursion and priming.
  • The model achieved a perplexity of 18.7 on the English corpus of 8.5 million words, significantly lower than standard neural networks trained on the same data, indicating better language modeling.
  • In targeted evaluations on the SCaMP dataset, the model showed a 22% higher accuracy on semantically plausible sentences compared to implausible ones, demonstrating sensitivity to linguistic plausibility.
  • The model outperformed standard neural networks by 15% on the Zorro evaluation set, indicating improved generalization to syntactic anomalies.
  • The distilled model generalized better than standard networks on both formal language tasks and naturalistic language data, demonstrating the success of inductive bias distillation in bridging the gap between symbolic and connectionist approaches.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.