paper-with-me

홈 › Papers

Type Prediction With Program Decomposition and Fill-in-the-Type Training

2023-05-25 · Federico Cassano, Ming-Ho Yee, Noah Shinn, Arjun Guha, Steven Holtzen

TypeScript and Python are two programming languages that support optional type annotations, which are useful but tedious to introduce and maintain. This has motivated automated type prediction: given an untyped program, produce a well-typed output program. Large language models (LLMs) are promising for type prediction, but there are challenges: fill-in-the-middle performs poorly, programs may not fit into the context window, generated types may not type check, and it is difficult to measure how well-typed the output program is. We address these challenges by building OpenTau, a search-based approach for type prediction that leverages large language models. We propose a new metric for type prediction quality, give a tree-based program decomposition that searches a space of generated types, and present fill-in-the-type fine-tuning for LLMs. We evaluate our work with a new dataset for TypeScript type prediction, and show that 47.4% of files type check (14.5% absolute improvement) with an overall rate of 3.3 type errors per file. All code, data, and models are available at: https://github.com/GammaTauAI/opentau.

📄 PDF Abstract BibTeX arXiv:2305.17145

Code (1)

gammatauai/opentau 공식 구현 pytorch

Tasks

PredictionType prediction

Similar Papers 제목 키워드 기반

TypeT5: Seq2seq Type Inference using Static Analysis

2023-03-16 · Jiayi Wei, Greg Durrett, Isil Dillig

There has been growing interest in automatically predicting missing type annotations in programs written in Python and JavaScript. While prior methods have achieved impressive accuracy when predicting the most common typ…

Language ModelingLanguage ModellingType predictionVocal Bursts Type Prediction

CodeFill: Multi-token Code Completion by Jointly Learning from Structure and Naming Sequences

2022-02-14 · Maliheh Izadi, Roberta Gismondi, Georgios Gousios

Code completion is an essential feature of IDEs, yet current autocompleters are restricted to either grammar-based or NLP-based single token completions. Both approaches have significant drawbacks: grammar-based autocomp…

Code CompletionLanguage ModellingMulti-Task Learning

Privacy-preserving federated tensor decomposition of single-cell immune data: recovering multicellular programs across institutions

2026-06-22 · Axel Faes, Stephanie M. van den Berg, Maryam Amir Haeri arxiv

Tensor decomposition of donor $\times$ cell-type $\times$ gene single-cell data recovers \emph{multicellular programs}: coordinated axes of inter-individual transcriptional variation that span cell types and stratify dis…

Patterns of Cognition: Cognitive Algorithms as Galois Connections Fulfilled by Chronomorphisms On Probabilistically Typed Metagraphs

2021-02-21 · Ben Goertzel

It is argued that a broad class of AGI-relevant algorithms can be expressed in a common formal framework, via specifying Galois connections linking search and optimization processes on directed metagraphs whose edge targ…

Clustering

Type-aware Convolutional Neural Networks for Slot Filling

2019-10-01 · Heike Adel, Hinrich Schütze

The slot filling task aims at extracting answers for queries about entities from text, such as "Who founded Apple". In this paper, we focus on the relation classification component of a slot filling system. We propose ty…

coreference-resolutionCoreference ResolutionGeneral ClassificationRelation+5