面向神经语义解析的结构自动机 Structural Automata for Neural Semantic Parsing 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-10-09
⬇️ 2 次下载
👁️ 预览文献
💡 AI 中文简介
神经语义解析器逐词生成语义表示,但合法性依赖生成过程中的引用、作用域和图关系。约束解码只能防止局部无效词,无法保证在固定长度内完成有效输出。本文在DRS解析的解码、后处理和训练三阶段引入结构自动机,并提出接受路径解码(APD),在剩余长度内保持可验证的完成路径,优先跟随模型偏好词。在严格长度限制下,APD在DRS和AMR上分别比局部掩码提升Smatch++ 5.1/2.4和6.4/3.2分,且无需回退词元。后处理中,无效输出集中在相同输入上;训练中惩罚自动机拒绝的词元可在10%训练后提升3.6-11.0分,但优势随训练减弱。
领域自然语言处理 / 语义解析
适合谁读需要一定专业背景
核心贡献提出接受路径解码(APD),在固定长度限制下保证输出被接受且无需回退词元;系统评估结构自动机在解码、后处理和训练三阶段的作用,揭示无效输出集中现象及训练惩罚的早期收益。
关键数据严格长度限制下,APD比局部掩码在DRS上提升Smatch++ 5.1和2.4分,在AMR上提升6.4和3.2分;训练中惩罚自动机拒绝词元在10%训练后提升3.6-11.0分,但交叉熵使拒绝词元概率从14%降至2%以下。
推荐理由如果你关心如何让神经生成模型输出严格合法的结构,这篇论文给出了无需回退的高效解码方案和扎实的实验分析,值得一读。
关键词["语义解析", "结构自动机", "约束解码", "接受路径解码", "DRS解析", "AMR解析"]

原文摘要

查看英文原文摘要

Neural semantic parsers generate meaning representations token by token, yet well-formedness depends on references, scope, and graph relations that unfold during generation. Constrained decoding prevents locally invalid tokens but does not guarantee that a valid prefix can be completed within a fixed output-length limit. We investigate structural automata at three stages of DRS parsing (decoding, post hoc processing, and training) and additionally evaluate decoding on AMR. For decoding, we introduce accepting-path decoding (APD), which maintains a verified completion within the remaining length limit and follows the model's preferred token whenever that token can also be completed. APD guarantees an accepted output without retracting tokens. Under tight length limits, it improves Smatch++ over local masking by 5.1 and 2.4 points on DRS and by 6.4 and 3.2 points on AMR, comparable to rollback under the same limit, which retracts tokens. For post hoc processing, invalid outputs concentrate on the same inputs: eight unconstrained samples yield no valid output for 10.2% of inputs with limited training data, compared with 0.4% with full data, where filtering comes within 0.2 Smatch++ points of APD. For training, penalizing automaton-rejected tokens improves development Smatch++ by 3.6-11.0 points after 10% of training, but this advantage diminishes as cross-entropy alone reduces the probability assigned to rejected tokens from 14% to below 2% within the first sixth of training with limited data.