HyperAIHyperAI

Command Palette

Search for a command to run...

에이전트
LLM

SkillZip: 재사용 가능한 구조 발견을 통한 자기 진화형 에이전트의 평가 불필요 기술 압축

Xiaofan Bai Hongqiang Lin Chao Liu Yantao Zhang Xuan Jin Xipeng Cao Yuhong Li

초록

자기 진화형 에이전트는 성공적인 절차와 실패 수정 사항을 추가하며 재사용 가능한 기술을 축적한다. 시간이 지남에 따라 동일한 요구 사항이 여러 분기, 예시 및 경고로 반복 기술되는 반면, 공통된 행동 순서는 재사용되기보다 복사된다. 그 결과 기술을 주입하는 비용이 커지고 유지 관리가 어려워진다. 일반적인 프롬프트 압축은 기술이 평면적인 텍스트가 아니라는 점에서 이 환경에 적합하지 않다. 기술의 이름과 설명은 적용 시점을 정의하고, 워크플로우는 실행을 제어하며, 도구 및 출력 계약은 유효성을 제한하고, 드물게 발생하는 예외는 어떤 샘플 작업에서도 활성화되지 않더라도 여전히 필수적일 수 있다. 평가 기반 압축은 이러한 동작을 테스트할 수 있지만, 롤아웃, 비용 및 압축 시점의 평가 세트에 대한 의존성을 초래한다. 본 논문에서는 기술의 가장 짧은 충실한 구조적 설명을 찾아 기술을 압축하는 평가 불필요 방법인 SkillZip을 제시한다. 기본 직관은 '한 번 설명하고 여러 번 참조'하는 것이다. 반복되는 규칙은 적용되는 범위에서 한 번만 명시하고, 반복되는 행동 순서는 공유 절차로 분해하며, 차이점만 명시적 예외로 유지한다. 이 직관을 기술 계약과 잔차에 대한 유형화된 최소 기술 길이 목표로 공식화하며, 이는 추출된 모든 트리거, 워크플로우 에지, 도구 요구 사항, 의무 사항 및 출력 필드에 대한 엄격한 포함 제약 조건을 따른다. 이 공식은 간단한 공유 임계값을 제공하고, 구성상 고유한 희귀 규칙을 보존하며, 효율적인 지역적 갱신을 지원한다. SkillZip은 하나의 구조화된 추출 호출과 결정론적 최적화를 사용하는 원샷 모드와, 작업 재생이나 전체 이력 재분석 없이 각 자기 진화 패치를 통합하는 지속적 쓰기 시 압축 모드를 갖는다. 포괄적인 실험 평가를 통해 압축 성능, 일반화 가능성 및 비용 오버헤드 측면에서 SkillZip의 효과성과 우수성을 입증한다.

One-sentence Summary

Researchers from Alibaba Group, Zhejiang University, and Duke University propose SkillZip, an evaluation-free skill compression method that discovers reusable structural explanations via a typed minimum-description-length objective with hard coverage constraints, enabling one-shot and continual Zip-on-Write modes and achieving superior compression, generalizability, and cost efficiency.

Key Contributions

  • Evaluation-free skill compression is formalized as a typed contract representation, and a shortest faithful explanation objective is derived that unifies rule sharing, scope lifting, workflow reuse, and exception encoding with a hard coverage constraint that preserves rare rules independently of task frequency.
  • SkillZip provides a one-shot mode using a single structured extraction call followed by deterministic optimization, and a Zip-on-Write mode that continually integrates new self-evolution patches through local updates without replaying tasks or reparsing the full history.
  • Comprehensive experiments demonstrate that SkillZip achieves substantial gains in compression performance, robust generalizability, and low cost overhead.

Introduction

Self-evolving agents accumulate procedural knowledge as append-only instructions, causing skills to grow with redundant rule copies, repeated workflows, and scattered exceptions. This bloat increases context cost and obscures the governing logic, yet existing prompt compression methods estimate token importance relative to a query or answer distribution and cannot preserve the typed procedural structure (branch guards, temporal order, tool contracts) that must remain invariant across all future tasks. The authors introduce SkillZip, which treats a skill as a typed contract and compresses it by extracting shared rules, scope lifting, workflow reuse, and exception encoding into a shorter faithful explanation. The method guarantees that every normative requirement, including rare edge cases, is retained without observing any task, trajectory, or verifier, and it supports both one-shot compression of an evolved checkpoint and Zip-on-Write integration into continual self-evolution.

Method

The authors propose SkillZip, an evaluation-free compression framework that treats natural-language skills as structured, typed contracts rather than homogeneous text. By decoupling interpretation from optimization, the method ensures that every operational requirement is preserved without relying on downstream task execution or behavioral verifiers.

At the core of the framework is the extraction of a typed contract from the source skill. As shown in the figure below, this contract decomposes the skill into six distinct components: the interface (triggers and exclusions), the workflow (control flow and actions), the tool protocol (arguments and preconditions), scoped rules (normative constraints with guards), the output contract (validation and fields), and supporting evidence. This decomposition is critical because it dictates which compressions are safe; for instance, two sentences about the same tool cannot be merged if they require different arguments.

