RL 训练暗藏 tokenizer 陷阱:srush 用 Lean 形式化验证修复 tito 问题

VoidAsuka · x · 2026-11-02

背景

reinforcement learning 中存在 tito(token-in, token-out)难题:消息、字节、token 三种表示之间的编解码不是双射——token 解码再编码可能回不到原序列,字节改动还会双向传播影响 tokenization。这在预训练和 SFT 中不成问题(用的是固定 tokenized 表示),但在 RL 的 rollout 流程里会引发一类隐蔽的训练 bug。

各方进展

核心问题:推理-训练不匹配

Agent 通过结构化消息(工具调用)通信,而消息渲染器允许任意全局 Python 代码(如加入用户消息时改写历史 assistant 消息、剥离 thinking),进一步加剧了不一致。

原文链接 →

「编程与Agent」频道最新

更多「编程与Agent」频道 AI 资讯 →