Code, datasets, and frozen experiment artifacts for Recognition–Refusal Misalignment in LLMs: Why Models Answer Structurally Unanswerable Questions (EMNLP 2026 Main Conference).
Proceedings · arXiv · Hugging Face datasets · Pipeline guide · Figure regeneration
Across 11 instruction-tuned models (1.7B–70B), a one-dimensional direction detects structurally unanswerable math/code prompts with mean AUC 0.939, yet is nearly orthogonal to the safety-refusal direction (mean cosine 0.087).
Yucheng Du (University of Southern California; email) and Xiyang Hu (Arizona State University; correspondence).
math800 and code800 each contain 800 matched answerable/unanswerable pairs (1,600 rows). Both are self-built, frozen datasets with LLM-drafted candidates and deterministic verification.
pip install datasetsfrom datasets import load_dataset
repo_id = "yucheng-du/recognition-refusal-misalignment"
math = load_dataset(repo_id, "math800", split="test")
code = load_dataset(repo_id, "code800", split="test")
assert len(math) == len(code) == 1600The Hub test split contains each complete frozen set, not the paper's experimental holdout. Rows include id, form, answerable (A/U), and prompt; recover the pair key with row["id"][:-1] (there is no pair_id column).
The Hub JSONL files are byte-identical to this release; the dataset card records source commit and SHA-256 checksums. See the data guide for construction, schema, and the auxiliary datasets. The Hub release includes only math800 and code800.
Run from the repository root:
pip install -r requirements.txt
python3 scripts/verify_core_conclusions.pyThis lightweight check validates the shipped aggregate JSONs and provenance metadata. The figure guide provides regeneration commands and inputs; the pipeline guide covers extraction, probing, intervention, and steering.
Raw reruns require separately downloaded model weights, approximately 151 GB for the omitted activation tree, and a GPU for intervention/steering. Some label-dependent aggregates also require effective label TSVs that are not included. The released frozen aggregates are the reproducibility targets for those comparisons; they use LLM-assisted labels with provisional audit-subset fills or candidate-label passthrough, not completed human adjudication. See rerun requirements and label provenance.
Additional resources:
- Frozen experiment artifacts and intervention factsheet
- Multidimensional robustness checks
- Theoretical derivations
The published paper and arXiv preprint are available. Manuscript source is maintained separately and is not included in this release.
@inproceedings{du-hu-2026-recognition,
title = "Recognition{--}Refusal Misalignment in {LLM}s: Why Models Answer Structurally Unanswerable Questions",
author = "Du, Yucheng and
Hu, Xiyang",
editor = "Lee, Hung-Yi and
Dev, Sunipa and
Li, Jessy and
Elliott, Desmond",
booktitle = "Proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing",
month = oct,
year = "2026",
address = "Budapest, Hungary",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2026.emnlp-main.1078/",
pages = "24766--24794",
ISBN = "979-8-89176-459-0"
}The MIT License covers original code and self-created artifacts, including math800 and code800. Third-party data and model weights retain their upstream terms:
fact800: SQuAD 2.0 / CC BY-SA 4.0.- AbstentionBench-GSM8K: CC BY-NC 4.0 and source attribution.
- Difficulty-controlled GSM8K: MIT and source attribution.
- FalseQA: fetch-only; not redistributed, because upstream had no explicit license at release time.