Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Hugging Face 5 min read Research mediumAdept

NPHardEval Leaderboard: Unveiling the Reasoning Abilities of Large Language Models through Complexity Classes and Dynamic Updates

NPHardEval is a dynamic LLM reasoning benchmark of 900 automatically generated algorithmic questions: 9 problems (3 P, 3 NP-complete, 3 NP-hard), each at 10 difficulty levels. Its questions are refreshed monthly to prevent overfitting and avoid numerical computation so that logical reasoning is measured on its own. Models are scored by Weighted Accuracy, which weights higher difficulty levels linearly more, and by Failure Rate, the share of responses that cannot be parsed. Closed models led, with GPT-4 Turbo best overall. Claude 2 did best on NP-complete questions, and open models such as Yi-34b, Qwen-14b, Phi-2 and Mistral-7b beat closed ones on some tasks. Instructions for reproducing the zero-shot and few-shot runs are included.

Assumes: computational complexity classesLLM evaluation basics

Related posts

  • BigCodeBench: The Next Generation of HumanEval

    Hugging Face mediumAdept

    BigCodeBench is a code-generation benchmark of 1,140 Python function-level tasks that require composing calls from 139 libraries. Each task averages 5.6 unittest-based test cases with 99% branch coverage, and the tasks were built by expanding ODEX Stack Overflow intents with GPT-4 under human-expert refinement. It comes in Complete (docstring completion) and Instruct (conversational prompt) variants, scored by calibrated Pass@1 and Elo ratings. The best model, GPT-4o, reaches 61.1% and 51.1% respectively, against 97% for human experts, and an open-source PyPI harness with Docker images supports generation, sanitization and sandboxed evaluation.

  • Introducing the Open Chain of Thought Leaderboard

    Hugging Face mediumAdept

    The Open CoT Leaderboard ranks LLMs by the accuracy gain from chain-of-thought prompting (accuracy with CoT minus loglikelihood accuracy without it) rather than by absolute accuracy, which makes it more robust to training-data contamination. Models are evaluated on LogiQA and LSAT multiple-choice reasoning tasks using six CoT generation regimes: two prompting strategies (Classic "think step by step" and Reflect) crossed with greedy, beam search and sampling decoding, and the best gain across regimes is reported. Early results across 30 models show small 7B models like Phi-2 can gain more from CoT than larger ones such as Mixtral, and instruction/chat finetuning improves both baseline accuracy and CoT gains. No single regime is best for every model and task, and CoT sometimes reduces accuracy.

  • Beat GPT-4o at Python by searching with 100 dumb LLaMAs

    Modal mediumAdept

    Sampling LLaMA 3.1 8B Instruct many times and checking each candidate against HumanEval's unit tests raises pass@k from 66.4% at k=1 to 90.5% at k=100, matching GPT-4o's reported 90.2% pass@1, and to 95.1% at k=1000. This replicates the core claim of the Large Language Monkeys paper on a new model and dataset, with fail@k following a smooth log-log scaling law across three orders of magnitude. The setup used vLLM with prefix caching on ten A100s, reaching about 40k output tokens/s, plus Modal Sandboxes running about 3,000 isolated test executions in parallel, all for under $50. The larger argument is that search trades memory for compute and depends on fast, objective evaluation, so domains with verifiable outcomes like code and formal math benefit most.

  • Fixing Open LLM Leaderboard with Math-Verify

    Hugging Face mediumAdept

    The Open LLM Leaderboard's MATH-Hard evaluation systematically underscored models because its answer pipeline required an exact Minerva-style answer string, parsed answers with SymPy that couldn't handle boxed LaTeX, intervals, matrices or percentages, and compared results without rounding, numeric evaluation, variable assignment or set equivalence. Swapping in Math-Verify (a 3-line change) and re-evaluating all 3,751 submitted models raised scores by 4.66 points on average (61 more problems solved), with the biggest gains in Algebra and Prealgebra where set and matrix answers are common. Qwen scores more than doubled and DeepSeek scores nearly tripled, reshuffling the MATH-Hard top 20 so that Nvidia's AceMath now leads, and moving some models 200+ places overall.

  • Introducing the LiveCodeBench Leaderboard - Holistic and Contamination-Free Evaluation of Code LLMs

    Hugging Face easyNovice

    LiveCodeBench is a code-LLM benchmark built from LeetCode, AtCoder and CodeForces contest problems annotated with release dates, so models can be scored only on problems published after their training cutoff to avoid contamination. Beyond code generation it evaluates self-repair from error feedback, code execution (predicting a function's output) and test output prediction, all scored with Pass@1. GPT-4-Turbo leads most scenarios and widens its lead on self-repair, while Claude-3-Opus wins test output prediction and Mistral-Large does relatively better on reasoning-heavy tasks. Models can be evaluated with the lcb_runner CLI and submitted to the leaderboard.

The quest for software engineering knowledge.

Look:
Layout: