PulseAugur
实时 23:20:36
English(EN) TruncProof: A Guardrail for LLM-based JSON Generation under Token-Length Constraints

TruncProof 确保 LLM 在令牌限制内生成有效的 JSON

研究人员开发了 TruncProof,这是一种确保大型语言模型 (LLM) 在严格的令牌限制内生成有效 JSON 输出的新方法。该方法利用 LL(1) 解析器的属性,在每一步高效地估算语法正确输出所需的令牌数。实验表明,TruncProof 在严格的约束下能够成功生成语法正确的 JSON,并且可以与先进的解码策略结合以提高语义准确性。 AI

影响 提高了需要结构化数据输出的 LLM 集成的可靠性。

排序理由 学术论文,详细介绍了一种新的 LLM 输出生成方法。[lever_c_demoted from research: ic=1 ai=1.0]

在 arXiv cs.CL 阅读 →

AI 生成摘要 · Google Gemini · 来自 1 个来源。 我们如何撰写摘要 →

TruncProof 确保 LLM 在令牌限制内生成有效的 JSON

报道来源 [1]

  1. arXiv cs.CL TIER_1 English(EN) · Yoshio Kato, Shuhei Tarashima ·

    TruncProof: A Guardrail for LLM-based JSON Generation under Token-Length Constraints

    arXiv:2605.13076v2 Announce Type: replace Abstract: The LLM-based generation of machine-readable outputs such as JSON has attracted significant attention for integration with external systems. However, existing approaches cannot strictly enforce the maximum number of tokens to be…