paper-with-me

홈 › Papers

Advanced Graph-Based Deep Learning for Probabilistic Type Inference

2020-09-13 · Fangke Ye, Jisheng Zhao, Vivek Sarkar

Dynamically typed languages such as JavaScript and Python have emerged as the most popular programming languages in use. Important benefits can accrue from including type annotations in dynamically typed programs. This approach to gradual typing is exemplified by the TypeScript programming system which allows programmers to specify partially typed programs, and then uses static analysis to infer the remaining types. However, in general, the effectiveness of static type inference is limited and depends on the complexity of the program's structure and the initial type annotations. As a result, there is a strong motivation for new approaches that can advance the state of the art in statically predicting types in dynamically typed programs, and that do so with acceptable performance for use in interactive programming environments. Previous work has demonstrated the promise of probabilistic type inference using deep learning. In this paper, we advance past work by introducing a range of graph neural network (GNN) models that operate on a novel type flow graph (TFG) representation. The TFG represents an input program's elements as graph nodes connected with syntax edges and data flow edges, and our GNN models are trained to predict the type labels in the TFG for a given input program. We study different design choices for our GNN models for the 100 most common types in our evaluation dataset, and show that our best two GNN configurations for accuracy achieve a top-1 accuracy of 87.76% and 86.89% respectively, outperforming the two most closely related deep learning type inference approaches from past work -- DeepTyper with a top-1 accuracy of 84.62% and LambdaNet with a top-1 accuracy of 79.45%. Further, the average inference throughputs of those two configurations are 353.8 and 1,303.9 files/second, compared to 186.7 files/second for DeepTyper and 1,050.3 files/second for LambdaNet.

📄 PDF Abstract BibTeX arXiv:2009.05949

Code (1)

joernio/joernti-codetidal5 pytorch

Tasks

Deep LearningGraph Neural NetworkVocal Bursts Type Prediction

Methods 이 논문이 사용한 방법론

Graph Neural Network 설명 없음

Similar Papers 제목 키워드 기반

Lifted Model Construction without Normalisation: A Vectorised Approach to Exploit Symmetries in Factor Graphs

2024-11-18 · Malte Luttermann, Ralf Möller, Marcel Gehrke

Lifted probabilistic inference exploits symmetries in a probabilistic model to allow for tractable probabilistic inference with respect to domain sizes of logical variables. We found that the current state-of-the-art alg…

LambdaNet: Probabilistic Type Inference using Graph Neural Networks

2020-04-29 · ICLR 2020 1 · Jiayi Wei, Maruth Goyal, Greg Durrett, Isil Dillig

As gradual typing becomes increasingly popular in languages like Python and TypeScript, there is a growing need to infer type annotations automatically. While type annotations help with tasks like code completion and sta…

Code CompletionGraph Neural NetworkVocal Bursts Type Prediction

Bayesian Classification and Inference in a Probabilistic Type Theory with Records

2021-06-01 · ACL (NALOMA, IWCS) 2021 6 · Staffan Larsson, Robin Cooper

We propose a probabilistic account of semantic inference and classification formulated in terms of probabilistic type theory with records, building on Cooper et. al. (2014) and Cooper et. al. (2015). We suggest probabili…

ClassificationVocal Bursts Type Prediction

Amalgam: Hybrid LLM-PGM Synthesis Algorithm for Accuracy and Realism

2026-03-28 · Antheas Kapenekakis, Bent Thomsen, Katja Hose, Michele Albano arxiv

To generate synthetic datasets, e.g., in domains such as healthcare, the literature proposes approaches of two main types: Probabilistic Graphical Models (PGMs) and Deep Learning models, such as LLMs. While PGMs produce …

Understanding and Improving Deep Graph Neural Networks: A Probabilistic Graphical Model Perspective

2023-01-25 · Jiayuan Chen, Xiang Zhang, Yinfei Xu, Tianli Zhao 외

Recently, graph-based models designed for downstream tasks have significantly advanced research on graph neural networks (GNNs). GNN baselines based on neural message-passing mechanisms such as GCN and GAT perform worse …

Graph Neural NetworkVariational Inference