研究与学习 4.0 · 优秀 2026-10-21 · 论文

Did the Problem Actually Get Harder? Testing LLMs on Paired P and NP-Complete Problems Hardened...

P2NPCBench 给 12 个 NP 完全问题家族配上同一表面表述的多项式孪生问题,并用 AgentGAN 对抗硬化:生成器改写题面直到冻结的代码模型做错,可执行闸门保证改写不改变答案与复杂度类,得到 2114 条人工校验题12 个模型在 NPC 侧全部更差(pass@1 35.4% vs 63.8%),10 倍时限只把 NPC 准确率从 28.5% 提到 31.9%,说明失败源于写错或程序崩溃而非超时;硬化后复杂度类差距从 24.8 缩到 14.6 分,可见相当一部分推理差距其实是对教科书表述的熟悉度

打开原文回到归档

Did the Problem Actually Get Harder? Testing LLMs on Paired P and NP-Complete Problems Hardened by Adversarial Multi-Agent Rewriting

  • ID: 7c215e4e
  • 原文链接: https://arxiv.org/abs/2610.30103
  • PDF: https://arxiv.org/pdf/2610.30103v1
  • 作者: Nurul Labib Sayeedi, Md. Faiyaz Abdullah Sayeedi, Zabir Al Nazi, Mahbub E Sobhani, Shubhashis Roy Di...
  • 日期: 2026-10-21
  • 更新: 2026-10-21
  • 分类: learning
  • 来源类型: paper
  • 标签: benchmark, reasoning, adversarial, complexity-classes, code-generation
  • 质量评分: 4/5
  • 抓取时间: 2026-10-23T12:26:03Z

中文导读

P2NPCBench 给 12 个 NP 完全问题家族配上同一表面表述的多项式孪生问题,并用 AgentGAN 对抗硬化:生成器改写题面直到冻结的代码模型做错,可执行闸门保证改写不改变答案与复杂度类,得到 2114 条人工校验题12 个模型在 NPC 侧全部更差(pass@1 35.4% vs 63.8%),10 倍时限只把 NPC 准确率从 28.5% 提到 31.9%,说明失败源于写错或程序崩溃而非超时;硬化后复杂度类差距从 24.8 缩到 14.6 分,可见相当一部分推理差距其实是对教科书表述的熟悉度

为什么值得关注

P/NP 孪生题经对抗硬化后 12 个模型全部在 NPC 侧更差(35.4% vs 63.8%),加时无用,差距近半是对教材表述的熟悉度 对基准设计是直接警示:把对抗改写和 P/NP 孪生题放在一起,才能把推理差距里混着的教材措辞熟悉度剥出来——硬化后类间距从 24.8 缩到 14.6 分,加十倍时限几乎无解,说明失败来自写错或崩溃而不是超时。做代码与推理评测的人值得对照它的 AgentGAN 硬化加可执行校验门槛的组合。

关键信息

English Abstract

Many NP-complete (NPC) problems have a polynomial-time (P) twin that differs in a single structural detail, such as 3- versus 2-colouring a graph. A model that reasons rather than recalls should notice which side of this boundary a problem falls on, yet existing benchmarks either fix the wording of each task or ignore its complexity class, so they cannot separate the two. We introduce P2NPCBench, a benchmark of 12 problem families in which every NPC problem is paired with a P twin posed over the same surface. To remove the textbook cues that enable recall, we build it with AgentGAN, an adversarial multi-agent framework in which a generator rewrites each statement until a panel of frozen code models fails, while an executable validity gate keeps every rewrite answer- and class-preserving. The result is 2,114 hardened statements with hand-verified reference human solvers. Evaluating 12 proprietary and open-source models, we find that every model scores lower on NPC statements than on their P twins (35.4% vs. 63.8% pass@1), and that 95.1% of model-family pairs fail more often on the NPC side. A tenfold time limit raises NPC accuracy only from 28.5% to 31.9%, so failures stem from wrong or crashing programs rather than slow ones. Hardening also narrows the class gap from 24.8 to 14.6 points, showing that part of the apparent gap reflects familiarity with textbook phrasing rather than complexity class.

English Summary

P2NPCBench pairs 12 NP-complete problem families with polynomial-time twins posed over the same surface, then removes textbook recall cues with AgentGAN: a generator rewrites each statement until a panel of frozen code models fails, while an executable validity gate keeps every rewrite answer- and class-preserving, yielding 2,114 hardened statements with hand-verified reference solvers. Evaluating 12 proprietary and open-source models, every model scores lower on NPC statements than on their P twins (35.4% vs 63.8% pass@1) and 95.1% of model-family pairs fail more often on the NPC side; a tenfold time limit lifts NPC accuracy only from 28.5% to 31.9%, so failures stem from wrong or crashing programs rather than slow ones. Hardening narrows the class gap from 24.8 to 14.6 points, showing part of the apparent gap reflects familiarity with textbook phrasing rather than complexity class.

Obsidian Notes

  • 内容由 opencli arxiv paper 拉取 arXiv 元数据与摘要生成。
  • 中文导读与价值判断均锚定在条目已有摘要、论文摘要、作者、日期与分类信息上;未补充论文摘要之外的实验细节。