Repository navigation
FEAT Add speciesist bias remote dataset loader - #3612
Open
Sam Tucker-Davis (samtuckerdavis) wants to merge 4 commits into
Open
Sam Tucker-Davis (samtuckerdavis) wants to merge 4 commits into
Sam Tucker-Davis (samtuckerdavis) wants to merge 4 commits into
Conversation
Loads the Speciesist Bias Prompts dataset from Hugging Face, pinned to a revision, and maps each row to a SeedPrompt with HarmCategory.OTHER. The source label speciesist_bias and the species, contexts, task, prompt_type and pair_id fields are kept in metadata. Adds unit tests, a docs entry and a references.bib entry. Refs microsoft#3501.
…ion, placeholder guard test
Point at stuckdavis/speciesist-bias-prompts, keep the new framing and bias_signal fields in metadata, set size to medium (109 rows), and update tests and the references.bib entry. Refs microsoft#3501.
HF_REVISION is now the commit the v0.2.0 tag on stuckdavis/speciesist-bias-prompts points to. Refs microsoft#3501.
|
Sam Tucker-Davis (@samtuckerdavis) please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
Contributor License AgreementContribution License AgreementThis Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”),
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds
_SpeciesistBiasDataset, a remote loader for the Speciesist Bias Prompts dataset, as discussed in #3501 with Roman Lutz (@romanlutz).stuckdavis/speciesist-bias-prompts, CC BY 4.0, with a dataset card). The loader pins the commit of thev0.2.0tag (HF_REVISION).pair_id. Split halves are emitted as independent seeds; compare the two responses that share apair_idto detect inconsistency.framing. Each row also has a one-sentencebias_signaldescribing what a biased answer would look like, for use by a scorer or as an attack objective.HarmCategory.OTHER. The source labelspeciesist_biasstays inmetadata["harm_category"], through an explicit alias override, so nothing falls through to the unknown-category warning.item_id,harm_category,prompt_type,species,contexts,task,framing,bias_signal,source,version, andpair_idfor split pairs.safety,bias,ethics;harm_categoriesspeciesist_bias; sizemedium; text only. Not taggeddefault(not a peer-reviewed or established benchmark).HarmCategory, no harm definition YAML and no scorer.Tests and Documentation
tests/unit/datasets/test_speciesist_bias_dataset.py: row mapping, REMOTE origin, harm category, metadata (with and withoutpair_id, and rows without the optionalframing/bias_signal), revision/split/cache passthrough, missing required fields, empty dataset, class metadata, and a guard that the source is pinned to a 40-character commit SHA.doc/code/datasets/1_loading_datasets.pyand the paired notebook (plusspeciesist_biasin the dataset-name output), and areferences.bibentry.