extract 0 0 0

pheonix-delta/WiredBrain-RLHF

published by @pheonix-delta

Alignment dataset tracked in the /datasets sub-catalog.

Lifetime downloads
550
Last 30 days
45
Likes
1
Size
949.2 MB
Created on HF
2026-02-11
Age
8 months ago

Description

WiredBrain-RLHF: Production-Grade Data for High-Integrity AI Alignment

Overview

WiredBrain-RLHF transforms the foundational Anthropic HH-RLHF dataset (148K conversations) into a production-grade training resource through systematic data enrichment. Engineered by Shubham Dev (Department of Computer Science, Jaypee University of Information Technology, India), this dataset powers high-stakes AI alignment research requiring factual integrity and entity… See the full description on the dataset page: https://huggingface.co/datasets/pheonix-delta/WiredBrain-RLHF.

Tags

task_categories:reinforcement-learningtask_categories:text-generationlanguage:enlicense:mitsize_categories:100K<n<1Mformat:jsonmodality:tabularmodality:textlibrary:datasetslibrary:pandaslibrary:polarslibrary:mlcroissantdoi:10.57967/hf/7804region:usrlhfnerdpoppojarvisfine-tuningalignmentllm-alignmentinstruction-tuningpreference-tuningsynthetic-dataevaluationspacyglineranthropic-hh-rlhftrltransformersagentic-aijsonl

README current version from Hugging Face


license: mit
task_categories:

  • reinforcement-learning
  • text-generation
    language:
  • en
    tags:
  • rlhf
  • ner
  • dpo
  • ppo
  • jarvis
  • fine-tuning
  • alignment
  • llm-alignment
  • instruction-tuning
  • preference-tuning
  • synthetic-data
  • evaluation
  • spacy
  • gliner
  • anthropic-hh-rlhf
  • trl
  • transformers
  • agentic-ai
  • jsonl
    size_categories:
  • 100K<n<1M

WiredBrain-RLHF: Production-Grade Data for High-Integrity AI Alignment

License: MIT
DOI
Citation
Static Badge
Static Badge
Static Badge
Static Badge

Overview

WiredBrain-RLHF transforms the foundational Anthropic HH-RLHF dataset (148K conversations) into a production-grade training resource through systematic data enrichment. Engineered by Shubham Dev (Department of Computer Science, Jaypee University of Information Technology, India), this dataset powers high-stakes AI alignment research requiring factual integrity and entity preservation.

What sets this apart: Standard datasets provide raw conversations; WiredBrain-RLHF provides structured signals that prevent hallucination, enable entity-aware fine-tuning, and accelerate convergence on production systems.

🎯 Key Features

This dataset implements Stage 3 of the 6-stage hierarchical data pipeline (cleaning, entity extraction, quality assessment) described in our production RAG research. Three core capabilities:

  1. Hybrid Entity Recognition (NER):

    • SpaCy (en_core_web_trf) for standard entity types (PERSON, ORG, PRODUCT)
    • GLiNER for domain-specific entities (HARDWARE, CONCEPTS, TOOLS)
    • Cross-validation ensures high-precision entity extraction (~96% F1)
  2. Automatic Quality Scoring:

    • Readability (Flesch-Kincaid Index, ARI) for model compatibility
    • Coherence scores to filter corrupted conversations
    • Entity Preservation tracking (critical regions must not be hallucinated)
  3. Hallucination Prevention Through Protected Regions:

    • Explicitly marks factual spans that models should preserve
    • Enables entity-aware DPO/PPO loss functions
    • Reduces "catastrophic forgetting" by 22% (internal benchmarks)

οΏ½ Performance & Validation

Empirical Results (Internal Evaluation, N=148K samples):

Metric Raw HH-RLHF WiredBrain-RLHF Improvement
Training Loss Convergence (Epoch 2) Baseline -18% faster βœ… Accelerated
Entity Hallucination Rate 14-18% <3% βœ… 82% reduction
Catastrophic Forgetting Events ~22% <2% βœ… 91% reduction
Avg Quality Score N/A 0.87 (A-grade) βœ… Certified
Readability (Flesch-Kincaid) Uncomputed 72.4 avg βœ… Pre-computed

Why models trained on this dataset perform better:

  • Pre-computed quality scores filter noisy training examples
  • Entity preservation signals guide attention to factual tokens
  • Readability metrics enable curriculum learning (easy β†’ hard examples)
  • Protected regions prevent fine-tuning degradation on critical spans

βš”οΈ Competitive Advantage in AI Alignment

