Can Large Language Models Generalize Procedures Across Representations?
Fangru Lin, Valentin Hofmann, Xingchen Wan, Weixing Wang, Zifeng Ding, Anthony G. Cohn, Janet B. Pierrehumbert
TL;DR
This work investigates whether LLMs can generalize procedures learned in symbolic representations (Graph/Code) to natural language tasks, using isomorphic data designs for asynchronous planning. It shows that standard post-training on symbolic data yields weak cross-representation transfer to NL, while a two-stage curriculum that first trains symbolically and then adapts to NL substantially improves cross-representation generalization across model families, achieving near parity with zero-shot GPT-4o on NL planning tasks. The authors argue that successful cross-representation generalization is best explained as generative analogy rather than frequency-based transfer, and demonstrate that their curriculum promotes this analogical reasoning. The findings highlight a practical path to robust cross-representation generalization in LLMs and underscore a cognitive perspective on analogy, with implications for scaling and curriculum design in reasoning tasks.
Abstract
Large language models (LLMs) are trained and tested extensively on symbolic representations such as code and graphs, yet real-world user tasks are often specified in natural language. To what extent can LLMs generalize across these representations? Here, we approach this question by studying isomorphic tasks involving procedures represented in code, graphs, and natural language (e.g., scheduling steps in planning). We find that training LLMs with popular post-training methods on graphs or code data alone does not reliably generalize to corresponding natural language tasks, while training solely on natural language can lead to inefficient performance gains. To address this gap, we propose a two-stage data curriculum that first trains on symbolic, then natural language data. The curriculum substantially improves model performance across model families and tasks. Remarkably, a 1.5B Qwen model trained by our method can closely match zero-shot GPT-4o in naturalistic planning. Finally, our analysis suggests that successful cross-representation generalization can be interpreted as a form of generative analogy, which our curriculum effectively encourages.
