mlsanityData to 14 Oct 2026

Code Generation for Unknown Libraries via Reading API Documentations

arXiv 2202.07806 ↗First posted 16 Feb 2022cs.CLcited by 3

Not on the map. Why?

Abstract (arXiv)

Open-domain code generation is a challenging problem because the set of functions and classes that we use are frequently changed and extended in programming communities. We consider the challenge of code generation for unknown libraries without additional training. In this paper, we explore a framework of code generation that can refer to relevant API documentations like human programmers to handle unknown libraries. As a first step of this direction, we implement a model that can extract relevant code signatures from API documentations based on a natural language intent and copy primitives from the extracted signatures. Moreover, to evaluate code generation for unknown libraries and our framework, we extend an existing dataset of open-domain code generation and resplit it so that the evaluation data consist of only examples using the libraries that do not appear in the training data. Experiments on our new split show that baseline encoder-decoder models cannot generate code using primitives of unknown libraries as expected. In contrast, our model outperforms the baseline on the new split and can properly generate unknown primitives when extracted code signatures are noiseless.

Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 24 of its 32 references that are in the map. First posted on arXiv 16 Feb 2022.

Builds on

24 of 32 references.

References · 24

  1. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
  2. 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,307
  3. 2016Pointer Sentinel Mixture Modelscited by 3,096
  4. 2017Get To The Point: Summarization with Pointer-Generator Networkscited by 1,292
  5. 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,139
  6. 2017Reading Wikipedia to Answer Open-Domain Questionscited by 777
  7. 2015Compositional Semantic Parsing on Semi-Structured Tablescited by 515
  8. 2019RAT-SQL: Relation-Aware Schema Encoding and Linking for Text-to-SQL Parserscited by 424
  9. 2016Incorporating Copying Mechanism in Sequence-to-Sequence Learningcited by 218
  10. 2018Learning to Mine Aligned Code and Natural Language Pairs from Stack Overflowcited by 165
  11. 2016Language to Logical Form with Neural Attentioncited by 158
  12. 2018Coarse-to-Fine Decoding for Neural Semantic Parsingcited by 110
12 more
  1. 2016Neural Symbolic Machines: Learning Semantic Parsers on Freebase with Weak Supervisioncited by 103
  2. 2017Abstract Syntax Networks for Code Generation and Semantic Parsingcited by 92
  3. 2020Grounded Adaptation for Zero-shot Executable Semantic Parsingcited by 76
  4. 2016Latent Predictor Networks for Code Generationcited by 73
  5. 2019JuICe: A Large Scale Distantly Supervised Dataset for Open Domain Context-based Code Generationcited by 49
  6. 2020Meta-Learning for Domain Generalization in Semantic Parsingcited by 41
  7. 2020Incorporating External Knowledge through Pre-training for Natural Language to Code Generationcited by 36
  8. 2018StructVAE: Tree-structured Latent Variable Models for Semi-supervised Semantic Parsingcited by 22
  9. 2019Learning Programmatic Idioms for Scalable Semantic Parsingcited by 17
  10. 2018Decoupling Structure and Lexicon for Zero-Shot Semantic Parsingcited by 11
  11. 2019Zero-shot Text-to-SQL Learning with Auxiliary Taskcited by 10
  12. 2019Zero-Shot Semantic Parsing for Instructionscited by 4

Built on by

Cited by year

Citing papers per year: 2023: 1; 2024: 1; 2025: 1.

3 papers.