Capability HH-RLHF (Baseline) Typical DPO Datasets WiredBrain-RLHF
Entity Grounding ❌ None ❌ Ad-hoc βœ… Hybrid NER (Spacy+GLiNER)
Noise Filtering High noise Medium noise βœ… Scored & Curated
Hallucination Guards ❌ No guards ❌ No guards βœ… Protected Regions
Quality Metrics ❌ None ❌ Manual βœ… Auto-computed
Readability Signals ❌ None ❌ None βœ… Flesch-Kincaid + ARI
Convergence Speed Baseline Baseline βœ… 2x Faster
For Entity-Preservation DPO ❌ Poor fit ❌ Poor fit βœ… Optimized

Real-World Impact: Models fine-tuned on WiredBrain-RLHF maintain factual integrity on domain-specific tokens (hardware specs, technical parameters, entity names) while learning from the full HH-RLHF distribution. This is critical for agents, assistants, and knowledge-intensive systems where hallucinated facts cause downstream failures.

SEO Keywords: RLHF training data | DPO dataset | entity-aware fine-tuning | hallucination prevention | LLM alignment | HuggingFace RLHF | preference learning

οΏ½ Research Context: WiredBrain Hierarchical RAG

This dataset represents Stage 3 of a 6-stage hierarchical data pipeline published in our production RAG research.

Research Paper: WiredBrain: Hierarchical Multi-Domain RAG Architecture Scaling to 693K Chunks on Consumer Hardware

Pipeline Stages:

  1. Data Acquisition (250GB raw documents)
  2. Deduplication (MinHash LSH)
  3. ← Text Cleaning & Entity Extraction (THIS DATASET)
  4. Hierarchical Classification (SetFit routing)
  5. Knowledge Graph Construction (172K entities, 688K relationships)
  6. Database Population (Qdrant, PostgreSQL, Neo4j)

Why WiredBrain-RLHF Matters: The entity-aware fine-tuning methodology demonstrated here scales to large-scale hierarchical RAG systems. By proving that high-quality entity preservation improves both training convergence AND downstream retrieval quality, this dataset validates a core hypothesis: data quality > data quantity for high-stakes AI systems.

πŸš€ Quick Start (3 Minutes)

Option 1: Load Directly from HuggingFace

from datasets import load_dataset

# Load the full dataset
dataset = load_dataset("pheonix-delta/WiredBrain-RLHF", name="default")

# Inspect structure
sample = dataset['train'][0]
print(f"Keys: {sample.keys()}")
# Output: dict_keys(['source', 'content', 'rejected_alternative', 'quality_score_final', 
#                     'readability_metrics', 'entities_all', 'protected_regions'])

# Access entity annotations
print(f"Entities extracted: {len(sample['entities_all'])}")
print(f"Quality score: {sample['quality_score_final']:.2f}")

Option 2: Filter by Quality (Recommended for Fine-Tuning)

from datasets import load_dataset

dataset = load_dataset("pheonix-delta/WiredBrain-RLHF")

# Keep only high-quality samples (>0.8)
high_quality = dataset['train'].filter(
    lambda x: x['quality_score_final'] > 0.80
)
print(f"High-quality samples: {len(high_quality)} / {len(dataset['train'])}")

# Further filter by readability (easy language = faster training convergence)
curriculum_data = high_quality.filter(
    lambda x: x['readability_metrics']['flesch'] > 70
)
print(f"Curriculum training samples: {len(curriculum_data)}")

Option 3: Entity-Preserving DPO Training

from torch.utils.data import DataLoader

dataset = load_dataset("pheonix-delta/WiredBrain-RLHF")

def dpo_collate_fn(batch):
    """Custom collate for DPO with entity-preservation loss weighting"""
    return {
        'prompt': [x['content'].split('Assistant:')[0] for x in batch],
        'chosen': [x['content'].split('Assistant:')[1] if 'Assistant:' in x['content'] else '' for x in batch],
        'rejected': [x['rejected_alternative'] for x in batch],
        'entity_weights': [x['protected_regions'] for x in batch],
        'quality_weights': [x['quality_score_final'] for x in batch],
    }

loader = DataLoader(
    dataset['train'], 
    batch_size=8, 
    collate_fn=dpo_collate_fn,
    shuffle=True
)
from datasets import load_dataset

# Load the supercharged dataset
dataset = load_dataset("pheonix-delta/WiredBrain-RLHF")

# Access entity-augmented samples
print(dataset['train'][0]['entities_all'])

Dataset Structure

Each entry is a JSON object containing the conversation and rich metadata.

{
  "source": "Anthropic/hh-rlhf",
  "content": "Human: ...\nAssistant: ...",
  "rejected_alternative": "...", 
  "quality_score_final": 0.87,
  "readability_metrics": {
    "flesch": 82.6,
    "ari": 4.0
  },
  "entities_all": [
    {"text": "3.5 inches", "type": "QUANTITY", "source": "spacy"},
    {"text": "horseshoes", "type": "component", "source": "gliner"},
    {"text": "Ford", "type": "model", "source": "gliner"}
  ],
  "protected_regions": 11
}

Fields Breakdown

Field Description
content The "Chosen" conversation path.
rejected_alternative The "Rejected" response (for DPO/PPO training).
entities_all List of entities detected by SpaCy (Standard NER) and GLiNER (Zero-shot NER).
quality_score_final An aggregated quality metric (0.0 - 1.0) based on text coherence and formatting.
readability_metrics Flesch-Kincaid and ARI scores to gauge complexity.
protected_regions Count of critical entity spans that should ideally be preserved during generation.

πŸ“š Use Cases & Applications

1. Reducing Hallucinations in DPO/RLHF Fine-Tuning

Apply higher loss penalties when models hallucinate or corrupt protected entities:

# Pseudo-code for entity-aware DPO loss
entity_preservation_loss = sum([
    entity_weight * cross_entropy_loss 
    for entity_weight in batch['entity_weights']
]) / len(batch)

2. Domain-Specific Model Fine-Tuning

Filter for specialized entities to create domain-specific datasets:

  • Medical AI: Filter for DISEASE, MEDICATION, PROCEDURE entities
  • Robotics: Filter for HARDWARE, COMPONENT, MODEL entities
  • Finance: Filter for TICKER, METRIC, INSTRUMENT entities

3. Data Curriculum Learning

Improve training stability using readability signals:

# Phase 1: Train on easy samples (high readability, low complexity)
easy_data = dataset.filter(lambda x: x['readability_metrics']['flesch'] > 80)

# Phase 2: Hard samples (advanced content, technical depth)
hard_data = dataset.filter(lambda x: x['readability_metrics']['flesch'] < 60)

# Phase 3: Mixed curriculum for robustness

4. Retrieval-Augmented Generation (RAG) Fine-Tuning

Entity annotations enable knowledge-grounded response generation in RAG systems (see WiredBrain RAG for production example).


πŸ› οΈ Technical Details

NER Processing Pipeline

Stage Tool Capability Output
1. Standard NER SpaCy (en_core_web_trf) PERSON, ORG, GPE, PRODUCT, QUANTITY ~65% coverage
2. Domain NER GLiNER (zero-shot) HARDWARE, MODEL, CONCEPT, TOOL +35% incremental
3. Validation Cross-check overlap Resolve conflicts, prefer GLiNER for domain terms Final entities_all

Quality Score Computation

quality_score_final = 
  0.4 * coherence_score +           # Text fluency (0-1)
  0.3 * entity_preservation_rate +  # Entities properly formatted
  0.2 * readability_normalized +    # Flesch-Kincaid (0-1)
  0.1 * conversation_depth          # Multi-turn engagement score

Distribution: Mean = 0.87, Std Dev = 0.08 (highly curated dataset)


πŸ“– Citations & References

How to Cite This Dataset

BibTeX:

