English

Metadata Might Make Language Models Better

Computation and Language 2022-11-21 v1 Digital Libraries

Abstract

This paper discusses the benefits of including metadata when training language models on historical collections. Using 19th-century newspapers as a case study, we extend the time-masking approach proposed by Rosin et al., 2022 and compare different strategies for inserting temporal, political and geographical information into a Masked Language Model. After fine-tuning several DistilBERT on enhanced input data, we provide a systematic evaluation of these models on a set of evaluation tasks: pseudo-perplexity, metadata mask-filling and supervised classification. We find that showing relevant metadata to a language model has a beneficial impact and may even produce more robust and fairer models.

Keywords

Cite

@article{arxiv.2211.10086,
  title  = {Metadata Might Make Language Models Better},
  author = {Kaspar Beelen and Daniel van Strien},
  journal= {arXiv preprint arXiv:2211.10086},
  year   = {2022}
}
R2 v1 2026-06-28T06:11:37.858Z