Can Large Language Models Generalize Procedures Across Representations?

Fangru Lin, Valentin Hofmann, Xingchen Wan, Weixing Wang, Zifeng Ding, Anthony G Cohn, Janet B. Pierrehumbert
Proceedings of the 43rd International Conference on Machine Learning, PMLR 306:74352-74377, 2026.

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 reinforcement learning 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. The dataset and code used in this paper can be found https://github.com/fangru-lin/procedure_generalization_llm.

Cite this Paper


BibTeX
@InProceedings{pmlr-v306-lin26k, title = {Can Large Language Models Generalize Procedures Across Representations?}, author = {Lin, Fangru and Hofmann, Valentin and Wan, Xingchen and Wang, Weixing and Ding, Zifeng and Cohn, Anthony G and Pierrehumbert, Janet B.}, booktitle = {Proceedings of the 43rd International Conference on Machine Learning}, pages = {74352--74377}, year = {2026}, editor = {Zhang, Tong and Dudik, Miroslav and Jaggi, Martin and Agarwal, Alekh and Li, Sharon and Schuurmans, Dale and Zhu, Jerry and Berkenkamp, Felix and Dong, Hanze and Bietti, Alberto}, volume = {306}, series = {Proceedings of Machine Learning Research}, month = {06--11 Jul}, publisher = {PMLR}, pdf = {https://raw.githubusercontent.com/mlresearch/v306/main/assets/lin26k/lin26k.pdf}, url = {https://proceedings.mlr.press/v306/lin26k.html}, 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 reinforcement learning 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. The dataset and code used in this paper can be found https://github.com/fangru-lin/procedure_generalization_llm.} }
Endnote
%0 Conference Paper %T Can Large Language Models Generalize Procedures Across Representations? %A Fangru Lin %A Valentin Hofmann %A Xingchen Wan %A Weixing Wang %A Zifeng Ding %A Anthony G Cohn %A Janet B. Pierrehumbert %B Proceedings of the 43rd International Conference on Machine Learning %C Proceedings of Machine Learning Research %D 2026 %E Tong Zhang %E Miroslav Dudik %E Martin Jaggi %E Alekh Agarwal %E Sharon Li %E Dale Schuurmans %E Jerry Zhu %E Felix Berkenkamp %E Hanze Dong %E Alberto Bietti %F pmlr-v306-lin26k %I PMLR %P 74352--74377 %U https://proceedings.mlr.press/v306/lin26k.html %V 306 %X 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 reinforcement learning 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. The dataset and code used in this paper can be found https://github.com/fangru-lin/procedure_generalization_llm.
APA
Lin, F., Hofmann, V., Wan, X., Wang, W., Ding, Z., Cohn, A.G. & Pierrehumbert, J.B.. (2026). Can Large Language Models Generalize Procedures Across Representations?. Proceedings of the 43rd International Conference on Machine Learning, in Proceedings of Machine Learning Research 306:74352-74377 Available from https://proceedings.mlr.press/v306/lin26k.html.

Related Material