Language models are widely used in computational psycholinguistics to test theories that relate the negative log probability (the surprisal) of a region of interest (a substring of characters) under a language model to its cognitive cost experienced by readers, as operationalized, for example, by gaze duration on the region. However, the application of modern language models to psycholinguistic studies is complicated by the practice of using tokenization as an intermediate step in training a model. Doing so results in a language model over token strings rather than one over character strings. Vexingly, regions of interest are generally misaligned with these token strings. The paper argues that token-level language models should be (approximately) marginalized into character-level language models before they are used in psycholinguistic studies to compute the surprisal of a region of interest; then, the marginalized character-level language model can be used to compute the surprisal of an arbitrary character substring, which we term a focal area, that the experimenter may wish to use as a predictor. Our proposal of marginalizing a token-level model into a character-level one solves this misalignment issue independently of the tokenization scheme. Empirically, we discover various focal areas whose surprisal is a better psychometric predictor than the surprisal of the region of interest itself.
Conditional Unigram Tokenization with Parallel Data
Institute of Formal and Applied Linguistics, Faculty of Mathematics and Physics, Charles University, Prague, Czech Republic(形式与应用语言学研究所,数学与物理系,查尔斯大学,布拉格,捷克共和国)
Department of Computing Science, Umeå University(乌梅大学计算机科学系);Department of Computer Science, Stellenbosch University(斯坦福博芝大学计算机科学系);National Institute for Theoretical and Computational Sciences, South Africa(南非理论与计算科学国家研究所)
Characterizing the Role of Similarity in the Property Inferences of Language Models
The University of Texas at Austin(德克萨斯大学奥斯汀分校);Northeastern University(东北大学);Technion – Israel Institute of Technology(以色列理工学院);Toyota Technological Institute at Chicago(丰田芝加哥技术学院)