paper-with-me

홈 › Papers

Transformer Models for Type Inference in the Simply Typed Lambda Calculus: A Case Study in Deep Learning for Code

2023-03-15 · Brando Miranda, Avi Shinnar, Vasily Pestun, Barry Trager

Despite a growing body of work at the intersection of deep learning and formal languages, there has been relatively little systematic exploration of transformer models for reasoning about typed lambda calculi. This is an interesting area of inquiry for two reasons. First, typed lambda calculi are the lingua franc of programming languages. A set of heuristics that relate various typed lambda calculi to effective neural architectures would provide a systematic method for mapping language features (e.g., polymorphism, subtyping, inheritance, etc.) to architecture choices. Second, transformer models are widely used in deep learning architectures applied to code, but the design and hyperparameter space for them is large and relatively unexplored in programming language applications. Therefore, we suggest a benchmark that allows us to explore exactly this through perhaps the simplest and most fundamental property of a programming language: the relationship between terms and types. Consequently, we begin this inquiry of transformer architectures for typed lambda calculi by exploring the effect of transformer warm-up and optimizer selection in the task of type inference: i.e., predicting the types of lambda calculus terms using only transformers. We find that the optimization landscape is difficult even in this simple setting. One particular experimental finding is that optimization by Adafactor converges much faster compared to the optimization by Adam and RAdam. We conjecture that such different performance of optimizers might be related to the difficulties of generalization over formally generated dataset.

📄 PDF Abstract BibTeX arXiv:2304.10500

Code (0)

등록된 구현이 없습니다.

Methods 이 논문이 사용한 방법론

Adafactor Adafactor is a stochastic optimization method based on Adam that reduces memory usage while retaining the empirical benefits of…
RAdam 설명 없음
Adam 설명 없음

Similar Papers 제목 키워드 기반

A Logic-Based Framework for Natural Language Inference in Dutch

2021-10-07 · Lasha Abzianidze, Konstantinos Kogkalidis

We present a framework for deriving inference relations between Dutch sentence pairs. The proposed framework relies on logic-based reasoning to produce inspectable proofs leading up to inference labels; its judgements ar…

Natural Language InferenceSentence

A Proposal for an Interactive Shell Based on a Typed Lambda Calculus

2021-04-08 · Kouji Matsui

This paper presents Favalon, a functional programming language built on the premise of a lambda calculus for use as an interactive shell replacement. Favalon seamlessly integrates with typed versions of existing librarie…

Vocal Bursts Type Prediction

Introducing a Calculus of Effects and Handlers for Natural Language Semantics

2016-06-20 · Jirka Maršík, Maxime Amblard

In compositional model-theoretic semantics, researchers assemble truth-conditions or other kinds of denotations using the lambda calculus. It was previously observed that the lambda terms and/or the denotations studied t…

Backpropagation in the Simply Typed Lambda-calculus with Linear Negation

2019-09-27 · Alois Brunel, Damiano Mazza, Michele Pagani

Backpropagation is a classic automatic differentiation algorithm computing the gradient of functions specified by a certain class of simple, first-order programs, called computational graphs. It is a fundamental tool in …

Negation

A generalised editor calculus (Short Paper)

2025-05-24 · Benjamin Bennetzen, Peter Buus Steffensen, Hans Hüttel, Nikolaj Rossander Kristensen 외

In this paper, we present a generalization of a syntax-directed editor calculus, which can be used to instantiate a specialized syntax-directed editor for any language, given by some abstract syntax. The editor calculus …