More Capable, Less Faithful: A Multilingual Analysis of Mathematical (Un)Solvability Detection in LLMs
Official implementation of "More Capable, Less Faithful: A Multilingual Analysis of Mathematical (Un)Solvability Detection in LLMs", published at the Multilingual Representation Learning (MRL) Workshop at EMNLP 2026.
Requires Python 3.11.
There are two requirements files, since gemma-4-31B-it needs newer transformers/vllm
releases than every other model:
| Models | File |
|---|---|
| Qwen, Llama, Krikri, Alpaca models | requirements.txt |
gemma-4-31B-it |
requirements-gemma4.txt |
python -m venv .venv source .venv/bin/activate pip install -r requirements.txt # default pip install -r requirements-gemma4.txt # for gemma-4-31B-it
translation/translate_open_router.py needs an OPENROUTER_API_KEY
environment variable (or --api_key) if you use the OpenRouter translation
path instead of the local vLLM one.
The file data/MultilingualReliableDataset.zip contains the multilingual extension of the ReliableMath dataset (Xue et al., 2025) introduced in our paper. It includes English (original), French, and Greek versions of both solvable and unsolvable mathematical problems. This dataset is released under CC BY 4.0 — see data/LICENSE.
Contents:
solve_english_original.json
solve_french.json
solve_greek.json
unsol_english_original.json
unsol_french.json
unsol_greek.json
This repo contains the Python code that produced the paper's reported results: dataset translation, chain-of-thought generation and hidden-state extraction, LLM-as-a-judge verbalization annotation, and solvability-belief probing.
translate.py— local-model (vLLM) translation.translate_open_router.py— translation via the OpenRouter API
cot_extract_hidden_states.py— run a model over the (un)solvable splits under all prompts, saving per-token hidden states.judge.py— LLM-as-a-judge annotation of each response's verbalized solvability verdict.compute_solvable_accuracy.py— accuracy on the solvable split.
train_probe.py— trains per-language and pooled/universal probes.analyze_faithfulness.py— agreement rate between the universal SB probe and the judge's textual verdict, per model/language.
If you use this code or find our work useful, please cite:
@misc{zoumpoulidi2026capablefaithfulmultilingualanalysis, title={More Capable, Less Faithful: A Multilingual Analysis of Mathematical (Un)Solvability Detection in LLMs}, author={Maria-Eleni Zoumpoulidi and Nikolaos Xiros and Georgios Paraskevopoulos}, year={2026}, eprint={2608.30463}, archivePrefix={arXiv}, primaryClass={cs.CL}, url={https://arxiv.org/abs/2608.30463}, }
The code in this repository is licensed under the Apache 2.0 License — see LICENSE for details.
The dataset (data/MultilingualReliableDataset.zip) is a derivative of ReliableMath (Xue et al., 2025), which is released under CC BY 4.0; this dataset is likewise released under CC BY 4.0 with attribution to the original authors — see data/LICENSE.