paper-with-me

Papers

Protocode: Prototype-Driven Interpretability for Code Generation in LLMs

2025-09-27 · Krishna Vamshi Bodla, Haizhao Yang arxiv

Since the introduction of Large Language Models (LLMs), they have been widely adopted for various tasks such as text summarization, question answering, speech-to-text translation, and more. In recent times, the use of LLMs for code generation has gained significant attention, with tools such as Cursor and Windsurf demonstrating the ability to analyze massive code repositories and recommend relevant changes. Big tech companies have also acknowledged the growing reliance on LLMs for code generation within their codebases. Although these advances significantly improve developer productivity, increasing reliance on automated code generation can proportionally increase the risk of suboptimal solutions and insecure code. Our work focuses on automatically sampling In-Context Learning (ICL) demonstrations which can improve model performance and enhance the interpretability of the generated code. Using AST-based analysis on outputs from the MBPP test set, we identify regions of code most influenced by the chosen demonstrations. In our experiments, we show that high-quality ICL demonstrations not only make outputs easier to interpret but also yield a positive performance improvement on the pass@10 metric. Conversely, poorly chosen ICL demonstrations affected the LLM performance on the pass@10 metric negatively compared to the base model. Overall, our approach highlights the importance of efficient sampling strategies for ICL, which can affect the performance of the model on any given task.

📄 PDF Abstract BibTeX arXiv:2509.25247

Code (0)

등록된 구현이 없습니다.

Tasks

Speech-to-Text TranslationText SummarizationQuestion AnsweringCode Generation

Similar Papers 제목 키워드 기반

ProtoCode: Leveraging Large Language Models for Automated Generation of Machine-Readable Protocols from Scientific Publications

2023-12-11 · Shuo Jiang, Daniel Evans-Yamamoto, Dennis Bersenev, Sucheendra K. Palaniappan 외

Protocol standardization and sharing are crucial for reproducibility in life sciences. In spite of numerous efforts for standardized protocol description, adherence to these standards in literature remains largely incons…

Patronus: Bringing Transparency to Diffusion Models with Prototypes

2025-03-28 · Nina Weng, Aasa Feragen, Siavash Bigdeli

Diffusion-based generative models, such as Denoising Diffusion Probabilistic Models (DDPMs), have achieved remarkable success in image generation, but their step-by-step denoising process remains opaque, leaving critical…

DenoisingImage GenerationImage Manipulation

HiProto: Hierarchical Prototype Learning for Interpretable Object Detection Under Low-quality Conditions

2026-04-15 · Jianlin Xiang, Linhui Dai, Xue Yang, Chaolei Yang 외 arxiv

Interpretability is essential for deploying object detection systems in critical applications, especially under low-quality imaging conditions that degrade visual information and increase prediction uncertainty. Existing…

Image EnhancementObject Detection

Cross-modal Prototype Driven Network for Radiology Report Generation

2022-07-11 · Jun Wang, Abhir Bhalerao, Yulan He

Radiology report generation (RRG) aims to describe automatically a radiology image with human-like language and could potentially support the work of radiologists, reducing the burden of manual reporting. Previous approa…

Decoder

Prototype Generation: Robust Feature Visualisation for Data Independent Interpretability

2023-09-29 · Arush Tagade, Jessica Rumbelow

We introduce Prototype Generation, a stricter and more robust form of feature visualisation for model-agnostic, data-independent interpretability of image classification models. We demonstrate its ability to generate inp…

image-classificationImage Classification