SkillForge: Co-Evolving LLMs and Dynamic Skill Libraries

By LatestLLM Editorial ·

SkillForge: Co-Evolving LLMs and Dynamic Skill Libraries

Discover how SkillForge uses a coupled learning loop and skill retirement to boost WebShop performance from 72% to 78% using Qwen 2.5-7B and Kimi K2.5.

Key takeaways

  • SkillForge co-evolves Qwen 2.5-7B internal weights and an external skill library to prevent 'cascading errors'.
  • It uses a dynamic skill lifecycle (Trial → Active → Rewritten → Stable → Retired) to purge low-performing skills.
  • A teacher-student loop using Kimi K2.5 rewrites skills based on failed task examples and statistics.
  • The system employs GRPO and SFT for weight updates, treating the LLM and skill library as a coupled learning system.
  • Empirical results show a 5.7 percentage point increase in WebShop performance (72% to 78%) over SkillRL.

Imagine an AI that doesn't just follow instructions, but actually learns from its mistakes in the real world—and then has the wisdom to delete the bad habits it picked up along the way.

⚡ TL;DR: SkillForge, developed by researchers from the Chinese Academy of Sciences and other institutions, co-evolves a Qwen 2.5-7B LLM and an external skill library. By using a 'retirement' mechanism to purge obsolete skills and a teacher-student loop with Kimi K2.5, it improved WebShop benchmark performance from 72% to 78%.

The Simple Version

Most AI agents today are like students with a textbook (their training data) and a notebook (their memory or 'harness'). The problem is that textbooks get outdated, and notebooks often get filled with wrong notes.

If a student believes a lie from the textbook and writes that lie in their notebook, they enter a 'feedback loop of failure.' The bad note reinforces the bad belief, and the AI starts making the same mistake over and over.

🎯 Think of it this way: Imagine a chef who has a recipe book (the harness) and their own intuition (the LLM). If the recipe book says 'add a cup of salt' instead of a pinch, and the chef's intuition is slightly off, they'll make salty soup. If they then record 'Salty soup is the goal' in their notes, they've entered a cycle where bad recipes and bad intuition reinforce each other.

SkillForge fixes this by allowing the chef to update both their intuition (the model weights) and the recipe book (the skill library) simultaneously. Crucially, it adds a 'trash can'—a retirement process—to throw away recipes that no longer work as the chef becomes more skilled.

How It Actually Works

The system splits the AI's intelligence into two distinct components: parametric knowledge (the weights inside the LLM) and procedural memory (the harness containing skill markdown files).

The Harness and the Skill Lifecycle

The 'harness' is a collection of markdown files providing specific instructions, examples, and applicability conditions. Instead of keeping every skill forever, SkillForge implements a dynamic lifecycle to ensure only high-quality guidance reaches the agent.

Skills move through a pipeline: Trial (newly observed behaviors), Active (being tested), Rewritten (optimized), Stable (proven successful), and finally Retired. As the speaker notes, skills are not accepted until they are "battle tested" for a specific task; if a skill's success rate drops too low—for instance, to 20%—it is promptly retired.

The Coupled Learning Loop

The most critical insight of SkillForge is that the LLM and the skill library form a coupled learning system. When the system updates the skill library, it changes the instructions provided in the LLM's context window.

This change in context alters the LLM's behavior, which in turn changes the training trajectories and rewards the LLM receives during reinforcement learning. This creates a complex, interwoven experience where the agent's internal growth changes the usefulness of its external tools.

The Danger of Cascading Errors

Without this co-evolution, agents suffer from 'cascading errors.' This happens when an internal bias leads to a misinterpretation of an event, which is then stored as a 'skill' that guides future actions.

The speaker describes this as a "cycle of hell" where distorted interpretations and outdated skills reinforce one another, leading to total system chaos. SkillForge breaks this cycle by treating skills as temporal objects that must be constantly re-evaluated.

Technical Deep Dive

SkillForge achieves its results by combining internal weight updates with external library management, utilizing Qwen 2.5-7B as the primary agent LLM.

The Dual Learning Mechanism

Internal optimization is handled via two methods. First, Supervised Fine-Tuning (SFT) is used to learn from successful demonstrations. Second, Group Relative Policy Optimization (GRPO) aligns the model using reward functions based on task outcomes.

For context, GRPO is a reinforcement learning technique—popularized by DeepSeek-V3—that removes the need for a separate critic (value) model. Instead, it estimates the baseline reward by averaging multiple sampled outputs from the same prompt, which significantly reduces VRAM usage and computational overhead.

Teacher-Student Distillation

To refine the external library, SkillForge uses a teacher-student architecture featuring Kimi K2.5 as the teacher. When a skill needs optimization, the system sends the current skill, task statistics, and examples of failed tasks to Kimi K2.5.

Kimi doesn't necessarily write perfect code, but it proposes revised instructions and refined procedural steps. These are placed in a sandbox environment and must meet a high success threshold before being promoted to the stable skill bank.

Non-Stationary Fitness and Benchmarks

A key technical delta in SkillForge is the recognition that skill fitness is non-stationary. Because the LLM's policy evolves through GRPO, a skill that was helpful at step 1,000 of training might be a hindrance at step 10,000.

The empirical results show that this approach outperforms the previous SkillRL framework. Specifically, SkillForge provided the following improvements: WebShop saw a jump of 5.7 percentage points (moving from 72% to 78%), AlphaWorld increased by 2.5 percentage points, and Search Augmented Q&A rose by 1.9 percentage points.

Why This Matters

The AI industry often focuses on scaling model size, but SkillForge demonstrates that architectural agility is often more valuable. By separating the 'brain' (weights) from the 'manual' (skills), we can create agents that adapt to new environments in real-time without expensive full-model retraining.

The introduction of 'skill retirement' marks a shift in how we think about memory. In traditional RAG (Retrieval-Augmented Generation) systems, the goal is usually to add more data. SkillForge recognizes that for an AI to truly evolve, it must be able to unlearn and prune the 'training wheels' that it no longer needs.

However, it is important to note that this system is currently based on empirical improvements rather than a formal mathematical proof of convergence. As the speaker admits, the 'complete mathematical theory' is still missing, leaving a significant opportunity for future research into reliable self-correction.

Frequently asked questions

What is the 'coupled learning system' in SkillForge?

It is a feedback loop where updating the skill library changes the LLM's context window, which changes its behavior, which then changes which skills are considered useful, requiring further library updates.

How does the skill retirement process work?

Skills are 'battle tested' on specific tasks; if their success rate falls below a certain threshold (e.g., 20%), they are retired to prevent them from misleading the agent.

What is the role of Kimi K2.5 in this architecture?

Kimi K2.5 acts as the teacher model that analyzes failed task examples and proposes rewritten, optimized versions of existing skills for the student model (Qwen 2.5-7B).

Sources

Source: “SkillForge: Co-Evolving LLMs and Dynamic Skill Libraries” on YouTube by Discover AI

Tags: LLM, Reinforcement Learning, SkillForge, AI Agents, GRPO, Qwen, Kimi

Related articles