AutoFeedback: An LLM-based Framework for Efficient and Accurate API Request Generation
Huanxi Liu, Jiaqi Liao, Dawei Feng, Kele Xu, Huaimin Wang

TL;DR
AutoFeedback is a novel LLM-based framework that improves the accuracy and efficiency of API request generation by incorporating factual error correction and detailed API documentation feedback, significantly enhancing performance and reducing interaction costs.
Contribution
The paper introduces AutoFeedback, a framework with static and dynamic feedback components that substantially improve API request accuracy and reduce interaction costs in LLMs.
Findings
Achieves 100% accuracy on a real-world API dataset.
Reduces interaction costs with GPT-3.5 Turbo by 23.44%.
Reduces interaction costs with GPT-4 Turbo by 11.85%.
Abstract
Large Language Models (LLMs) leverage external tools primarily through generating the API request to enhance task completion efficiency. The accuracy of API request generation significantly determines the capability of LLMs to accomplish tasks. Due to the inherent hallucinations within the LLM, it is difficult to efficiently and accurately generate the correct API request. Current research uses prompt-based feedback to facilitate the LLM-based API request generation. However, existing methods lack factual information and are insufficiently detailed. To address these issues, we propose AutoFeedback, an LLM-based framework for efficient and accurate API request generation, with a Static Scanning Component (SSC) and a Dynamic Analysis Component (DAC). SSC incorporates errors detected in the API requests as pseudo-facts into the feedback, enriching the factual information. DAC…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsService-Oriented Architecture and Web Services · Software System Performance and Reliability · Advanced Computational Techniques and Applications
MethodsRefunds@Expedia|||How do I get a full refund from Expedia? · 15 Ways to Contact How can i speak to someone at Delta Airlines · Linear Layer · Residual Connection · Weight Decay · Position-Wise Feed-Forward Layer · Attention Is All You Need · Label Smoothing · Cosine Annealing · Dropout
