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

21

RiskyPy: Toward Model-Calibrated Prompt Generation for Joint Security and Functionality Evaluation of LLM-Generated Code

29 Oct · Zacharie Chenail-Larcher, Daniele Lunghi, Melissa Tessa +5 · arXiv:2610.40735

Evaluating approaches that improve the security of LLM code generation requires datasets that jointly assess security and functionality and remain adapted to the capabilities of the models being studied. However, existing benchmarks are costly to produce and are generally not calibrated to a chosen range of model capabilities. We introduce RiskyPy, an automated pipeline that generates security-oriented…

22

Tree-of-Code: A Tree-Structured Exploring Framework for End-to-End Code Generation and Execution in Complex Task Handling

19 Dec · Ziyi Ni, Yifan Li, Ning Yang +3 · arXiv:2412.15305

Solving complex reasoning tasks is a key real-world application of agents. Thanks to the pretraining of Large Language Models (LLMs) on code data, recent approaches like CodeAct successfully use code as LLM agents' action, achieving good results. However, CodeAct greedily generates the next action's code block by relying on fragmented thoughts, resulting in inconsistency and instability. Moreover, CodeAct lacks…

This idea was first submitted to the NeuralPS Workshop "System 2 Reasoning At Scale" in September 2024. Its OpenReview: https://openreview.net/forum?id=8NKAL8Ngxk&noteId=8NKAL8Ngxk. It was then submitted to the NAACL 2025 in October 2024, which is recorded in: https://openreview.net/forum?id=S0ZUWD3Vy5&noteId=S0ZUWD3Vy5. Now this paper has been accepted for publication in ACL 2025 Findings Software engineering Artificial intelligence Matched by wording
23

AI-Generated Code Is Not Reproducible (Yet): An Empirical Study of Dependency Gaps in LLM-Based Coding Agents

26 Dec · Bhanu Prakash Vangala, Ali Adibifar, Ashish Gehani +1 · arXiv:2512.22387

The rise of Large Language Models (LLMs) as coding agents promises to accelerate software development, but their impact on generated code reproducibility remains largely unexplored. This paper presents an empirical study investigating whether LLM-generated code can be executed successfully in a clean environment with only OS packages and using only the dependencies that the model specifies. We evaluate three…

24

Reward-Free Code Alignment from Pretrained or Fine-Tuned LLM: Unpacking the Trade-offs for Code Generation

27 Jun · Sanjeepan Sivapiran, Gias Uddin · arXiv:2606.28998

