CoSEFA: An LLM-Based Programming Assistant for Secure Code Generation via Supervised Co-Decoding

Programming assistants based on Large Language Models (LLMs) assist developers in code generation and improve efficiency. These LLM-based programming assistants are prone to generate code with vulnerabilities. To mitigate security risk, existing approaches retrain an LLM with crafted data without vulnerabilities. However, retraining requires enormous computational costs and the accessible LLMs' internal representation, often unavailable for LLMs deployed as distributed online services. Our previous work, CoSec, proposed a supervised co-decoding approach using base LLMs alongside a small-scale security-focused LLM fine-tuned with code changes before and after vulnerability fixing.

Authors

Institutions

Publication Details

Published
2025-06-23
DOI
https://doi.org/10.1145/3696630.3728609
Citations
1
Primary Topic
Software Testing and Debugging Techniques
Type
article
Field-Weighted Citation Impact
2.31

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

CoSEFA: An LLM-Based Programming Assistant for Secure Code Generation via Supervised Co-Decoding

Meng Ling Yan, Dong Li, Hongyu Zhang, Hao Wen et al.
1 citations
Software Testing and Debugging Techniques
2.31
article

CoSEFA: An LLM-Based Programming Assistant for Secure Code Generation via Supervised Co-Decoding

Meng Ling Yan, Dong Li, Hongyu Zhang, Hao Wen, Chao Liu, Xuan He, Yueheng Zhu
article en
1 citations

Abstract

Programming assistants based on Large Language Models (LLMs) assist developers in code generation and improve efficiency. These LLM-based programming assistants are prone to generate code with vulnerabilities. To mitigate security risk, existing approaches retrain an LLM with crafted data without vulnerabilities. However, retraining requires enormous computational costs and the accessible LLMs' internal representation, often unavailable for LLMs deployed as distributed online services. Our previous work, CoSec, proposed a supervised co-decoding approach using base LLMs alongside a small-scale security-focused LLM fine-tuned with code changes before and after vulnerability fixing.

Chongqing University (CN), Cloud Computing Center (CN)
National Natural Science Foundation of China, Centre Scientifique et Technique du Bâtiment
Openalex Percentile: Top 11%
Software Testing and Debugging Techniques
2.31
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

CoSEFA: An LLM-Based Programming Assistant for Secure Code Generation via Supervised Co-Decoding — Meng Ling Yan, Dong Li, et al. · (2025) | TGRS Research Map | TGRS