When Many-Shot Prompting Fails: An Empirical Study of LLM Code Translation
19 Oct · Amirkia Rafiei Oskooei, Kaan Baturalp Cosdan, Husamettin Isiktas +1 · arXiv:2510.16809
Large Language Models (LLMs) with vast context windows offer new avenues for in-context learning (ICL), where providing many examples ("many-shot" prompting) is often assumed to enhance performance. We investigate this assumption for the complex task of code translation. Through a large-scale empirical study of over 90,000 translations, we systematically evaluate the impact of scaling in-context examples from…