Tech Studies

91,965 research papers, searchable by meaning as well as exact wording. So “steering vectors” also surfaces work on “activation steering.”

Papers
91,965
Semantically indexed
91,965
Subject areas
145
Authors
199,823
Newest paper
25 Nov

295 results for “code generation”

Matched on wording only, meaning-matching is unavailable right now

261

Automated Proof Generation for Rust Code via Self-Evolution

21 Oct · Tianyu Chen, Shuai Lu, Shan Lu +9 · arXiv:2410.15756

Ensuring correctness is crucial for code generation. Formal verification offers a definitive assurance of correctness, but demands substantial human effort in proof construction and hence raises a pressing need for automation. The primary obstacle lies in the severe lack of data-there is much fewer proofs than code snippets for Large Language Models (LLMs) to train upon. In this paper, we introduce SAFE, a framework…

262

Generating Energy-Efficient Code via Large-Language Models -- Where are we now?

12 Sept · Radu Apsan, Vincenzo Stoico, Michel Albonico +3 · arXiv:2509.10099

Context. The rise of Large Language Models (LLMs) has led to their widespread adoption in development pipelines. Goal. We empirically assess the energy efficiency of Python code generated by LLMs against human-written code and code developed by a Green software expert. Method. We test 363 solutions to 9 coding problems from the EvoEval benchmark using 6 widespread LLMs with 4 prompting techniques, and comparing them…

263

cAST: Enhancing Code Retrieval-Augmented Generation with Structural Chunking via Abstract Syntax Tree

18 Jun · Yilin Zhang, Xinran Zhao, Zora Zhiruo Wang +3 · arXiv:2506.15655

Retrieval-Augmented Generation (RAG) has become essential for large-scale code generation, grounding predictions in external code corpora to improve actuality. However, a critical yet underexplored aspect of RAG pipelines is chunking -- the process of dividing documents into retrievable units. Existing line-based chunking heuristics often break semantic structures, splitting functions or merging unrelated code,…

264

Enhancing LLM-Based Test Generation by Eliminating Covered Code

25 Feb · WeiZhe Xu, Mengyu Liu, Fanxin Kong · arXiv:2602.21997

Automated test generation is essential for software quality assurance, with coverage rate serving as a key metric to ensure thorough testing. Recent advancements in Large Language Models (LLMs) have shown promise in improving test generation, particularly in achieving higher coverage. However, while existing LLM-based test generation solutions perform well on small, isolated code snippets, they struggle when applied…

supplementary material included Software engineering Artificial intelligence Machine learning Matched by wording
265

CodeTaste: Can LLMs Generate Human-Level Code Refactorings?

4 Mar · Alex Thillen, Niels Mündler, Veselin Raychev +1 · arXiv:2603.04177

LLM coding agents can generate working code, but their solutions often accumulate complexity, duplication, and architectural debt. Human developers address such issues through refactoring: behavior-preserving program transformations that improve structure and maintainability. We investigate whether agents (i) can execute refactorings reliably and (ii) identify the refactorings that human developers actually chose in…

266

Evaluating Generative AI for CS1 Code Grading: Direct vs Reverse Methods

17 Nov · Ahmad Memon, Abdallah Mohamed · arXiv:2511.14798

Manual grading of programming assignments in introductory computer science courses can be time-consuming and prone to inconsistencies. While unit testing is commonly used for automatic evaluation, it typically follows a binary pass/fail model and does not give partial marks. Recent advances in large language models (LLMs) offer the potential for automated, scalable, and more objective grading. This paper compares…

This version corresponds to the paper accepted for presentation at CASCON 2025 Software engineering Artificial intelligence Computers & society Matched by wording
267

Diffusion is a code repair operator and generator

14 Aug · Mukul Singh, Gust Verbruggen, Vu Le +1 · arXiv:2508.11110

Code diffusion models generate code by iteratively removing noise from the latent representation of a code snippet. During later steps of the diffusion process, when the code snippet has almost converged, differences between discrete representations of these snippets look like last-mile repairs applied to broken or incomplete code. We evaluate the extent to which this resemblance can be exploited to leverage…

268

scicode-lint: Detecting Methodology Bugs in Scientific Python Code with LLM-Generated Patterns

18 Mar · Sergey V. Samsonau · arXiv:2603.17893

Methodology bugs in scientific Python code produce plausible but incorrect results that traditional linters and static analysis tools cannot detect. Several research groups have built ML-specific linters, demonstrating that detection is feasible. Yet these tools share a sustainability problem: dependency on specific pylint or Python versions, limited packaging, and reliance on manual engineering for every new…

269

On Assessing the Relevance of Code Reviews Authored by Generative Models

17 Dec · Robert Heumüller, Frank Ortmeier · arXiv:2512.15466

The use of large language models like ChatGPT in code review offers promising efficiency gains but also raises concerns about correctness and safety. Existing evaluation methods for code review generation either rely on automatic comparisons to a single ground truth, which fails to capture the variability of human perspectives, or on subjective assessments of "usefulness", a highly ambiguous concept. We propose a…

Replication Package: https://github.com/robert-heumueller-ovgu/repl-generative-review-relevance Software engineering Artificial intelligence Matched by wording
270

Generating Energy-efficient code with LLMs

15 Nov · Tom Cappendijk, Pepijn de Reus, Ana Oprescu · arXiv:2411.10599

The increasing electricity demands of personal computers, communication networks, and data centers contribute to higher atmospheric greenhouse gas emissions, which in turn lead to global warming and climate change. Therefore the energy consumption of code must be minimized. Code can be generated by large language models. We look at the influence of prompt modification on the energy consumption of the code generated.…

271

From Articles to Code: On-Demand Generation of Core Algorithms from Scientific Publications