Large Language Model (LLM) alignment trains an LLM using preference data to produce outputs that better meet established quality standards. While LLM alignment techniques are studied for non-coding tasks, we know little about their usefulness for coding tasks. It is unclear whether LLM code alignment could support both functional requirements (producing executable, correct code) and non-functional requirements (code…

25

Reasoning as a Resource: Optimizing Fast and Slow Thinking in Code Generation Models

11 Jun · Zongjie Li, Shuai Wang · arXiv:2506.09396

This position paper proposes a fundamental shift in designing code generation models: treating reasoning depth as a controllable resource. Rather than being an incidental byproduct of prompting, we argue that the trade-off between rapid, direct answers ("fast thinking") and elaborate, chain-of-thought deliberation ("slow thinking") must be explicitly managed. We contend that optimizing reasoning budgets across the…

26

Eliminating Hallucination-Induced Errors in LLM Code Generation with Functional Clustering

16 May · Chaitanya Ravuri, Saman Amarasinghe · arXiv:2506.11021

Modern code-generation LLMs can already solve a large fraction of programming problems, yet they still hallucinate subtle bugs that make their outputs unsafe for autonomous deployment. We present functional clustering, a black-box wrapper that eliminates nearly all hallucination-induced errors while providing a tunable confidence score. The wrapper samples many candidate programs, executes each on a self-generated…

27

Security Degradation in Iterative AI Code Generation -- A Systematic Analysis of the Paradox

19 May · Shivani Shukla, Himanshu Joshi, Romilla Syed · arXiv:2506.11022

The rapid adoption of Large Language Models(LLMs) for code generation has transformed software development, yet little attention has been given to how security vulnerabilities evolve through iterative LLM feedback. This paper analyzes security degradation in AI-generated code through a controlled experiment with 400 code samples across 40 rounds of "improvements" using four distinct prompting strategies. Our…

Keywords - Large Language Models, Security Vulnerabilities, AI-Generated Code, Iterative Feedback, Software Security, Secure Coding Practices, Feedback Loops, LLM Prompting Strategies Software engineering Artificial intelligence Language & NLP Matched by wording
28

QHackBench: Benchmarking Large Language Models for Quantum Code Generation Using PennyLane Hackathon Challenges

24 Jun · Abdul Basit, Minghao Shao, Muhammad Haider Asif +4 · arXiv:2506.20008

Recent advances in Large Language Models (LLMs) have demonstrated strong potential in code generation, yet their effectiveness in quantum computing remains underexplored. This paper benchmarks LLMs for PennyLane-based quantum code generation using real-world challenges from the Quantum Hackathon (QHack). We introduce QHackBench, a novel benchmark dataset derived from QHack competitions, and evaluate model…

To appear at the IEEE International Conference on Quantum Artificial Intelligence (QAI), Naples, Italy, November 2025 Artificial intelligence Programming languages Software engineering Matched by wording
29

Data Dependency-Aware Code Generation from Enhanced UML Sequence Diagrams

5 Aug · Wenxin Mao, Zhitao Wang, Long Wang +7 · arXiv:2508.03379

Large language models (LLMs) excel at generating code from natural language (NL) descriptions. However, the plain textual descriptions are inherently ambiguous and often fail to capture complex requirements like intricate system behaviors, conditional logic, and architectural constraints; implicit data dependencies in service-oriented architectures are difficult to infer and handle correctly. To bridge this gap, we…

30

Smaller = Weaker? Benchmarking Robustness of Quantized LLMs in Code Generation

28 Jun · Sen Fang, Weiyuan Ding, Antonio Mastropaolo +1 · arXiv:2506.22776

Quantization has emerged as a mainstream method for compressing Large Language Models (LLMs), reducing memory requirements and accelerating inference without architectural modifications. While existing research primarily focuses on evaluating the effectiveness of quantized LLMs compared to their original counterparts, the impact on robustness remains largely unexplored.In this paper, we present the first systematic…

31

Incoherence as Oracle-less Measure of Error in LLM-Based Code Generation

26 Jun · Thomas Valentin, Ardi Madadi, Gaetano Sapia +1 · arXiv:2507.00057

Generating code from a natural language programming task is one of the most successful applications of Large Language Models (LLMs). Yet, the generated program may be buggy. Without an oracle, such as an existing, correct implementation or a formal specification, can we somehow estimate how likely the generated program is correct? In this paper, we propose a measure of incorrectness, called *incoherence*, that can…

Accepted at AAAI'26 (extended version). + refs and appendix Programming languages Artificial intelligence Machine learning Matched by wording
32

Multilingual Multimodal Software Developer for Code Generation

11 Jul · Linzheng Chai, Jian Yang, Shukai Liu +9 · arXiv:2507.08719

The rapid advancement of Large Language Models (LLMs) has significantly improved code generation, yet most models remain text-only, neglecting crucial visual aids like diagrams and flowcharts used in real-world software development. To bridge this gap, we introduce MM-Coder, a Multilingual Multimodal software developer. MM-Coder integrates visual design inputs-Unified Modeling Language (UML) diagrams and flowcharts…

33

$\texttt{Droid}$: A Resource Suite for AI-Generated Code Detection

11 Jul · Daniil Orel, Indraneil Paul, Iryna Gurevych +1 · arXiv:2507.10583

In this work, we compile $\textbf{$\texttt{DroidCollection}$}$, the most extensive open data suite for training and evaluating machine-generated code detectors, comprising over a million code samples, seven programming languages, outputs from 43 coding models, and over three real-world coding domains. Alongside fully AI-generated samples, our collection includes human-AI co-authored code, as well as adversarial…

34

GitChameleon 2.0: Evaluating AI Code Generation Against Python Library Version Incompatibilities

16 Jul · Diganta Misra, Nizar Islah, Victor May +9 · arXiv:2507.12367

The rapid evolution of software libraries poses a considerable hurdle for code generation, necessitating continuous adaptation to frequent version updates while preserving backward compatibility. While existing code evolution benchmarks provide valuable insights, they typically lack execution-based evaluation for generating code compliant with specific library versions. To address this, we introduce GitChameleon…

Version 2 of the dataset from: arXiv:2411.05830 Software engineering Artificial intelligence Programming languages Matched by wording
35

QSpark: Towards Reliable Qiskit Code Generation

16 Jul · Kiana Kheiri, Aamna Aamir, Andriy Miranskyy +1 · arXiv:2507.12642

Quantum circuits must be error-resilient, yet LLMs like Granite-20B-Code and StarCoder often output flawed Qiskit code. We fine-tuned the Qwen2.5-Coder-32B model with two RL methods, Group Relative Policy Optimization (GRPO) and Odds-Ratio Preference Optimization (ORPO), using a richly annotated synthetic dataset. On the Qiskit HumanEval benchmark, ORPO reaches 56.29% Pass@1 ($\approx+10$ pp over Granite-8B-QK) and…

36

SimdBench: Benchmarking Large Language Models for SIMD-Intrinsic Code Generation

21 Jul · Yibo He, Shuoran Zhao, Jiaming Huang +4 · arXiv:2507.15224

SIMD (Single Instruction Multiple Data) instructions and their compiler intrinsics are widely supported by modern processors to accelerate performance-critical tasks. SIMD intrinsic programming, a trade-off between coding productivity and high performance, is widely used in the development of mainstream performance-critical libraries and daily computing tasks. Large Language Models (LLMs), which have demonstrated…

37

ReCatcher: Towards LLMs Regression Testing for Code Generation

25 Jul · Altaf Allah Abbassi, Leuson Da Silva, Amin Nikanjam +1 · arXiv:2507.19390

Large Language Models (LLMs) for code generation evolve rapidly through fine-tuning, merging, or new model releases. However, such updates can introduce regressions, not only in correctness but also in code quality and performance. To address this, we present ReCatcher, a regression testing framework for Python code generation. ReCatcher systematically compares two LLMs, typically a current model and a candidate…

38

What Makes Code Generation Ethically Sourced?

26 Jul · Zhuolin Xu, Chenglin Li, Qiushi Li +1 · arXiv:2507.19743

Several code generation models have been proposed to help reduce time and effort in solving software-related tasks. To ensure responsible AI, there are growing interests over various ethical issues (e.g., unclear licensing, privacy, fairness, and environment impact). These studies have the overarching goal of ensuring ethically sourced generation, which has gained growing attentions in speech synthesis and image…

39

CrossPL: Evaluating Large Language Models on Cross Programming Language Code Generation

26 Jul · Zhanhang Xiong, Dongxia Wang, Yuekang Li +2 · arXiv:2507.19904

As large language models (LLMs) become increasingly embedded in software engineering workflows, a critical capability remains underexplored: generating correct code that enables cross-programming-language (CPL) interoperability. This skill is essential for building complex systems that integrate components written in multiple languages via mechanisms like inter-process communication (IPC). To bridge this gap, we…

40

MultiAIGCD: A Comprehensive dataset for AI Generated Code Detection Covering Multiple Languages, Models,Prompts, and Scenarios

29 Jul · Basak Demirok, Mucahid Kutlu, Selin Mergen · arXiv:2507.21693

As large language models (LLMs) rapidly advance, their role in code generation has expanded significantly. While this offers streamlined development, it also creates concerns in areas like education and job interviews. Consequently, developing robust systems to detect AI-generated code is imperative to maintain academic integrity and ensure fairness in hiring processes. In this study, we introduce MultiAIGCD, a…