arXiv Machine Learning

Quantize with Confidence? An Empirical Study of Quantization for Code Generation

arXiv:2607. 14181v1 Announce Type: cross Abstract: The growing adoption of local inference frameworks such as Ollama has made it increasingly common for developers to run large code models on laptops and other resource-constrained hardware.

arXiv Computation and Language
Nov 4

Beyond Accuracy: How Quantization Affects Coding Agents

The paper investigates how quantization affects coding agents that generate and revise programs. It compares BF16, 4‑bit AWQ, and GPTQ quantization methods on Qwen2.5‑Coder‑Instruct and Devstral‑Small‑2507 models across various sizes and seeds, finding no significant loss in final accuracy. However, quantization changes behavior: it alters one‑shot versus loop‑based solve rates, tool‑use patterns, and failure modes such as compilation errors and runtime issues.

By Areej Mehboob, Muhammad Ali Shafique, Muhammad Usman Qadeer, Hamza Farooq
arXiv AI
1d ago

Jagged Robustness: Uneven Safety Transfer and Emerging Vulnerabilities under LLM Quantization

The paper investigates how quantizing large language models (LLMs) affects their safety and capability. It finds that while some abilities like truthfulness stay stable, safeguards and bias degrade, a phenomenon termed Jagged Robustness. The study attributes this uneven transfer to factors such as task complexity, evaluation method, and generation coherence, and demonstrates that quantized models are more vulnerable to unsafe requests and adversarial suffix attacks.

By Ramneek Agnihotri, Yingte Xu, Hans Vath
arXiv AI
Jun 16

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

arXiv:2511. 20709v2 Announce Type: replace-cross Abstract: 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.

By Rupam Patir, Keyan Guo, Suvadra Barua, Abhijeet Pathak, Dinesh Gudimetla, Jiawei Guo, Hongxin Hu, Haipeng Cai
arXiv AI
Oct 9

Characterizing Overconfident Failure in LLM-Based Code Generation

The paper investigates how large language models (LLMs) used for code generation can produce syntactically plausible but incorrect programs, a phenomenon termed overconfident failure. By evaluating four open-source code models across three execution-based benchmarks, the authors examine whether token-level uncertainty metrics can predict execution correctness, analyze overconfidence at both global and local levels, and test mitigation strategies such as selective generation and instruction tuning. Their findings show that existing uncertainty signals are only partially reliable, overconfidence persists across models, instruction tuning can increase certainty without improving correctness discrimination, and common mitigation techniques do not fully resolve the issue. "whyItMatters":"The study highlights that current uncertainty metrics and mitigation strategies are insufficient to reliably detect or prevent incorrect code generation, underscoring the need for better reliability signals in LLM-based code synthesis."

By Ravishka Rathnasuriya, Wei Yang