arxivcs.SE2026-07-30
CoGate: Confidence-Gated Co-Decoding for Secure Code Generation
Minghao Hu, Lannan Luo, Allen Roush, Phillip Howard
Large language models are widely used for code generation, but they can also produce insecure programs due to patterns learned from their pretraining data. Decoding-time steering has become an important solution to this problem: a small expert model is combined with the target mo…