arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.13896cs.CL

用于神经语义解析的结构自动机

Structural Automata for Neural Semantic Parsing

University of Groningen(格罗宁根大学)

Xiao Zhang

AI总结:

该研究在DRS和AMR语义解析中引入接受路径解码(APD)等结构自动机方法,提升了严格长度限制下的Smatch++指标,为神经语义解析的解码、事后处理及训练提供了改进方案。

摘要:

神经语义解析器会逐词生成意义表示,但其格式正确性取决于生成过程中展开的引用、作用域和图关系。约束解码可防止局部无效词,但无法保证在固定输出长度限制内可完成有效前缀。我们在DRS解析的三个阶段(解码、事后处理和训练)研究结构自动机,并额外评估AMR上的解码性能。对于解码,我们引入接受路径解码(APD),该方法会在剩余长度限制内维持可验证的完成结果,且只要模型偏好的词也能完成,就会遵循该词。APD可保证生成被接受的输出,无需撤回词。在严格长度限制下,它在DRS上比局部掩码的Smatch++提升5.1和2.4个百分点,在AMR上提升6.4和3.2个百分点,与相同限制下需撤回词的回退方法表现相当。对于事后处理,无效输出集中在相同输入上:在训练数据有限时,8个无约束样本会导致10.2%的输入无有效输出,而在完整数据下该比例为0.4%,其中过滤方法的Smatch++与APD相差不超过0.2个百分点。对于训练,惩罚自动机拒绝的词在训练10%后可将开发集Smatch++提升3.6至11.0个百分点,但在数据有限时,仅交叉熵会在训练前六分之一内将分配给拒绝词的概率从14%降至2%以下,该优势也随之消失。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