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.2.tar.gz (35.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.2-py3-none-any.whl (36.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: epb_benchmark-1.0.2.tar.gz
  • Upload date:
  • Size: 35.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.2.tar.gz
Algorithm Hash digest
SHA256 562d53f63b39c0e2a263ee41c72c60692a1aed6e4b060ac0283c984b16e6c2f6
MD5 f626a30f7443e59c12e0131b0153619f
BLAKE2b-256 a8fb30d31f74df6c3ee01a7901f313f01e4800818adfb83255f1a0f56c32798c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: epb_benchmark-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 36.5 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 701a3652a6501a31b4681ba1c769f67ea631d35f6f5ff30e4e4adf1aca99e60a
MD5 d446109af73103608c2ff74f02bec968
BLAKE2b-256 cbb09a15a20ac5e4c097007baff551c4bf5431a502f92723e6188021fced94d9

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