onPanda:通过Token级校正高效标注LLM和智能体的在线策略对齐数据

·

研究论文 · 2026/09/22

我们提出了 onPanda,一个用于高效标注 LLM 对齐数据和智能体轨迹的交互式工具。onPanda 以 token 级修正为核心交互方式:在阅读模型响应时,标注者定位第一个不合适的 token,然后从模型的候选 token 中选择替代项,或通过自由形式编辑输入正确文本。系统随后截断该位置之后的所有内容,并从修正后的前缀继续生成,重复这一“定位-修正-继续”循环,直到获得满意的响应。这种机制让标注者能够以低成本精确引导模型输出:一项小型对照研究表明,onPanda 将中位标注时间比手动后编辑减少了 52%。由于最终响应中的绝大多数 token 由模型自身生成,所得数据在很大程度上保留了模型的采样分布,非常适合构建 on-policy SFT 和偏好数据。此外,标注过程中记录的 token 级修正提供了具有精确位置和自然配对的正负样本的细粒度监督。onPanda 还连接到外部工具和 harness,支持在真实环境中进行交互式轨迹标注。另外,我们发布了 Panda-CVL,一个用 onPanda 标注的数据集,以及一个用于 token 级修正的基准。

onPanda 通过 token 级修正显著降低标注成本,同时保持数据在模型采样分布内,为构建 on-policy 对齐数据提供了高效且高质量的方案,并附带数据集和基准,对 LLM 对齐和智能体训练有实用价值。

We present onPanda, an interactive tool for efficiently annotating LLM alignment data and agent trajectories. onPanda adopts token-level correction as its core interaction: while reading a model response, the annotator locates the first inappropriate token and either picks a substitute from the model's candidate tokens or types the correct text via free-form editing. The system then truncates everything after that position and continues generation from the corrected prefix, repeating this locate-correct-continue loop until a satisfactory response is obtained. This mechanism lets annotators precisely steer model outputs at low cost: a small controlled study suggests that onPanda reduces median annotation time by 52% over manual post-editing. Since the vast majority of tokens in the final response are generated by the model itself, the resulting data largely preserves the model's sampling distribution and is well suited for constructing on-policy SFT and preference data. Furthermore, the token-level corrections recorded during annotation provide fine-grained supervision with precise positions and naturally paired positive--negative samples. onPanda also connects to external tools and harnesses, enabling interactive trajectory annotation in realistic environments. In addition, we release Panda-CVL, a dataset annotated with onPanda, together with a benchmark for token-level correction.

阅读原文

参与讨论