@dataset{Dev2026WiredBrainRLHF,
  title = {WiredBrain-RLHF: Production-Grade RLHF Data with Entity-Augmented Quality Scoring},
  author = {Dev, Shubham},
  year = {2026},
  month = {February},
  publisher = {Hugging Face},
  doi = {10.57967/hf/7804},
  url = {https://huggingface.co/datasets/pheonix-delta/WiredBrain-RLHF},
  note = {Enhanced version of Anthropic/hh-rlhf with NER annotations and quality metrics}
}

Chicago Style:

Dev, Shubham. "WiredBrain-RLHF: Production-Grade RLHF Data with Entity-Augmented Quality Scoring." Hugging Face, February 2026. https://doi.org/10.57967/hf/7804


πŸ”— Related Research

This dataset is part of the WiredBrain Research Program on high-integrity edge AI:

Project Component GitHub DOI
WiredBrain RAG (Production) Stages 1-6 hierarchical pipeline pheonix-delta/WiredBrain-Hierarchical-Rag 10.13140/RG.2.2.25652.31363
WiredBrain-RLHF (This Dataset) Stage 3: Data cleaning & enrichment pheonix-delta/WiredBrain-RLHF 10.57967/hf/7804
Axiom Voice Agent (Proof-of-Concept) Template-based RAG (405 items, 80% bypass) pheonix-delta/axiom-voice-agent 10.13140/RG.2.2.26858.17603

Dataset Role: WiredBrain-RLHF demonstrates the effectiveness of Stage 3 entity-aware text cleaning and validates that high-quality data curation accelerates model convergence. This methodology scales to the full WiredBrain pipeline (693K chunks, 99.997% retrieval reduction).


βœ… Attribution & Acknowledgments

Original Dataset:

Research & Development:

  • Shubham Dev - Full independent development: pipeline design, entity enrichment, quality validation, reproducibility

Tools & Libraries:

  • SpaCy (en_core_web_trf): Industrial-grade NER
  • GLiNER: Generalist & Lightweight Named Entity Recognition
  • HuggingFace Datasets: Hosting and distribution infrastructure

πŸš€ Community Impact & Adoption

This dataset is part of a research program that achieved significant community adoption:

Project GitHub Clones Stars Downloads/Reach Status
axiom-voice-agent 600+ 53 50K+ Reddit views Trending on r/LocalLLaMA
WiredBrain-Hierarchical-Rag 300+ 30 300+ clones (48h) Production RAG engine
WiredBrain-RLHF (this dataset) β€” β€” 25+ downloads (3 days) Stage 3 methodology

Viral Reach: 900+ total repository clones across projects in just 48-72 hours (2026-02-04 to 2026-02-15), demonstrating strong community validation of the methodology.

Your Vote: Use this dataset β†’ Validate the research β†’ ⭐ Star the repos


πŸ“§ Contact & Support

Questions or feedback on this dataset? Open a discussion on HuggingFace or GitHub

Reach the researcher:


πŸ“œ License

This dataset derivative is licensed under MIT. The original Anthropic/hh-rlhf is also MIT-licensed. You are free to use, modify, and distribute this dataset with attribution.

See LICENSE for complete terms.

README history 8 revisions

Every night we snapshot the README of every dataset in the catalog. When the SHA changes we archive the new version and diff it against the last. This is the evolving thought record of the alignment-data field: what the author decided to say about the corpus, and how that framing shifted over time.

  1. 2026-02-15Upload README.md with huggingface_hub6be84fa15.4 KB
    Loading...
  2. 2026-02-12Upload README.md with huggingface_hub19908be5.6 KB
    Loading...
  3. 2026-02-12Upload anthropic_hh_rlhf.jsonl with huggingface_hubbbe84e64.1 KB
    Loading...
  4. 2026-02-12Upload README.md with huggingface_hub5c8667b4.1 KB
    Loading...
  5. 2026-02-11Upload README.md with huggingface_hub84ac35c3.3 KB
    Loading...
  6. 2026-02-11Upload train.jsonl with huggingface_hub1a764363.3 KB
    Loading...
  7. 2026-02-11Upload README.md with huggingface_hub5e486be3.3 KB
    Loading...
  8. 2026-02-11initial commit28749cd0 B
    Loading...

Used by abliterated models none yet

No abliterated models in our catalog have declared this dataset in their YAML metadata yet. This can mean the dataset is used but not declared, is used outside abliteration workflows, or is new. The link will populate automatically as models are indexed.

Community discussions 1 thread Β· 1 open Β· 1 comments

Threads posted by the community on Hugging Face: bug reports, questions about usage, pull requests on the README, license clarifications. Click any thread to expand and read the full conversation inline. Newest first.

  1. 2026-02-12[bot] Conversion to Parquetopen1 πŸ’¬#1
    Loading...

Related datasets same stage Β· extract

Read further

Metadata

License
mit

Repository

Download the dataset

0

Copy any of these snippets into your notebook or terminal. All three fetch directly from Hugging Face using your own credentials.

Recommended: datasets library (Python)
from datasets import load_dataset
ds = load_dataset("pheonix-delta/WiredBrain-RLHF")
Raw snapshot (Python)
from huggingface_hub import snapshot_download
snapshot_download(repo_id="pheonix-delta/WiredBrain-RLHF", repo_type="dataset")
git clone (requires git-lfs)
git clone https://huggingface.co/datasets/pheonix-delta/WiredBrain-RLHF
Catalog is the map. Apps are the tools.

Run models on your own machine, not in the cloud.

Every model page has an "Open in Abliteration" button that hands the model directly to the first-party desktop client, at the quantization your rig can actually run. No API keys, no subscription, no prompt leakage.

Open in Abliteration