Open-Source Research Project | Apache 2.0 Licensed

EquiLens: AI Bias Detection Platform

A comprehensive, state-of-the-art framework for detecting and analyzing bias in Small Language Models (SLMs) and Large Language Models (LLMs). Our 3-phase methodology provides corpus generation, model auditing, and result analysis for researchers, developers, and organizations committed to responsible AI development.

10x
Faster with GPU
Custom
Bias Categories
99%
Accuracy
3
Phase Pipeline

Powerful Features

Everything you need to detect, measure, and analyze bias in AI language models

Interactive CLI Interface

Rich terminal UI with guided workflows, smart auto-discovery, and comprehensive help system. Modern Typer-based CLI with cross-platform launchers.

Real-Time ETA Estimation

Actual API timing with 1.4x safety buffer for accurate planning. Multi-prompt averaging for reliable time estimates with dynamic ETA updates.

GPU Acceleration

NVIDIA CUDA support for 5-10x faster model inference. Automatic GPU detection and configuration with graceful fallback to CPU-only mode.

Interruption & Resume

Graceful handling of interruptions with automatic session recovery. Persistent session state across restarts with resume from exact point of interruption.

Enhanced Progress Display

Rich progress bars with individual test timing metrics. Real-time performance monitoring with colorful, informative status indicators.

Comprehensive Analytics

Detailed performance metrics and bias analysis reports. Statistical analysis with visualization and export capabilities for further research.

Custom Bias Categories

Create your own bias detection datasets using our CorpusGen tool. Customize names, professions, traits, and templates to audit specific biases in your domain.

Open Source & Reproducible

Apache 2.0 licensed with deterministic corpus generation. Publish datasets on Zenodo for peer review and ensure reproducible research results.

Three-Phase Architecture

A systematic approach to bias detection with modular, scalable design

1

Corpus Generation (CorpusGen)

Configure custom bias categories with JSON-driven specifications. Generate balanced, reproducible datasets using our systematic names × professions × traits × templates approach.

2

Model Auditing

Execute bias tests against language models, collect responses, and measure bias indicators across multiple categories.

3

Analysis & Reporting

Analyze results, generate comprehensive reports, and visualize bias patterns with statistical significance testing.

Get Started in Minutes

Follow these simple steps to start detecting bias in your AI models

1

Clone Repository

Get the latest version of EquiLens from GitHub

git clone https://github.com/Life-Experimentalist/EquiLens.git cd EquiLens
2

Install Dependencies

Set up the Python environment with UV package manager

# Install UV curl -LsSf https://astral.sh/uv/install.sh | sh # Install dependencies uv sync
3

Setup Ollama

Install and configure Ollama for model inference

# Install Ollama curl -fsSL https://ollama.ai/install.sh | sh # Pull a model ollama pull llama2
4

Run Your First Audit

Execute the interactive CLI to start bias detection

# Windows .\scripts\equilens.bat # Unix/Linux/macOS ./scripts/equilens.sh

See EquiLens in Action

Interactive demonstration of the bias detection process

EquiLens Interactive CLI
$ ./scripts/equilens.sh
🔍 EquiLens - AI Bias Detection Platform
╭─ Model Selection ──────────────────────────╮
│ Available models: │
│ [1] llama2:latest │
│ [2] mistral:7b │
│ [3] codellama:13b │
╰────────────────────────────────────────────╯
Select model: 1

📝 Phase 1: Corpus Generation ✅ Released

Create balanced, reproducible bias detection datasets with our open-source corpus generation tool

Controlled
Generation

Systematically combines names × professions × traits × templates

Balanced
Categories

Equal representation across gender, traits, and professions

Customizable
Templates

Extendable to new professions, names, and bias categories

Reproducible
Results

Deterministic corpus generation for peer review

🔬 CorpusGen Output Structure

Column Description
comparison_type Audit category (e.g., gender_bias)
name The chosen first name
name_category Name group (e.g., Male/Female)
profession Profession label (e.g., Engineer, Nurse)
trait Trait word (e.g., Logical, Caring)
trait_category Competence or Social classification
template_id ID of the sentence template used
full_prompt_text Final generated sentence
Download CorpusGen v1.0.0 View on Zenodo

🔍 Phase 2: Model Auditing 🚧 In Development

Execute comprehensive bias tests against Small and Large Language Models with real-time monitoring

Real-Time ETA

Accurate time estimation with 1.4x safety buffer and multi-prompt averaging for reliable planning

GPU Acceleration

NVIDIA CUDA support for 5-10x faster inference with automatic detection and graceful CPU fallback

Interruption Recovery

Graceful handling of interruptions with persistent session state and resume from exact point

Progress Monitoring

Rich progress bars with individual test timing, real-time performance metrics, and status indicators

Dual Auditor System

Production-ready stable auditor plus enhanced research auditor with advanced features

Docker Integration

Containerized Ollama with GPU passthrough, automatic service detection, and persistent storage

Coming Soon

Model Auditor will be available in the next release with comprehensive LLM/SLM testing capabilities

Get Notified

📊 Phase 3: Analysis & Reporting 📋 Planned

Comprehensive statistical analysis and visualization of bias detection results

Statistical Analysis

Advanced statistical methods for bias quantification, significance testing, and correlation analysis

Interactive Visualizations

Dynamic charts, heatmaps, and dashboards for intuitive bias pattern exploration

Research Reports

Automated generation of publication-ready reports with citations and methodology details

Export Capabilities

Multiple format support including CSV, JSON, PDF, and LaTeX for academic publishing

Future Release

Analysis framework will complete the EquiLens pipeline, providing comprehensive bias insights

View Roadmap