arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.14073cs.LGcs.NE
收藏

用于解析程序代码引用的神经架构

Neural architectures for resolving references in program code

Faculty of Informatics(信息学院);ELTE Eötvös Loránd University(埃斯特哈齐大学);Budapest(布达佩斯)

Gergő Szalay, Gergely Zsolt Kovács, Sándor Teleki, Balázs Pintér, Tibor Gregorics

AI总结:

本文提出新的序列到序列架构,用于解决程序代码中的直接和间接索引问题,证明其在鲁棒性和可扩展性上优于现有方法,且在实际去编译任务中减少错误率42%。

摘要:

在编程语言中,引用解析和重写是基础任务。受实际去编译任务启发,我们将引用重写抽象为通过排列的直接和间接索引问题。我们创建了合成基准测试并展示,已知的序列到序列机器学习架构在这些基准上表现不佳。我们引入了新的序列到序列架构用于这两个问题。我们的测量显示,我们的架构在鲁棒性和可扩展性上均优于基线:我们的模型可以处理比最佳基线长十倍的例子。我们测量了我们的架构在实际去编译switch语句任务中的影响,该任务包含一个索引子任务。根据我们的测量,扩展模型将错误率降低了42%。多个消融研究显示,我们的架构的所有组件都是必要的。

英文摘要:

Resolving and rewriting references is fundamental in programming languages. Motivated by a real-world decompilation task, we abstract reference rewriting into the problems of direct and indirect indexing by permutation. We create synthetic benchmarks for these tasks and show that well-known sequence-to-sequence machine learning architectures are struggling on these benchmarks. We introduce new sequence-to-sequence architectures for both problems. Our measurements show that our architectures outperform the baselines in both robustness and scalability: our models can handle examples that are ten times longer compared to the best baseline. We measure the impact of our architecture in the real-world task of decompiling switch statements, which has an indexing subtask. According to our measurements, the extended model decreases the error rate by 42%. Multiple ablation studies show that all components of our architectures are essential.

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

↑