paper-with-me

Papers

OptTyper: Probabilistic Type Inference by Optimising Logical and Natural Constraints

2020-04-01 · Irene Vlassi Pandi, Earl T. Barr, Andrew D. Gordon, Charles Sutton

We present a new approach to the type inference problem for dynamic languages. Our goal is to combine \emph{logical} constraints, that is, deterministic information from a type system, with \emph{natural} constraints, that is, uncertain statistical information about types learnt from sources like identifier names. To this end, we introduce a framework for probabilistic type inference that combines logic and learning: logical constraints on the types are extracted from the program, and deep learning is applied to predict types from surface-level code properties that are statistically associated. The foremost insight of our method is to constrain the predictions from the learning procedure to respect the logical constraints, which we achieve by relaxing the logical inference problem of type prediction into a continuous optimisation problem. We build a tool called OptTyper to predict missing types for TypeScript files. OptTyper combines a continuous interpretation of logical constraints derived by classical static analysis of TypeScript code, with natural constraints obtained from a deep learning model, which learns naming conventions for types from a large codebase. By evaluating OptTyper, we show that the combination of logical and natural constraints yields a large improvement in performance over either kind of information individually and achieves a 4% improvement over the state-of-the-art.

📄 PDF Abstract BibTeX arXiv:2004.00348

Code (1)

joernio/joernti-codetidal5 pytorch

Tasks

Type predictionVocal Bursts Type Prediction

Similar Papers 제목 키워드 기반

Neural Probabilistic Logic Programming in Discrete-Continuous Domains

2023-03-08 · Lennert De Smet, Pedro Zuidberg Dos Martires, Robin Manhaeve, Giuseppe Marra 외

Neural-symbolic AI (NeSy) allows neural networks to exploit symbolic background knowledge in the form of logic. It has been shown to aid learning in the limited data regime and to facilitate inference on out-of-distribut…

Probabilistic Programming

Probabilistic Programming with Densities in SlicStan: Efficient, Flexible and Deterministic

2018-11-02 · Maria I. Gorinova, Andrew D. Gordon, Charles Sutton

Stan is a probabilistic programming language that has been increasingly used for real-world scalable projects. However, to make practical inference possible, the language sacrifices some of its usability by adopting a bl…

Probabilistic Programming

NodeSLAM: Neural Object Descriptors for Multi-View Shape Reconstruction

2020-04-09 · Edgar Sucar, Kentaro Wada, Andrew Davison

The choice of scene representation is crucial in both the shape inference algorithms it requires and the smart applications it enables. We present efficient and optimisable multi-class learned object descriptors together…

3D Object ReconstructionObjectObject Reconstruction

SPPL: Probabilistic Programming with Fast Exact Symbolic Inference

2020-10-07 · Feras A. Saad, Martin C. Rinard, Vikash K. Mansinghka

We present the Sum-Product Probabilistic Language (SPPL), a new probabilistic programming language that automatically delivers exact solutions to a broad range of probabilistic inference queries. SPPL translates probabil…

FairnessProbabilistic ProgrammingTranslation

A Survey on Latent Tree Models and Applications

2014-02-04 · Raphaël Mourad, Christine Sinoquet, Nevin L. Zhang, Tengfei Liu 외

In data analysis, latent variables play a central role because they help provide powerful insights into a wide variety of phenomena, ranging from biological to human sciences. The latent tree model, a particular type of …

ClusteringSurvey