Skip to content

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

Hugging Face 13 min read Research hardMaster

The Hallucinations Leaderboard, an Open Effort to Measure Hallucinations in Large Language Models

The Hallucinations Leaderboard ranks open LLMs on hallucination-focused benchmarks using the EleutherAI LM Evaluation Harness with zero- and few-shot in-context learning. Its tasks cover closed-book QA (NQ Open, TriviaQA, TruthfulQA), summarisation (XSum, CNN/DM), reading comprehension, instruction following (MemoTrap, IFEval), fact-checking (FEVER), hallucination detection (FaithDial, True-False, HaluEval) and self-consistency (SelfCheckGPT). Hierarchical clustering of early results groups models into Mistral 7B-based, LLaMA 2-based and smaller-model families. Mistral derivatives lead on TriviaQA and TruthfulQA, while small models like BLOOM 560M do well on MemoTrap because they memorize less. Some scores, such as single-token answers on NQ and CNN/DM, come from generation quirks: 64-shot prompting fixes the NQ case, lifting LLaMA2 13B to the top at 0.34 EM.

Assumes: LLM basicsfew-shot promptingNLP evaluation metrics

Related posts

  • A guide to setting up your own Hugging Face leaderboard: an end-to-end example with Vectara's hallucination leaderboard

    Hugging Face mediumAdept

    Vectara rebuilt its Hughes Hallucination Evaluation Model (HHEM) leaderboard on Hugging Face's open-source leaderboard template, which lets users submit new LLMs and refreshes the rankings automatically as results arrive. A basic leaderboard only needs a cloned Space plus two datasets, one for 'requests' and one for 'results'. HHEM needed custom backend code: a SummaryGenerator produces summaries and measures answer rate and length, an EvaluationModel scores them for factual consistency and hallucination rate, and Evaluator, run_evaluation and main_backend tie these together to process pending requests and upload results.

  • An Introduction to AI Secure LLM Safety Leaderboard

    Hugging Face easyNovice

    The LLM Safety Leaderboard, built on the Hugging Face leaderboard template, ranks open and closed models using DecodingTrust, a NeurIPS 2023 evaluation framework covering eight trustworthiness perspectives: toxicity, stereotype bias, adversarial robustness, OOD robustness, adversarial demonstrations, privacy, machine ethics and fairness. Each perspective uses tailored red-teaming methods, such as 33 adversarial system prompts scored with the Perspective API, adversarial examples transferred from attacks on Alpaca and Vicuna, and prompts designed to extract emails and credit card numbers. Key findings: GPT-4 is more vulnerable than GPT-3.5, no model leads on every perspective, the perspectives trade off against each other, and small wording changes such as "confidentially" versus "in confidence" change privacy leakage. Model owners can submit public safetensors models that load through transformers AutoClasses.

  • 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.

  • The Open Medical-LLM Leaderboard: Benchmarking Large Language Models in Healthcare

    Hugging Face easyNovice

    The Open Medical-LLM Leaderboard on Hugging Face benchmarks LLMs on medical question answering. It reports accuracy across MedQA (USMLE), MedMCQA (Indian AIIMS/NEET exams), PubMedQA (yes/no/maybe over abstracts) and six medicine and biology subsets of MMLU. Commercial models such as GPT-4-base and Med-PaLM 2 lead overall, while 7B open models like Starling-LM-7B, gemma-7b and Mistral-7B are competitive on some tasks. To submit a model, it must be in safetensors format, loadable with the Transformers AutoClasses and public. Planned work includes radiology, pathology and genomics datasets and metrics beyond accuracy.

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

    Hugging Face mediumAdept

    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.

The quest for software engineering knowledge.

Look:
Layout: