paper-with-me

홈 › Papers

FRANC: A Lightweight Framework for High-Quality Code Generation

2023-07-17 · Mohammed Latif Siddiq, Beatrice Casey, Joanna C. S. Santos

In recent years, the use of automated source code generation utilizing transformer-based generative models has expanded, and these models can generate functional code according to the requirements of the developers. However, recent research revealed that these automatically generated source codes can contain vulnerabilities and other quality issues. Despite researchers' and practitioners' attempts to enhance code generation models, retraining and fine-tuning large language models is time-consuming and resource-intensive. Thus, we describe FRANC, a lightweight framework for recommending more secure and high-quality source code derived from transformer-based code generation models. FRANC includes a static filter to make the generated code compilable with heuristics and a quality-aware ranker to sort the code snippets based on a quality score. Moreover, the framework uses prompt engineering to fix persistent quality issues. We evaluated the framework with five Python and Java code generation models and six prompt datasets, including a newly created one in this work (SOEval). The static filter improves 9% to 46% Java suggestions and 10% to 43% Python suggestions regarding compilability. The average improvement over the NDCG@10 score for the ranking system is 0.0763, and the repairing techniques repair the highest 80% of prompts. FRANC takes, on average, 1.98 seconds for Java; for Python, it takes 0.08 seconds.

📄 PDF Abstract BibTeX arXiv:2307.08220

Code (0)

등록된 구현이 없습니다.

Tasks

Code GenerationPrompt Engineering

Methods 이 논문이 사용한 방법론

Repair 설명 없음

Similar Papers 제목 키워드 기반

MaRS: Robust Out-of-Distribution Detection via Mahalanobis Residual Scoring

2026-06-21 · Francesco Di Salvo, Sebastian Doerrich, Christian Ledig arxiv

Foundation models provide highly descriptive representations for medical images, yet their reliability degrades under distribution shifts arising from changes in patients, devices, or acquisition conditions. Reliable out…

Out-of-Distribution Detection

Omni Aggregation Networks for Lightweight Image Super-Resolution

2023-04-20 · CVPR 2023 1 · Hang Wang, Xuanhong Chen, Bingbing Ni, Yutian Liu 외

While lightweight ViT framework has made tremendous progress in image super-resolution, its uni-dimensional self-attention modeling, as well as homogeneous aggregation scheme, limit its effective receptive field (ERF) to…

Image Super-ResolutionSuper-Resolution

Source-Free Object Detection with Detection Transformer

2025-10-13 · Huizai Yao, Sicheng Zhao, Shuo Lu, Hui Chen 외 arxiv

Source-Free Object Detection (SFOD) enables knowledge transfer from a source domain to an unsupervised target domain for object detection without access to source data. Most existing SFOD approaches are either confined t…

Contrastive LearningObject Detection

Mapping Historic Urban Footprints in France: Balancing Quality, Scalability and AI Techniques

2025-10-02 · Walid Rabehi, Marion Le Texier, Rémi Lemoy arxiv

Quantitative analysis of historical urban sprawl in France before the 1970s is hindered by the lack of nationwide digital urban footprint data. This study bridges this gap by developing a scalable deep learning pipeline …

Data Augmentation

Semi-Supervised Semantic Segmentation in Earth Observation: The MiniFrance Suite, Dataset Analysis and Multi-task Network Study

2020-10-15 · Javiera Castillo-Navarro, Bertrand Le Saux, Alexandre Boulch, Nicolas Audebert 외

The development of semi-supervised learning techniques is essential to enhance the generalization capacities of machine learning algorithms. Indeed, raw image data are abundant while labels are scarce, therefore it is cr…

Earth ObservationMulti-Task LearningSemantic SegmentationSemi-Supervised Semantic Segmentation