paper-with-me

Papers

Optimizing Large Language Models for OpenAPI Code Completion

2024-05-24 · Bohdan Petryshyn, Mantas Lukoševičius

Recent advancements in Large Language Models (LLMs) and their utilization in code generation tasks have significantly reshaped the field of software development. Despite the remarkable efficacy of code completion solutions in mainstream programming languages, their performance lags when applied to less ubiquitous formats such as OpenAPI definitions. This study evaluates the OpenAPI completion performance of GitHub Copilot, a prevalent commercial code completion tool, and proposes a set of task-specific optimizations leveraging Meta's open-source model Code Llama. A semantics-aware OpenAPI completion benchmark proposed in this research is used to perform a series of experiments through which the impact of various prompt-engineering and fine-tuning techniques on the Code Llama model's performance is analyzed. The fine-tuned Code Llama model reaches a peak correctness improvement of 55.2% over GitHub Copilot despite utilizing 25 times fewer parameters than the commercial solution's underlying Codex model. Additionally, this research proposes an enhancement to a widely used code infilling training technique, addressing the issue of underperformance when the model is prompted with context sizes smaller than those used during training. The dataset, the benchmark, and the model fine-tuning code are made publicly available.

📄 PDF Abstract BibTeX arXiv:2405.15729

Code (2)

BohdanPetryshyn/code-llama-fim-fine-tuning 공식 구현 pytorch
BohdanPetryshyn/openapi-completion-benchmark 공식 구현

Tasks

Code CompletionCode GenerationOpenAPI code completionPrompt Engineering

Methods 이 논문이 사용한 방법론

SET Dynamic Sparse Training method where weight mask is updated randomly periodically
LLaMA LLaMA is a collection of foundation language models ranging from 7B to 65B parameters. It is based on the transformer architecture with various improvements that were…

Similar Papers 제목 키워드 기반

API-Miner: an API-to-API Specification Recommendation Engine

2022-12-14 · Sae Young Moon, Gregor Kerr, Fran Silavong, Sean Moran

When designing a new API for a large project, developers need to make smart design choices so that their code base can grow sustainably. To ensure that new API components are well designed, developers can learn from exis…

SpeCrawler: Generating OpenAPI Specifications from API Documentation Using Large Language Models

2024-02-18 · Koren Lazar, Matan Vetzler, Guy Uziel, David Boaz 외

In the digital era, the widespread use of APIs is evident. However, scalable utilization of APIs poses a challenge due to structure divergence observed in online API documentation. This underscores the need for automatic…

OASBuilder: Generating OpenAPI Specifications from Online API Documentation with Large Language Models

2025-07-07 · Koren Lazar, Matan Vetzler, Kiran Kate, Jason Tsay 외 arxiv

AI agents and business automation tools interacting with external web services require standardized, machine-readable information about their APIs in the form of API specifications. However, the information about APIs av…

Hierarchical Context Pruning: Optimizing Real-World Code Completion with Repository-Level Pretrained Code LLMs

2024-06-26 · Lei Zhang, Yunshui Li, Jiaming Li, Xiaobo Xia 외

Some recently developed code large language models (Code LLMs) have been pre-trained on repository-level code data (Repo-Code LLMs), enabling these models to recognize repository structures and utilize cross-file informa…

Code Completion

LlamaRestTest: Effective REST API Testing with Small Language Models

2025-01-15 · Myeongsoo Kim, Saurabh Sinha, Alessandro Orso

Modern web services rely heavily on REST APIs, typically documented using the OpenAPI specification. The widespread adoption of this standard has resulted in the development of many black-box testing tools that generate …