paper-with-me

홈 › Papers

The Behavior of Large Language Models When Prompted to Generate Code Explanations

2023-11-02 · Priti Oli, Rabin Banjade, Jeevan Chapagain, Vasile Rus

This paper systematically investigates the generation of code explanations by Large Language Models (LLMs) for code examples commonly encountered in introductory programming courses. Our findings reveal significant variations in the nature of code explanations produced by LLMs, influenced by factors such as the wording of the prompt, the specific code examples under consideration, the programming language involved, the temperature parameter, and the version of the LLM. However, a consistent pattern emerges for Java and Python, where explanations exhibit a Flesch-Kincaid readability level of approximately 7-8 grade and a consistent lexical density, indicating the proportion of meaningful words relative to the total explanation size. Additionally, the generated explanations consistently achieve high scores for correctness, but lower scores on three other metrics: completeness, conciseness, and specificity.

📄 PDF Abstract BibTeX arXiv:2311.01490

Code (0)

등록된 구현이 없습니다.

Tasks

Specificity

Similar Papers 제목 키워드 기반

In What Languages are Generative Language Models the Most Formal? Analyzing Formality Distribution across Languages

2023-02-23 · Asım Ersoy, Gerson Vizcarra, Tasmiah Tahsin Mayeesha, Benjamin Muller

Multilingual generative language models (LMs) are increasingly fluent in a large variety of languages. Trained on the concatenation of corpora in multiple languages, they enable powerful transfer from high-resource langu…

Cultural Vocal Bursts Intensity PredictionDiversity

Compromesso! Italian Many-Shot Jailbreaks Undermine the Safety of Large Language Models

2024-08-08 · Fabio Pernisi, Dirk Hovy, Paul Röttger

As diverse linguistic communities and users adopt large language models (LLMs), assessing their safety across languages becomes critical. Despite ongoing efforts to make LLMs safe, they can still be made to behave unsafe…

Kiss up, Kick down: Exploring Behavioral Changes in Multi-modal Large Language Models with Assigned Visual Personas

2024-10-04 · Seungjong Sun, Eungu Lee, Seo Yeon Baek, Seunghyun Hwang 외

This study is the first to explore whether multi-modal large language models (LLMs) can align their behaviors with visual personas, addressing a significant gap in the literature that predominantly focuses on text-based …

Pruning as a Defense: Reducing Memorization in Large Language Models

2025-02-18 · Mansi Gupta, Nikhar Waghela, Sarthak Gupta, Shourya Goel 외

Large language models have been shown to memorize significant portions of their training data, which they can reproduce when appropriately prompted. This work investigates the impact of simple pruning techniques on this …

Memorization

Visual concept ranking uncovers medical shortcuts used by large multimodal models

2026-02-04 · Joseph D. Janizek, Sonnet Xu, Junayd Lateef, Roxana Daneshjou arxiv

Ensuring the reliability of machine learning models in safety-critical domains such as healthcare requires auditing methods that can uncover model shortcomings. We introduce a method for identifying important visual conc…