REVIEW 3 major objections 5 minor 31 references
More than 23,000 programs that passed public tests still carried hidden bugs, and weaker AI verifiers missed most of them at a 5% false-positive budget.
Reviewed by Pith at T0; open to challenge. T0 means a machine referee read the full paper against a public rubric. the ladder, T0–T4 →
T0 review · deepseek-v4-flash
2026-08-01 09:07 UTC pith:N6WXARGN
load-bearing objection A clean and honest public-pass monitoring benchmark whose headline miss rates are plausible but currently hinge on sparsely audited self-built hidden-test oracles and an unreleased dataset. the 3 major comments →
Code Monitor Red Teaming for Public-Test-Passing Code
The pith
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
Core claim
The central discovery is that the residual-bug monitoring problem is hard even when the verifier sees exactly what a deployed reviewer would see. Under this M1 public-check boundary, the best weak verifiers reach AUROC around 0.665 and still miss 80% of hidden bugs at 5% false-positive rate; a substantially stronger verifier lowers the miss rate to 54% on ordinary generation but remains at 66% under adversarial public-test-overfit pressure. An audit of 300 hidden bugs shows 92% are specification-grounded and 64% posthoc inferable from the public view, yet only 33% are found constructively, and the stronger verifier catches 40% versus 20% for the weak one. The paper interprets the residual mi
What carries the argument
The load-bearing mechanism is the M1 information boundary: the verifier receives only the specification, required interface, visible public tests, candidate code, and public-pass status, while hidden tests serve exclusively as post-hoc oracle labels. The protocol (Code Monitor Red Teaming) varies generator pressure—from ordinary public-test-aware generation to explicit adversarial leave-a-hidden-bug instruction—and verifier scaffolding (direct review vs. requirement-decomposition review) without changing M1. This isolates whether improvements come from capability and reasoning structure or from oracle access, and it turns hidden tests into a measurement device rather than a deployed monitor
Load-bearing premise
The study assumes that failing the frozen hidden tests—especially the self-authored assertions in the constructed data-science and workflow splits—faithfully represents a real specification bug, rather than an arbitrary constraint of oracle design.
What would settle it
Take a random subset of the public-pass candidates, have independent developers blind to the paper's oracles write hidden assertions from the task specifications alone, and re-measure the 5%-false-positive miss rates. If the hidden-bug prevalence and miss rates collapse, the original oracles were the cause; if they replicate, the evidence-boundary conclusion is supported.
If this is right
- Public-test passing cannot serve as a deployment stopping rule: roughly half of public-pass candidates still fail hidden tests under ordinary generation, and adversarial pressure pushes the hidden-bug rate to 65–80%.
- Weak single-pass LLM review is inadequate as a low-false-positive gate: even the strongest weak verifier misses about 80% of hidden bugs at a 5% false-positive budget.
- Adversarial public-test-overfit pressure makes monitoring worse, not just more buggy: AUROC drops and FNR rises in all 45 dataset-generator-verifier cells, identifying a brittleness that simple prevalence estimates would miss.
- Capability scaling narrows but does not close the gap: the strongest evaluated verifier reduces G1 miss rate to 0.543 but still misses 0.662 of adversarial bugs at 5% FPR under the same evidence.
- Diagnostic evidence ablations show catch rates rise monotonically when requirement checklists, bug-category hints, or hidden-assertion summaries are added, indicating that many misses are bounded by what the public evidence can reveal.
Where Pith is reading between the lines
- A natural extension is a two-stage monitor: use the weak verifier's score to rank public-pass candidates, then escalate the top few to the stronger verifier; the paper reports a capability gradient (weak 20% catch, strong 40% catch on the audited pool) that implies such an escalation policy would catch more than either alone, but this composite is not evaluated.
- The paper's own baseline table suggests generated-test monitors, which add public-view execution evidence, outperform single-pass LLM review (candidate-targeted tests reach about 0.765 AUROC and 0.64 FNR vs. 0.665/0.80 for the best weak verifier); an editor would infer that the protocol's next testbed should be learned rerankers trained on public-pass code under M1.
- Independent replication of the hidden-test oracles is the sharpest check on the claim: if practitioners blind to the paper's assertions wrote different hidden tests for the same tasks and the measured miss rates dropped sharply, the 'evidence-boundary limits' conclusion would be largely an artifact of oracle construction.
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The paper introduces Code Monitor Red Teaming, a protocol for evaluating whether LLM verifiers can identify residual bugs in code that already passes visible public tests. Generators produce candidates under public-test-aware, verifier-aware, scheme-aware, natural-shortcut, and adversarial-overfit conditions; verifiers score only public-pass candidates using a fixed public-check information boundary (M1: specification, interface, public tests, candidate code, and pass status). Hidden tests are used only to label candidates as HIDDEN-BUG or CORRECT. The authors instantiate the protocol as CodeMonitorBench across BigCodeBench-Hard, a constructed Data-Science Code split, and a constructed CodeWorkflow split. Across 71,000 generated candidates, 43,677 pass public tests and 23,081 fail hidden tests. Weak verifiers miss most hidden bugs at a 5% FPR (Qwen-7B Hybrid FNR 0.868 on G1), adversarial pressure lowers AUROC and raises FNR in all 45 reported cells, and a stronger GLM-5.1 verifier recovers only part of the gap (G1 FNR 0.543, G4-adv FNR 0.662 at 5% FPR). An inferability audit decomposes residual misses into verifier failures and M1 evidence limits.
Significance. If the reported measurements are valid, the paper makes a practically important empirical point: passing visible tests is not a sufficient stopping rule, and single-pass weak LLM review is only a weak triage signal at low escalation budgets. The paper's strengths include a carefully described and enforced evidence boundary, honest separate accounting of NA outputs, bootstrap intervals for headline effects, explicit separation of candidate-pool construction from verifier ranking, and an adversarial stress condition framed as brittleness testing rather than prevalence estimation. There is no fitted parameter recycled as a prediction, so the core measurements are not circular. The main risk is benchmark validity: two of the three splits use hidden oracles authored by this paper, and the audit of those oracles is thin. Since the headline miss rates and the 'evidence-boundary limits' interpretation depend on those oracles, external validation is load-bearing.
major comments (3)
- [§B.2, Table 10; §B.4; Table 1] The constructed splits are self-authored oracles, yet only 200 of roughly 60,000 generated hidden assertions (198 per Data-Science task x 300 tasks, plus 1,020 CodeWorkflow checks) are audited, about 0.3%. The annotators are not described as external, and the Appendix G rubric explicitly excludes arbitrary ordering, tolerances, filenames, and optional fields. Without evidence that the unaudited assertions follow that rubric, the labels for over 16,000 of the 23,081 reported hidden bugs are not established. The headline FNR values (e.g., 0.868 at 5% FPR) could partly reflect verifiers' inability to guess private assertions rather than specification bugs. Please provide an external, per-domain audit of a substantially larger random sample of hidden assertions, or release the full hidden suites for independent review, and report the share of assertions that fail the rubric.
- [§B.3, Table 9] The BigCodeBench-Hard public/hidden split, defined as 'first two official unittest methods public, remaining official tests hidden,' is an arbitrary split that may not reflect the public evidence a deployment would actually use. If the first two official methods are systematically the easiest or most homogeneous cases, the hidden-bug yield and verifier FNRs are inflated relative to realistic visible-test sets. Please justify this public/hidden policy, report the distribution of numbers of official tests per task, and run a sensitivity analysis on at least a subset with alternative public/hidden splits (e.g., random subsets or coverage-based splits) to show the main conclusions are not artifacts of this particular partitioning.
- [§4.1, Tables 6 and 7] The inferability audit is used in the abstract and Finding 4 to support the claim that remaining misses mix verifier failures with M1 evidence limits. Because 'posthoc M1 inferable' is labeled by the authors after seeing the hidden-failure summary, the 64% figure is a subjective upper bound that may overstate how inferable the failures are from the public view in real time. The paper does distinguish constructive from posthoc labels, which is good, but the decomposition's reliability is not quantified. Please report inter-annotator agreement separately for the constructive/posthoc distinction, or have auditors pre-register candidate counterexamples before viewing the hidden failure, so the evidence-limits component is not driven by hindsight.
minor comments (5)
- [§1/§2.4] The abstract's 'weaker LLM verifier' should be qualified at first use: the weak verifiers are 7B/8B models, while the generators include 14B, 22B, and frontier models. The comparison is weak-to-strong in model capability, not necessarily weaker-than-generator in all cells.
- [§3.2/Appendix F] Table 27 and the text report '45/45 cells' as directional sign consistency. The paper correctly calls these descriptive sign checks, but the reader should be reminded in the main text that they are not independent hypothesis tests; the bootstrap intervals in Table 28 are the appropriate inferential evidence.
- [§B.2] Please state explicitly the total number of constructed hidden assertions (60,420 by my count) so the 200-assertion audit can be read as a 0.3% sample without arithmetic by the reader.
- [§C.3, Eq. (2)] The threshold definition FPR(τ) <= alpha can select a degenerate threshold when many correct scores tie at the chosen score; please state the tie-breaking rule (e.g., take the largest tau with FPR below the budget, or interpolate) so the fixed-FPR numbers are reproducible.
- [General] No artifact or data release link is provided. Given that CodeMonitorBench is a contribution, a public release of the frozen public/hidden suites, prompts, and scoring code is needed for reproducibility; at minimum describe where the artifacts will be hosted.
Circularity Check
No circularity: the paper reports measured benchmark outcomes; no prediction reduces to a fitted input or a self-cited result.
full rationale
The paper's central claims are empirical measurements, not derivations. Candidate labels come from executing public and hidden tests (Eq. 1), verifier scores come from LLM outputs under a fixed M1 evidence boundary, and FNR@5%FPR is computed from the empirical score distribution (Eq. 2). No parameter is fitted to a subset and then reused as a prediction; the fixed-FPR threshold is a reporting convention chosen per cell, not a fitted model parameter renamed as a result. The constructed Data-Science Code and CodeWorkflow splits are benchmark-building choices, and the 200-assertion audit is an external-validity limitation, which the paper itself acknowledges in its Limitations section; this affects how far the results generalize, not whether the measured outcomes are circular. The BigCodeBench-Hard split of official tests into public and hidden subsets is an arbitrary split, but it is not a self-referential derivation. There are no load-bearing self-citations: the cited related works are not by the present authors and are not invoked as a uniqueness theorem or as an ansatz that defines the result. The paper is self-contained relative to its empirical protocol, so the honest finding is no significant circularity.
Axiom & Free-Parameter Ledger
axioms (4)
- domain assumption Hidden-test failure is a faithful operationalization of 'hidden bug' and an adequate proxy for specification correctness.
- domain assumption The self-authored hidden assertions in Data-Science Code and CodeWorkflow are specification-grounded and inferable from the public view.
- domain assumption Evaluated models have not memorized the official BigCodeBench-Hard tests used as hidden oracles.
- domain assumption The M1 information boundary is correctly enforced for all generator and verifier runs.
read the original abstract
Visible tests are a common gate for LLM-generated code, but passing them does not certify specification correctness. We study a deployment-like monitoring problem: after code has passed public tests, can a weaker LLM verifier identify the residual hidden bugs? We introduce Code Monitor Red Teaming, a monitor-red-teaming protocol that fixes a public-check information boundary while varying generator pressure, verifier scaffolding, and weak-to-strong capability. We instantiate it as CodeMonitorBench, spanning function-level, data-science, and workflow code. Across 71,000 generated candidates, 43,677 pass public tests and 23,081 of those fail hidden tests. Weak verifiers improve with scaffolding and model family, but still miss most hidden bugs at 5% false-positive rate. As a robustness stress test, adversarial public-test-overfit pressure lowers verifier AUROC and raises low-FPR miss rates in most cells. A GLM-5.1 verifier recovers part of the gap under the same evidence boundary; an inferability audit shows that remaining misses mix verifier failures with M1 evidence limits.
Figures
Reference graph
Works this paper leans on
-
[1]
arXiv preprint arXiv:2508.19461 , year=
Reliable Weak-to-Strong Monitoring of LLM Agents , author=. arXiv preprint arXiv:2508.19461 , year=
-
[2]
arXiv preprint arXiv:2605.09684 , year=
MonitoringBench: Semi-Automated Red-Teaming for Agent Monitoring , author=. arXiv preprint arXiv:2605.09684 , year=
-
[3]
arXiv preprint arXiv:2507.22063 , year=
Redcoder: Automated multi-turn red teaming for code llms , author=. arXiv preprint arXiv:2507.22063 , year=
-
[4]
arXiv preprint arXiv:2505.23575 , year=
Cot red-handed: Stress testing chain-of-thought monitoring , author=. arXiv preprint arXiv:2505.23575 , year=
-
[5]
arXiv preprint arXiv:2411.18676 , year=
Embodied red teaming for auditing robotic foundation models , author=. arXiv preprint arXiv:2411.18676 , year=
-
[6]
arXiv preprint arXiv:2312.06942 , year=
AI control: Improving safety despite intentional subversion , author=. arXiv preprint arXiv:2312.06942 , year=
-
[7]
arXiv preprint arXiv:2409.07985 , year=
Games for ai control: Models of safety evaluations of ai deployment protocols , author=. arXiv preprint arXiv:2409.07985 , year=
-
[8]
arXiv preprint arXiv:2407.00215 , year=
Llm critics help catch llm bugs , author=. arXiv preprint arXiv:2407.00215 , year=
-
[9]
International Conference on Learning Representations , volume=
Bigcodebench: Benchmarking code generation with diverse function calls and complex instructions , author=. International Conference on Learning Representations , volume=
-
[10]
arXiv preprint arXiv:2107.03374 , year=
Evaluating large language models trained on code , author=. arXiv preprint arXiv:2107.03374 , year=
-
[11]
arXiv preprint arXiv:2108.07732 , year=
Program synthesis with large language models , author=. arXiv preprint arXiv:2108.07732 , year=
-
[12]
International Conference on Machine Learning , pages=
DS-1000: A natural and reliable benchmark for data science code generation , author=. International Conference on Machine Learning , pages=. 2023 , organization=
2023
-
[13]
International Conference on Learning Representations , volume=
Livecodebench: Holistic and contamination free evaluation of large language models for code , author=. International Conference on Learning Representations , volume=
-
[14]
arXiv preprint arXiv:2207.10397 , year=
Codet: Code generation with generated tests , author=. arXiv preprint arXiv:2207.10397 , year=
-
[15]
International Conference on Machine Learning , pages=
Lever: Learning to verify language-to-code generation with execution , author=. International Conference on Machine Learning , pages=. 2023 , organization=
2023
-
[16]
arXiv preprint arXiv:2312.09390 , year=
Weak-to-strong generalization: Eliciting strong capabilities with weak supervision , author=. arXiv preprint arXiv:2312.09390 , year=
-
[17]
Advances in Neural Information Processing Systems , volume=
On scalable oversight with weak llms judging strong llms , author=. Advances in Neural Information Processing Systems , volume=
-
[18]
International Conference on Learning Representations , volume=
Swe-bench: Can language models resolve real-world github issues? , author=. International Conference on Learning Representations , volume=
-
[19]
Advances in Neural Information Processing Systems , volume=
Swe-agent: Agent-computer interfaces enable automated software engineering , author=. Advances in Neural Information Processing Systems , volume=
-
[20]
International Conference on Learning Representations , volume=
Openhands: An open platform for ai software developers as generalist agents , author=. International Conference on Learning Representations , volume=
-
[21]
arXiv preprint arXiv:2407.01489 , year=
Agentless: Demystifying llm-based software engineering agents , author=. arXiv preprint arXiv:2407.01489 , year=
-
[22]
Findings of the Association for Computational Linguistics: ACL 2024 , pages=
Naturalcodebench: Examining coding performance mismatch on humaneval and natural user queries , author=. Findings of the Association for Computational Linguistics: ACL 2024 , pages=
2024
-
[23]
Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) , pages=
Codescope: An execution-based multilingual multitask multidimensional benchmark for evaluating llms on code understanding and generation , author=. Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) , pages=
-
[24]
arXiv preprint arXiv:2401.03065 , year=
Cruxeval: A benchmark for code reasoning, understanding and execution , author=. arXiv preprint arXiv:2401.03065 , year=
-
[25]
arXiv preprint arXiv:2404.03543 , year=
Codeeditorbench: Evaluating code editing capability of large language models , author=. arXiv preprint arXiv:2404.03543 , year=
-
[26]
Advances in neural information processing systems , volume=
Is your code generated by chatgpt really correct? rigorous evaluation of large language models for code generation , author=. Advances in neural information processing systems , volume=
-
[27]
Advances in Neural Information Processing Systems , volume=
Swt-bench: Testing and validating real-world bug-fixes with code agents , author=. Advances in Neural Information Processing Systems , volume=
-
[28]
Findings of the Association for Computational Linguistics: ACL 2024 , pages=
Criticbench: Benchmarking llms for critique-correct reasoning , author=. Findings of the Association for Computational Linguistics: ACL 2024 , pages=
2024
-
[29]
arXiv preprint arXiv:2502.16614 , year=
Codecriticbench: A holistic code critique benchmark for large language models , author=. arXiv preprint arXiv:2502.16614 , year=
-
[30]
arXiv preprint arXiv:2505.23135 , year=
Verina: Benchmarking verifiable code generation , author=. arXiv preprint arXiv:2505.23135 , year=
-
[31]
arXiv preprint arXiv:2407.13692 , year=
Prover-verifier games improve legibility of llm outputs , author=. arXiv preprint arXiv:2407.13692 , year=
discussion (0)
Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.