EUVIMEDEUVIMED entdecken
Open Access · CC BY-NC 4.0

Code Generation for Collectible Card Games with Complex APIs

John Licato, Logan Fields, Brayden Hollis

The International FLAIRS Conference Proceedings · 2023

DOI: 10.32473/flairs.36.133044 ↗

Kurz gefasst

Fachartikel in der Zeitschrift The International FLAIRS Conference Proceedings, 2023. Verfasst von John Licato und 2 weiteren Autor:innen. Die Arbeit wurde bisher 1-mal zitiert (Crossref). Der Volltext ist frei zugänglich (Open Access, CC BY-NC 4.0).

AbstractBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

Large pre-trained language models (LMs) such as GPT-3 Codex are able to generate code remarkably well given prompts of natural language text. But if we want to use such LMs to generate code compatible with a specific API or library (e.g., an API which provides the environments in which certain rules, laws, or orders are to be carried out), the amount of computational and data resources required to fine-tune such models can be cost prohibitive to most organizations. Given these practical limitations, is it possible to utilize these massive code-generation LMs to write code compatible with a given API? We develop an algorithm that selects code examples using a smaller LM trained to predict which features of an API are likely to be used in the resulting code, which is a simpler problem than actually generating the code. The selected examples are then used to build a prompt for the larger LM, which in turn generates the final code. We demonstrate our results on a benchmark dataset derived from the collectible card game "Magic: the Gathering," and obtain state-of-the-art results.

Zitieren

APA

Licato, J., Fields, L., & Hollis, B. (2023). Code Generation for Collectible Card Games with Complex APIs. The International FLAIRS Conference Proceedings. https://doi.org/10.32473/flairs.36.133044

Vancouver

Licato J, Fields L, Hollis B. Code Generation for Collectible Card Games with Complex APIs. The International FLAIRS Conference Proceedings. 2023. doi:10.32473/flairs.36.133044

BibTeX
@article{Licato2023,
  author = {Licato, John and Fields, Logan and Hollis, Brayden},
  title = {Code Generation for Collectible Card Games with Complex APIs},
  journal = {The International FLAIRS Conference Proceedings},
  year = {2023},
  doi = {10.32473/flairs.36.133044}
}
Kostenlos starten →