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

46 results for “code generation”

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

1

Marking Code Without Breaking It: Code Watermarking for Detecting LLM-Generated Code

26 Feb · Jungin Kim, Shinwoo Park, Yo-Sub Han · arXiv:2502.18851

Identifying LLM-generated code through watermarking poses a challenge in preserving functional correctness. Previous methods rely on the assumption that watermarking high-entropy tokens effectively maintains output quality. Our analysis reveals a fundamental limitation of this assumption: syntax-critical tokens such as keywords often exhibit the highest entropy, making existing approaches vulnerable to logic…

Findings of EACL 2026 Cryptography & security Artificial intelligence Matched by wording
2

Towards Privacy-Preserving Code Generation: Differentially Private Code Language Models

12 Dec · Melih Catal, Pooja Rani, Harald C. Gall · arXiv:2512.11482

Large language models specialized for code (CodeLLMs) have demonstrated remarkable capabilities in generating code snippets, documentation, and test cases. However, despite their promising capabilities, CodeLLMs can inadvertently memorize and reproduce snippets from their training data, which poses risks of privacy breaches and intellectual property violations. These risks restrict the deployment of CodeLLMs in…

3

DualGauge: Automated Joint Security-Functionality Benchmarking of Specification-Only Code Generation by LLMs and Coding Agents

24 Nov · Rupam Patir, Keyan Guo, Suvadra Barua +5 · arXiv:2511.20709

Large language models (LLMs) and LLM-based coding agents are now used to generate code from natural-language specifications, yet ensuring such code is both functionally correct and secure remains a challenge. We present DualGauge, the first fully automated framework for jointly evaluating correctness and security of specification-only code generation, supported by DualGauge-Bench, a language-agnostic benchmark of…

Accepted to Findings of the Association for Computational Linguistics: EMNLP 2026 Software engineering Artificial intelligence Cryptography & security Matched by wording
4

CODE ACROSTIC: Robust Watermarking for Code Generation

14 Dec · Li Lin, Siyuan Xin, Yang Cao +1 · arXiv:2512.14753

Watermarking large language models (LLMs) is vital for preventing their misuse, including the fabrication of fake news, plagiarism, and spam. It is especially important to watermark LLM-generated code, as it often contains intellectual property.However, we found that existing methods for watermarking LLM-generated code fail to address comment removal attack.In such cases, an attacker can simply remove the comments…

5

ImportSnare: Directed "Code Manual" Hijacking in Retrieval-Augmented Code Generation

9 Sept · Kai Ye, Liangcai Su, Chenxiong Qian · arXiv:2509.07941

Code generation has emerged as a pivotal capability of Large Language Models(LLMs), revolutionizing development efficiency for programmers of all skill levels. However, the complexity of data structures and algorithmic logic often results in functional deficiencies and security vulnerabilities in generated code, reducing it to a prototype requiring extensive manual debugging. While Retrieval-Augmented Generation…

This paper has been accepted by the ACM Conference on Computer and Communications Security (CCS) 2025 Cryptography & security Artificial intelligence Matched by wording
6

Fortifying LLM-Based Code Generation with Graph-Based Reasoning on Secure Coding Practices

8 Oct · Rupam Patir, Keyan Guo, Haipeng Cai +1 · arXiv:2510.09682

The code generation capabilities of Large Language Models (LLMs) have transformed the field of software development. However, this advancement also presents significant security challenges, as LLM-generated code often contains vulnerabilities. One direction of research strengthens LLMs by injecting or refining security knowledge through curated datasets, model tuning, or static analyzers. While effective in certain…

7

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…

8

LLM-CSEC: Empirical Evaluation of Security in C/C++ Code Generated by Large Language Models

24 Nov · Muhammad Usman Shahid, Chuadhry Mujeeb Ahmed, Rajiv Ranjan · arXiv:2511.18966

The security of code generated by large language models (LLMs) is a significant concern, as studies indicate that such code often contains vulnerabilities and lacks essential defensive programming constructs. This work focuses on examining and evaluating the security of LLM-generated code, particularly in the context of C/C++. We categorized known vulnerabilities using the Common Weakness Enumeration (CWE) and, to…

9

SecFSM: Knowledge Graph-Guided Verilog Code Generation for Secure Finite State Machines in Systems-on-Chip

18 Aug · Ziteng Hu, Yingjie Xia, Xiyuan Chen +1 · arXiv:2508.12910

Finite State Machines (FSMs) play a critical role in implementing control logic for Systems-on-Chip (SoC). Traditionally, FSMs are implemented by hardware engineers through Verilog coding, which is often tedious and time-consuming. Recently, with the remarkable progress of Large Language Models (LLMs) in code generation, LLMs have been increasingly explored for automating Verilog code generation. However,…

10

SafeGenBench: A Benchmark Framework for Security Vulnerability Detection in LLM-Generated Code

6 Jun · Xinghang Li, Jingzhe Ding, Chao Peng +4 · arXiv:2506.05692

