You need to agree to share your Hugging Face information to access this dataset
This repository is publicly accessible, but you have to accept the conditions to access its files and content.
You are free to:
- Share β copy and redistribute the material in any medium or format for any purpose, even commercially.
- Adapt β remix, transform, and build upon the material for any purpose, even commercially.
The licensor cannot revoke these freedoms as long as you follow the license terms.
Under the following terms:
- Attribution β You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
- No additional restrictions β You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits.
Notices:
- You do not have to comply with the license for elements of the material in the public domain or where your use is permitted by an applicable exception or limitation.
- No warranties are given. The license may not give you all of the permissions necessary for your intended use. For example, other rights such as publicity, privacy, or moral rights may limit how you use the material.
Log in or Sign Up to review the conditions and access this dataset content.
Extended Code-Switched Reasoning (EnCoRe) Corpus
Extended Code-Switched Reasoning (EnCoRe) Corpus from Think Multilingual, Not Harder: A Framework for Analyzing and Teaching Code-Switched Reasoning (arXiv:2604.15490), including reasoning traces, annotations, fine-tuning data, and instance-level evaluation outputs.
Code: https://github.com/UMichBlablablab/EnCoRe
Loading
Every config loads by name:
from datasets import load_dataset
evals = load_dataset("Blablablab/EnCoRe", "eval-global-mmlu", split="train")
mt = load_dataset("Blablablab/EnCoRe", "sft-mt") # `train` and `validation` splits
All configs are Parquet. The configs whose files are JSON Lines or CSV (eval-* except eval-split,
taxonomy-lmer, taxonomy-classification, taxonomy-annotations-*, taxonomy-behavior-annotations)
are served from Parquet copies in parquet/<config>/, written with one schema per config; the JSON
Lines and CSV files themselves are unchanged at the paths below, and are what the code repository reads.
Contents
| Path | What it is |
|---|---|
parquet/<config>/ |
Parquet copies of the JSON Lines and CSV configs, with the same rows and file names (.parquet), for load_dataset. A column that only some files of a config have is null in the others; a file without rows has no copy. |
eval-outputs/<dir>/ |
Instance-level evaluation outputs with code-switching metrics, one row per model response. Files are named <condition>-<lang>-<Model>-test-v13[-global-piqa-nonparallel]-post.jsonl (Gemma-teacher files: <condition>-sw-Qwen3-8B-gemma-test-v14[-global-piqa-nonparallel-translated-instructions]-post.jsonl). Every row also includes model, condition and language fields. The gemma directories are the outputs from the teacher generalization experiments with Gemma as the teacher model in Swahili for Qwen3-8B as the student model (see paper appendices). The two -full directories hold every response, including truncated generations; see Evaluation outputs below. |
taxonomy/lmer/ |
Instances of the Code-Switched Reasoning (CoRe) corpus (paper section 3), one file per language (this is the input of the regression predicting reasoning task accuracy from code-switching behaviors, shown in Figure 2). correct is the re-scored label; see Evaluation outputs below. |
taxonomy/traces/ |
CoRe reasoning traces segmented into steps, one row per step (model, dataset, language, step_id, prompt, step_txt, question_id, input, thinking, answer, reference). |
taxonomy/traces-external/ |
CoRe English reasoning traces from external sources (s1K-claude-3-7-sonnet, OpenMathReasoning), segmented into steps with one row per step. |
taxonomy/classification/ |
The stratified sample of reasoning traces that was annotated with behaviors from our taxonomy (see paper Figure 2); cultural/ holds the CulturalBench/SocialEval/CultureScope sample. The taxonomy-classification config is classification_data_with_correctness_2025_07_21.jsonl (the sample with its score); the other files of the folder are downloads only. |
taxonomy/annotations/gemini-2025-07/<behavior>.jsonl |
Gemini 2.5 Flash annotations for each code-switching behavior from our taxonomy. Each row keeps the reasoning trace fields plus the raw batch request and response from Google's API. Includes instances generated from all datasets in paper appendix except CulturalBench, CultureScope, and SocialEval. |
taxonomy/annotations/gemini-2025-09/<behavior>.jsonl |
Gemini 2.5 Flash annotations for each code-switching behavior from our taxonomy. Instances are generated using prompts from CulturalBench, CultureScope, and SocialEval. Each row keeps the reasoning trace fields plus the raw batch request and response from Google's API. |
taxonomy/annotations/brainstorming/ |
Gemini 2.5 Flash analyses of code-switching patterns in CoRe corpus reasoning instances used to develop our behavioral taxonomy (see paper section 3.1). |
taxonomy/annotations/merged/ |
Annotations of code-switching behaviors on the CoRe sample described in paper section 3.1, merged so that there is one row per reasoning trace recording all of that instance's behavioral annotations. |
taxonomy/annotations/human/ |
Human gold labels of code-switched reasoning behaviors and the samples they were drawn from (see paper section 3). |
taxonomy/fluency/ |
Per-language fluency ratings and word-level language identification for the results from paper section 3.2 (Figure 2). |
taxonomy/generations/<benchmark>/ |
Raw model generations for developing the behavioral taxonomy from paper section 3. |
sft/train/<condition>/<lang>/<model>/{train,val}.parquet |
The supervised fine-tuning set of every fine-tuned cell in the final results, as passed to LLaMA-Factory (tokenised columns included). pp is the reasoning-prompt-translation-to-English SFT condition; *-gemma-teacher are the Gemma-teacher sets. |
sft/train/dataset_info.json |
LLaMA-Factory registry of the files in sft/train/, under the dataset names the training YAMLs of the code repository use (see below). |
eval-split/ |
The evaluation split (reasoning-eval/<lang>/) and baseline generations on it. |
misc/ |
Machine translation quality evaluation tables. |
MANIFEST.sha256 |
Checksums of every file. |
Evaluation outputs
Each benchmark has two sets of evaluation outputs. Use the one the analysis you want to reproduce used:
| Config | Rows | Used for |
|---|---|---|
eval-global-mmlu |
66,706 | Code-switching behavior analyses (paper Figures 3 and 4, mediation analysis in Figure 5 and appendix); together with eval-global-piqa these are the 80,532 responses in the paper. |
eval-global-piqa |
13,826 | Same as above. |
eval-global-mmlu-full |
70,500 | Accuracy tables and the accuracy-gain models (appendices); also Figure 5. |
eval-global-piqa-full |
14,100 | Same as above. |
eval-gemma-teacher-global-mmlu, eval-gemma-teacher-global-piqa |
1,982 and 400 | Gemma-teacher experiments (appendix). |
- The
-fullsets additionally hold responses that reached the token limit without closing their reasoning (no</think>), so they have no final answer and reasoning cannot be separated from answer. For these instances, code-switching metrics are undefined. - The smaller sets leave those responses with undefined metrics out for code-switching analyses. Use the
-fullsets for computing raw reasoning task accuracy only. correctin all Global MMLU evaluation outputs (eval-global-mmlu,eval-global-mmlu-full,eval-gemma-teacher-global-mmlu) is the label for the answer parsed from the model response.pred_letterandgold_letterare the parsed and reference options, andpred_sourcenames the regex matching rule that found the answer (boxed,phrase,paren, ...;no_thinking_terminatorfor a truncated generation).taxonomy/lmer/is scored in the same way;pred_letter/gold_letter/pred_label/gold_label/pred_source(where present) describe the parse.
Fine-tuning with LLaMA-Factory
sft/train/dataset_info.json registers every file in sft/train/ under the name that the
dataset: / eval_dataset: lines of yaml/<task>/<lang>/<model>.yaml in the code repository
refer to. Download sft/train/ and point dataset_dir at it:
hf download Blablablab/EnCoRe --repo-type dataset --include "sft/train/*" --local-dir data-release # `huggingface-cli download` on older huggingface_hub
llamafactory-cli train yaml/mt/sw/qwen3-8b.yaml dataset_dir=data-release/sft/train
In the code repository, bash shell/fetch-encore.sh downloads this dataset and links the
evaluation outputs and taxonomy/lmer/ into the paths its regression and table scripts read
(bash shell/fetch-encore.sh --only sft for the SFT sets).
- Entries read the
instruction,inputandoutputcolumns; thehistorycolumn was not used in training. - The Gemma-teacher configs (
*-gemma.yaml) exist for the Qwen3-8B student only.
Additional usage notes
- The
modelfield and file names use several spellings of the same model:Qwen3-8B/Qwen3-8B-results;DeepSeek-R1-Distill-Llama-8B/llama/Llama-8B/deepseek-llama/deepseek-llama8b;Phi-4-reasoning/microsoft-Phi-4-reasoning/phi4/Phi4/Phi-4. - The
sft/train/mt/files have the fieldssource_text,target_textandlaser_scorewhich hold the sentence pair and its score. sft/train/pp/ig/r1-distill-llama-8b/val.parquetis the intended validation split, but the released adapter's logged eval loss was computed on its train set by mistake (a typo in our local dataset registry). The adapter weights are unaffected: no checkpoint was selected on eval loss.sft/train/langbridge/sw/r1-distill-llama-8b/{train,val}.parquetare identical to theqwen3-8bfiles: the Llama Swahili English-language-reasoning SFT set was token-budgeted with the Qwen3-8B tokenizer by mistake. The text columns, which are what training reads, are unaffected, and these are the files the released adapter was trained on. The 511 train examples come to 999,495 label tokens under the Llama tokenizer (999,982 under Qwen3-8B; budget 1,000,000), so a Llama-token-budgeted selection would differ only marginally.- Rows derived from sources whose license does not allow redistribution (UniMoral, CultureScope, Kimi-K1.5-Distill-data, s1k-magistral-small-2506, SwitchLingua) are not part of this release.
License
Our data is released under CC-BY-4.0. Parts derived from other datasets keep the terms of those datasets:
| Source | Identifier | License | Note |
|---|---|---|---|
| global-mmlu | CohereLabs/Global-MMLU, CohereLabs/Global-MMLU-Lite | Apache-2.0 | Keep attribution and license notice. |
| mmlu-prox | li-lab/MMLU-ProX, li-lab/MMLU-ProX-Lite | MIT | |
| global-piqa | mrlbenchmarks/global-piqa-nonparallel | CC-BY-SA-4.0 | Forbids training AI systems on Global PIQA or on synthetic data seeded from it. |
| bbeh | google-deepmind/bbeh (GitHub) | CC-BY-4.0 (data), Apache-2.0 (code) | |
| socialeval | thu-coai/SocialEval (GitHub) | MIT | Repository-wide MIT license covers code and data. |
| culturalbench | kellycyy/CulturalBench | CC-BY-4.0 | |
| blend | uilab/BLEnD (was nayeon212/BLEnD) | CC-BY-SA-4.0 | |
| s1k | simplescaling/s1K-1.1 | MIT | |
| s1k-claude | simplescaling/s1K-claude-3-7-sonnet | MIT | |
| openmath | nvidia/OpenMathReasoning | CC-BY-4.0 | |
| nllb | allenai/nllb | ODC-By 1.0 | Users are also bound by the terms of the original bitext sources. |
Model outputs are also subject to the terms of the models that produced them.
AI Use Statement
In this work, we used generative AI tools for generating synthetic data sets, help developing theoretical models and conceptual frameworks, designing and providing feedback on research methodology and experiments, implementing methods, assisting with translation, cleaning and reformatting datasets, supporting qualitative and thematic data analysis, and interpreting results. We have not used generative AI tools for formulating mathematical claims, providing critical ingredients for proving mathematical claims, assisting in the writing of proofs, or proposing or refining hypotheses, and the aforementioned tasks are not applicable to this work. Additionally, we used generative AI tools for creating and modifying scientific figures and images, suggesting experimental parameters, creating and editing software code, creating artifacts, brainstorming, sourcing/searching for information, editing the research paper to improve readability, identifying relevant literature, and proposing the title and keywords for the research paper. We have reviewed all AI-assisted work. LLM-generated code was verified and tested for correctness, synthesized data was manually reviewed for quality, and cited literature was human-reviewed before incorporation into the paper. We take responsibility for the final content of this work, including text, claims or artifacts produced with the aid of generative AI.
Citation
@misc{lin2026thinkmultilingualharderframework,
title={Think Multilingual, Not Harder: A Framework for Analyzing and Teaching Code-Switched Reasoning},
author={Eleanor M. Lin and David Jurgens},
year={2026},
eprint={2604.15490},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2604.15490},
}
- Downloads last month
- 53