已入深夜,您辛苦了!由于当前在线用户较少,发布求助请尽量完整的填写文献信息,科研通机器人24小时在线,伴您度过漫漫科研夜!祝你早点完成任务,早点休息,好梦!

How could Neural Networks understand Programs?

计算机科学 语义学(计算机科学) 操作语义 人工智能 启发式 有根据的语义学 程序设计语言 理论计算机科学 指称语义学 自然语言处理
作者
Dinglan Peng,Shuxin Zheng,Yatao Li,Guolin Ke,Di He,Tie-Yan Liu
出处
期刊:Cornell University - arXiv 被引量:2
标识
DOI:10.48550/arxiv.2105.04297
摘要

Semantic understanding of programs is a fundamental problem for programming language processing (PLP). Recent works that learn representations of code based on pre-training techniques in NLP have pushed the frontiers in this direction. However, the semantics of PL and NL have essential differences. These being ignored, we believe it is difficult to build a model to better understand programs, by either directly applying off-the-shelf NLP pre-training techniques to the source code, or adding features to the model by the heuristic. In fact, the semantics of a program can be rigorously defined by formal semantics in PL theory. For example, the operational semantics, describes the meaning of a valid program as updating the environment (i.e., the memory address-value function) through fundamental operations, such as memory I/O and conditional branching. Inspired by this, we propose a novel program semantics learning paradigm, that the model should learn from information composed of (1) the representations which align well with the fundamental operations in operational semantics, and (2) the information of environment transition, which is indispensable for program understanding. To validate our proposal, we present a hierarchical Transformer-based pre-training model called OSCAR to better facilitate the understanding of programs. OSCAR learns from intermediate representation (IR) and an encoded representation derived from static analysis, which are used for representing the fundamental operations and approximating the environment transitions respectively. OSCAR empirically shows the outstanding capability of program semantics understanding on many practical software engineering tasks.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
更新
大幅提高文件上传限制,最高150M (2024-4-1)

科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
聪慧梦菡完成签到,获得积分10
3秒前
CipherSage应助柳墨白采纳,获得10
4秒前
6秒前
我不喜欢奥利奥啊完成签到 ,获得积分10
7秒前
酸色黑樱桃完成签到,获得积分10
8秒前
潇洒醉山完成签到 ,获得积分10
9秒前
10秒前
Liyipu完成签到,获得积分10
12秒前
小陈爱科研完成签到,获得积分20
12秒前
12秒前
wyj完成签到,获得积分10
13秒前
1112发布了新的文献求助10
14秒前
韦老虎发布了新的文献求助10
14秒前
迅速的蜡烛完成签到 ,获得积分10
14秒前
幽默的安雁完成签到 ,获得积分10
15秒前
库小里orzz发布了新的文献求助10
16秒前
neonsun完成签到,获得积分10
16秒前
呓语发布了新的文献求助10
17秒前
Hello应助wyj采纳,获得10
18秒前
18秒前
19秒前
Cloudyyy完成签到,获得积分10
20秒前
小木虫完成签到 ,获得积分10
21秒前
Rousongxiaobei完成签到,获得积分10
21秒前
22秒前
yhandsome发布了新的文献求助10
22秒前
八段锦完成签到 ,获得积分10
23秒前
Lucky.完成签到 ,获得积分0
24秒前
科目三应助超级清涟采纳,获得10
25秒前
王震霆完成签到,获得积分10
25秒前
勇往直前发布了新的文献求助10
26秒前
tenure完成签到 ,获得积分10
26秒前
明亮依琴完成签到,获得积分10
26秒前
小金完成签到 ,获得积分10
26秒前
奔跑的蒲公英完成签到,获得积分10
26秒前
榆木小鸟完成签到 ,获得积分10
28秒前
小文cremen完成签到 ,获得积分10
28秒前
斐然诗完成签到 ,获得积分10
28秒前
super完成签到,获得积分10
29秒前
shierfang完成签到 ,获得积分10
30秒前
高分求助中
Teaching Social and Emotional Learning in Physical Education 900
Plesiosaur extinction cycles; events that mark the beginning, middle and end of the Cretaceous 800
Chinese-English Translation Lexicon Version 3.0 500
Recherches Ethnographiques sue les Yao dans la Chine du Sud 500
Two-sample Mendelian randomization analysis reveals causal relationships between blood lipids and venous thromboembolism 500
[Lambert-Eaton syndrome without calcium channel autoantibodies] 460
Aspect and Predication: The Semantics of Argument Structure 400
热门求助领域 (近24小时)
化学 材料科学 医学 生物 有机化学 工程类 生物化学 纳米技术 物理 内科学 计算机科学 化学工程 复合材料 遗传学 基因 物理化学 催化作用 电极 光电子学 量子力学
热门帖子
关注 科研通微信公众号,转发送积分 2395156
求助须知:如何正确求助?哪些是违规求助? 2098519
关于积分的说明 5288761
捐赠科研通 1825934
什么是DOI,文献DOI怎么找? 910374
版权声明 559972
科研通“疑难数据库(出版商)”最低求助积分说明 486551

今日热心研友

情怀
2 20
科目三
1 10
小蘑菇
1
星辰大海
1
注:热心度 = 本日应助数 + 本日被采纳获取积分÷10