The code generation capabilities of large language models(LLMs) have emerged as a critical dimension in evaluating their overall performance. However, prior research has largely overlooked the security risks inherent in the generated code. In this work, we introduce SafeGenBench, a benchmark specifically designed to assess the security of LLM-generated code. The dataset encompasses a wide range of common software…

11

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
12

Ocassionally Secure: A Comparative Analysis of Code Generation Assistants

1 Feb · Ran Elgedawy, Porter Dosch, John Sadik +8 · arXiv:2402.00689

$ $Large Language Models (LLMs) are being increasingly utilized in various applications, with code generations being a notable example. While previous research has shown that LLMs have the capability to generate both secure and insecure code, the literature does not take into account what factors help generate secure and effective code. Therefore in this paper we focus on identifying and understanding the conditions…

13

Investigating Security Implications of Automatically Generated Code on the Software Supply Chain

24 Sept · Xiaofan Li, Xing Gao · arXiv:2509.20277

In recent years, various software supply chain (SSC) attacks have posed significant risks to the global community. Severe consequences may arise if developers integrate insecure code snippets that are vulnerable to SSC attacks into their products. Particularly, code generation techniques, such as large language models (LLMs), have been widely utilized in the developer community. However, LLMs are known to suffer…

14

VeriGuard: Enhancing LLM Agent Safety via Verified Code Generation

3 Oct · Lesly Miculicich, Mihir Parmar, Hamid Palangi +4 · arXiv:2510.05156

The deployment of autonomous AI agents in sensitive domains, such as healthcare, introduces critical risks to safety, security, and privacy. These agents may deviate from user objectives, violate data handling policies, or be compromised by adversarial attacks. Mitigating these dangers necessitates a mechanism to formally guarantee that an agent's actions adhere to predefined safety constraints, a challenge that…

15

Secure Code Generation at Scale with Reflexion

5 Nov · Arup Datta, Ahmed Aljohani, Hyunsook Do · arXiv:2511.03898

Large language models (LLMs) are now widely used to draft and refactor code, but code that works is not necessarily secure. We evaluate secure code generation using the Instruct Prime, which eliminated compliance-required prompts and cue contamination, and evaluate five instruction-tuned code LLMs using a zero-shot baseline and a three-round reflexion prompting approach. Security is measured using the Insecure Code…

Accepted for publication at the 2nd IEEE International Conference on AI-powered Software (AIware 2025) Cryptography & security Artificial intelligence cs.CE Matched by wording
16

Security of LLM-generated Code: A Comparative Analysis

21 May · Srivathsan G Morkonda, Mahmoud Selim, Hala Assal · arXiv:2605.23091

The majority of software developers use or are planning to use Artificial Intelligence (AI) tools in their development processes. Their top reasons include improving productivity and faster learning. In fact, Large Language Model (LLM)-generated code is currently in production, including in major tech companies. However, concerns were raised about the risks associated with the use of AI tools to generate code. In…

17

An Empirical Evaluation of LLM-Generated Code Security Across Prompting Methods

22 May · Mohammed Kharma, Ahmed Sabbah, Mohammad Alkhanafseh +2 · arXiv:2605.24298

The growing use of Large Language Models (LLMs) for automated code generation has enhanced software development efficiency, but often at the cost of security. Generated code frequently overlooks critical concerns, leaving it vulnerable to issues such as weak encryption and improper input validation. To investigate this problem, we present a comprehensive empirical evaluation of the security quality of LLM-generated…

18

Enhancing Reliability in LLM-Based Secure Code Generation

22 May · Mohammed F. Kharma, Mohammad Alkhanafseh, Ahmed Sabbah +1 · arXiv:2605.24300

Large language models (LLMs) are widely used for code generation, but their security reliability remains inconsistent across languages and prompting strategies. Existing prompt engineering improves functional correctness but rarely ensures consistent security outcomes. We introduce the \textit{Mitigation-Aware Chain-of-Thought (MA-CoT)} framework, which embeds task-specific CWE mitigation guidance and language-aware…

19

Activating Latent Security Knowledge through LLM-Guided Risk Analysis for Secure Code Generation

15 Jun · Xiaoyun Xu, Lichao Wu, Jona te Lintelo +3 · arXiv:2606.16244

Large language models are pretrained on extensive software and security corpora, yet they frequently generate functionally correct code containing well-known vulnerabilities. Existing defenses commonly treat this behavior as a knowledge deficit, addressing it through model-specific fine-tuning or retrieval from large collections of vulnerability code examples. We argue that insecure generation can arise from a…

20

SoK: AI Secure Code Generation: Progress, Pitfalls, and Paths Forward

23 Jun · Rupam Patir, Keyan Guo, Haipeng Cai +1 · arXiv:2606.25195

The increasing use of AI systems for code generation raises a central security question: what can today's models and coding agents actually do to produce secure code, where do they still fail, and what would move the field forward? Existing work has explored prompting, fine-tuning, reinforcement learning, and agentic workflows for secure code generation, but the field still lacks a systematic understanding of how…