Manuscript Offprint

arXiv:2608.29921

Sleight of Word Benchmark: Can Language Models Notice If Their Own Output Was Tampered With?

Alberto Cetoli

Abstract

The output of a Language Model can be tampered with while the model is writing it. A simple test can thus be constructed by evaluating the model's perception of this external perturbation. In this spirit, a simple benchmark is built in which a single word is consistently substituted with another in the generation process. We call this method Sleight of Word. Two distinct axes are measured: metrics that relate to the model's surprise, as well as an evaluation of the textual reaction for 19 different open-weight language models.

1 Introduction

Auto-regressive Language Models write text one token at a time. The new tokens are then concatenated to the prior text and become part of the input for the next prediction. In a controlled environment, it is possible to change the value of selected tokens before they are fed back to the model, as shown in Fig. 1. A model capable of introspection (or simple self-monitoring) should be able to detect external interference (Lindsey, 2025; Kadavath et al., 2022).

In this paper, our objective is to change the output of the model as it is written and to measure if the model notices the switch. To fulfill this purpose, a black-box Sleight of Word benchmark is built, usable by any open-weight Language Model. Specifically, the word “the” is consistently substituted with another chosen from a set of 100 randomly selected words (see Appendix E).

Two streams of measurements are then provided: the change in the model's confidence when generating new tokens, as well as a jury of Language Models (Chiang and Lee, 2023; Zheng et al., 2023; Verga et al., 2024) judging whether the model has noticed that the wrong word appears in the answer. The benchmark code is released as open source at https://github.com/fractalego/Sleight-of-Word, together with an online leaderboard at https://fractalego.github.io/Sleight-of-Word/.

References (23)