DualGauge benchmarked 307 specification-only coding tasks for correctness and security together, and every model scored below 15% on both at once
AspireAI community · arXiv
Code generated from a natural-language specification is usually judged on functionality alone, which can overstate how usable it is. DualGauge is a fully automated framework for jointly evaluating correctness and security, backed by DualGauge-Bench, a language-agnostic set of 307 coding tasks each paired with functional and security tests derived from the same specification. Across 10 models on Python, C++ and JavaScript, functional correctness substantially overestimated reliable code generation: even the strongest model stayed below 15% joint security-functionality success in every language, and scale, extended thinking, quantization, instruction tuning and code specialization did not reliably improve it. Evaluation of Codex, OpenHands and Claude Code showed iterative scaffolding is not a reliable remedy either, with two of three agents failing to outperform a comparable direct model, and the failures concentrate at the output contract boundary and in guards that exist but are insufficient.
Read the story and explore more from the AspireAI community.
Two sparse-autoencoder analyses have resisted scaling: matching semantically similar features across layers, and compressing large feature circuits into interpretable supernodes. This paper argues both are the same underlying problem, estimating semantic distances between SAE features that sit on different activation manifolds. Its representation treats each feature not as a single decoder vector but as an activation-weighted distribution over the hidden states expressing it, projects those distributions into a shared reference space, and compares them with Wasserstein distance. The representation is proved invariant to activation rescaling and stable under perturbation, and recovers true matches under finite-sample margin conditions. Empirically it outperformed decoder-vector and LLM-based baselines and captured subtle functional distinctions between related features, and it compressed large feature circuits into interpretable supernodes automatically. The limitation is that this is interpretability tooling: the paper demonstrates better feature matching and circuit compression, not that downstream interpretability claims become more accurate.