跳到正文
arXiv cs.CL· Nurul Labib Sayeedi, Md. Faiyaz Abdullah Sayeedi, Zabir Al Nazi, Mahbub E Sobhani, Shubhashis Roy Dipta·· 13 小时前AI 评分34

P2NPCBench:用对抗式多智能体重写检验 LLM 能否区分 P 与 NP-Complete 问题

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

AI 导读

研究者提出 P2NPCBench,包含 12 个问题族,每个 NP-complete 问题都配一个表面相同、仅结构细节不同的 P 版本,并用对抗式多智能体框架 AgentGAN 重写题目以去除教科书线索,最终得到 2,114 条加固陈述。

正文 · 原文

View PDF HTML (experimental)

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.
Comments: this https URL
Subjects: Computation and Language (cs.CL)
Cite as: arXiv:2610.30103 [cs.CL]
  (or arXiv:2610.30103v1 [cs.CL] for this version)
  https://doi.org/10.48550/arXiv.2610.30103

arXiv-issued DOI via DataCite (pending registration)

Submission history

From: Md. Faiyaz Abdullah Sayeedi [view email]
[v1] Wed, 21 Oct 2026 17:50:19 UTC (2,598 KB)

来源:arXiv cs.CL · arxiv.org