CRUSTPairs: A Cross-Language Dataset of Paired C and Rust Solutions
Not on the map. Why?
Abstract (arXiv)
C-to-Rust migration is an active agenda, but no dataset pairs the two languages at the level of whole solutions to a shared problem. We present CRUSTPairs, 1857 C/Rust implementation pairs drawn from competitive programming archives, normalised, deduplicated, and stratified into difficulty tiers by zero-shot cross-language embedding similarity, with perrecord provenance and licensing. Cross-language retrieval is hard on this data, and harder than a single baseline would suggest: TF-IDF over shared identifiers reaches MRR 0.21 and so beats a pretrained code model at 0.19, which on the hardest quarter of the data scores 1.7x chance. Finetuning reaches 0.79, and lifts that hardest quarter 10x. Renaming every user identifier settles what is being learned: the finetuned models keep 96-97% of their accuracy without them, while the pretrained model keeps 66% - less than the lexical baseline does - and on structurally divergent pairs the finetuned models are better without identifiers than with them.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Builds on 12 of its 15 references that are in the map. Submitted 9 Nov 2026.
Builds on
12 of 15 references.
References · 12
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 15,591
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,337
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 765
- 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 684
- 2022UniXcoder: Unified Cross-Modal Pre-training for Code Representationcited by 371
- 2020Unsupervised Translation of Programming Languagescited by 270
- 2021CodeNet: A Large-Scale AI for Code Dataset for Learning a Diversity of Coding Taskscited by 208
- 2022XLCoST: A Benchmark Dataset for Cross-lingual Code Intelligencecited by 64
- 2021AVATAR: A Parallel Corpus for Java-Python Program Translationcited by 61
- 2023xCodeEval: A Large Scale Multilingual Multitask Benchmark for Code Understanding, Generation, Translation and Retrievalcited by 52
- 2025C2SaferRust: Transforming C Projects into Safer Rust with NeuroSymbolic Techniquescited by 23
- 2024Syzygy: Dual Code-Test C to (safe) Rust Translation using LLMs and Dynamic Analysiscited by 21
Built on by
Not cited yet.