mlsanityData to 7 Oct 2026

Compositional Generalization for Natural Language Interfaces to Web APIs

arXiv 2112.05209 ↗First posted 9 Dec 2021cs.CLcited by 7

Not on the map. Why?

Abstract (arXiv)

This paper presents Okapi, a new dataset for Natural Language to executable web Application Programming Interfaces (NL2API). This dataset is in English and contains 22,508 questions and 9,019 unique API calls, covering three domains. We define new compositional generalization tasks for NL2API which explore the models' ability to extrapolate from simple API calls in the training set to new and more complex API calls in the inference phase. Also, the models are required to generate API calls that execute correctly as opposed to the existing approaches which evaluate queries with placeholder values. Our dataset is different than most of the existing compositional semantic parsing datasets because it is a non-synthetic dataset studying the compositional generalization in a low-resource setting. Okapi is a step towards creating realistic datasets and benchmarks for studying compositional generalization alongside the existing datasets and tasks. We report the generalization capabilities of sequence-to-sequence baseline models trained on a variety of the SCAN and Okapi datasets tasks. The best model achieves 15% exact match accuracy when generalizing from simple API calls to more complex API calls. This highlights some challenges for future research. Okapi dataset and tasks are publicly available at https://aka.ms/nl2api/data.

Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). Builds on 22 of its 34 references that are in the map. First posted on arXiv 9 Dec 2021.

Builds on

22 of 34 references.

References · 22

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  4. 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,120
  5. 2017Seq2SQL: Generating Structured Queries from Natural Language using Reinforcement Learningcited by 679
  6. 2019Measuring Compositional Generalization: A Comprehensive Method on Realistic Datacited by 280
  7. 2020COGS: A Compositional Generalization Challenge Based on Semantic Interpretationcited by 260
  8. 2016Incorporating Copying Mechanism in Sequence-to-Sequence Learningcited by 217
  9. 2019Towards Complex Text-to-SQL in Cross-Domain Database with Intermediate Representationcited by 210
  10. 2020Compositional Generalization and Natural Language Variation: Can a Semantic Parsing Approach Handle Both?cited by 147
  11. 2018Improving Text-to-SQL Evaluation Methodologycited by 133
  12. 2020Task-Oriented Dialogue as Dataflow Synthesiscited by 122
10 more
  1. 2016Data Recombination for Neural Semantic Parsingcited by 111
  2. 2020Compositional Generalization in Semantic Parsing: Pre-training vs. Specialized Architecturescited by 95
  3. 2020Compositional Generalization via Neural-Symbolic Stack Machinescited by 80
  4. 2020Span-based Semantic Parsing for Compositional Generalizationcited by 77
  5. 2020Learning Compositional Rules via Neural Program Synthesiscited by 74
  6. 2020Compositional Generalization by Learning Analytical Expressionscited by 53
  7. 2020The EOS Decision and Length Extrapolationcited by 46
  8. 2020Improving Compositional Generalization in Semantic Parsingcited by 42
  9. 2019Location Attention for Extrapolation to Longer Sequencescited by 33
  10. 2019Don't paraphrase, detect! Rapid and Effective Data Collection for Semantic Parsingcited by 24

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2022: 1; 2023: 1; 2024: 3; 2025: 1; 2026: 1.

7 papers.