mlsanityData to 26 Nov 2026

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

arXiv 2610.30103 ↗Submitted 21 Oct 2026cs.CLcited by 0

Not on the map. Why?

Abstract (arXiv)

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.

Key facts. No citing papers in the map yet (data through 26 Nov 2026). Builds on 17 of its 57 references that are in the map. Submitted 21 Oct 2026.

Builds on

17 of 57 references.

References · 17

  1. 2025gpt-oss-120b & gpt-oss-20b Model Cardcited by 1,638
  2. 2026DeepSeek-V4: Towards Highly Efficient Million-Token Context Intelligencecited by 1,363
  3. 2023WizardLM: Empowering large pre-trained language models to follow complex instructionscited by 1,170
  4. 2026GLM-5: from Vibe Coding to Agentic Engineeringcited by 740
  5. 2022ReCode: Robustness Evaluation of Code Generation Modelscited by 114
  6. 2023NPHardEval: Dynamic Benchmark on Reasoning Ability of Large Language Models via Complexity Classescited by 86
  7. 2025LeetCodeDataset: A Temporal Dataset for Robust Evaluation and Efficient Training of Code LLMscited by 86
  8. 2025ALE-Bench: A Benchmark for Long-Horizon Objective-Driven Algorithm Engineeringcited by 55
  9. 2024GraphArena: Evaluating and Exploring Large Language Models on Graph Computationcited by 54
  10. 2026Terminal-World: Scaling Terminal-Agent Environments via Agent Skillscited by 26
  11. 2025CodeCrash: Exposing LLM Fragility to Misleading Natural Language in Code Reasoningcited by 18
  12. 2025NP-Engine: Empowering Optimization Reasoning in Large Language Models with Verifiable Synthetic NP Problemscited by 14
5 more
  1. 2026Qwen3.8-Omni: Towards Native Omni-Modal Agentscited by 12
  2. 2026DAGGER: Distractor-Aware Graph Generation for Executable Reasoning in Math Problemscited by 10
  3. 2024MALLM-GAN: Multi-Agent Large Language Model as Generative Adversarial Network for Synthesizing Tabular Datacited by 8
  4. 2026ACE: Self-Evolving LLM Coding Framework via Adversarial Unit Test Generation and Preference Optimizationcited by 6
  5. 2026From Static Benchmarks to Dynamic Protocol: Agent-Centric Text Anomaly Detection for Evaluating LLM Reasoningcited by 3

Built on by

Not cited yet.