Papers

FSMem 框架揭示训练数据组织方式如何影响 LLM 参数化记忆形成

Internalized Experience: How Training Data Shapes Memory Formation in LLMs

Why we picked it

这篇论文用 FSMem 框架拆解了训练数据怎么影响 LLM 记住可复用的任务规则。几个结论很实用:动作种类多了规则反而难学,长短轨迹混合训练比只用长轨迹更省 token 且效果更好。做智能体训练或数据配比的人应该看看。

arXiv 论文提出 FSMem(Finite-State Machine Memory),一个基于状态转移的框架,用于构造训练数据并研究数据内容与组织方式如何影响 LLM 参数化记忆的形成。研究通过有效动作识别和执行结果预测两项任务评估规则复用,覆盖合成世界、经典规划和代码执行三类场景,并在代码任务上补充了下一步操作预测。

Body

实验发现几条系统性规律:在相同训练条件下,动作类型种类越多,即使未变的任务规则也更难被内化;而扩大训练数据以覆盖更广的状态-动作组合则普遍改善规则学习。模型在单一执行深度上训练会出现深度特化,训练与测试的执行长度相近时表现最好。基于这一发现,作者构造了混合长短轨迹的累积语料,能在使用更少训练 token 的同时超过仅用长轨迹训练的效果。

这些结果表明同一任务规则会因执行经验的构造方式不同而被不同地内化,对设计面向参数化记忆的训练数据有直接指导意义,对做智能体训练的数据团队尤其相关。

Original · arXiv cs.AI

Internalized Experience: How Training Data Shapes Memory Formation in LLMs

Parametric memory enables large language models (LLMs) to retain information from past experience and reuse it in subsequent tasks. Yet how training data supports the internalization of reusable task rules remains unclear. We introduce FSMem (Finite-State Machine Memory), a state-transition framework for constructing training data and studying how data content and organization shape memory formation. We evaluate rule reuse across synthetic worlds, classical planning, and code execution through valid-action identification and execution-outcome prediction, complemented by next-operation prediction in code. Our experiments reveal several systematic learning patterns. Under matched training conditions, even unchanged task rules become harder to internalize when learned alongside a larger variety of action types; by contrast, scaling the training data to provide broader state-action coverage generally improves rule learning. We further find that training at a single execution depth produces depth-specialized behavior, with models performing best when training and test executions have similar lengths. Motivated by this finding, we construct cumulative corpora that combine short and long trajectories, which can outperform long-trajectory-only training while using fewer training tokens. Together, these results demonstrate that the same task rules can be internalized differently depending on how execution experience is constructed, and that understanding these learning patterns can guide the design of more effective training data for parametric memory.

Industry Coordinates & Source Verification

This report is categorized under AITOP's "Papers" desk. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include FSMem, LLM, training data, agents.

Source attribution: curated from arXiv cs.AI (@Xianxuan Long, Xinnan Dai, Kai Guo, Jiliang Tang).