Skip to main content

Epistemic Pathology Benchmark - The MLPerf of AI Truth Systems

Project description

EPB: Epistemic Pathology Benchmark

The MLPerf of AI Truth Systems

EPB (Epistemic Pathology Benchmark) is a comprehensive benchmark for evaluating epistemic integrity in AI systems. It measures four critical pathologies that affect AI truthfulness and reliability:

  • Mirror Loop: Collapse in recursive self-refinement
  • Confabulation: Fabrication and persistence of false information
  • Violation State: Refusal contamination of benign prompts
  • Echo Chamber: Synthetic drift and self-reinforcement

Quick Start

Installation

pip install epb-benchmark

Or install from source:

git clone https://github.com/Course-Correct-Labs/epb-benchmark.git
cd epb-benchmark
pip install -e .

Running the Benchmark

  1. Initialize a configuration file:
epb init-config
  1. Edit epb_config.yaml to set your model and API key:
adapter:
  provider: "openai"  # or "anthropic"
  model_name: "gpt-4"
  api_key_env: "OPENAI_API_KEY"
  1. Set your API key:
export OPENAI_API_KEY="your-api-key-here"
  1. Run the benchmark:
epb run --config epb_config.yaml
  1. Score the results:
epb score --run-dir runs/YYYYMMDD_HHMMSS

What EPB Measures

EPB evaluates four distinct pathologies, each with an explicit metric:

1. Mirror Loop (EPB Phi)

Measures stability in recursive self-refinement. Models are asked to iteratively critique and improve their own outputs. Collapse occurs when the model gets stuck in repetitive patterns.

Score: 0-100 (higher is better)

2. Confabulation (EPB Persistence)

Measures fabrication of false information and its persistence after challenge. Models are asked unanswerable questions, then challenged on their answers.

Score: 0-100 (higher is better, less persistent confabulation)

3. Violation State (EPB Contamination)

Measures refusal contamination after seeing disallowed content. Models receive a violation request (which should be refused), followed by benign requests.

Score: 0-100 (higher is better, less contamination)

4. Echo Chamber (EPB Drift)

Measures semantic drift through iterative summarization. Models repeatedly summarize their own outputs, and drift is measured using TF-IDF cosine similarity.

Score: 0-100 (higher is better, less drift)

Overall Score: EPB Truth

The overall EPB Truth score is a weighted average of the four sub-scores (default: equal weighting).

Certification Levels:

  • Platinum: 95+
  • Gold: 85+
  • Silver: 70+
  • Bronze: 50+

EPB v1 Test Suite

EPB v1 includes:

  • 20 Mirror Loop prompts
  • 30 Confabulation questions
  • 10 Violation State sequences
  • 10 Echo Chamber scenarios

Total: 70 test tasks designed for quality over quantity.

Documentation

Leaderboard

Submit your results to the public leaderboard:

export EPB_LEADERBOARD_URL="https://epb.coursecorrect.org/api"
export EPB_API_KEY="your-leaderboard-api-key"
epb submit --results runs/YYYYMMDD_HHMMSS/results.json

View the leaderboard at: https://epb.coursecorrect.org

Architecture

EPB is designed to be:

  • Model-agnostic: Works with any LLM through simple adapters
  • Reproducible: Explicit metrics and deterministic scoring
  • Extensible: Easy to add new batteries and adapters
  • Transparent: Open-source specifications and scoring code

Supported Models

Out of the box, EPB supports:

  • OpenAI GPT models (GPT-4, GPT-3.5, etc.)
  • Anthropic Claude models

To add support for other models, implement the ModelClient interface in epb/adapters/.

Citation

If you use EPB in your research, please cite:

@software{epb2025,
  title = {EPB: Epistemic Pathology Benchmark},
  author = {Course Correct Labs},
  year = {2025},
  url = {https://github.com/Course-Correct-Labs/epb-benchmark}
}

Contributing

We welcome contributions! Please see our contributing guidelines.

Areas for contribution:

  • New model adapters
  • Additional test tasks
  • Improved scoring heuristics
  • Bug fixes and documentation

License

MIT License - see LICENSE for details.

About

EPB is developed by Course Correct Labs, a research organization focused on epistemic integrity in AI systems.

Related work:

Support

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

epb_benchmark-1.0.0.tar.gz (22.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

epb_benchmark-1.0.0-py3-none-any.whl (24.1 kB view details)

Uploaded Python 3

File details

Details for the file epb_benchmark-1.0.0.tar.gz.

File metadata

  • Download URL: epb_benchmark-1.0.0.tar.gz
  • Upload date:
  • Size: 22.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for epb_benchmark-1.0.0.tar.gz
Algorithm Hash digest
SHA256 fa03eda01474a9b1ae0e214a18e67630be2bdc6b1d627ec503976694f87b4e30
MD5 38f9692f70c992ec438afdd32b12d051
BLAKE2b-256 35f9fed1df688395548ba70f45bd2f4711a2eb8942aaab866eac24506c7b54a7

See more details on using hashes here.

File details

Details for the file epb_benchmark-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: epb_benchmark-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 24.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for epb_benchmark-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 97f262a7a79f3475842ce170f0ae35504870f02fa19a44fb120f2fa6864e832d
MD5 0b259e8d73dea5c73bf4474f6a622092
BLAKE2b-256 43307522cf74a8256661050df4c57a0c30f06d0380c77851695bbc2a04e4dd4c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page