Speculating LLMs' Chinese Training Data Pollution from Their Tokens
Organizations: Tsinghua University · Ant Group · Nanyang Technological University · Zhongguancun Laboratory
Abstract
Tokens are basic elements in the datasets for LLM training. It is well-known that many tokens representing Chinese phrases in the vocabulary of GPT (4o/4o-mini/o1/o3/4.5/4.1/o4-mini) are indicating contents like pornography or online gambling. Based on this observation, our goal is to locate Polluted Chinese (PoC) tokens in LLMs and study the relationship between PoC tokens' existence and training data. (1) We give a formal definition and taxonomy of PoC tokens based on the GPT's vocabulary. (2) We build a PoC token detector via fine-tuning an LLM to label PoC tokens in vocabularies by considering each token's both semantics and related contents from the search engines. (3) We study the speculation on the training data pollution via PoC tokens' appearances (token ID). Experiments on GPT and other 23 LLMs indicate that tokens widely exist while GPT's vocabulary behaves the worst: more than 40% long Chinese tokens (i.e., a token with more than two Chinese characters) are either porn or online gambling. We validate the accuracy of our speculation method on famous pre-training datasets like C4 and Pile. Then, considering GPT-4o, we speculate that the ratio of "Yui Hatano" related webpages in GPT-4o's training data is around 0.5%.
Figures & tables
| Interpretation | Repetition | |||
| Normal | PoC | Normal | PoC | |
| 4-turbo | 86.1 | 72.2 | 100.0 | 100.0 |
| 4o | 88.0 | 43.7 | 96.0 | 54.2 |
| 4o-mini | 84.8 | 31.2 | 91.0 | 35.4 |
| o1-mini | 85.6 | 28.9 | 94.3 | 46.7 |
| o3-mini | 89.0 | 30.7 | 89.6 | 33.1 |
| Adult Content | Online Gambling | Online Game | Online Video | Anomalous | Total | |
| GPT-4o/o1/o3/4.5/4.1/o4 | 219 (13.2%) | 459 (27.7%) | 14 (0.84%) | 47 (2.83%) | 34 (2.05%) | 773 (46.6%) |
| BLOOM | 8 (0.11%) | 0 (0.00%) | 4 (0.06%) | 0 (0.00%) | 106 (1.51%) | 118 (1.68%) |
| Qwen2/2.5/3 | 1 (0.02%) | 13 (0.27%) | 26 (0.54%) | 1 (0.02%) | 7 (0.15%) | 48 (1.00%) |
| GLM4 | 4 (0.05%) | 2 (0.03%) | 6 (0.08%) | 2 (0.03%) | 5 (0.07%) | 19 (0.25%) |
| DeepSeek-V3/R1 | 6 (0.06%) | 0 (0.00%) | 2 (0.02%) | 1 (0.01%) | 8 (0.08%) | 17 (0.17%) |
| MiniCPM | 0 (0.00%) | 2 (1.92%) | 0 (0.00%) | 2 (1.92%) | 2 (1.92%) | 6 (5.77%) |
| Estimate from | ||||
| To | Pile | C4 | Dolma | Roots |
| Pile | 99.6 | 99.8 | 99.6 | 96.1 |
| C4 | 99.7 | 99.8 | 99.7 | 99.7 |
| Dolma | 59.9 | 68.6 | 99.7 | 61.9 |
| Roots | 99.8 | 99.8 | 99.8 | 99.7 |
Appendix figures & tables17 assets
Supplementary material from the paper’s appendix.
Appendix
| Category | Count | Percentage (%) |
| Normal Content | 3,008 | 76.73 |
| Adult Content | 277 | 7.07 |
| Online Gambling | 522 | 13.32 |
| Online Game | 16 | 0.41 |
| Online Video | 51 | 1.30 |
| Anomalous | 46 | 1.17 |
| Category | PoC tokens | Translation |
| Adult content | N/A | N/A |
| Online gambling | 太阳城 | Sun City casino |
| 菲律宾申博 | Philippines Shenbo betting | |
| Online game | N/A | N/A |
| Online video | 在线观看 | watch online |
| 在线视频 | online video |
| Category | PoC tokens | Translation |
| Adult content | 性生活 | sex life |
| 性疾病 | sexual disease | |
| 性问题 | sexual problem | |
| 的身子 | one’s body | |
| 露出一 | expose one/showing one | |
| 黄色的 | yellow/pornographic |
| Category | PoC tokens | Translation |
| Adult content | 性疾病 | sexual disease |
| Online gambling | 体育彩票 | sports lottery |
| 体育投注 | sports betting | |
| 北京赛车 | Beijing racing lottery | |
| 大发快三 | Dafa lottery game | |
| 太阳城 | Sun City casino |
| Category | PoC tokens | Translation |
| Adult content | N/A | N/A |
| Online gambling | 太阳城 | Sun City casino |
| 菲律宾申博 | Philippines Shenbo betting | |
| Online video | 在线观看 | watch online |
| 在线视频 | online video | |
| Anomalous | 二二二二 | meaningless fragments |
| Category | PoC tokens | Translation |
| Adult content | 性生活 | sex life |
| 性疾病 | sexual disease | |
| 性问题 | sexual problem | |
| 黄色的 | yellow/pornographic | |
| Online gambling | 届中国 | session China |
| 时时彩 | real-time lottery |
| Category | PoC tokens | Translation |
| Adult content | N/A | N/A |
| Online gambling | N/A | N/A |
| Online video | N/A | N/A |
| Anomalous | N/A | N/A |
| Online game | 的游戏 | of game |
Data Contamination in Language Models
Data contamination in language models examines how training exposure to evaluation data affects measured capability, benchmark validity, and model behavior.
See all 64 papers