让长文本翻译出错时能自动恢复,保证结果可用。
Failure-Aware Long-Form Translation: Design and Implementation of a Recoverable LLM Translation System
- 延迟输出64字符后验证,用事件类型区分续传与替换
- 仅当可从原文重推时才保留中断内容,避免无效数据
- 适合高可靠性翻译系统开发者参考
长文本翻译请求在API层可能成功,但输出仍可能为空、截断、被过滤、充斥源文或提示内容,或在生成有价值内容后中断。本文描述为部署式异构输入与服务接口设计的恢复协议:延迟首次可见输出超过64字符,验证拼接结果,利用类型化流事件区分替换与续传。仅当能从源文重新推导出段落或句子前缀时,才保留中断工作。后续尝试遵循稳定模型顺序与共享截止时间,再进入带溯源标记的降级路径。一个净化版配套工具实现该协议,在38个公开测试中通过;其修复案例重现全部14种配置完成标签,包含4个早期失效前缀(在235个字符可见前暴露),跨4次中断流保留31个边界安全字符,并在两个端到端场景中满足尝试、事件和溯源规则。这些结果为发布控制流提供了可执行检验。自然输出的质量与检测器表现需另作评估。
原文摘要 · Abstract (English)
A long-form translation request can succeed at the API layer and still produce an unusable result. The output may be empty, truncated, filtered, dominated by source or prompt material, or interrupted after producing text worth keeping. This report describes a recovery protocol developed for a deployed translation system with heterogeneous inputs and provider APIs. It delays the first visible release behind a 64-character window, validates the assembled output, and uses typed stream events to distinguish replacement from continuation. Interrupted work is retained only when a paragraph or sentence prefix can be re-derived from the source. Further attempts follow a stable model order and a shared deadline before entering a provenance-marked fallback path. A sanitized companion artifact implements the protocol and passes 38 public tests. Its fixed cases reproduce all 14 configured completion labels, contain four early-invalid prefixes before any of their 235 characters become visible, retain 31 boundary-safe characters across four interrupted streams, and satisfy the attempt, event, and provenance rules in two end-to-end scenarios. These results are executable checks of the published control flow. Translation quality and detector performance on naturally occurring outputs require a different evaluation.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。