The overall pipeline consists of two main phases: One-Shot Compression and Continual Compression (Zip-on-Write), as illustrated in the framework diagram.

In the One-Shot Compression phase, the process begins with a deterministic scan of the skill document to parse headings, lists, and code blocks, reducing the structural inference burden on the language model. Next, a schema-constrained model recovers the typed contract, mapping source spans to typed units. Any ambiguous spans that cannot be interpreted with sufficient confidence are placed into a locked residual and copied verbatim. The system then proposes type-compatible reuse candidates, such as merging equivalent rules or extracting shared workflow fragments, using hashing and embedding indices. Finally, it selects the shortest covering explanation by minimizing the rendered token cost under a Minimum Description Length objective, ensuring that all required contract units remain covered. A structural audit reparses the compressed output to verify that no triggers, guards, or output fields were lost, restoring source spans if necessary.

For agents that evolve over time, the Continual Compression phase, or Zip-on-Write, maintains the contract via a sidecar file containing the current contract, scope tree, and workflow graph. When a new patch arrives, the system extracts patch units and compares them against the existing contract neighborhood using four operations: Absorb (restating existing requirements), Refine (adding guards or exceptions), Extend (introducing new requirements), and Refactor (creating new shared rules). The host selects the feasible operation that minimizes the increase in the description length objective. To capture long-range reuse that local updates might miss, the system tracks approximate counts and triggers a global repack when the estimated recoverable saving exceeds a threshold or the contract grows significantly. Throughout this process, the model proposes structure, but a deterministic host validates the schema and enforces coverage before atomically updating the skill.

Experiment

The experiments evaluate SkillZip, an evaluation-free skill compression method, across three agent backbones and three benchmarks using self-evolved skills. They show that self-evolution causes skills to grow over five times their initial length, and SkillZip compresses this bloat by about 31% while preserving or improving task performance without any task rollouts, making it 3.5× faster than the baseline SkillReducer. Compressed skills transfer better across models, and enabling continual compression from the start of evolution prevents length bloat entirely without sacrificing accuracy.

SkillZip compresses evolved skills more aggressively than SkillReducer while preserving task performance near the best uncompressed results. The method requires no task rollouts, leading to substantial speed gains, and its compressed skills transfer across models with higher retention. Continual compression from the start of self-evolution prevents skill bloat without sacrificing accuracy. SkillZip achieves a higher compression rate (27.1%) than SkillReducer (10.5%) while keeping performance on BFCL-V4, LiveMath, and Spreadsheet within a narrow margin of the uncompressed evolved skill or the best compressed alternative. Unlike SkillReducer, SkillZip uses no task rollouts for validation, resulting in a 3.5× average speedup and avoiding dependence on executable environments and behavioral verifiers. When transferred to a different model, SkillZip retains 0.97 of LiveMath performance, outperforming SkillReducer's 0.91 retention, indicating that preserving explicit rules and constraints yields a more model-independent skill representation. Activating continual compression from round 1 of self-evolution caps skill length growth at 1.6×–1.9× of the seed, a 38%–50% reduction relative to uncompressed endpoints, while final accuracy matches or slightly exceeds the uncompressed skill. Delaying compression until later rounds only partially recovers accumulated redundancy, showing that preventing bloat from the start is more effective than removing it afterward.

SkillZip is substantially faster than SkillReducer across all datasets, achieving an average speedup of roughly 3.5×. The speedup results from eliminating task rollouts, which dominate compression cost even though SkillReducer uses fewer direct LLM calls. SkillZip requires zero rollouts, making the evaluation‑free design far more efficient. SkillZip is on average 3.5× faster than SkillReducer, with compression times of 207–332 seconds compared to 587–1331 seconds. SkillReducer requires 40–80 validation rollouts per compression, while SkillZip uses none, showing that environment interaction dominates the end‑to‑end cost. Despite making fewer direct compressor LLM calls (3 vs 4–8), SkillReducer’s rollout overhead makes it significantly slower.

The experiments compare SkillZip with SkillReducer on compressing self-evolved skills across several benchmarks. SkillZip achieves higher compression rates and nearly matches uncompressed performance while requiring no task rollouts, yielding a 3.5× average speedup and avoiding environment dependencies. Its compressed skills transfer better to other models, and applying continual compression from the start of self-evolution caps skill growth and prevents bloat without sacrificing accuracy, unlike delayed compression that only partially recovers redundancy.


AI로 AI 구축

아이디어에서 출시까지 — 무료 AI 코코딩, 즉시 사용 가능한 환경, 최적의 GPU 가격으로 AI 개발을 가속화하세요.

AI 협업 코딩
바로 사용 가능한 GPU
최적의 가격

HyperAI Newsletters

최신 정보 구독하기
한국 시간 매주 월요일 오전 9시 에 이번 주의 최신 업데이트를 메일로 발송합니다
이메일 서비스 제공: MailChimp