arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.25356cs.LGcs.AIcs.CL
收藏

CHSM8:一款遵循自然语言风格提示的国际象棋Transformer

CHSM8: A Chess Transformer that Follows Natural-Language Style Prompts

Ilia Badanin

AI总结:

本研究提出2.1亿参数的国际象棋Transformer CHSM8,经预训练、监督式微调与直接偏好优化后,可遵循自然语言风格提示落子,风格遵循度提升且强度稳定,成果完全开源可复现。

摘要:

我们提出了CHSM8,这是一款拥有2.1亿参数的国际象棋Transformer,可根据自由文本描述的对弈风格来落子,例如“采用西西里防御”“稳健、安全、无风险的国际象棋”或“你是巅峰时期的马格努斯·卡尔森”。该模型在无搜索的情况下,基于10.7亿条经过筛选的Lichess棋局进行预训练,采用了因子化解的走法表示和合法走法掩码。它在与强度受限的Stockfish对弈时达到了1837 Elo,且在1000局对弈中,击败了我们测试的其他所有同样未经过偏好调整、奖励或搜索训练的公开模型,包括一个参数规模是其13倍的模型。随后,我们在合成数据集上对其进行微调以遵循文本描述:Gemma-4-31B描述了300万局对弈局面的风格,从这些描述中提炼出的10亿参数Gemma-3模型(与棋盘标签无冲突)对其余局面进行标注,且每3000万条选定的对弈局面都配有5条描述。监督式微调通过门控交叉注意力连接一个冻结的文本编码器,直接偏好优化(DPO)则将不匹配描述下的相同走法作为拒绝样本。经过DPO后,我们测试的所有提示下的风格遵循度均有所提升(例如,早期后翼交换占比从53%升至67%,兵步占比从29%升至32%,后翼王车易位占比从97.3%升至99.7%),且无提示时的强度仍处于监督式微调(SFT)的噪声范围内(1792 vs. 1797 Elo)。各阶段的设计选择均通过固定预算的自动搜索循环在标准架构和训练方案上完成。我们记录了完整的流程及背后的决策,报告了失败的 ablation 实验,并在多种风格提示和棋局类型上对模型进行评估,每个设置下有1000局对弈。该工作完全开源且可复现:权重、带有所有训练标签的数据集、提示、配置、推理代码和可玩演示均公开且可免费使用。

英文摘要:

We present CHSM8, a 210M-parameter chess transformer that plays moves conditioned on a free-text description of a playing style, e.g. "go for the Sicilian Defense", "solid, safe, risk-free chess" or "You are Magnus Carlsen in his prime". The model is pretrained without search on 1.07B filtered Lichess games, using a factorized move representation and legal-move masking. It reaches 1837 Elo against a strength-limited Stockfish and, in 1,000-game matches, beat every other public model we tested that was likewise trained without preference tuning, rewards or search, including one with 13 times as many parameters. We then fine-tune it to follow text on a synthetic dataset: Gemma-4-31B describes the playing style of 3M game sides, a 1B Gemma-3 model distilled from the 2.4M of those descriptions that contradict nothing on the board labels the rest, and every one of 30M selected game sides gets five descriptions. Supervised fine-tuning attaches a frozen text encoder through gated cross-attention, and direct preference optimization (DPO) uses the same moves under a mismatched description as the rejected sample. After DPO, style adherence rises on every prompt we test (for example, queens traded early 53% -> 67%, pawn moves 29% -> 32% of all moves, queenside castling 97.3% -> 99.7%), and strength without a prompt stays within noise of SFT (1792 vs. 1797 Elo). Design choices at every stage were made by fixed-budget automated search loops on top of standard architectures and training recipes. We document the full pipeline and the decisions behind it, report the ablations that failed, and evaluate the models across many style prompts and kinds of games, with 1,000 games per setting. The work is fully open source and reproducible: weights, datasets with all training labels, prompts, configurations, inference code and playable demos are public and free to build on.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