Language Model Evaluation Harness (lm-eval)

repository·main·Indexed 27 days ago

https://github.com/simplescaling/s1

A unified framework for evaluating generative language models against academic benchmarks, serving as the backend for the Hugging Face Open LLM Leaderboard. It supports a wide array of tasks including AGIEval, GSM8K, IrokoBench (AfriMMLU, AfriMGSM, AfriXNLI), ACLUE, and Arabic EXAMS, providing guides for using the public interface, extending models via APIs, and adding or configuring new evaluation tasks.

Tokens
77.5K
Snippets
164
Records
469
Agent score
92%

What's inside lm-eval

  1. Overview of the WSC273 task

    main

    WSC273 (Winograd Schema Challenge 273) is a benchmark task designed to evaluate commonsense reasoning. It consists of 273 Winograd schemas—pairs of sentences that differ by only one or two words and contain an ambiguity that requires world knowledge to resolve.

    This specific implementation in the lm_eval library uses partial evaluation as described by Trinh & Le in Simple Method for Commonsense Reasoning (2018) (https://arxiv.org/abs/1806.0).

  2. Overview of IFEval task

    main
    IFEval (Instruction-Following Evaluation) is a benchmark designed to evaluate the ability of Large Language Models (LLMs) to follow verifiable natural language instructions. Unlike human evaluation or LLM-based auto-evaluation, IFEval uses objective, verifiable constraints such as word counts (e.g., "write in more than 400 words") or keyword frequency (e.g., "mention the keyword of AI at least 3 times"). The benchmark consists of approximately 500 prompts covering 25 types of verifiable instructions.
  3. Overview of QA4MRE tasks

    main

    QA4MRE (Question Answering for Machine Reading Evaluation) is a challenge dataset from CLEF 2011-2013 designed to evaluate Machine Reading systems through Question Answering and Reading Comprehension. The tasks focus on extracting knowledge from large volumes of text to answer questions.

    Available task groups and specific tasks include:

    • Group: qa4mre
    • Tasks:
      • qa4mre_2011
      • qa4mre_2012
      • qa4mre_2013
  4. Overview of the MC Taco task

    main

    MC-TACO is a dataset consisting of 13,000 question-answer pairs designed to evaluate temporal commonsense comprehension. It covers five specific temporal properties:

    1. Duration: How long an event takes.
    2. Temporal ordering: The typical order of events.
    3. Typical time: When an event occurs.
    4. Frequency: How often an event occurs.
    5. Stationarity: Whether a state is maintained for a long time or indefinitely.

    To run this task in the lm_eval harness, use the task name: mc_taco.

  5. Overview of AGIEval Benchmark

    main
    AGIEval is a human-centric benchmark designed to evaluate the general abilities of foundation models in tasks related to human cognition and problem-solving. It utilizes 20 official, public, and high-standard admission and qualification exams, including college entrance exams (e.g., Gaokao, SAT), law school admission tests, math competitions, and civil service exams.
  6. Overview of EusTrivia task

    main

    EusTrivia is a benchmark consisting of 1,715 multiple-choice trivia questions used for evaluating language models in Basque. The dataset covers five main knowledge areas:

    • Humanities and Natural Sciences (27.8%): History, geography, biology, ecology, etc.
    • Leisure and Art (24.5%): Sports, arts, architecture, and cultural events.
    • Music (16.0%): Classical and contemporary music and musicians.
    • Language and Literature (17.1%): Literature, writers, and metalinguistic questions (definitions, synonyms).
    • Mathematics and ICT (14.5%): Mathematical problems and Information and Communication Technology.

    Questions range from elementary level (grades 3-6) to challenging levels, with a significant focus on the Basque Country, its language, and culture.

  7. Overview of Inverse Scaling tasks

    main

    The inverse_scaling task group in lm_eval provides implementations of datasets from the 'Inverse Scaling: When Bigger Isn't Better' paper. These tasks are designed to evaluate scenarios where larger model scale may lead to worse performance due to factors like memorized sequence repetition, imitation of undesirable patterns, or distractor tasks.

    Note: This is not the official implementation of the Inverse Scaling Prize; it is implemented by h-albert-lee with permission from the authors.

  8. Overview of the PROST task

    main

    PROST (Physical Reasoning about Objects Through Space and Time) is a dataset of 18,736 multiple-choice questions based on 14 manually curated templates. It covers 10 physical reasoning concepts and is designed to probe both causal and masked language models in a zero-shot setting.

    Note: To adhere to the authors' intentions, this task is limited to zero-shot evaluation to ensure models are being tested on data they were not specifically trained to succeed on.