potentialpaper

Think or Call? Counterfactual Necessity Optimization for Software Agents

Import ICLR 2027 submission HxpxWHG5Xe: 9 notes

@openreview[bot] · 2026-11-22 21:04 UTC · d633b62d19e7

Evidence

.gitattributes added

+++ b/.gitattributes
@@ -0,0 +1,10 @@
+# PDFs and pictures are kept with Git LFS (https://git-lfs.com). With it installed (`git lfs install`),
+# a clone has the files, and `git add` of one stores a pointer. This file is the same on every page.
+/.potentialpaper/*.pdf filter=lfs diff=lfs merge=lfs -text
+/versions/*.pdf filter=lfs diff=lfs merge=lfs -text
+/thumbnail.png filter=lfs diff=lfs merge=lfs -text
+/thumbnail.jpg filter=lfs diff=lfs merge=lfs -text
+/thumbnail.jpeg filter=lfs diff=lfs merge=lfs -text
+/thumbnail.gif filter=lfs diff=lfs merge=lfs -text
+/thumbnail.webp filter=lfs diff=lfs merge=lfs -text
+/thumbnail.avif filter=lfs diff=lfs merge=lfs -text

.potentialpaper/metadata.json added

+++ b/.potentialpaper/metadata.json
@@ -0,0 +1,19 @@
+{
+ "layout": 5,
+ "identifiers": [
+ {
+ "scheme": "openreview",
+ "value": "HxpxWHG5Xe"
+ }
+ ],
+ "title": "Think or Call? Counterfactual Necessity Optimization for Software Agents",
+ "authors": [],
+ "abstract": "Software agents must repeatedly decide whether to invoke a tool or continue reasoning with the evidence already available. Terminal task rewards provide limited credit for individual invocations: successful trajectories may contain redundant calls, while failed trajectories may contain essential ones. We introduce Counterfactual Necessity Optimization (\\method{}), a method that learns tool routing by comparing the downstream value of these two choices. At selected decision states, \\method{} restores the same agent and repository state into two isolated branches, executes a proposed tool call in one and a reasoning step in the other, and completes both under a shared frozen policy. Their return difference, accounting for task completion, protocol compliance, and optional-call cost, supplies a soft necessity target. A necessity head learns these targets jointly with the policy and guides routing at deployment without counterfactual rollouts. An obligation mask enforces required interactions during training and inference. We establish conditions for unbiased paired estimation and show that uniform error $\\epsilon$ in the optimal tool-versus-reason value gap yields routing regret of at most $H\\epsilon$ over horizon $H$. On SWE-bench Verified, \\method{} improves resolution from 38.8\\% to 45.8\\% over outcome-only reinforcement learning while reducing optional calls per resolved issue by 39.1\\%. Further evaluation on SWE-Bench Pro shows consistent resolution gains. Routing diagnostics show fewer unnecessary invocations and skipped necessary calls, with protocol validity close to mask-only training. These results support invocation-level counterfactual credit for improving task completion and tool efficiency under explicit interaction constraints.",
+ "year": 2027,
+ "venue": "ICLR 2027 (under review)",
+ "source": "openreview",
+ "license": {
+ "metadata": "CC0-1.0",
+ "abstract": "CC0-1.0"
+ }
+}

community/10-tl-dr.md added

+++ b/community/10-tl-dr.md

community/20-summary.md added

+++ b/community/20-summary.md

community/30-why-it-matters.md added

+++ b/community/30-why-it-matters.md

community/40-critique.md added

+++ b/community/40-critique.md

community/50-errata.md added

+++ b/community/50-errata.md

community/60-reproductions.md added

+++ b/community/60-reproductions.md

community/70-follow-ups.md added

+++ b/community/70-follow-ups.md

owners/10-tl-dr.md added

+++ b/owners/10-tl-dr.md

owners/20-overview.md added

+++ b/owners/20-overview.md

owners/30-results.md added

+++ b/owners/30-results.md

owners/40-demos.md added

+++ b/owners/40-demos.md

owners/50-code-and-data.md added

+++ b/owners/50-code-and-data.md

owners/60-talks.md added

+++ b/owners/60-talks.md

prek.toml added

+++ b/prek.toml
@@ -0,0 +1,36 @@
+# Checks run before each commit, with prek (https://prek.j178.dev): `prek install` once in this clone.
+# The site checks every push again; these catch mistakes before you commit. The same on every page.
+
+[[repos]]
+repo = "builtin"
+hooks = [
+ { id = "check-json" },
+ { id = "pretty-format-json", args = ["--autofix", "--no-sort-keys", "--no-ensure-ascii"], exclude = '^demos/' },
+ { id = "end-of-file-fixer", exclude = '^demos/' },
+ { id = "trailing-whitespace", args = ["--markdown-linebreak-ext=md"], exclude = '^demos/' },
+ { id = "check-case-conflict" },
+ { id = "check-illegal-windows-names" },
+ { id = "check-added-large-files", args = ["--maxkb=256"], exclude = '^demos/' },
+]
+
+# Each JSON file against its schema (https://potentialpaper.com/schemas/).
+[[repos]]
+repo = "https://github.com/python-jsonschema/check-jsonschema"
+rev = "0.39.0"
+hooks = [
+ { id = "check-jsonschema", name = "author section plugins files", files = '^owners/plugins\.json$', args = ["--schemafile", "https://potentialpaper.com/schemas/authorPlugins.json"] },
+ { id = "check-jsonschema", name = "venue files", files = '^venue\.json$', args = ["--schemafile", "https://potentialpaper.com/schemas/venue.json"] },
+ { id = "check-jsonschema", name = "topic files", files = '^topic\.json$', args = ["--schemafile", "https://potentialpaper.com/schemas/topic.json"] },
+ { id = "check-jsonschema", name = "organisation files", files = '^org\.json$', args = ["--schemafile", "https://potentialpaper.com/schemas/org.json"] },
+ { id = "check-jsonschema", name = "link files", files = '^links/[^/]+\.json$', args = ["--schemafile", "https://potentialpaper.com/schemas/link.json"] },
+ { id = "check-jsonschema", name = "version files", files = '^versions/[^/]+\.json$', args = ["--schemafile", "https://potentialpaper.com/schemas/version.json"] },
+ { id = "check-jsonschema", name = "picture files", files = '^thumbnail\.json$', args = ["--schemafile", "https://potentialpaper.com/schemas/thumbnail.json"] },
+]
+
+# Sections formatted the way the web editor formats them.
+[[repos]]
+repo = "https://github.com/rbubley/mirrors-prettier"
+rev = "v3.9.9"
+hooks = [
+ { id = "prettier", files = '^(owners|community)/.*\.md$' },
+]

reviews/openreview/hxpxwhg5xe/forms.json added

+++ b/reviews/openreview/hxpxwhg5xe/forms.json
@@ -0,0 +1,183 @@
+{
+ "schema": "forms/1",
+ "forms": {
+ "Meta_Review": {
+ "label": "Meta-review",
+ "fields": [
+ {
+ "key": "metareview",
+ "label": "Meta-review",
+ "type": "text"
+ },
+ {
+ "key": "summary",
+ "label": "Summary",
+ "type": "text"
+ },
+ {
+ "key": "additional_comments_on_reviewer_discussion",
+ "label": "Reviewer discussion",
+ "type": "text"
+ },
+ {
+ "key": "recommendation",
+ "label": "Recommendation",
+ "type": "choice"
+ }
+ ]
+ },
+ "Decision": {
+ "label": "Decision",
+ "fields": [
+ {
+ "key": "title",
+ "label": "Title",
+ "hidden": true
+ },
+ {
+ "key": "decision",
+ "label": "Decision",
+ "type": "choice"
+ },
+ {
+ "key": "comment",
+ "label": "Comment",
+ "type": "text"
+ }
+ ]
+ },
+ "Official_Comment": {
+ "label": "Comment",
+ "fields": [
+ {
+ "key": "title",
+ "label": "Title",
+ "type": "choice"
+ },
+ {
+ "key": "comment",
+ "label": "Comment",
+ "type": "text"
+ }
+ ]
+ },
+ "Public_Comment": {
+ "label": "Public comment",
+ "fields": [
+ {
+ "key": "title",
+ "label": "Title",
+ "type": "choice"
+ },
+ {
+ "key": "comment",
+ "label": "Comment",
+ "type": "text"
+ }
+ ]
+ },
+ "Withdrawal": {
+ "label": "Withdrawal",
+ "fields": [
+ {
+ "key": "withdrawal_confirmation",
+ "label": "Confirmation",
+ "hidden": true
+ }
+ ]
+ },
+ "Desk_Rejection": {
+ "label": "Desk rejection",
+ "fields": [
+ {
+ "key": "desk_reject_comments",
+ "label": "Reason",
+ "type": "text"
+ }
+ ]
+ },
+ "Official_Review": {
+ "label": "Official review",
+ "summary": [
+ "rating",
+ "confidence",
+ "soundness",
+ "presentation",
+ "informativeness"
+ ],
+ "fields": [
+ {
+ "key": "rating",
+ "label": "Rating",
+ "type": "score",
+ "min": 1,
+ "max": 4
+ },
+ {
+ "key": "confidence",
+ "label": "Confidence",
+ "type": "score",
+ "min": 1,
+ "max": 4
+ },
+ {
+ "key": "soundness",
+ "label": "Soundness",
+ "type": "score",
+ "min": 1,
+ "max": 3
+ },
+ {
+ "key": "presentation",
+ "label": "Presentation",
+ "type": "score",
+ "min": 1,
+ "max": 3
+ },
+ {
+ "key": "informativeness",
+ "label": "Informativeness",
+ "type": "score",
+ "min": 1,
+ "max": 3
+ },
+ {
+ "key": "paper_summary",
+ "label": "Summary",
+ "type": "text"
+ },
+ {
+ "key": "critical_strengths",
+ "label": "Strengths",
+ "type": "text"
+ },
+ {
+ "key": "critical_weaknesses",
+ "label": "Weaknesses",
+ "type": "text"
+ },
+ {
+ "key": "questions_for_authors",
+ "label": "Questions for the authors",
+ "type": "text"
+ },
+ {
+ "key": "flag_for_ethics_review",
+ "label": "Flag for ethics review",
+ "type": "choice",
+ "omitWhen": [
+ "No",
+ "No ethics review needed."
+ ]
+ },
+ {
+ "key": "details_of_ethics_concerns",
+ "label": "Ethics concerns",
+ "type": "text"
+ }
+ ]
+ }
+ },
+ "url": "https://openreview.net/group?id=ICLR.cc%2F2027%2FConference",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/hxpxwhg5xe/notes/1lzaaknvav.json added

+++ b/reviews/openreview/hxpxwhg5xe/notes/1lzaaknvav.json
@@ -0,0 +1,16 @@
+{
+ "schema": "review/1",
+ "id": "1LZAaKnvaV",
+ "replyTo": "LN7cvtWhEg",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "title": "Official Comment by Authors (3/3)",
+ "comment": "3. `pandas-dev__pandas-47927`, reason first when verification is blocked\n\n| Stage | Call-first branch | Reason-first branch |\n| -- | -- | -- |\n| Shared state | The patch is in place. A foreground rebuild has timed out after 300 seconds, and a background rebuild request has returned HTTP 503. | Same state. |\n| First decision | Observed: Retry the rebuild with `nohup` in the same runtime. | Counterfactual: Recognize that changing how the process is launched does not address the runtime’s 503. Preserve the patch and assess whether the runtime can be recovered. |\n| Terminal outcome | The retry returns 503 again. The trajectory ends without testing the rebuilt extension. | With no healthy runtime available, stop retrying and record verification as blocked. The patch remains unverified, and the second failed request is avoided. |\n| CNO preference | A retry is useful if the service has recovered. | Prefer reasoning. An infrastructure failure can limit both branches even when the routing decision improves. |\n\n> The paper reports calibration improvements, but does not show reliability diagrams or predicted-versus-reference gap plots. These would help readers see where the estimates are accurate and where they remain unreliable.\n\nAt test time, the point of comparison is the shared state just before CNO and the base policy disagree on whether to call a tool. Once they take different actions, the repository state and context can diverge, and stochastic continuations can amplify those differences. To isolate the effect of a single routing decision, we can restore that state, execute the proposed call in one branch and a reasoning step in the other, and complete both under the same frozen policy.\n\nOur paper evaluates the practical effect of learned routing at the policy level. On SWE-bench Verified, CNO increases resolution from 38.8% to 45.8% and reduces optional calls per resolved issue by 39.1%. On the routing diagnostics, unnecessary calls fall from 31.81% to 7.02%, and skipped necessary calls fall from 10.17% to 6.78%. Replacing paired supervision with unpaired value targets lowers resolution to 41.4%.\n\nFor calibration, the held-out branch states provide a reference gap under a fixed continuation policy. Relative to the unpaired head, CNO reduces ECE from 0.0949 to 0.0462 and gap MAE from 0.2446 to 0.1383.\n\n> All experiments use Qwen3.5-35B-A3B on repository-repair tasks ... & Sensitivity to K, call cost, and the deployment ...\n\nCNO’s training objective is independent of the backbone architecture. It estimates the value of the tool call that the current model proposes, relative to continuing to reason from the same state. Changing the backbone changes both the proposed calls and their downstream value, so the training targets are estimated anew for each model. Thus, we expect the method to generalize to other backbones for SWE agents. The size of the gain remains an empirical question.\n\nCross-backbone comparisons and training-time sweeps are computationally expensive because they require repeated RL runs and paired rollouts on models with sufficient repository-repair capability. We would like to leave this broader evaluation to future work. The sensitivity analysis should distinguish three effects: $K$ controls the trade-off between estimation precision and rollout cost, the call penalty changes how training weighs optional calls against repair success, and the deployment routing adjustment shifts the operating point of an already trained model. The last can be swept on a fixed checkpoint without retraining."
+ },
+ "createdAt": "2026-11-13T08:27:43.333Z",
+ "modifiedAt": "2026-11-13T08:27:43.333Z",
+ "url": "https://openreview.net/forum?id=HxpxWHG5Xe&noteId=1LZAaKnvaV",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/hxpxwhg5xe/notes/4ys4puf9nb.json added

+++ b/reviews/openreview/hxpxwhg5xe/notes/4ys4puf9nb.json
@@ -0,0 +1,15 @@
+{
+ "schema": "review/1",
+ "id": "4Ys4puf9nB",
+ "replyTo": "LN7cvtWhEg",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "comment": "We are pleased that your concerns have been addressed, and we will make the necessary revisions to the manuscript.\n\nThank you for your comments!"
+ },
+ "createdAt": "2026-11-16T01:53:11.804Z",
+ "modifiedAt": "2026-11-16T01:53:11.804Z",
+ "url": "https://openreview.net/forum?id=HxpxWHG5Xe&noteId=4Ys4puf9nB",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/hxpxwhg5xe/notes/azbr1nytsj.json added

+++ b/reviews/openreview/hxpxwhg5xe/notes/azbr1nytsj.json
@@ -0,0 +1,16 @@
+{
+ "schema": "review/1",
+ "id": "azBr1NytSj",
+ "replyTo": "LN7cvtWhEg",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "title": "Official Comment by Authors (1/3)",
+ "comment": "We thank the reviewer for the valuable feedback.\n\n> Each target requires counterfactual suffix rollouts for both choices ...\n\nCNO’s intended benefit is more informative credit assignment per unit of rollout. At a selected state, both branches share the same context and budget. Their return difference directly supervises whether the proposed tool call improves the continuation relative to reasoning.\n\nTo test whether this mechanism provides benefits beyond additional sampling, we further conduct comparison that match total generated rollout tokens (original budget together paired suffix rollouts).\n\n| Method | Total rollout tokens | Total environment interactions | Verified resolved |\n| -- | --: | --: | --: |\n| Outcome RL, original budget | 1.00× | 1.00× | 38.8% |\n| Outcome RL, increased budget | 3.00× | 3.24× | 42.6% |\n| TRM, increased budget | 3.00× | 3.22× | 43.6% |\n| CNO with unpaired value targets | 3.00× | 3.21× | 43.0% |\n| Full CNO | 3.00× | 3.20× | 45.8% |\n\nFrom the results, additional rollouts improve Outcome RL by 3.8%, while CNO retains a 3.2% advantage at the same total rollout-token budget. CNO also exceed TRM by 2.2% and the unpaired-target ablation by 2.8%, without using more environment interactions. This pattern supports the interpretation that CNO benefits from how it allocates rollouts and constructs state-specific supervision, beyond the benefit of additional sampling alone.\n\n> Theorem 1 assumes a uniform error bound against the optimal value gap. The training target instead uses a frozen suffix policy. The theorem therefore does not directly explain the behavior of the learned estimator, and the paper does not measure this gap.\n\nThe distinction between the optimal gap and the frozen-policy gap can be addressed by adding a policy-improvement result directly matched to CNO’s training target. The optimal gap is relevant to comparison against an optimal router, whereas the frozen-policy gap is the quantity for improving the current router.\n\nConsider the same binary routing abstraction as Theorem 1, with a fixed tool proposal, fixed within-route generation kernels, and a shared reward function and obligation mask. Let $\\pi_0$ be the frozen reference policy and $\\pi_1$ an updated router. Write $p_t^i(s)$ for their tool-selection probabilities and\n\n$$\\Delta_t^{\\pi_0}(s)=Q_t^{\\pi_0}(s,u)-Q_t^{\\pi_0}(s,\\mathrm{reason}).$$\n\nLet $J(\\pi)$ denote expected return from the common initial-state distribution. The finite-horizon performance-difference identity gives\n\n$$J(\\pi_1)-J(\\pi_0)=\\sum_{t=0}^{H-1}\\mathbb E_{s\\sim d_t^{\\pi_1}}\\left[\\bigl(p_t^1(s)-p_t^0(s)\\bigr)\\Delta_t^{\\pi_0}(s)\\right].$$\n\nNote that the expected reference-policy advantage under the updated router is exactly\n\n$$\\mathbb E_{a\\sim\\pi_1}[A_t^{\\pi_0}(s,a)]=(p_t^1-p_t^0)\\Delta_t^{\\pi_0}.$$\n\nSumming these advantages along the updated policy’s trajectories proves the identity. Thus, CNO’s counterfactual target directly characterizes the return consequences of changing the routing probabilities. As such, a useful consequence is a robust guarantee for an explicitly specified signed-logit routing update. Let $f_t(s)$ be the learned gap estimate and consider\n$$p_t^1(s)=\\sigma\\!\\left(\\operatorname{logit}p_t^0(s)+\\alpha f_t(s)\\right),\\alpha\\geq0.$$\nIn the runtime forced routes remain unchanged. If $f_t=\\Delta_t^{\\pi_0}$, every term in the performance-difference identity is nonnegative, giving $J(\\pi_1)\\geq J(\\pi_0)$, without requiring $\\pi_0$ to be near-optimal.\n\nMore generally, define\n$$e_t(s)=f_t(s)-\\Delta_t^{\\pi_0}(s).$$\nThen\n$$J(\\pi_1)-J(\\pi_0)\\geq-\\frac{\\alpha}{16}\\sum_{t=0}^{H-1}\\mathbb E_{s\\sim d_t^{\\pi_1}}[e_t(s)^2].$$\nTo see this, a negative contribution is possible only when $f_t$ and $\\Delta_t^{\\pi_0}$ have opposite signs. Since the sigmoid is $1/4$-Lipschitz,\n$$|p_t^1-p_t^0|\\leq \\frac{\\alpha}{4}|f_t|.$$\nOn such a sign disagreement,\n$$|f_t|\\,|\\Delta_t^{\\pi_0}|\\leq\\frac{(|f_t|+|\\Delta_t^{\\pi_0}|)^2}{4}=\\frac{e_t^2}{4}.$$\nCombining these inequalities proves the bound. This result accommodates stochastic routing and measures error against the frozen-policy gap actually targeted by counterfactual supervision, without any optimal-policy oracle or a uniform error bound over all reachable states.\n\nThe connection to the original optimality statement can also be made explicit. For the sign-greedy router $\\pi_f$, define\n\n$$\n\\\\varepsilon_t = \\\\left\\\\lVert f_t - \\\\Delta_t^{\\\\pi_0} \\\\right\\\\rVert_{\\\\infty}, \\\\beta_t = \\\\left\\\\lVert \\\\Delta_t^{\\\\pi_0} - \\\\Delta_t^* \\\\right\\\\rVert_{\\\\infty}.\n$$\n\nTheorem 1 then yields\n\n$$\nJ(\\\\pi^*) - J(\\\\pi_f) \\\\leq \\\\sum_{t=0}^{H-1} (\\\\varepsilon_t + \\\\beta_t).\n$$\n\nThe second term has a precise interpretation. Writing $\\\\rho_t(s,a)=Q_t^*(s,a)-Q_t^{\\\\pi_0}(s,a)$,\n\n$$\\Delta_t^*(s)-\\Delta_t^{\\pi_0}(s)=\\rho_t(s,u)-\\rho_t(s,\\mathrm{reason}).$$\n\nTherefore, the discrepancy depends on the difference in continuation suboptimality between the two branches."
+ },
+ "createdAt": "2026-11-13T08:24:51.113Z",
+ "modifiedAt": "2026-11-13T08:25:10.998Z",
+ "url": "https://openreview.net/forum?id=HxpxWHG5Xe&noteId=azBr1NytSj",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/hxpxwhg5xe/notes/f2zisskeo6.json added

+++ b/reviews/openreview/hxpxwhg5xe/notes/f2zisskeo6.json
@@ -0,0 +1,24 @@
+{
+ "schema": "review/1",
+ "id": "f2ZIssKeo6",
+ "replyTo": null,
+ "kind": "review",
+ "invitation": "Official_Review",
+ "signature": "Reviewer zdBo",
+ "content": {
+ "paper_summary": "The paper introduces Counterfactual Necessity Optimization (CNO), a method that learns tool routing by comparing the downstream value of these two choices. The main contribution is a paired estimator of tool necessity at repeated states of a software-agent trajectory, together with a training objective that combines necessity distillation, policy optimization, and obligation masking. A finite-horizon analysis connects value-gap accuracy to routing regret. The evaluation measures resolution, both directions of routing error, protocol validity, and calibration, with ablations that isolate the method’s components.",
+ "presentation": 1,
+ "informativeness": 1,
+ "soundness": 2,
+ "critical_strengths": "1. The paper targets a fundamental challenge in training tool-using agents that the terminal outcome rewards provide insufficient credit assignment for individual tool invocations. Successful trajectories may contain redundant calls, while failed trajectories may include genuinely useful interactions.\n\n2. The paper evaluates CNO on both SWE-bench Verified and SWE-Bench Pro, demonstrating improvements over several relevant baselines.\n\n3. Many tool-efficiency approaches emphasize reducing the number of invocations, which can obscure whether the agent is becoming overly conservative. This paper explicitly measures both directions of error.",
+ "critical_weaknesses": "1. CNO requires two complete suffix rollouts for every sampled decision state, with up to four sampled states per trajectory and (K) samples per branch. This can introduce substantial additional environment interaction and model inference. The experimental setup states that methods share the same training-instance budget, rather than demonstrating that they receive equal total training FLOPs, model-generated tokens, or environment interactions.\n\n2. The paper includes an unpaired value-head baseline and ablations removing exact state restoration, matched suffix sampling, and full completion. These are useful, but they do not adequately isolate the benefit of the specific CNO learning objective.\n\n3. The paper writing is tough to parse and the paper can benefit from a structural revision to make it more readable.",
+ "questions_for_authors": "1. CNO requires two complete suffix rollouts for every sampled decision state, with up to four sampled states per trajectory and (K) samples per branch. This can introduce substantial additional environment interaction and model inference. The experimental setup states that methods share the same training-instance budget, rather than demonstrating that they receive equal total training FLOPs, model-generated tokens, or environment interactions.\n\n2. The paper includes an unpaired value-head baseline and ablations removing exact state restoration, matched suffix sampling, and full completion. These are useful, but they do not adequately isolate the benefit of the specific CNO learning objective.\n\n3. The paper writing is tough to parse and the paper can benefit from a structural revision to make it more readable.",
+ "flag_for_ethics_review": "No",
+ "rating": 3,
+ "confidence": 2
+ },
+ "createdAt": "2026-10-24T06:24:47.206Z",
+ "modifiedAt": "2026-11-06T12:39:40.025Z",
+ "url": "https://openreview.net/forum?id=HxpxWHG5Xe&noteId=f2ZIssKeo6",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/hxpxwhg5xe/notes/iepnsxnrqj.json added

+++ b/reviews/openreview/hxpxwhg5xe/notes/iepnsxnrqj.json
@@ -0,0 +1,16 @@
+{
+ "schema": "review/1",
+ "id": "iEpnsxNRqJ",
+ "replyTo": "LN7cvtWhEg",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "title": "Official Comment by Authors (2/3)",
+ "comment": "> There is no paired trajectory showing how the call and reasoning branches lead to different repair outcomes. The aggregate plots do not explain which decisions improve, which calls remain unnecessary, or why routing sometimes fails.\n\nThe trajectory-level question is whether a proposed call supplies evidence that changes the repair, repeats evidence already available, or is incorrectly skipped because existing checks appear sufficient. We propose a case-study that exposes the common decision state, the first decision, the resulting patch, and the final preference.\n\n1. `Project-MONAI__MONAI-907`, reason first to avoid an expensive test.\n\n| Stage | Call-first branch | Reason-first branch |\n| -- | -- | -- |\n| Shared state | The agent has patched sliding-window inference and is about to test a `450 × 344 × 450` input with `roi_size=(96, 96, 1)`. | Same state. |\n| First decision | Observed: Run the original reproducer immediately. | Counterfactual: Notice that the regression hinges on the size-one ROI axis. Keep `roi_size=(96, 96, 1)` and reduce the input to `150 × 100 × 150`. |\n| Verification | The first run times out after 300 seconds. The agent then reduces the input and reruns the script, which returns the expected output shape. | Run the smaller reproducer first. In the continuation, it returns the same expected shape and the agent submits the same patch. |\n| CNO preference | The original run adds an optional execution before the useful check. | Prefer reasoning. The difference is the avoidable timeout. |\n\n2. `conan-io__conan-13721`, call first to resolve uncertainty\n\n| Stage | Call-first branch | Reason-first branch |\n| -- | -- | -- |\n| Shared state | The agent has added `profile_name` to Jinja profile rendering and written a test that uses it as a Conan setting. | Same state. |\n| First decision | Observed: Run `test_profile_jinja.py`. | Counterfactual: Continue reasoning about whether the renderer exposes `profile_name` correctly. |\n| Repair and verification | Pytest reports 1 failure and 6 passes. The error identifies an invalid setting. The agent moves the check to `conf`, then reruns the file and gets 7 passes. | A failure path is to attribute the problem to the renderer and spend the remaining repair budget editing it. The original test still uses an invalid setting, so the regression check remains failing. |\n| CNO preference | Prefer calling. | Reasoning can still find the mismatch from code. The failure mode is continuing to speculate when a short test can distinguish a test configuration error from an implementation error. |"
+ },
+ "createdAt": "2026-11-13T08:26:50.400Z",
+ "modifiedAt": "2026-11-13T08:26:50.400Z",
+ "url": "https://openreview.net/forum?id=HxpxWHG5Xe&noteId=iEpnsxNRqJ",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/hxpxwhg5xe/notes/ln7cvtwheg.json added

+++ b/reviews/openreview/hxpxwhg5xe/notes/ln7cvtwheg.json
@@ -0,0 +1,24 @@
+{
+ "schema": "review/1",
+ "id": "LN7cvtWhEg",
+ "replyTo": null,
+ "kind": "review",
+ "invitation": "Official_Review",
+ "signature": "Reviewer GzwN",
+ "content": {
+ "paper_summary": "The paper proposes Counterfactual Necessity Optimization (CNO) to train software agents to choose between calling a tool and continuing reasoning. At selected states, it creates two branches from the same saved agent and repository state. One branch executes a proposed tool call, and the other takes a reasoning step. A frozen policy completes both branches, and their return difference provides a training target for the necessity head and routing policy. An obligation mask enforces required tool interactions. Experiments on SWE-bench Verified and SWE-Bench Pro report higher resolution rates and fewer optional calls per resolved issue.",
+ "presentation": 2,
+ "informativeness": 2,
+ "soundness": 2,
+ "critical_strengths": "1. Comparing the two choices from the same state is a useful way to study whether a tool call is needed. Completing both branches also accounts for its effects on later edits and tests.\n2. The results show improvements in both success and tool use. On Verified, resolution increases from 38.8% with outcome-only RL to 45.8%. The method also improves resolution on Pro.",
+ "critical_weaknesses": "1. Each target requires counterfactual suffix rollouts for both choices. Matching training instances or primary interactions does not account for this cost, so the comparison needs a matched total rollout budget.\n2. Theorem 1 assumes a uniform error bound against the optimal value gap. The training target instead uses a frozen suffix policy. The theorem therefore does not directly explain the behavior of the learned estimator, and the paper does not measure this gap.\n3. There is no paired trajectory showing how the call and reasoning branches lead to different repair outcomes. The aggregate plots do not explain which decisions improve, which calls remain unnecessary, or why routing sometimes fails.\n4. The paper reports calibration improvements, but does not show reliability diagrams or predicted-versus-reference gap plots. These would help readers see where the estimates are accurate and where they remain unreliable.\n5. All experiments use Qwen3.5-35B-A3B on repository-repair tasks. The value of a call depends on the model and its proposed action, so the results give limited evidence about whether the gain holds with another backbone.\n6. Sensitivity to K, call cost, and the deployment routing adjustment is not reported.\n\nAfter rebuttal: The new comparison at the same rollout budget addresses my main concern. CNO still improves over the baselines on Verified after counting the extra rollouts, so I raise my rating to 3. The gains are still shown on one backbone, and their sensitivity to the routing settings remains unclear.",
+ "questions_for_authors": "see weaknesses",
+ "flag_for_ethics_review": "No",
+ "rating": 3,
+ "confidence": 3
+ },
+ "createdAt": "2026-10-22T20:42:35.828Z",
+ "modifiedAt": "2026-11-14T09:01:07.643Z",
+ "url": "https://openreview.net/forum?id=HxpxWHG5Xe&noteId=LN7cvtWhEg",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/hxpxwhg5xe/notes/mcpnquubzq.json added

+++ b/reviews/openreview/hxpxwhg5xe/notes/mcpnquubzq.json
@@ -0,0 +1,24 @@
+{
+ "schema": "review/1",
+ "id": "mcPnQuuBZQ",
+ "replyTo": null,
+ "kind": "review",
+ "invitation": "Official_Review",
+ "signature": "Reviewer JSrH",
+ "content": {
+ "paper_summary": "This paper studies when software agents should call a tool rather than continue reasoning. It proposes Counterfactual Necessity Optimization (CNO), which compares a concrete tool call with a reasoning step from the same saved state. Both branches then finish under a frozen continuation policy, and their return difference is used to train a necessity head and guide tool routing. An obligation mask enforces required interactions. On SWE-bench Verified, the paper reports 45.8% resolution compared with 38.8% for outcome-only RL, and 39.1% fewer optional calls per resolved issue.",
+ "presentation": 3,
+ "informativeness": 2,
+ "soundness": 2,
+ "critical_strengths": "(1) The problem is interesting and well motivated. Final task rewards do not directly show whether individual tool calls are useful, and the paired comparison provides a concrete way to study this.\n\n(2) The reported results show higher issue resolution and fewer optional calls per resolved issue on Verified. The mask-only baseline and component ablations are useful for understanding the method.",
+ "critical_weaknesses": "(1) Some experimental settings are missing. \n\n(2) It is not clear whether the training comparison is fair. CNO uses additional complete rollouts, but only the number of training instances is matched.\n\n(3) The SWE-Bench Pro setup also needs clarification: which version and subsets were evaluated? The reported 1,865 issues include non-public subsets in the original benchmark; how were these evaluated, and what are the per-subset results?\n\n(4) Could you provide a breakdown of call counts and costs by tool type (e.g., search, file reading, editing, testing)? If most of the reduction comes from cheap calls, the cost savings might be limited.",
+ "questions_for_authors": "Please refer to the weakness section.",
+ "flag_for_ethics_review": "No",
+ "rating": 3,
+ "confidence": 2
+ },
+ "createdAt": "2026-10-20T14:36:11.878Z",
+ "modifiedAt": "2026-11-06T12:39:42.917Z",
+ "url": "https://openreview.net/forum?id=HxpxWHG5Xe&noteId=mcPnQuuBZQ",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/hxpxwhg5xe/notes/rqbeyzhpkk.json added

+++ b/reviews/openreview/hxpxwhg5xe/notes/rqbeyzhpkk.json
@@ -0,0 +1,15 @@
+{
+ "schema": "review/1",
+ "id": "rQBeyzHpKK",
+ "replyTo": "mcPnQuuBZQ",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "comment": "We thank the reviewer for the valuable feedback.\n\n> It is not clear whether the training comparison is fair. CNO uses additional complete rollouts, but only the number of training instances is matched.\n\nCNO’s intended benefit is more informative credit assignment per unit of rollout. At a selected state, both branches share the same context and budget. Their return difference directly supervises whether the proposed tool call improves the continuation relative to reasoning.\n\nTo test whether this mechanism provides benefits beyond additional sampling, we further conduct comparison that match total generated rollout tokens (original budget 1x together with paired suffix rollouts 2x).\n\n| Method | Total rollout tokens | Total environment interactions | Verified resolved |\n| -- | --: | --: | --: |\n| Outcome RL, original budget | 1.00× | 1.00× | 38.8% |\n| Outcome RL, increased budget | 3.00× | 3.24× | 42.6% |\n| TRM, increased budget | 3.00× | 3.22× | 43.6% |\n| CNO with unpaired value targets | 3.00× | 3.21× | 43.0% |\n| Full CNO | 3.00× | 3.20× | 45.8% |\n\nFrom the results, additional rollouts improve Outcome RL by 3.8%, while CNO retains a 3.2% advantage at the same total rollout-token budget. CNO also exceed TRM by 2.2% and the unpaired-target ablation by 2.8%, without using more environment interactions. This pattern supports the interpretation that CNO benefits from how it allocates rollouts and constructs state-specific supervision, beyond the benefit of additional sampling alone.\n\n> The SWE-Bench Pro setup ...\n\nThe 1865 refers to the complete original benchmark, whereas our evaluation uses only the original public test set (731 samples), and we will correct the dataset description and label the corresponding results as SWE-Bench Pro Public V1. We will include our recipe for other settings in the revised manuscript.\n\n> Could you provide a breakdown of call counts and costs by tool type (e.g., search, file reading, editing, testing)? If most of the reduction comes from cheap calls, the cost savings might be limited.\n\nCNO aims to improve when an agent calls a tool by estimating how the call affects downstream task outcomes. This can reduce redundant calls and recover useful calls that the agent would otherwise skip. On SWE-bench Verified, resolution rises from 38.8% to 45.8%, while optional calls per resolved issue fall by 39.1%. Here an training example from SWE-Gym `dask__dask-10422` shows how CNO can identify and avoid expensive, low-value execution calls rather than merely eliminating cheap inspection calls.\n\nCase `dask__dask-10422`. The agent had written a script to reproduce a bug in Dask’s distributed `to_zarr` path. The script started `Client()` at module scope, so spawned workers would try to start new processes during their own initialization.\n\n| Stage | Call-first branch | Reason-first branch |\n| ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| First decision | Run `python3 reproduce_error.py` immediately. | Continue reasoning. Inspect the script already in context and recognize that `Client()` needs to run under an `if __name__ == \"__main__\":` guard. |\n| Execution | Workers repeatedly fail to start. The call times out after 300 seconds and adds 30,121 characters of tool output to the transcript without reaching the target bug. | Add the guard before executing the script. The guarded script reaches `to_zarr` and reproduces the target error: Dask rejects a disk-backed Zarr store as an in-memory store. |\n| CNO training signal | The initial call spends time and context on a startup failure that can be inferred from the script. | Prefer reasoning. Avoiding the failed optional execution gives CNO a training signal to favor reasoning at this state. |"
+ },
+ "createdAt": "2026-11-13T08:29:49.521Z",
+ "modifiedAt": "2026-11-13T08:29:49.521Z",
+ "url": "https://openreview.net/forum?id=HxpxWHG5Xe&noteId=rQBeyzHpKK",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/hxpxwhg5xe/notes/wqygcfmnhu.json added

+++ b/reviews/openreview/hxpxwhg5xe/notes/wqygcfmnhu.json
@@ -0,0 +1,15 @@
+{
+ "schema": "review/1",
+ "id": "WqygCFmNhU",
+ "replyTo": "f2ZIssKeo6",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "comment": "We thank the reviewer for the valuable feedback.\n\n> CNO requires two complete suffix rollouts for every sampled decision state ...\n\nWith $m\\leq 4$ sampled states per trajectory and $K$ samples per branch, CNO requires $2mK$ additional suffix completions. Their generation and environment execution incur real costs, irrespective of whether the complete trajectories are retained. The efficiency consideration is that counterfactual evaluation is conditioned on an already-reached state, since both branches inherit the same context and remaining budgets, and continue under a shared frozen policy. Thus, the quantity being estimated is a local tool vs reason value difference. However, we can derive that the number of CNO training samples required exhibits a decreasing trend as training progresses.\n\nWe first characterize when this local estimate stabilizes with relatively few samples. For a fixed state $s$ and frozen policy $\\pi$, let\n$$\nD_k(s)=G_k^{u}-G_k^{r},\n\\Delta^\\pi(s)=\\mathbb{E}[D_k(s)\\mid s].\n$$\nThe conditional variance of a paired difference is\n$$\nv_s=\\operatorname{Var}(D_k\\mid s)\n=\\sigma_u^2(s)+\\sigma_r^2(s)\n-2\\operatorname{Cov}(G_k^u,G_k^r\\mid s).\n$$\nHolding the initial state fixed removes variation arising from different starting states. When matched randomness induces positive return covariance, pairing further reduces $v_s$ relative to independently sampled branches with the same marginals.\n\nMore precisely, assume that the pairs are conditionally i.i.d. across $k$, have the correct branch marginals, and satisfy\n$\\lvert D_k(s)-\\Delta^\\pi(s)\\rvert\\leq B_s$.\nFor a nonzero value gap $\\gamma_s=\\lvert\\Delta^\\pi(s)\\rvert$, Bernstein’s inequality implies that the sample mean identifies its sign with probability at least $1-\\delta$ whenever\n$$\nK\\geq\n\\left(\n\\frac{2v_s}{\\gamma_s^2}\n+\\frac{2B_s}{3\\gamma_s}\n\\right)\\log\\frac{2}{\\delta}.\n$$\nThis follows because an incorrect sign requires an estimation error of at least $\\gamma_s$. Consequently, states with low paired-return variance and a clearly separated route preference require fewer samples to obtain reliable routing evidence.\n\n> The paper includes an unpaired value-head baseline and ablations removing exact state restoration, matched suffix sampling, and full completion. These are useful, but they do not adequately isolate the benefit of the specific CNO learning objective.\n\nCNO’s intended benefit is more informative credit assignment per unit of rollout. At a selected state, both branches share the same context and budget. Their return difference directly supervises whether the proposed tool call improves the continuation relative to reasoning.\n\nTo test whether this mechanism provides benefits beyond additional sampling, we further conduct comparison that match total generated rollout tokens (original budget 1x together with paired suffix rollouts 2x).\n\n| Method | Total rollout tokens | Total environment interactions | Verified resolved |\n| ------------------------------- | -------------------: | -----------------------------: | ----------------: |\n| Outcome RL, original budget | 1.00× | 1.00× | 38.8% |\n| Outcome RL, increased budget | 3.00× | 3.24× | 42.6% |\n| TRM, increased budget | 3.00× | 3.22× | 43.6% |\n| CNO with unpaired value targets | 3.00× | 3.21× | 43.0% |\n| Full CNO | 3.00× | 3.20× | 45.8% |\n\nFrom the results, additional rollouts improve Outcome RL by 3.8%, while CNO retains a 3.2% advantage at the same total rollout-token budget. CNO also exceed TRM by 2.2% and the unpaired-target ablation by 2.8%, without using more environment interactions. This pattern supports the interpretation that CNO benefits from how it allocates rollouts and constructs state-specific supervision, beyond the benefit of additional sampling alone.\n\n> The paper writing is tough to parse and the paper can benefit from a structural revision to make it more readable.\n\nWe will make the necessary revisions to the manuscript, and include the experiments (matched budget evaluation) and clarifications (efficient samples in CNO) in the final version."
+ },
+ "createdAt": "2026-11-13T08:11:53.414Z",
+ "modifiedAt": "2026-11-13T08:12:13.122Z",
+ "url": "https://openreview.net/forum?id=HxpxWHG5Xe&noteId=WqygCFmNhU",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/hxpxwhg5xe/submission.json added

+++ b/reviews/openreview/hxpxwhg5xe/submission.json
@@ -0,0 +1,17 @@
+{
+ "schema": "submission/1",
+ "id": "HxpxWHG5Xe",
+ "venue": {
+ "id": "ICLR.cc/2027/Conference",
+ "name": "ICLR 2027",
+ "url": "https://openreview.net/group?id=ICLR.cc%2F2027%2FConference"
+ },
+ "number": 57287,
+ "keywords": [
+ "Reasoning",
+ "Agent",
+ "Large Language Model"
+ ],
+ "url": "https://openreview.net/forum?id=HxpxWHG5Xe",
+ "license": "CC-BY-4.0"
+}

versions/v_re6a4bmu.json added

+++ b/versions/v_re6a4bmu.json
@@ -0,0 +1,21 @@
+{
+ "date": "2026-09-19",
+ "kind": "submitted",
+ "label": "ICLR 2027",
+ "submissions": [
+ {
+ "venue": "ICLR 2027",
+ "status": "under_review",
+ "number": 57287,
+ "url": "https://openreview.net/forum?id=HxpxWHG5Xe",
+ "reviews": "openreview/hxpxwhg5xe",
+ "evidence": [
+ "https://openreview.net/forum?id=HxpxWHG5Xe"
+ ]
+ }
+ ],
+ "url": "https://openreview.net/forum?id=HxpxWHG5Xe",
+ "evidence": [
+ "https://openreview.net/forum?id=HxpxWHG5Xe"
+ ]
+}