Paper: 2603.23129 Authors: Aditya Kakade, Vivek Srivastava, Shirish Karande (TCS Research) Categories: cs.LG

Abstract

Gödel agents realize recursive self-improvement: an agent inspects its own policy and traces, then modifies that policy in a tested loop. POLARIS introduces this capability for compact 7B models through experience-abstracted policy repair. Unlike response-level self-correction or parameter tuning, POLARIS makes policy-level changes with small, auditable code patches that persist and are reused on unseen instances. The agent engages in meta-reasoning: explaining errors, proposing concrete revisions, and updating its own policy. On MGSM, DROP, GPQA, and LitBench, a 7B model with POLARIS achieves consistent gains over the base policy and competitive baselines.

Key Contributions

  • Experience abstraction: Distills failures into compact, reusable strategies that transfer to unseen instances
  • Minimal code patch repair: Policy updates as small auditable patches, not opaque parameter changes
  • Feasible for 7B models: Solves context growth and OOM issues that plagued Gödel Agent at small scale
  • Persistent policy updates: Changes accumulate across instances within each benchmark, unlike per-response corrections

Why Gödel Agents Struggle at Small Scale

The original Gödel Agent framework retains multiple validation samples and prior evolution steps in memory for reflection. For 7B models, this causes:

  • Context length explosion after each iteration
  • Out-of-memory errors from growing computational overhead
  • Tool-call failures before completing execution

POLARIS solves this by limiting retained failure examples and compressing tool-call history while preserving traceability.

The POLARIS Cycle

1. Recursive Self-Improvement Loop

  1. Agent selects actions based on current policy and goals
  2. Outputs and reasoning traces stored in memory
  3. Evaluation collects failed tasks from validation set
  4. Failed tasks trigger the Policy Repair module

2. Policy Repair via Experience Abstraction

  1. Failure Analysis: Diagnose errors across N failed tasks
  2. Strategy Synthesis: Abstract failures into reusable directives δ
  3. Patch Generation: Convert directives into minimal code patches
  4. Integration: Apply patches with runtime code mutation + execution checks
  5. Conservative checks: Bounded retries ensure patches don’t break existing functionality

What Makes This Different

ApproachScopePersistenceAuditability
Self-RefineSingle responseNoLow
Parameter tuningModel weightsYesVery low
ReflexionEpisode memoryWithin episodeMedium
POLARISPolicy codeYes, across instancesHigh (code patches)

The key difference is that POLARIS changes are:

  • Explicit: Concrete code patches you can read and review
  • Persistent: Applied to all future instances, not just the current one
  • Cumulative: Each repair builds on previous repairs
  • Transferable: Strategies abstract away from specific failure instances

Results

Tested across diverse benchmarks:

  • MGSM: Arithmetic reasoning
  • DROP: Compositional inference
  • GPQA: Graduate-level problem solving
  • LitBench: Creative writing evaluation

A 7B model with POLARIS consistently outperforms the base policy and competitive baselines across all four benchmarks.

Takeaways

  • Recursive self-improvement is possible for small models — the bottleneck was context management, not model capability
  • Experience abstraction is the key enabler: compress failures into reusable strategies rather than retaining full trajectories
  • Code patches as policy updates provide a rare combination of persistence, auditability, and transferability
  • Meta-reasoning (agent explaining its own errors and proposing fixes) works even at 7B scale
  • This opens a path toward self-improving agents that don’t require massive compute budgets

论文: 2603.23129 作者: Aditya Kakade, Vivek Srivastava, Shirish Karande (TCS Research) 分类: cs.LG

摘要

哥德尔智能体实现递归自我改进:智能体检查自身策略和轨迹,然后在测试循环中修改策略。POLARIS通过经验抽象策略修复为紧凑的7B模型引入此能力。与响应级自我修正或参数调优不同,POLARIS通过小型可审计代码补丁进行策略级更改,这些补丁持久存在并在未见实例上重用。智能体进行元推理:解释错误、提出具体修订并更新自身策略。在MGSM、DROP、GPQA和LitBench上,配备POLARIS的7B模型相比基础策略和竞争基线取得一致提升。

主要贡献

  • 经验抽象:将失败蒸馏为紧凑、可重用的策略,迁移到未见实例
  • 最小代码补丁修复:策略更新为小型可审计补丁,而非不透明的参数更改
  • 7B模型可行:解决了哥德尔智能体在小规模下的上下文增长和OOM问题
  • 持久策略更新:更改在基准测试的各实例间累积,不同于逐响应修正

为什么哥德尔智能体在小规模下困难

原始哥德尔智能体框架在内存中保留多个验证样本和先前进化步骤用于反思。对于7B模型,这导致:

  • 每次迭代后上下文长度爆炸
  • 计算开销增长导致的内存不足错误
  • 执行完成前的工具调用失败

POLARIS通过限制保留的失败示例和压缩工具调用历史来解决,同时保持可追溯性。

POLARIS循环

1. 递归自我改进循环

  1. 智能体基于当前策略和目标选择动作
  2. 输出和推理轨迹存储在内存中
  3. 评估从验证集收集失败任务
  4. 失败任务触发策略修复模块

2. 通过经验抽象进行策略修复

  1. 失败分析:诊断N个失败任务的错误
  2. 策略合成:将失败抽象为可重用指令δ
  3. 补丁生成:将指令转换为最小代码补丁
  4. 集成:通过运行时代码变异+执行检查应用补丁
  5. 保守检查:有界重试确保补丁不破坏现有功能

实验结果

跨多个基准测试:

  • MGSM:算术推理
  • DROP:组合推理
  • GPQA:研究生级问题求解
  • LitBench:创意写作评估

配备POLARIS的7B模型在所有四个基准上一致优于基础策略和竞争基线。

要点总结

  • 小模型可以实现递归自我改进——瓶颈是上下文管理而非模型能力
  • 经验抽象是关键:将失败压缩为可重用策略,而非保留完整轨迹
  • 代码补丁作为策略更新提供了持久性、可审计性和可迁移性的罕见组合
  • 元推理(智能体解释自身错误并提出修复)即使在7B规模也有效
  • 这开辟了不需要大量计算预算的自我改进智能体之路