Synthetic APIs: Enabling Language Models to Act as Interlocutors Between Natural Language and Code
dc.contributor.author | Mullins, Ryan | |
dc.contributor.author | Terry, Michael | |
dc.date.accessioned | 2022-12-27T18:54:25Z | |
dc.date.available | 2022-12-27T18:54:25Z | |
dc.date.issued | 2023-01-03 | |
dc.description.abstract | Large language models (LLMs) can synthesize code from natural language descriptions or by completing code in-context. In this paper, we consider the ability of LLMs to synthesize code, at inference time, for a novel API not in its training data, and specifically examine the impact of different API designs on this ability. We find that: 1) code examples in model training data seem to facilitate API use at inference time; 2) hallucination is the most common failure mode; and 3) the designs of both the novel API and the prompt affect performance. In light of these findings, we introduce the concept of a Synthetic API: an API designed to be used by LLMs instead of by humans. Synthetic APIs for LLMs offer the potential to further accelerate development of natural language interfaces to arbitrary tools and services. | |
dc.format.extent | 10 | |
dc.identifier.doi | 10.24251/HICSS.2023.073 | |
dc.identifier.isbn | 978-0-9981331-6-4 | |
dc.identifier.other | 9c8063f3-03c9-4057-b68e-19cecaad4428 | |
dc.identifier.uri | https://hdl.handle.net/10125/102701 | |
dc.language.iso | eng | |
dc.relation.ispartof | Proceedings of the 56th Hawaii International Conference on System Sciences | |
dc.rights | Attribution-NonCommercial-NoDerivatives 4.0 International | |
dc.rights.uri | https://creativecommons.org/licenses/by-nc-nd/4.0/ | |
dc.subject | Text Mining and Analytics | |
dc.subject | api design | |
dc.subject | code synthesis | |
dc.subject | human-ai interaction | |
dc.subject | large language models | |
dc.title | Synthetic APIs: Enabling Language Models to Act as Interlocutors Between Natural Language and Code | |
dc.type.dcmi | text | |
prism.startingpage | 565 |
Files
Original bundle
1 - 1 of 1