atlas

Research map / Large language models / Agents, code and math

Learning Structure-Aware Representations of Dependent Types

NeurIPS 2024 · Large language models › Agents, code and math · approach: LLM-guided program synthesis · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Releases a first-of-its-kind Agda program-proof dataset extracted at sub-type resolution via the agda2train backend, and proposes Quill, a small structure-aware (tree-positional, variable-resolving linear attention) encoder for premise selection that beats ablations and a Transformer baseline.

Problem

Premise selection for dependently-typed proof assistants like Agda lacks ML resources, and sequential/string-based encoders poorly capture the binding, reference, and structural nature of dependent types.

Approach

Extract Agda's internal type ASTs at every hole and resolve de Bruijn variable references to pointers to binder nodes, then encode with a linear-attention Transformer using binary-tree orthogonal positional encodings and topologically ordered lemma representations, making the representation invariant to renaming.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
add Taylor expansion to the attention feature map (ablation)Quill · stdlib:idAveP: 47.0 -> 50.2Helped
add tree positional encoding to attention (ablation)Quill · stdlib:idAveP: 44.5 -> 50.2Helped
resolve de Bruijn variable references structurally (ablation)Quill · stdlib:idAveP: 35.8 -> 50.2Helped
use Quill's structure-aware architecture instead of a Transformerpremise selection · stdlib:idAveP: 10.9 -> 50.2Helped
use Quill's structure-aware architecture instead of a Transformerpremise selection · stdlib:oodAveP: 8.5 -> 38.7Helped
use Quill's structure-aware architecture instead of a Transformerpremise selection · UnimathAveP: 9.4 -> 27.0Helped
use Quill's structure-aware architecture instead of a Transformerpremise selection · TypeTopologyAveP: 5.8 -> 22.5Helped

Surprising findings

Limitations

Experimental setup

Datasets: Agda standard library v1.7.2 extracted dataset UniMath (evaluation extract) TypeTopology (evaluation extract)

Benchmarks: stdlib:ID stdlib:OOD UniMath TypeTopology

Metrics: AveP R-Prec

Baselines: Transformer Quill without Taylor expansion Quill without tree positional encoding Quill without variable resolution

Builds on: linear attention (Katharopoulos et al.) InfoNCE RMSNorm SwiGLU de Bruijn indexing

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy