LambdaNet: Probabilistic Type Inference using Graph Neural Networks
Not on the map. Why?
Abstract (arXiv)
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 static error catching, these annotations cannot be fully determined by compilers and are tedious to annotate by hand. This paper proposes a probabilistic type inference scheme for TypeScript based on a graph neural network. Our approach first uses lightweight source code analysis to generate a program abstraction called a type dependency graph, which links type variables with logical constraints as well as name and usage information. Given this program abstraction, we then use a graph neural network to propagate information between related type variables and eventually make type predictions. Our neural architecture can predict both standard types, like number or string, as well as user-defined types that have not been encountered during training. Our experimental results show that our approach outperforms prior work in this space by 14% (absolute) on library types, while having the ability to make type predictions that are out of scope for existing techniques.
Key facts. Cited by 44 papers in the map (data through 7 Oct 2026). First posted on arXiv 29 Apr 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 14; 2022: 14; 2023: 11; 2024: 1; 2025: 3; 2026: 1.
44 papers.
Sort:
By area:
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 492
- 2022MultiPL-E: A Scalable and Extensible Approach to Benchmarking Neural Code Generationcited by 132
- 2021Scaling Up Graph Neural Networks Via Graph Coarseningcited by 80
- 2021Universal Approximation of Functions on Setscited by 62
- 2021Self-Supervised Bug Detection and Repaircited by 59
- 2022Code Generation Tools (Almost) for Free? A Study of Few-Shot, Pre-Trained Language Models on Codecited by 39
- 2022What is it like to program with artificial intelligence?cited by 39
- 2021What do pre-trained code models know about code?cited by 36
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkitcited by 22
- 2021Type4Py: Practical Deep Similarity Learning-Based Type Inference for Pythoncited by 19
- 2021Bridging the Gap between Spatial and Spectral Domains: A Unified Framework for Graph Neural Networkscited by 18
32 more
- 2022On Distribution Shift in Learning-based Bug Detectorscited by 15
- 2023TypeT5: Seq2seq Type Inference using Static Analysiscited by 12
- 2022CodeQueries: A Dataset of Semantic Queries over Codecited by 11
- 2025Software Development Life Cycle Perspective: A Survey of Benchmarks for Code Large Language Models and Agentscited by 11
- 2023Coeditor: Leveraging Contextual Changes for Multi-round Code Auto-editingcited by 9
- 2021Generalized Equivariance and Preferential Labeling for GNN Node Classificationcited by 7
- 2023LExecutor: Learning-Guided Executioncited by 7
- 2023Enriching Source Code with Contextual Data for Code Completion Models: An Empirical Studycited by 7
- 2023On the Opportunities of Green Computing: A Surveycited by 7
- 2023Type Prediction With Program Decomposition and Fill-in-the-Type Trainingcited by 6
- 2024Understanding How CodeLLMs (Mis)Predict Types with Activation Steeringcited by 4
- 2021Cross-Lingual Transfer Learning for Statistical Type Inferencecited by 2
- 2022JEMMA: An Extensible Java Dataset for ML4Code Applicationscited by 2
- 2021WheaCha: A Method for Explaining the Predictions of Models of Codecited by 1
- 2022Unveiling Project-Specific Bias in Neural Code Modelscited by 1
- 2022Exploring Representation of Horn Clauses using GNNs (Extended Technical Report)cited by 1
- 2022Cross-Domain Evaluation of a Deep Learning-Based Type Inference Systemcited by 1
- 2023An Exploratory Literature Study on Sharing and Energy Use of Language Models for Source Codecited by 1
- 2021Report of the Workshop on Program Synthesis for Scientific Computingcited by 0
- 2021SINGA-Easy: An Easy-to-Use Framework for MultiModal Analysiscited by 0
- 2021VisualTextRank: Unsupervised Graph-based Content Extraction for Automating Ad Text to Image Searchcited by 0
- 2021Text is NOT Enough: Integrating Visual Impressions into Open-domain Dialogue Generationcited by 0
- 2022Discovering Personalized Semantics for Soft Attributes in Recommender Systems using Concept Activation Vectorscited by 0
- 2022Reinforced MOOCs Concept Recommendation in Heterogeneous Information Networkscited by 0
- 2022Explanation-Guided Fairness Testing through Genetic Algorithmcited by 0
- 2022Using Graph Neural Networks for Program Terminationcited by 0
- 2023Tribe or Not? Critical Inspection of Group Differences Using TribalGramcited by 0
- 2023NPS: A Framework for Accurate Program Sampling Using Graph Neural Networkcited by 0
- 2023Learning Type Inference for Enhanced Dataflow Analysiscited by 0
- 2025TypyBench: Evaluating LLM Type Inference for Untyped Python Repositoriescited by 0
- 2025Behavioral Embeddings of Programs: A Quasi-Dynamic Approach for Optimization Predictioncited by 0
- 2026PLMGH: What Matters in PLM-GNN Hybrids for Code Classification and Vulnerability Detectioncited by 0
- 2026PLMGH: What Matters in PLM-GNN Hybrids for Code Classification and Vulnerability Detection28 Apr 2026
- 2025Behavioral Embeddings of Programs: A Quasi-Dynamic Approach for Optimization Prediction15 Oct 2025
- 2025TypyBench: Evaluating LLM Type Inference for Untyped Python Repositories28 Jul 2025
- 2025Software Development Life Cycle Perspective: A Survey of Benchmarks for Code Large Language Models and Agents8 May 2025
- 2024Understanding How CodeLLMs (Mis)Predict Types with Activation Steering2 Apr 2024
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkit30 Dec 2023
- 2023On the Opportunities of Green Computing: A Survey1 Nov 2023
- 2023Learning Type Inference for Enhanced Dataflow Analysis1 Oct 2023
- 2023An Exploratory Literature Study on Sharing and Energy Use of Language Models for Source Code5 Jul 2023
- 2023Coeditor: Leveraging Contextual Changes for Multi-round Code Auto-editing29 May 2023
- 2023Type Prediction With Program Decomposition and Fill-in-the-Type Training25 May 2023
- 2023Enriching Source Code with Contextual Data for Code Completion Models: An Empirical Study24 Apr 2023
32 more
- 2023NPS: A Framework for Accurate Program Sampling Using Graph Neural Network18 Apr 2023
- 2023Tribe or Not? Critical Inspection of Group Differences Using TribalGram16 Mar 2023
- 2023TypeT5: Seq2seq Type Inference using Static Analysis16 Mar 2023
- 2023LExecutor: Learning-Guided Execution5 Feb 2023
- 2022JEMMA: An Extensible Java Dataset for ML4Code Applications18 Dec 2022
- 2022CodeQueries: A Dataset of Semantic Queries over Code17 Sep 2022
- 2022Cross-Domain Evaluation of a Deep Learning-Based Type Inference System19 Aug 2022
- 2022MultiPL-E: A Scalable and Extensible Approach to Benchmarking Neural Code Generation17 Aug 2022
- 2022What is it like to program with artificial intelligence?12 Aug 2022
- 2022Using Graph Neural Networks for Program Termination28 Jul 2022
- 2022Exploring Representation of Horn Clauses using GNNs (Extended Technical Report)14 Jun 2022
- 2022Code Generation Tools (Almost) for Free? A Study of Few-Shot, Pre-Trained Language Models on Code2 Jun 2022
- 2022Explanation-Guided Fairness Testing through Genetic Algorithm16 May 2022
- 2022On Distribution Shift in Learning-based Bug Detectors21 Apr 2022
- 2022InCoder: A Generative Model for Code Infilling and Synthesis12 Apr 2022
- 2022Reinforced MOOCs Concept Recommendation in Heterogeneous Information Networks8 Mar 2022
- 2022Discovering Personalized Semantics for Soft Attributes in Recommender Systems using Concept Activation Vectors6 Feb 2022
- 2022Unveiling Project-Specific Bias in Neural Code Models19 Jan 2022
- 2021Text is NOT Enough: Integrating Visual Impressions into Open-domain Dialogue Generation13 Sep 2021
- 2021What do pre-trained code models know about code?25 Aug 2021
- 2021Program Synthesis with Large Language Models16 Aug 2021
- 2021VisualTextRank: Unsupervised Graph-based Content Extraction for Automating Ad Text to Image Search5 Aug 2021
- 2021SINGA-Easy: An Easy-to-Use Framework for MultiModal Analysis3 Aug 2021
- 2021Bridging the Gap between Spatial and Spectral Domains: A Unified Framework for Graph Neural Networks21 Jul 2021
- 2021Universal Approximation of Functions on Sets5 Jul 2021
- 2021Cross-Lingual Transfer Learning for Statistical Type Inference1 Jul 2021
- 2021Scaling Up Graph Neural Networks Via Graph Coarsening9 Jun 2021
- 2021Self-Supervised Bug Detection and Repair26 May 2021
- 2021Generalized Equivariance and Preferential Labeling for GNN Node Classification23 Feb 2021
- 2021WheaCha: A Method for Explaining the Predictions of Models of Code9 Feb 2021
- 2021Report of the Workshop on Program Synthesis for Scientific Computing2 Feb 2021
- 2021Type4Py: Practical Deep Similarity Learning-Based Type Inference for Python12 Jan 2021
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 492
- 2022MultiPL-E: A Scalable and Extensible Approach to Benchmarking Neural Code Generationcited by 132
- 2021Scaling Up Graph Neural Networks Via Graph Coarseningcited by 80
- 2021Universal Approximation of Functions on Setscited by 62
- 2021Self-Supervised Bug Detection and Repaircited by 59
- 2022Code Generation Tools (Almost) for Free? A Study of Few-Shot, Pre-Trained Language Models on Codecited by 39
- 2022What is it like to program with artificial intelligence?cited by 39
- 2021What do pre-trained code models know about code?cited by 36
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkitcited by 22
- 2021Type4Py: Practical Deep Similarity Learning-Based Type Inference for Pythoncited by 19
- 2021Bridging the Gap between Spatial and Spectral Domains: A Unified Framework for Graph Neural Networkscited by 18
12 most cited of 43 All 43 (JSON)
- 2026PLMGH: What Matters in PLM-GNN Hybrids for Code Classification and Vulnerability Detection28 Apr 2026
- 2025Behavioral Embeddings of Programs: A Quasi-Dynamic Approach for Optimization Prediction15 Oct 2025
- 2025TypyBench: Evaluating LLM Type Inference for Untyped Python Repositories28 Jul 2025
- 2024Understanding How CodeLLMs (Mis)Predict Types with Activation Steering2 Apr 2024
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkit30 Dec 2023
- 2023On the Opportunities of Green Computing: A Survey1 Nov 2023
- 2023Learning Type Inference for Enhanced Dataflow Analysis1 Oct 2023
- 2023An Exploratory Literature Study on Sharing and Energy Use of Language Models for Source Code5 Jul 2023
- 2023Coeditor: Leveraging Contextual Changes for Multi-round Code Auto-editing29 May 2023
- 2023Type Prediction With Program Decomposition and Fill-in-the-Type Training25 May 2023
- 2023Enriching Source Code with Contextual Data for Code Completion Models: An Empirical Study24 Apr 2023
- 2023NPS: A Framework for Accurate Program Sampling Using Graph Neural Network18 Apr 2023
12 newest of 43 All 43 (JSON)