让大模型通过自我生成记忆改进决策,无需更新参数。
FORGE: Self-Evolving Agent Memory With No Weight Updates via Population Broadcast

- 用群体广播机制让多个代理共享并演化自然语言记忆。
- 在网络安全任务中,性能提升最高达7.7倍,重大失败率降至1%以下。
- 适合想提升大模型决策能力又不想训练的开发者使用。
大模型代理能否在不进行梯度更新的情况下,通过自动生成记忆来改善决策?我们提出 FORGE(失败优化的反思式晋升与演化),一种分阶段、基于种群的协议,为层级式 ReAct 代理演化提示注入的自然语言记忆。FORGE 包含一个类 Reflexion 的内层循环:专用反思代理(使用相同底层大模型,无更强模型蒸馏)将失败轨迹转化为可复用的知识产物——文本规则(Rules)、少量示例(Examples)或两者结合(Mixed);外层循环则在各阶段间将表现最优个体的记忆广播至整个种群,并通过毕业准则冻结已收敛个体。我们在 CybORG CAGE-2 上评估,这是一个30步时域的随机网络防御部分可观测马尔可夫决策过程,对抗 B-line 攻击者。所有四种测试的大模型家族(Gemini-2.5-Flash-Lite、Grok-4-Fast、Llama-4-Maverick、Qwen3-235B)均表现出显著负向、重尾的零样本奖励。相比零样本基线和孤立单流学习的 Reflexion 基线,FORGE 在全部12种模型-表示条件下,平均评估回报提升1.7–7.7倍(相对于零样本)和29–72%(相对于 Reflexion),并将重大失败率(低于-100)降低至约1%。我们发现:(1) 群体广播是关键机制,无毕业消融实验表明广播带来性能增益,而毕业主要节省计算;(2) 对四个模型中的三个,Examples 实现最强回报,Rules 则以约40%更少的 token 数实现最佳成本-可靠性平衡;(3) 弱模型受益更明显,表明 FORGE 可能缓解能力差距而非放大强模型。所有证据均限于 CAGE-2 B-line;跨家族结论为方向性证据。
原文摘要 · Abstract (English)
Can LLM agents improve decision-making through self-generated memory without gradient updates? We propose FORGE (Failure-Optimized Reflective Graduation and Evolution), a staged, population-based protocol that evolves prompt-injected natural-language memory for hierarchical ReAct agents. FORGE wraps a Reflexion-style inner loop, where a dedicated reflection agent (using the same underlying LLM, no distillation from a stronger model) converts failed trajectories into reusable knowledge artifacts: textual heuristics (Rules), few-shot demonstrations (Examples), or both (Mixed), with an outer loop that propagates the best-performing instance's memory to the population between stages and freezes converged instances via a graduation criterion. We evaluate on CybORG CAGE-2, a stochastic network-defense POMDP at a 30-step horizon against the B-line attacker, where all four tested LLM families (Gemini-2.5-Flash-Lite, Grok-4-Fast, Llama-4-Maverick, Qwen3-235B) exhibit strongly negative, heavy-tailed zero-shot rewards. Compared against both a zero-shot baseline and a Reflexion baseline (isolated single-stream learning), FORGE improves average evaluation return by 1.7-7.7$\times$ over zero-shot and by 29-72% over Reflexion in all 12 model-representation conditions, reducing major-failure rates (below $-100$) to as low as $\sim$1%. We find that (1) population broadcast is critical mechanism, with a no-graduation ablation confirming that broadcast carries the performance gains while graduation primarily saves compute; (2) Examples achieves the strongest returns for three of four models, Rules offers the best cost-reliability profile with $\sim$40% fewer tokens; and (3) weaker baseline models benefit disproportionately, suggesting FORGE may mitigate capability gaps rather than amplify strong models. All evidence is confined to CAGE-2 B-line; cross-family findings are directional evidence.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。