Skip to content

Add availability heuristic bias to CoBRA pipeline#3

Open
tbhat-ops wants to merge 1 commit intoAISmithLab:masterfrom
tbhat-ops:add-availability-bias
Open

Add availability heuristic bias to CoBRA pipeline#3
tbhat-ops wants to merge 1 commit intoAISmithLab:masterfrom
tbhat-ops:add-availability-bias

Conversation

@tbhat-ops
Copy link
Copy Markdown

Summary

  • Adds availability heuristic as a new bias in the CoBRA pipeline.

Paradigms included:

  • judgment_of_word_frequency
  • fame_frequency_and_recall

Files Created (3)

data/availability/availability_judgment_of_word_frequency.json
24 scenarios testing availability bias via letter/prefix position frequency judgment across 3 sources (English word, city name, last name) × 8 units.

data/availability/availability_fame_frequency_and_recall.json
15 scenarios testing availability bias via name-list frequency judgment, each with ~39 mixed-order names split into salient/less-salient groups across 5 domains.

examples/availability/utils_availability.py
Three functions: load_availability_scenarios() to load seed data with scenario-type dispatch, create_availability_dataset() for hand-crafted RepE training, create_availability_dataset_from_generated() for generated-data RepE training.

Files Modified (6)

examples/unified_bias/utils_bias.py (6 edits)
Registered availability in the central registry: added availability_dir to sys.path, imported utils_availability functions, added config dict entry with both paradigms, added dispatcher in load_experiment_scenarios(), added 'availability' to get_all_bias_types(), added MCQ options + templates for both paradigms in get_mcq_options_and_templates().

control/prompt_experiment.py (1 edit)
Added availability entry to bias_descriptions dict in _generate_likert_control_prompt() with terse descriptions for 0% (statistical) vs 100% (recency-biased) endpoints.

control/api_prompt_experiment.py (1 edit)
Added availability entry to bias_descriptions dict in _generate_likert_control_prompt() with verbose descriptions matching API-layer style.

examples/unified_bias/run_pipelines.py (1 edit)
Updated --bias argument help text to include 'availability' in the list of allowed bias types.

generator/scenario_generator.py (3 edits)
Added "availability" key to self.bias_prompts dict, added _get_availability_generation_prompt() method with both paradigm examples and generation instructions, updated argparse choices and default lists and generate_full_dataset() default to include 'availability'.

.gitignore updates to avoid committing plots generated in test run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant