Preference Dataset Linter
A command-line tool that reads a pairwise or ranked preference dataset from Hugging Face and prints a one-page label of its biases.
- Status
- Design (not built)as of
- Claim
No measured result yet.
What will be measured. For three public preference datasets: length, position and format bias, annotator agreement where the dataset carries it, near-duplicate rate, ambiguity rate, refusal skew and language mix. Every cell will be reproducible from a committed command. Small effects will be reported as small.
- Run it
Not runnable yet.
How it works
- Read
prefaudit hf://<dataset>loads a pairwise or ranked preference dataset from Hugging Face. - Measure
Length bias, position bias and format bias (bold, lists, emoji, links, affirmative tone). Annotator agreement where it exists. Near-duplicate rate, ambiguity rate, refusal skew, language mix.
- Print
A one-page card, a JSON file and a snippet for the dataset card.
Ambiguity rate counts pairs where the chosen and rejected responses are nearly the same. The first release covers three public datasets and a comparison table across them.
A second half is deferred: training reward models on raw and cleaned splits to measure whether a policy exploits the bias. That needs rented GPU time and is not planned without it.
Built on
Prior art
- From Lists to Emojis: How Format Bias Affects Model Alignment. 2024. Preference models, human evaluators included, favour lists, links, bold text and emojis, and a small share of biased data is enough to inject the bias.
- A Long Way to Go: Investigating Length Correlations in RLHF. 2023. Response length drives much of the gain from RLHF, and reward models absorb the length preference from their training data.
- Eliminating Inductive Bias in Reward Models with Information-Theoretic Guidance. December 2025. Addresses length, sycophancy and format bias in reward-model training data.
- When Data is the Algorithm. November 2025. A systematic study of open preference-optimization datasets.
- Clean First, Align Later (PrefCleanBench). 2025. Benchmarks 13 methods for cleaning noisy preference data.
- The Dataset Nutrition Label. 2018. The idea of a standard one-page label for a dataset.
- HelpSteer2. 2024. An openly licensed preference dataset, and a candidate for one of the three cards.
- Reward Hacking in Reinforcement Learning. Lilian Weng, November 2024. Background on how reward flaws get exploited.
- Reinforcement Learning from Human Feedback. Nathan Lambert. A book on RLHF, including reward modeling.
Overlap
The biases themselves are well documented in the papers above, and PrefCleanBench already compares methods that clean them. This design stops earlier: it measures and labels, and does not clean or retrain.
No existing open-source tool that prints this label from a Hugging Face dataset was confirmed on 11 November 2026. That describes what was checked, not proof that none exists.
Every link in this section was opened on 11 November 2026.
Main risk
The effects may be modest, and the comparison table names other people's datasets. Every cell has to be reproducible and the wording has to stay descriptive. Without the deferred half, a label shows a bias in the data, not that a trained model exploits it.
Skills this project is designed to show
Preference data, Reward modeling, Data curation.
Links
No public repository yet. It will be linked here when one exists.