paper-with-me

Papers

You should evaluate your language model on marginal likelihood over tokenisations

2021-09-06 · EMNLP 2021 11 · Kris Cao, Laura Rimell

Neural language models typically tokenise input text into sub-word units to achieve an open vocabulary. The standard approach is to use a single canonical tokenisation at both train and test time. We suggest that this approach is unsatisfactory and may bottleneck our evaluation of language model performance. Using only the one-best tokenisation ignores tokeniser uncertainty over alternative tokenisations, which may hurt model out-of-domain performance. In this paper, we argue that instead, language models should be evaluated on their marginal likelihood over tokenisations. We compare different estimators for the marginal likelihood based on sampling, and show that it is feasible to estimate the marginal likelihood with a manageable number of samples. We then evaluate pretrained English and German language models on both the one-best-tokenisation and marginal perplexities, and show that the marginal perplexity can be significantly better than the one best, especially on out-of-domain data. We link this difference in perplexity to the tokeniser uncertainty as measured by tokeniser entropy. We discuss some implications of our results for language model training and evaluation, particularly with regard to tokenisation robustness.

📄 PDF Abstract BibTeX arXiv:2109.02550

Code (0)

등록된 구현이 없습니다.

Tasks

Language ModelingLanguage Modelling

Similar Papers 제목 키워드 기반

Simulation-efficient marginal posterior estimation with swyft: stop wasting your precious time

2020-11-27 · Benjamin Kurt Miller, Alex Cole, Gilles Louppe, Christoph Weniger

We present algorithms (a) for nested neural likelihood-to-evidence ratio estimation, and (b) for simulation reuse via an inhomogeneous Poisson point process cache of parameters and corresponding simulations. Together, th…

AstronomyBayesian Inference

It Is Likely That Your Loss Should be a Likelihood

2020-07-12 · Mark Hamilton, Evan Shelhamer, William T. Freeman

Many common loss functions such as mean-squared-error, cross-entropy, and reconstruction loss are unnecessarily rigid. Under a probabilistic interpretation, these common losses correspond to distributions with fixed shap…

Outlier Detection

Occam's Razor is Only as Sharp as Your ELBO

2026-04-28 · Ethan Harvey, Michael C. Hughes arxiv

The marginal likelihood, also known as the evidence, is regarded as a mathematical embodiment of Occam's razor, enabling model selection that avoids overfitting. The evidence lower bound (ELBO) objective from variational…

Should you marginalize over possible tokenizations?

2023-06-30 · Nadezhda Chirkova, Germán Kruszewski, Jos Rozen, Marc Dymetman

Autoregressive language models (LMs) map token sequences to probabilities. The usual practice for computing the probability of any character string (e.g. English sentences) is to first transform it into a sequence of tok…

Learning Invariances using the Marginal Likelihood

2018-08-16 · NeurIPS 2018 12 · Mark van der Wilk, Matthias Bauer, ST John, James Hensman

Generalising well in supervised learning tasks relies on correctly extrapolating the training data to a large region of the input space. One way to achieve this is to constrain the predictions to be invariant to transfor…

Data AugmentationGaussian ProcessesTranslationVariational Inference