Features Architecture Get Started Demo Research Roadmap Docs GitHub
v2.2.0 Released | 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.

1,847+
Bias Audits Run
23+
Models Tested
94,200+
Prompts Executed
6
Bias Dimensions

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.

Built-In Web Dashboard

FastAPI + Jinja2 + Alpine.js dashboard served at http://localhost:8000 โ€” no Gradio, no separate process. SSE real-time job logs, inline result viewing, periodic automated backups, and a full OpenAPI 3.1 contract.

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 llama3.2
4

Launch Dashboard & Run Audit

Open the built-in web dashboard or run a bias audit from the CLI

# Launch dashboard + API server at http://localhost:8000 uv run equilens web # Or run a CLI audit directly uv run equilens audit --model llama3.2

See EquiLens in Action

Interactive demonstration of the bias detection process

EquiLens Interactive CLI
$ uv run equilens web
๐Ÿ” 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 โœ… Released

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

Now with Built-In Dashboard

v2.2.0 ships a full HTML dashboard (FastAPI + Jinja2 + Alpine.js) with SSE real-time job logs, periodic automated backups, and an OpenAPI 3.1 contract โ€” accessible at http://localhost:8000 via uv run equilens web

View v2.2.0 Release

๐Ÿ“Š Phase 3: Analysis & Reporting โœ… Released

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

Three-Phase Pipeline Complete

All three phases are now released. The analysis engine generates HTML and Markdown reports, performs statistical significance testing, and produces AI-assisted insights via the equilens analyze CLI command.

View v2.2.0 Release

Research Context

B.Tech final-year research project at Amrita Vishwa Vidyapeetham โ€” published on Zenodo with a citable DOI

STAR Research Narrative

Situation

As SLMs gain adoption in hiring, healthcare, and education, bias in their outputs poses real ethical and legal risk โ€” but most auditing tools require white-box access or cloud APIs.

Task

Design a framework that audits any Ollama-compatible model purely through prompts, produces statistically validated bias scores, and is deployable by a solo researcher without GPU cluster access.

Action

Built a three-phase pipeline (corpus generation โ†’ model auditing โ†’ statistical analysis) with 94,200+ curated prompt variants spanning gender, race, occupation, and sentiment, backed by a FastAPI job system and dual CLI/web interface.

Result

Detected statistically significant gender bias (Cohen's d > 0.4) and occupational stereotyping in multiple SLMs. Published on Zenodo with a citable DOI and one-command Docker deployment.

Roadmap

What's shipped and what's coming next

Three-Phase Pipeline

Released

Corpus generation, model auditing, and statistical analysis โ€” all three phases complete and published in v1.0.0.

Built-In Web Dashboard

v2.2.0

FastAPI + Jinja2 + Alpine.js dashboard at localhost:8000 โ€” no Gradio, no separate server. SSE real-time job logs and OpenAPI 3.1.

Docker Deployment

Released

One-command containerized deployment with GPU passthrough, persistent storage, and automatic Ollama service detection.

Web-Based Corpus Generation UI

Planned

Browser UI for building and editing bias detection corpora without touching word_lists.json directly.

Multi-Model Comparison

Planned

Side-by-side bias score comparison across multiple Ollama models in a single dashboard view, with differential bias charts.

HuggingFace Integration

Planned

Extend the auditor to run directly against HuggingFace Transformers models, without requiring an Ollama API wrapper.

Non-English Bias Detection

Planned

Additional word lists for cultural and linguistic contexts beyond English โ€” Hindi, Tamil, Spanish, and other high-usage languages.

Want to contribute? Read the contributing guide or open an issue.