# Bridging the Knowledge Void: Inference-time Acquisition of Unfamiliar Programming Languages for Coding Tasks

Source: [Bridging the Knowledge Void: Inference-time Acquisition of Unfamiliar Programming Languages for Coding Tasks](<https://www.sota2.com/research/paper/698abba5c97a0b3e3b5ddfc3>)

Collection index: [llms.txt](<https://www.sota2.com/research/llms.txt>)

Data updated: 2026-02-11T05:00:04.178Z

Authors: Chen Shen, Wei Cheng, Jingyue Yang, Huan Zhang, Yuhan Wu, Wei Hu

Published: 2026-01-16T09:06:47.000Z

## Abstract

The proficiency of Large Language Models (LLMs) in coding tasks is often a reflection of their extensive pre-training corpora, which typically collapses when confronted with previously unfamiliar programming languages. Departing from data-intensive finetuning, we investigate the paradigm of Inference-time Language Acquisition (ILA), where an LLM masters an unfamiliar language through dynamic interaction with limited external resources. In this paper, we propose ILA-agent, a general ILA framework that equips LLMs with a set of behavioral primitives. By modeling essential human-like behaviors as a suite of tools, ILA-agent enables LLMs to incrementally explore, apply, and verify language knowledge through structured interactions with the official documentation and execution environment. To provide a rigorous evaluation in a low-resource setting, we construct Cangjie-bench, a multi-task benchmark based on the novel statically-typed language Cangjie. We instantiate ILA-agent for Cangjie and evaluate its performance across code generation, translation, and program repair tasks. Results using diverse LLMs demonstrate that ILA-agent significantly outperforms retrieval-augmented baselines. Further analysis of agent trajectories characterizes the emergent behavior patterns while highlighting persisting performance gaps.

## Recorded benchmark results

A research result applies to its stated dataset, split, metric and evaluation configuration. Compare like-for-like settings, preserve the metric's unit and direction, and distinguish paper-reported results from independent reproduction. The best result recorded here is not a claim of exhaustive, current global coverage.

- [Code Generation on Cangjie-bench](<https://www.sota2.com/research/sota/code-generation-on-cangjie-bench.md>): Code Generation; Cangjie-bench; Accuracy: 81.94.

- [Code Translation on Cangjie-bench](<https://www.sota2.com/research/sota/code-translation-on-cangjie-bench.md>): Code Translation; Cangjie-bench; ACC: 76.36.

- [Program Repair on Cangjie-bench](<https://www.sota2.com/research/sota/program-repair-on-cangjie-bench.md>): Program Repair; Cangjie-bench; ACC: 90.63.

- [Code Translation on LowTransEval (test)](<https://www.sota2.com/research/sota/code-translation-on-lowtranseval-test.md>): Code Translation; LowTransEval (test); Accuracy: 74.84.

## Original sources and implementation

[Original paper](<https://arxiv.org/abs/2602.06976>)

[PDF](<https://arxiv.org/pdf/2602.06976.pdf>)
