Lüshi-1840: Building and Probing a Knowledge Cutoff for a Classical Chinese Language Model
Organizations: Ybuild LLC
Abstract
Language models trained only on text from before a given year are useful for studying hindsight and historical language, but the open collections of pre-modern Chinese carry no publication dates and unreliable dynasty labels. We present Lüshi-1840, a 983M-parameter model trained from scratch on 12,262 books (1.28B characters) selected as composed before 1840. A first corpus, dated by a common heuristic, in effect ended at 1644 while containing twentieth-century material. We describe the re-dating and cleaning pipeline that replaced it and an audit with markers the pipeline did not use, which still finds later material. On the model side we measure surprisal, relative to a modern reference, on annals compiled after the cutoff. For events after 1840 against events up to 1820 the ratio is 1.38 (95% interval 1.33-1.44), against about 1.00 for modern general-purpose models. In a series of 294M models, adding the later court records lowers the ratio from 1.33 to 1.16, and the two models diverge from the 1820s, where the added records begin. The probe tracks the coverage of sources and does not establish a single cutoff year; none of our probes exposes the audited contamination. Model, book list and scripts will be released.
Figures & tables
| Prompt: 順治、康熙、雍正、乾隆、嘉慶、道光、 |
| (the Qing reign names in order, up to Daoguang, 1821–1850) |
| Lüshi-old: 咸豐、光緒、崇禎、同治、光緒… |
| Xianfeng (1851–61), Guangxu (1875–1908), …, Tongzhi (1862–74) |
| Lüshi-1840: 天啓、崇禎、皇清、雍正、乾隆… |
| two late-Ming reign names, then back to the early Qing |
| Prompt: 火輪車者, (“The fire-wheel carriage is”; a mid-nineteenth-century word for the train) |
| Marker | Old | New | |
| 光緒 | reign, 1875–1908 | 2,633 | 0 |
| 宣統 | reign, 1909–1911 | 246 | 0 |
| 李鴻章 | statesman, d. 1901 | 707 | 0 |
| 王先謙 | scholar, d. 1917 | 288 | 0 |
| 王國維 | scholar, d. 1927 | 135 | 0 |
| 梁啓超 | writer, d. 1929 | 86 | 0 |
| Decision | Books | M chars |
| Canon, kept whole | 5,291 | 177 |
| A: before 1840, kept | 8,359 | 1,173 |
| B: composed after 1840 | 164 | 27 |
| C: modern critical edition | 245 | 42 |
| D: undeterminable | 825 | 43 |
| A, dropped by backstop rules | 50 | 51 |
| 1820 | 1840 | post/pre [95% CI] | |
| Lüshi-1840 divided by reference: | |||
| Qwen2.5-7B | 0.958 | 1.326 | 1.384 [1.359, 1.411] |
| Qwen2.5-1.5B | 0.831 | 1.158 | 1.394 [1.368, 1.420] |
| Gemma-4-E4B | 0.838 | 1.156 | 1.380 [1.353, 1.407] |
| Yi-1.5-6B | 1.030 | 1.428 | 1.386 [1.359, 1.412] |
| Yi-1.5-9B | 1.057 | 1.457 | 1.378 [1.350, 1.406] |
| Persons | Ours | Old | Q-1.5B | Q-7B | |
|---|---|---|---|---|---|
| died before 1800 | 1,172 | .824 | .709 | .506 | .734 |
| born 1800–1839 | 86 | .442 | .337 | .360 | .581 |
| born 1840 or later | 184 | .348 | .364 | .435 | .663 |
| drop, first to last | .476 | .345 | .071 | .071 |
| Prompt (ending) | Lüshi-old | Lüshi-1840 |
|---|---|---|
| …嘉慶、道光、 | 1 / 1.99 | 203 / 7.77 |
| …宣宗道光,文宗 | 77 / 6.64 | 337 / 10.49 |
| …道光三十年, | 5 / 3.16 | 357 / 9.51 |
Appendix figures & tables2 assets
Supplementary material from the paper’s appendix.
Appendix
| MTJ | Qingshi gao annals | ||||
| 1368– | 1645– | 1736– | 1821– | 1841– | |
| Model | 1644 | 1735 | 1820 | 1840 | 1911 |
| Lüshi-1840 | 4.59 | 4.56 | 4.06 | 4.67 | 6.11 |
| Lüshi-old | 5.05 | 5.77 | 5.64 | 5.98 | 6.42 |
| Qwen2.5-1.5B | 5.62 | 5.28 | 5.06 | 5.04 | 5.27 |
| Gemma-4-E4B | 5.74 | 5.28 | 4.98 | 4.99 | 5.28 |
| Task | Ours | Old | Q-0.5B | Q-1.5B | |
|---|---|---|---|---|---|
| Segmentation | 500 | 69.2 | 52.6 | 92.8 | 93.8 |
| Poetry quality | 406 | 52.0 | 61.6 | 44.1 | 50.5 |
| Couplets | 500 | 38.6 | 32.2 | 38.0 | 42.4 |
| Medical texts | 211 | 33.2 | 33.6 | 24.2 | 29.4 |
| Sinology basics | 136 | 32.4 | 32.4 | 30.1 | 31.6 |
| Poetry apprec. | 103 | 31.1 | 25.2 | 16.5 | 15.5 |
Language Modeling
Language modeling develops systems that learn patterns in text and other sequences to understand, predict, and generate language.
See all 521 papers