Skip to content

About

Code, data, and artifacts for Recognition–Refusal Misalignment in LLMs (EMNLP 2026).

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

Repository files navigation

Recognition–Refusal Misalignment in LLMs

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

Load the datasets

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 datasets
from 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) == 1600

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

Reproduce the released results

Run from the repository root:

pip install -r requirements.txt
python3 scripts/verify_core_conclusions.py

This 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:

Citation

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"
}

License

The MIT License covers original code and self-created artifacts, including math800 and code800. Third-party data and model weights retain their upstream terms:

About

Code, data, and artifacts for Recognition–Refusal Misalignment in LLMs (EMNLP 2026).

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages