All projects

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

  1. Read

    prefaudit hf://<dataset> loads a pairwise or ranked preference dataset from Hugging Face.

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

  3. Print

    A one-page card, a JSON file and a snippet for the dataset card.

Design diagram. Nothing in it is built yet.

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

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.

No public repository yet. It will be linked here when one exists.