--- dataset_info: features: - name: id dtype: string - name: source dtype: string - name: source_license dtype: string - name: source_id dtype: string - name: type dtype: string - name: instructions dtype: string - name: state dtype: string - name: options list: string - name: option_descriptions list: string - name: candidate dtype: string - name: gold dtype: string - name: gold_index dtype: int64 - name: display_perm list: int64 - name: teacher_option_logprobs list: float64 - name: teacher_temperature dtype: float64 - name: teacher_shift dtype: float64 - name: teacher_probs list: float64 - name: teacher_letter_mass dtype: float64 - name: human_probs list: float64 - name: soft_label list: float64 - name: soft_label_source dtype: string - name: corrected_soft_label list: float64 - name: soft_label_corrected dtype: bool splits: - name: train num_bytes: 12924237 num_examples: 16995 - name: validation num_bytes: 1379863 num_examples: 1799 - name: test num_bytes: 1377093 num_examples: 1797 - name: heldout num_bytes: 1915788 num_examples: 1000 download_size: 11013876 dataset_size: 17596981 configs: - config_name: default data_files: - split: train path: data/train-* - split: validation path: data/validation-* - split: test path: data/test-* - split: heldout path: data/heldout-* language: - en license: cc-by-4.0 task_categories: - text-classification pretty_name: Calibrated Typed Decisions tags: - calibration - soft-labels - distillation - typed-decisions --- # calibrated-typed-decisions (v2.1) Typed decisions (multiple choice and yes/no) over short English texts. Every row has a human gold label and a calibrated soft label, plus the raw ingredients to rebuild the soft label your own way. Earlier versions stay available: `load_dataset("m-lagnajit/calibrated-typed-decisions", revision="v1.0")` and `revision="v2.0"`. ## What changed in v2.1 - **New column `corrected_soft_label`**: identical to `soft_label`, except on rows where the calibrated teacher's top pick disagreed with the human answer. There, the teacher's value on its top pick and its value on the right answer are swapped: the teacher's numbers are kept, but the right answer gets the largest one. If the right answer is already tied for the teacher's largest value, the row is unchanged. Rater-labelled GoEmotions rows are unchanged; held-out rows stay empty. - **New column `soft_label_corrected`**: `true` on exactly the rows where that swap changed the values. - Nothing else changed. `soft_label`, `teacher_probs` and every other value are exactly as in v2.0. How often the teacher's top pick was wrong (train, validation and test): | source | type | rows changed | teacher-labelled rows | share | |---|---|---|---|---| | amazon_massive_intent | choice | 220 | 2516 | 8.7% | | amazon_massive_intent | noul | 108 | 1076 | 10.0% | | amazon_polarity | choice | 93 | 2496 | 3.7% | | amazon_polarity | noul | 36 | 1104 | 3.3% | | banking77 | choice | 284 | 2484 | 11.4% | | banking77 | noul | 146 | 1116 | 13.1% | | clinc_oos | choice | 123 | 2461 | 5.0% | | clinc_oos | noul | 104 | 1139 | 9.1% | | scicite | choice | 408 | 1832 | 22.3% | | scicite | noul | 205 | 768 | 26.7% | ## What changed from v1 - **GoEmotions soft labels come from the human raters**, not the teacher. On 600 GoEmotions validation and test questions, the teacher's top pick disagreed with the human answer 38.5% of the time, which is why GoEmotions soft labels in v2 come from the raters instead. - **Options carry short descriptions** (`card arrival: the customer is waiting for a card`). Some are hand-written; the rest were written by the teacher from real training examples. - **Harder distractors:** about half the wrong options are the labels closest to the right answer (by embedding similarity of label and description), so questions aren't trivially easy. - **More data:** 3,000 training questions per source (2,000 for SciCite), plus SciCite as a new source. - **A held-out split** from PubMedQA (see below). ## Splits | split | rows | use | |---|---|---| | train | 16995 | training | | validation | 1799 | choosing epochs, fitting dials | | test | 1797 | final evaluation on the same sources | | heldout | 1000 | **test only**: a new source and a new kind of decision | **Do not train on `heldout`, and do not fit dials on it.** It's 1,000 expert-labelled PubMedQA questions (yes / no / maybe from an abstract), there to measure how well a model decides on a label set and domain it has never seen. ## Fields | field | meaning | |---|---| | `type` | `choice` or `noul` (yes/no; options are always `["false", "true"]`) | | `instructions`, `state` | the question, and the text being judged | | `options`, `option_descriptions` | option labels in canonical order, and their descriptions | | `candidate` | yes/no rows: the label being asked about | | `gold`, `gold_index` | the human label from the source dataset | | `soft_label` | **the recommended training target**: rater votes for GoEmotions, the calibrated teacher otherwise | | `soft_label_source` | `human_raters`, `teacher`, or `none (held out)` | | `corrected_soft_label` | `soft_label` with the teacher's wrong top picks corrected (see v2.1 above) | | `soft_label_corrected` | `true` where `corrected_soft_label` differs from `soft_label` | | `human_probs` | GoEmotions only: rater votes per option, plus 0.1 pseudo-votes per option | | `teacher_option_logprobs` | the teacher's raw log-probability of each option's answer letter | | `teacher_temperature`, `teacher_shift` | the dial and nudge fit on validation for this row's group | | `teacher_probs` | the calibrated teacher distribution | | `teacher_letter_mass` | how much probability the teacher put on answer letters at all | | `display_perm` | the option order the teacher saw | | `source_id` | the row's id in its source dataset, where one exists | ## Which training target to use We trained ModernBERT-base students on the train split with 6 different targets, each with **3 random seeds** (3 epochs; best epoch chosen on validation log loss). Every student gets **2 temperature dials** fitted on validation: one for choice questions, and one plus a yes/no shift for yes/no questions. (Cross-fitting on validation preferred this to one dial per source and type, and to no dial.) | run | target | |---|---| | A | one-hot `gold` | | B | `gold`, label-smoothed (0.1) | | C | `soft_label` | | D | `0.5 * one_hot(gold) + 0.5 * soft_label` | | E | `corrected_soft_label` | | F | `0.5 * one_hot(gold) + 0.5 * corrected_soft_label` | We tested every student three ways: | test | what's new to the student | questions | |---|---|---| | **test split** | nothing: the same six sources | 1,797 | | **SNIPS** | a new label set of the same kind (voice-assistant intents) | 1,050 | | **held-out PubMedQA** | a new domain *and* a new kind of judgment (does the evidence support yes / no / maybe?) | 1,000 | ### 1. Familiar data: the test split Single students, mean over 3 seeds (lowest–highest): | run | accuracy | ECE | log loss | |---|---|---|---| | A | 0.912 (0.909–0.917) | 0.011 (0.006–0.019) | 0.247 (0.230–0.267) | | B | 0.918 (0.913–0.923) | 0.022 (0.016–0.026) | 0.281 (0.268–0.289) | | C | 0.892 (0.886–0.898) | 0.021 (0.020–0.023) | 0.310 (0.307–0.313) | | D | 0.915 (0.909–0.918) | 0.016 (0.015–0.019) | 0.248 (0.241–0.256) | | E | 0.912 (0.908–0.915) | 0.015 (0.014–0.016) | 0.261 (0.252–0.267) | | F | 0.919 (0.917–0.921) | 0.015 (0.015–0.016) | 0.245 (0.241–0.249) | Ensembles (each run's 3 calibrated students averaged): | run | accuracy | ECE | log loss | |---|---|---|---| | A | 0.922 | 0.018 | 0.221 | | B | 0.925 | 0.009 | 0.249 | | C | 0.895 | 0.013 | 0.292 | | D | 0.920 | 0.008 | 0.231 | | E | 0.918 | 0.013 | 0.241 | | F | 0.928 | 0.006 | 0.225 | ### 2. A new label set of the same kind: SNIPS [SNIPS](https://github.com/sonos/nlu-benchmark) (2017 custom intents; CC0-1.0; please cite Coucke et al., 2018, *Snips Voice Platform*) is **not part of this dataset**: we used it for evaluation only. We built 1,050 questions from it, 150 per intent, in the same format as this dataset (descriptions, 3–7 options, about 30% yes/no). None of its requests appear word-for-word in our training data. Seeds 1 and 2 here come from students retrained with the same recipe and seeds (their weights hadn't been kept); on the test split they agreed with the original students on 91.8%–98.4% of top picks, and 8 of 12 fell within the original three-seed range. Single students, mean over 3 seeds, with MASSIVE (a seen dataset of the same kind) alongside: | run | SNIPS accuracy | SNIPS ECE | SNIPS log loss | MASSIVE accuracy (seen) | MASSIVE log loss (seen) | |---|---|---|---|---|---| | A | 0.949 (0.943–0.959) | 0.028 (0.027–0.028) | 0.155 (0.135–0.177) | 0.948 (0.936–0.960) | 0.164 (0.141–0.196) | | B | 0.948 (0.939–0.958) | 0.033 (0.031–0.034) | 0.175 (0.155–0.196) | 0.951 (0.946–0.956) | 0.170 (0.161–0.186) | | C | 0.951 (0.946–0.956) | 0.018 (0.010–0.027) | 0.152 (0.128–0.169) | 0.921 (0.906–0.929) | 0.211 (0.183–0.244) | | D | 0.953 (0.946–0.959) | 0.010 (0.008–0.013) | 0.137 (0.120–0.153) | 0.955 (0.949–0.963) | 0.135 (0.121–0.151) | | E | 0.960 (0.959–0.961) | 0.010 (0.004–0.015) | 0.125 (0.122–0.127) | 0.949 (0.946–0.953) | 0.147 (0.129–0.163) | | F | 0.950 (0.947–0.954) | 0.016 (0.011–0.022) | 0.139 (0.137–0.143) | 0.954 (0.946–0.966) | 0.138 (0.129–0.145) | Ensembles: | run | accuracy | ECE | log loss | |---|---|---|---| | A | 0.961 | 0.044 | 0.143 | | B | 0.954 | 0.028 | 0.153 | | C | 0.958 | 0.026 | 0.143 | | D | 0.956 | 0.018 | 0.128 | | E | 0.965 | 0.020 | 0.114 | | F | 0.958 | 0.020 | 0.126 | Guessing evenly among the shown options would score 0.303 accuracy and 1.304 log loss. ### 3. A new kind of judgment: held-out PubMedQA Single students, mean over 3 seeds: | run | accuracy | ECE | log loss | |---|---|---|---| | A | 0.580 (0.538–0.614) | 0.130 (0.097–0.171) | 0.970 (0.945–0.997) | | B | 0.579 (0.568–0.585) | 0.092 (0.020–0.149) | 0.987 (0.957–1.005) | | C | 0.583 (0.576–0.592) | 0.055 (0.027–0.106) | 0.940 (0.926–0.952) | | D | 0.574 (0.548–0.595) | 0.044 (0.028–0.064) | 0.947 (0.878–1.017) | | E | 0.596 (0.591–0.605) | 0.086 (0.048–0.107) | 0.935 (0.924–0.946) | | F | 0.595 (0.584–0.607) | 0.046 (0.019–0.068) | 0.914 (0.888–0.953) | Ensembles: | run | accuracy | ECE | log loss | |---|---|---|---| | A | 0.595 | 0.153 | 0.964 | | B | 0.582 | 0.052 | 0.948 | | C | 0.595 | 0.065 | 0.932 | | D | 0.589 | 0.054 | 0.928 | | E | 0.587 | 0.081 | 0.926 | | F | 0.595 | 0.051 | 0.899 | Always answering "yes" scores 0.552 accuracy; always predicting the label frequencies gives a log loss of 0.937. ### What held up under both checks Listed only if it held in **every seed** *and* in a paired bootstrap over questions for the ensembles. **Test split:** - C worse than A on accuracy - C worse than A on log loss - C worse than B on accuracy - C worse than B on log loss - D better than B on log loss - F better than B on log loss - F better than E on accuracy - F better than E on log loss - F better than C on accuracy - F better than C on log loss **SNIPS:** - C better than A on ECE - D better than A on ECE - D better than A on log loss - D better than B on ECE - D better than B on log loss - E better than A on ECE - E better than A on log loss - E better than B on accuracy - E better than B on ECE - E better than B on log loss - F better than A on ECE - F better than B on log loss - F worse than E on log loss **Held-out PubMedQA:** - C better than A on ECE - C better than A on log loss - D better than A on ECE - E better than A on log loss - E better than B on log loss - F better than A on ECE - F better than A on log loss - F better than B on log loss ### In short: which target, for what - **No single target wins everywhere.** Pulling the target toward the one-hot `gold` helps on familiar data and hurts on new label sets; the right choice depends on where the student will be used. - **For data like the six training sources: F.** No target was reliably better than F on the test split. A with a dial is statistically tied with it (ensemble log loss 0.221 vs 0.225). - **For a new label set of the same kind: E.** On SNIPS, E's ensemble had the lowest log loss (0.114). Under both checks it beat A on ECE and log loss; B on accuracy, ECE and log loss; F on log loss, and nothing was reliably better than it. (On SNIPS, E was compared head-to-head with A, B and F only.) - **For a new kind of judgment, no target is reliably good.** F's ensemble had the best held-out log loss (0.899, against 0.937 for predicting the label frequencies) and beat A on ECE and log loss; B on log loss under both checks; against D and E the difference wasn't settled. - **Calibration is good where the skill exists.** Ensemble ECE for F: 0.006 on test, 0.020 on SNIPS; for E: 0.013 and 0.020. On PubMedQA the students are fairly honest (F: 0.051) but know little: the gap there is skill, not honesty. - **`soft_label` alone (C) is the weakest on familiar data** (reliably behind A on accuracy and log loss; B on accuracy and log loss; F on accuracy and log loss), because it inherits the teacher's mistakes. - **Judge targets on several seeds.** Retraining alone moved one run's held-out accuracy by 0.076 (run A). ## Teacher calibration on the test split | source | type | n | acc raw | acc calibrated | T | shift | fit | ECE raw | ECE calibrated | |---|---|---|---|---|---|---|---|---|---| | `allenai/scicite` | choice | 214 | 0.799 | 0.799 | 5.46 | +0.00 | own | 0.190 | 0.030 | | `allenai/scicite` | noul | 86 | 0.674 | 0.744 | 4.89 | +0.70 | own | 0.237 | 0.067 | | `clinc/clinc_oos` | choice | 202 | 0.896 | 0.896 | 3.92 | +0.00 | own | 0.096 | 0.067 | | `clinc/clinc_oos` | noul | 98 | 0.776 | 0.867 | 3.22 | +2.00 | own | 0.211 | 0.038 | | `google-research-datasets/go_emotions` | choice | 216 | 0.569 | 0.569 | 8.86 | +0.00 | own | 0.398 | 0.088 | | `google-research-datasets/go_emotions` | noul | 84 | 0.619 | 0.738 | 9.46 | +0.60 | own | 0.353 | 0.110 | | `mteb/amazon_massive_intent` | choice | 212 | 0.901 | 0.901 | 5.46 | +0.00 | own | 0.089 | 0.028 | | `mteb/amazon_massive_intent` | noul | 85 | 0.859 | 0.871 | 4.10 | +1.35 | own | 0.142 | 0.092 | | `mteb/amazon_polarity` | choice | 190 | 0.963 | 0.963 | 5.46 | +0.00 | own | 0.037 | 0.020 | | `mteb/amazon_polarity` | noul | 110 | 0.955 | 0.955 | 1.98 | -2.10 | own | 0.052 | 0.022 | | `mteb/banking77` | choice | 216 | 0.921 | 0.921 | 5.11 | +0.00 | own | 0.070 | 0.020 | | `mteb/banking77` | noul | 84 | 0.905 | 0.905 | 4.68 | -0.05 | own | 0.093 | 0.067 | ## Sources - CLINC150 (Larson et al., 2019), CC-BY-3.0 - GoEmotions (Demszky et al., 2020), Apache-2.0; soft labels from its raw per-rater annotations - BANKING77 (Casanueva et al., 2020), PolyAI/banking77, CC-BY-4.0; loaded via mteb/banking77 - MASSIVE (FitzGerald et al., 2022), English subset, CC-BY-4.0; loaded via mteb/amazon_massive_intent - Amazon Review Polarity (Zhang et al., 2015), Apache-2.0 per fancyzhx/amazon_polarity; loaded via mteb/amazon_polarity - SciCite (Cohan et al., 2019), Apache-2.0 (authors' repository); downloaded from the authors' official link - PubMedQA (Jin et al., 2019), expert-labelled PQA-L subset, MIT. Held out: never used for training or calibration. ## Limitations - Teacher soft labels reflect one 4-bit 7B teacher's judgement, calibrated on average per group. - GoEmotions rater soft labels come from 3 raters per comment (5 when they disagreed), so they are coarse. - Teacher-written option descriptions were reviewed by sampling, not one by one. - Distractor difficulty depends on the embedding model (`BAAI/bge-small-en-v1.5`). - English only. Gold labels inherit any noise in the source datasets.