跳到正文
@omarsar0· @omarsar0 · X·· 24 天前AI 评分44
AI 导读

HKUST 提出 AgentZip,针对并行运行大量智能体沙箱时的高内存冗余,将沙箱内存压缩最高 8.7 倍(Linux 配置为 2.1 倍)。研究者测得 76% 至 96% 的页面存在模板相对或跨沙箱冗余,AgentZip 同时针对模板和同级沙箱压缩页面,包括相似但不完全相同的页面。它在智能体等待 LLM 时执行压缩,并在恢复时预取页面,将激进压缩带来的 3.1 倍减速降至 1.40 倍。

正文

Very cool paper on memory compression for agents.

If you run many agent sandboxes in parallel for RL or evals, memory becomes highly redundant. This work suggests that compressing against that redundancy cuts sandbox memory by up to 8.7x.

Memory is becoming the capacity limit for high-fanout agent workloads.

One task can spawn many concurrent sandboxes, and they all start from the same template and run related trajectories.

HKUST researchers measured 76 to 96% of pages with template-relative or cross-sandbox redundancy.

AgentZip compresses pages against the template and against sibling sandboxes, including pages that are similar without being identical.

It runs expensive compression while the agent is waiting on the LLM, and it prefetches pages at restore time to control slowdown.

Results:

Sandbox-owned memory drops by up to 8.7x, against 2.1x for the Linux configuration. Aggressive compression slows execution by 3.1x on its own, and the scheduling and prefetching bring that down to 1.40x.

Paper: https://t.co/AxW5WrgPLr

Chat with Paper: https://t.co/FXrRtzHkHm

来源:@omarsar0 · x.com