30 Jul · Cameron S. Movassaghi, Amanda Momenzadeh, Jesse G. Meyer · arXiv:2507.22324

Maintaining software packages imposes significant costs due to dependency management, bug fixes, and versioning. We show that rich method descriptions in scientific publications can serve as standalone specifications for modern large language models (LLMs), enabling on-demand code generation that could supplant human-maintained libraries. We benchmark state-of-the-art models (GPT-o4-mini-high, Gemini Pro 2.5, Claude…

272

An Initial Exploration of Contrastive Prompt Tuning to Generate Energy-Efficient Code

3 Mar · Sophie Weidmann, Fernando Castor · arXiv:2604.02352

Although LLMs are capable of generating functionally correct code, they also tend to produce less energy-efficient code in comparison to human-written solutions. As these inefficiencies lead to higher computational overhead, they are in direct conflict with Green Software Development (GSD) efforts, which aim to reduce the energy consumption of code. To support these efforts, this study aims to investigate whether…

Published at the Third International Workshop on Large Language Models for Code (LLM4Code 2026) Machine learning Artificial intelligence Software engineering Matched by wording
273

ACT: Bridging the Gap in Code Translation through Synthetic Data Generation & Adaptive Training

22 Jul · Shreya Saxena, Siva Prasad, Zishan Ahmad +1 · arXiv:2507.16478

Code translation is a crucial process in software development and migration projects, enabling interoperability between different programming languages and enhancing software adaptability and thus longevity. Traditional automated translation methods rely heavily on handcrafted transformation rules, which often lack flexibility and scalability. Meanwhile, advanced language models present promising alternatives but…

274

Do Generative AI Tools Ensure Green Code? An Investigative Study

10 Jun · Samarth Sikand, Rohit Mehra, Vibhu Saujanya Sharma +3 · arXiv:2506.08790

Software sustainability is emerging as a primary concern, aiming to optimize resource utilization, minimize environmental impact, and promote a greener, more resilient digital ecosystem. The sustainability or "greenness" of software is typically determined by the adoption of sustainable coding practices. With a maturing ecosystem around generative AI, many software developers now rely on these tools to generate code…

To be published in the proceedings of 2nd International Workshop on Responsible AI Engineering (RAIE '24), co-located with ICSE '24, Lisbon, Portugal Software engineering Artificial intelligence Computers & society Matched by wording
275

Hallucinations in Code Change to Natural Language Generation: Prevalence and Evaluation of Detection Metrics

12 Aug · Chunhua Liu, Hong Yi Lin, Patanamon Thongtanunam · arXiv:2508.08661

Language models have shown strong capabilities across a wide range of tasks in software engineering, such as code generation, yet they suffer from hallucinations. While hallucinations have been studied independently in natural language and code generation, their occurrence in tasks involving code changes which have a structurally complex and context-dependent format of code remains largely unexplored. This paper…

276

AI-Generated Smells: An Analysis of Code and Architecture in LLM and Agent-Driven Development

4 May · Yuecai Zhu, Nikolaos Tsantalis, Peter C. Rigby · arXiv:2605.02741

The promise of Large Language Models in automated software engineering is often measured by functional correctness, overlooking the critical issue of long term maintainability. This paper presents a systematic audit of technical debt in AI-generated software, revealing that AI does not eliminate flaws but rather introduces a distinct machine signature of defects. Our multi-scale analysis, spanning single-file…

277

Contract-Coding: Towards Repo-Level Generation via Structured Symbolic Paradigm

10 Apr · Yi Lin, Lujin Zhao, Yijie Shi · arXiv:2604.13100

The shift toward intent-driven software engineering (often termed "Vibe Coding") exposes a critical Context-Fidelity Trade-off: vague user intents overwhelm linear reasoning chains, leading to architectural collapse in complex repo-level generation. We propose Contract-Coding, a structured symbolic paradigm that bridges unstructured intent and executable code via Autonomous Symbolic Grounding. By projecting…

278

Evaluating perturbation robustness of generative systems that use COBOL code inputs

23 Nov · Samuel Ackerman, Wesam Ibraheem, Orna Raz +1 · arXiv:2511.18488

Systems incorporating large language models (LLMs) as a component are known to be sensitive (i.e., non-robust) to minor input variations that do not change the meaning of the input; such sensitivity may reduce the system's usefulness. Here, we present a framework to evaluate robustness of systems using COBOL code as input; our application is translation between COBOL and Java programming languages, but the approach…

(8 main, 8 appendix). Accepted to AI-SQE (ICSE, 2026): The 1st International Workshop on AI for Software Quality Evaluation: Judgment, Metrics, Benchmarks, and Beyond Software engineering Artificial intelligence Matched by wording
279

Executing as You Generate: Hiding Execution Latency in LLM Code Interpreters

1 Apr · Zhensu Sun, Zhihao Lin, Zhi Chen +4 · arXiv:2604.00491

Current LLM systems are increasingly equipped with a code interpreter that executes generated code to obtain results. This works serially: the model first generates the complete code, then an interpreter executes it. This sequential workflow leaves the executor idle during generation and the generator idle during execution, resulting in unnecessary end-to-end latency. Our key observation is that an LLM, unlike a…

280

Generating High-Quality Datasets for Code Editing via Open-Source Language Models

19 Sept · Zekai Zhang, Mingwei Liu, Zhenxi Chen +7 · arXiv:2509.25203

Code editing plays a vital role in software engineering, requiring developers to adjust existing code according to natural language instructions while keeping functionality intact and avoiding unnecessary modifications. However, commit-based datasets commonly used for this task are often noisy, lack diversity, and fail to reflect the style of real-world edit instructions. To address this, we introduce OpenCodeEdit,…