BoundRL: 通过强化边界生成实现高效的结构化文本分段
BoundRL: Efficient Structured Text Segmentation through Reinforced Boundary Generation
AI总结:
本文提出BoundRL,一种高效处理长结构化文本的分段与标签预测方法,通过强化学习优化文档重建和语义对齐,减少输出token并降低幻觉风险,实验证明其在复杂提示下优于其他基线方法。
摘要:
结构化文本是指包含超出现有文本的结构化元素(如代码片段和占位符)的文本。此类文本日益需要分段为语义有意义的组件,而传统基于句子的分段方法无法有效处理。为此,我们提出了BoundRL,一种新的方法,联合高效地进行token级文本分段和标签预测。与生成每个段的完整文本不同,它仅生成起始token,并通过在原始文本中定位这些token来重建完整文本,从而将输出token减少90%并最小化幻觉。为训练边界生成模型,BoundRL采用可验证奖励的强化学习(RLVR),联合优化文档重建保真度和语义对齐。此外,通过扰动段边界和标签来构建中间候选方案,缓解熵崩溃问题。实验表明,BoundRL使小型语言模型(1.7B参数)在复杂提示下优于基于少样本提示的更大模型以及SFT和标准RLVR基线方法。
英文摘要:
Structured texts refer to texts containing structured elements beyond plain texts, such as code snippets and placeholders. Such structured texts increasingly require segmentation into semantically meaningful components, which cannot be effectively handled by conventional sentence-level segmentation methods. To address this, we propose BoundRL, a novel approach that jointly performs efficient token-level text segmentation and label prediction for long structured texts. Instead of generating full texts for each segment, it generates only starting tokens and reconstructs the complete texts by locating these tokens within the original texts, thereby reducing output tokens by 90% and minimizing hallucination. To train the models for the boundary generation, BoundRL~performs reinforcement learning with verifiable rewards (RLVR) that jointly optimizes document reconstruction fidelity and semantic alignment. It further mitigates entropy collapse by constructing intermediate candidates by perturbing segment boundaries and labels to create stepping stones toward higher-quality solutions. Experiments show that BoundRL enables small language models (1.7B parameters) to outperform few-shot prompting with much larger models as well as SFT and standard RLVR baselines on complex prompts used for LLM applications.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。