Reproduce “A Knapsack by Any Other Name: Presentation impacts LLM performance on NP-hard problems” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Alex Duchnowski, Ellie Pavlick, Alexander Koller

Researchers from Saarland University and Brown University developed the EHOP dataset to demonstrate that large language models' ability to solve NP-hard optimization problems is highly sensitive to problem presentation, performing significantly worse on "costumed" and "inverted" variants compared to "textbook" formulations. This work provides evidence that current LLMs primarily "recite" learned patterns rather than exhibiting robust, generalized reasoning.

Key insights

  • LLMs exhibit "reciting" behavior, heavily relying on specific textual patterns and vocabulary associated with textbook problem formulations rather than abstract, generalized reasoning.
  • The ability of LLMs to solve NP-hard problems is highly fragile and non-robust to linguistic variations, including real-world analogies and subtle inversions of problem logic, even when the underlying computational problem is identical.
  • While neuro-symbolic approaches, like LLMs translating problems for an Integer Linear Programming (ILP) solver, can improve performance, the LLM's capacity for accurate semantic parsing and precise information extraction is still vulnerable to presentation changes.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.