Benchmarking Neural Network Generalization for Grammar Induction

Nur Lan, Emmanuel Chemla, Roni Katzir
8/16/2023
cs.CL

Official code: taucompling/bliss (13 stars, MIT, last commit 2023-09-10).

Abstract

How well do neural networks generalize? Even for grammar induction tasks, where the target generalization is fully known, previous works have left the question open, testing very limited ranges beyond the training set and using different success criteria. We provide a measure of neural network generalization based on fully specified formal languages. Given a model and a formal grammar, the method assigns a generalization score representing how well a model generalizes to unseen samples in inverse relation to the amount of data it was trained on. The benchmark includes languages such as $a^nb^n$, $a^nb^nc^n$, $a^nb^mc^{n+m}$, and Dyck-1 and 2. We evaluate selected architectures using the benchmark and find that networks trained with a Minimum Description Length objective (MDL) generalize better and using less data than networks trained using standard loss functions. The benchmark is available at https://github.com/taucompling/bliss.

View on arXivView PDF

Code Implementations(1)

taucompling/blissOfficial100%
MIT

🧘 BLISS – a Benchmark for Language Induction from Small Sets

130PythonJul 26, 20233 years agoMIT

Similar Papers

Cite this paper

@article{lan2023benchmarking,
  title  = {Benchmarking Neural Network Generalization for Grammar Induction},
  author = {Nur Lan and Emmanuel Chemla and Roni Katzir},
  year   = {2023},
  eprint = {2308.08253},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2308.08253v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2308.08253.svg)](https://codeofpaper.com/paper/2308.08253)

Discussion