arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2602.03542cs.CLcs.LG
收藏

大型语言模型能否跨表示泛化过程?

Can Large Language Models Generalize Procedures Across Representations?

Stanford University(斯坦福大学)

Fangru Lin, Valentin Hofmann, Xingchen Wan, Weixing Wang, Zifeng Ding, Anthony G. Cohn, Janet B. Pierrehumbert

AI总结:

研究大型语言模型在代码、图与自然语言等不同表示间泛化过程的能力,提出两阶段强化学习课程来弥合差距。

摘要:

大型语言模型(LLMs)在符号表示(如代码和图)上进行了广泛的训练和测试,然而现实世界的用户任务通常用自然语言指定。LLMs 能在多大程度上跨这些表示进行泛化?在这里,我们通过研究涉及以代码、图和自然语言表示的过程(例如,规划中的调度步骤)的同构任务来探讨这个问题。我们发现,仅在图或代码数据上使用流行的后训练方法训练 LLMs 并不能可靠地泛化到相应的自然语言任务,而仅用自然语言训练可能导致效率低下的性能提升。为了解决这一差距,我们提出了一种两阶段强化学习课程,首先在符号数据上训练,然后在自然语言数据上训练。该课程显著提高了跨模型家族和任务的模型性能。值得注意的是,通过我们的方法训练的 1.5B Qwen 模型在自然规划中几乎可以匹配零样本 GPT-4o。最后,我们的分析表明,成功的跨表示泛化可以解释为一种生成性类比的形式,而我们的课程有效地鼓励了这种类比。本文使用的数据集和代码可在此处找到。

英文摘要:

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 \href{https://github.com/fangru-lin/procedure_generalization_llm}{here}.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