Qwen3.8-Flash-Next: rewriting output-layer rows removed Chinese from medical answers
This Zenn article records an experiment by an individual and a company. They used the Qwen3.8-Flash-Next model (Qwen Community License 1.0), a 4-bit MLX version run with mlx-serve on a Mac with 128 GB of memory. When asked medical questions in Japanese, its answers sometimes contained Chinese: simplified forms of Japanese characters (for example 误 instead of 誤) and whole Chinese words such as 这样的 and 啤酒.
The authors replaced the rows for 25,451 Chinese tokens[1] in the output layer[2] with copies of a row that no token uses, and left all other weights unchanged byte for byte. The model picks each token by its score (logit[3]), so the banned tokens now always score the same as the unused row. The ban list came from an earlier test on Qwen3.5-9B and includes tokens with kanji missing from JIS X 0213 and Chinese-language words.
In a test of 60 medical questions, 16 answers (27%) contained Chinese by automatic count, 14 (23%) after a manual check, and none after the edit. All 116 model files matched the original except the banned rows, and greedy outputs were identical wherever the ban did not act. The method has limits: the ban works per token, and in a Qwen3.5-9B test it blocked some Japanese words, such as 両性具有 becoming 両性具. The scores of banned tokens were not measured, and only the MLX version was tested. Kestrom is a tool the authors publish that changes only chosen parts of a model and checks that the rest stays the same.
Sources
-
JPZenn JA
Qwen3.8 Flash Nextに混ざる中国語を、出力層の書き換えで消した: 27%→0%、他の重みは1バイトも変えずに


