Static inference meets deep learning: a hybrid type inference approach for python

Type inference for dynamic programming languages such as Python is an important yet challenging task. Static type inference techniques can precisely infer variables with enough static constraints but are unable to handle variables with dynamic features. Deep learning (DL) based approaches are featur...

Full description

Saved in:
Bibliographic Details
Main Authors: PENG, Yun, GAO, Cuiyun, LI, Zongjie, GAO, Bowei, LO, David, ZHANG, Qirun, LYU, Michael R.
Format: text
Language:English
Published: Institutional Knowledge at Singapore Management University 2022
Subjects:
Online Access:https://ink.library.smu.edu.sg/sis_research/7688
https://ink.library.smu.edu.sg/context/sis_research/article/8691/viewcontent/static.pdf
Tags: Add Tag
No Tags, Be the first to tag this record!
Institution: Singapore Management University
Language: English
id sg-smu-ink.sis_research-8691
record_format dspace
spelling sg-smu-ink.sis_research-86912023-01-10T03:16:00Z Static inference meets deep learning: a hybrid type inference approach for python PENG, Yun GAO, Cuiyun LI, Zongjie GAO, Bowei LO, David ZHANG, Qirun LYU, Michael R. Type inference for dynamic programming languages such as Python is an important yet challenging task. Static type inference techniques can precisely infer variables with enough static constraints but are unable to handle variables with dynamic features. Deep learning (DL) based approaches are feature-agnostic, but they cannot guarantee the correctness of the predicted types. Their performance significantly depends on the quality of the training data (i.e., DL models perform poorly on some common types that rarely appear in the training dataset). It is interesting to note that the static and DL-based approaches offer complementary benefits. Unfortunately, to our knowledge, precise type inference based on both static inference and neural predictions has not been exploited and remains an open challenge. In particular, it is hard to integrate DL models into the framework of rule-based static approaches 2022-05-01T07:00:00Z text application/pdf https://ink.library.smu.edu.sg/sis_research/7688 info:doi/10.1145/3510003.3510038 https://ink.library.smu.edu.sg/context/sis_research/article/8691/viewcontent/static.pdf http://creativecommons.org/licenses/by-nc-nd/4.0/ Research Collection School Of Computing and Information Systems eng Institutional Knowledge at Singapore Management University Databases and Information Systems
institution Singapore Management University
building SMU Libraries
continent Asia
country Singapore
Singapore
content_provider SMU Libraries
collection InK@SMU
language English
topic Databases and Information Systems
spellingShingle Databases and Information Systems
PENG, Yun
GAO, Cuiyun
LI, Zongjie
GAO, Bowei
LO, David
ZHANG, Qirun
LYU, Michael R.
Static inference meets deep learning: a hybrid type inference approach for python
description Type inference for dynamic programming languages such as Python is an important yet challenging task. Static type inference techniques can precisely infer variables with enough static constraints but are unable to handle variables with dynamic features. Deep learning (DL) based approaches are feature-agnostic, but they cannot guarantee the correctness of the predicted types. Their performance significantly depends on the quality of the training data (i.e., DL models perform poorly on some common types that rarely appear in the training dataset). It is interesting to note that the static and DL-based approaches offer complementary benefits. Unfortunately, to our knowledge, precise type inference based on both static inference and neural predictions has not been exploited and remains an open challenge. In particular, it is hard to integrate DL models into the framework of rule-based static approaches
format text
author PENG, Yun
GAO, Cuiyun
LI, Zongjie
GAO, Bowei
LO, David
ZHANG, Qirun
LYU, Michael R.
author_facet PENG, Yun
GAO, Cuiyun
LI, Zongjie
GAO, Bowei
LO, David
ZHANG, Qirun
LYU, Michael R.
author_sort PENG, Yun
title Static inference meets deep learning: a hybrid type inference approach for python
title_short Static inference meets deep learning: a hybrid type inference approach for python
title_full Static inference meets deep learning: a hybrid type inference approach for python
title_fullStr Static inference meets deep learning: a hybrid type inference approach for python
title_full_unstemmed Static inference meets deep learning: a hybrid type inference approach for python
title_sort static inference meets deep learning: a hybrid type inference approach for python
publisher Institutional Knowledge at Singapore Management University
publishDate 2022
url https://ink.library.smu.edu.sg/sis_research/7688
https://ink.library.smu.edu.sg/context/sis_research/article/8691/viewcontent/static.pdf
_version_ 1770576414480793600