cs.CLSep 19, 2026

Rethinking Pivot Programming Languages in Code Language Models

Authors: Andor Diera, Lukas Galke Poech, Matthias Tichy

Organizations: Ulm University Ulm, Germany · University of Southern Denmark Odense, Denmark

Abstract

Multilingual code language models transfer skills across programming languages (PLs), but whether any PL occupies a privileged pivot position remains contested: geometric analyses point to C-family languages and Go, while behavioral evidence highlights Python. We revisit this question under controls for representational anisotropy and length variation across PLs, two confounds that compromise prior cosine-based analyses. Across three code models on multilingual competitive-programming data, we study three views of cross-PL organization: pairwise PL geometry, PL-English alignment, and pivoted retrieval through candidate PL representation spaces. The results are relation-dependent. Code-code geometry reveals structured language regions but no universal center; code-English alignment favors high-level scripting languages; and pivoted retrieval favors different intermediate spaces for code-to-code and English-to-code transfer. These findings suggest that Python's special role is better understood as English-facing affinity than as universal geometric centrality.

Figures & tables

Appendix figures & tables13 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. CodePivot: Bootstrapping Multilingual Transpilation in LLMs via Reinforcement Learning without Parallel Corpora

    Apr 20, 2026Shangyu Li, Juyong Jiang, Meibo Ren +7Code TranslationRL for Language Models

  2. Large Language Models for Multilingual Code Intelligence: A Survey

    Apr 27, 2026Chao Jiang, Dugang Liu, Cheng Wen +6Code TranslationCode Generation