Back to blog
skill-libraryself-supervised-learningagentic-systemsmemory-augmented-agentsretrieval-augmented-generationsemantic-diffusion

The Skill Library That Survives Every Model Upgrade

Agents learn reusable screenwriting skills from professional scripts without human annotation, achieving 7-of-9 metric improvements and transferring skill libraries across different LLM models.

October 4, 202610 min read

Source Paper

Training Skills Like Parameters via Self-Supervised Semantic Diffusion

Mo Li, Zixin Yin, Ting Cao, Yunxin Liu · Tsinghua University, Shanghai AI Laboratory, Xiaobing.AI, The Hong Kong University of Science and Technology

View Paper

The Expertise Your AI Has Already Stopped Using

Your team spent three months building a prompt library for your content pipeline. A senior writer reviewed every output, flagged the patterns, and someone translated those patterns into instructions. The instructions worked. Then the model updated. Half the behaviors shifted. You started over.

This is the quiet cost of coupling domain expertise to a specific model version. Every frontier API call your organization makes today returns output shaped by a model that knows nothing about what good looks like in your specific domain. You cannot fine-tune it. You cannot access the weights. You can write longer system prompts and hope they hold, knowing they will need to be rebuilt the next time your vendor ships a better model. The expertise never accumulates. It just resets.

Researchers at Tsinghua University, HKUST, and Shanghai AI Laboratory published a preprint in July 2026 addressing this directly. Their framework, a self-supervised self-evolving agent system, does not attempt to modify model weights. It trains an external library of natural-language skill rules against a self-supervised signal derived from professional human artifacts, iterating through a textual forward-loss-backward loop until the rules are precise enough to close the gap. Tested on professional short-drama screenwriting, the memory-equipped agent outperforms the base model on 7 of 9 craft metrics on held-out scripts it never saw during training. When the same trained skill library is attached to a completely different frontier model, the craft disciplines land at almost identical levels. The base model determines the starting point and the temperament, but the memory pool dictates where the disciplines land.

That last finding is the one that should change how a senior technology executive thinks about the model-selection decision.

Why the Gap Between "Closed-Source" and "Adaptable" Has Been a False Choice

The standard options for adapting a frontier model to a specialized domain have three separate failure modes. Supervised fine-tuning imitates surface form without acquiring underlying craft. Reinforcement learning tends to exploit shortcut features of the reward signal rather than internalize the intended skill, a tendency supported by published evidence on reward model overoptimization. And both approaches require weight access that closed-source API users simply do not have.

The manual alternative is equally problematic. Existing skill-injection systems like Voyager and ExpeL require human experts to explicitly formulate the rules. That is expensive, slow, and politically complicated: domain experts frequently resist formalizing their implicit knowledge precisely because they understand that formalizing it is a form of being replaced. The knowledge stays tacit. The AI stays generic.

LLM-as-judge feedback is the third path, and it has a published reliability problem. Model-based evaluations correlate weakly with human judgment and miss logical flaws. For open-ended creative or analytical work, a scalar score from a second LLM is not a substitute for knowing whether the output actually achieves the domain standard.

The paper's contribution is not a patch on any of these. It sidesteps all three by asking a different question: what if the learning signal came from the gap between what the agent produces and what a skilled human already produced, with no annotation, no reward model, and no human expert asked to explain themselves?

A Corruption-and-Reconstruction Loop That Generates Its Own Supervision

The framework takes its structural logic from diffusion models. In image diffusion, a clean image is progressively noised and the model learns to reverse that process. Here, the clean state is a professionally written screenplay episode. The noise is compression: a corruption agent strips it down to a bare story outline, destroying the craft decisions while preserving the plot skeleton. The agent must then reconstruct the full episode from that outline, guided by whatever skill rules currently exist in the memory library.

The self-supervised signal emerges from the comparison. A loss agent reads the agent's reconstruction and the human original side by side and produces a dense textual report of where the human version is superior, covering structural choices like where an episode ends and stylistic choices like how confrontation escalates. No scalar score. No human annotator. The ground truth is the artifact that already exists.

A backward agent then acts as the optimizer. It reads loss reports across multiple novels, routes the signal to specific rule cards in the memory library, and makes focused edits: strengthening rules that work, narrowing the scope of rules that mislead, creating new cards for patterns the agent consistently gets wrong, merging redundant items. The memory library ends a training run at 18 rule cards and approximately 20,000 tokens total.

Framework StageWhat It DoesWhat Fails Without It
Corruption agentCompresses full screenplay into bare outline, creating the self-supervised training pairNo training signal can be constructed; the entire loop collapses
Loss agentReads reconstruction vs. human original and writes textual gap report anchored to a concrete artifact, not LLM tasteCredit assignment is either absent or driven by unreliable free-form scoring
Rule linterEnforces token and line limits on every card update; rejects oversized commitsPool explodes to 148 cards, over 500,000 tokens; longest card becomes 2,500 lines, longer than a full episode script

Without the linter, the system does not overfit in the weight sense. It overfits in text: the longest card in an uncapped run became an incident log of a single novel, stored as a rule. That is a failure mode that has no equivalent in gradient-based learning and no precedent in the prior literature on agent memory systems.

What the Backward Pass Actually Looks Like at Scale

The paper's most practically instructive finding is not a metric. It is what happened when the researchers tried to run global backward updates with a long-lived orchestrator agent processing many loss reports at once.

The orchestrator approach failed repeatedly, consuming two-plus hours per step and timing out before completing. The authors diagnosed this as a textual analogue of vanishing gradients: with too many reports in context simultaneously, the backward agent produced vague, low-commitment edits that did not change anything. The fix was not a stronger orchestrator. It was eliminating the need for one.

Each micro-step became an independent, short-lived process consuming one reduced summary and applying a small, focused set of edits. Median duration: approximately 10 minutes. Across a full training run of 174 consecutive micro-steps, zero failed to commit a valid update. Thirteen of the final 18 rule cards were established within the first 10 micro-steps, meaning the core skill structure forms quickly and subsequent steps refine rather than rebuild.

For later micro-steps consuming slightly stale loss reports (the memory pool has been updated since their reports were generated), the backward agent prompt explicitly states the time gap and instructs the agent to judge each proposed edit against the current pool before applying it. The staleness is managed through instruction rather than mechanism, which is either an elegant pragmatism or a brittleness that will surface at scale, depending on how much you trust the base model's instruction-following reliability.

Where the Numbers Are Strong, and Where They Are Not

The primary evaluation covers six held-out novels the system never encountered during training, producing 385 episodes per group. The results are specific enough to be useful and honest enough to be credible.

The most striking single result is on unfilmable action lines, instructions that cannot be translated to camera. The base model produces 1.1 per episode on out-of-distribution scripts. The human professional rate is 0.3. After training, the memory-equipped agent produces 0.3, compressing the Wasserstein distance from 0.83 to 0.03. That specific skill appears to be addressable with a single well-formed rule card, which the backward agent produced within the first 10 micro-steps.

Hard-cut endings, cold opens, and prop activation tell a similar story. The base model hits hard-cut endings at 40% against a human rate of 61%. The memory-equipped agent reaches 59%, closing nearly the entire gap. Cold opens go from 64% to 84% against a human rate of 72%, and prop activation from 59% to 78% against a human rate of 70%. Both exceed the human baseline, which the authors interpret as a positive structural acquisition, noting that professional writers deliberately break these conventions when higher-order narrative effects require it.

The regressions matter as much as the wins. Voice-over cue density is essentially unchanged (0.63 to 0.61 against a human rate of 0.22). Redundant voice-over incidence rises from 1% to 5% against a human rate of 0%. The backward agent taught the system when voice-over is effective without successfully conveying that the human default is to write none at all. The rule card is identified. The next training iteration has a specific thing to fix. But today, the regression is real.

Stimulus words, a measure of dramatic intensity density, show zero statistical improvement across epochs. No rule card for this dimension exists in the final pool. The system did not acquire the skill and does not know it failed.

One Skill Library, Two Different Models, Nearly Identical Craft

The cross-model transfer result is where the strategic implication becomes concrete. The same frozen skill pool trained against Claude Sonnet 4.6 was attached to Claude Opus 4.8 without any retraining. The two models start from meaningfully different baselines: Opus writes shorter dialogue volleys, generates more dramatic intensity, and uses voice-over more heavily than Sonnet.

On the craft disciplines covered by the memory pool, both models land at nearly the same performance level. Hard-cut endings: 59% on Sonnet, 59% on Opus, against a human rate of 61%. Cold opens: 84% on Sonnet, 87% on Opus. Prop activation: 78% on Sonnet, 79% on Opus. On dimensions not covered by the memory pool (stimulus words, voice-over density), the models retain their individual character: Opus's inherently higher intensity and heavier voice-over persist exactly as they would without the pool.

This means the skill library is not adapting the model. It is constraining a specific set of craft decisions while leaving everything else to the model's underlying disposition. For organizations managing a transition from one model generation to the next, that is an operationally significant property. The domain expertise does not need to be rebuilt. It travels.

The Retrieval Problem Has No Current Solution

The paper's own case study in the appendix is the most important thing to read before deciding whether to build on this approach. In a five-episode generation run, the script agent read 7 rule cards for Episode 1, then 6, then 4, then 3, then 3. On Episode 5, it missed the ending discipline card entirely. That episode produced 17 voice-over lines out of 21 total, compared to 10 for the no-memory baseline. The memory made that episode worse.

The authors are explicit about this: a rule that is never read cannot fire. Retrieval decay across a long generation run is real, documented in their own evaluation, and currently unaddressed. There is no routing mechanism that guarantees relevant cards are surfaced. The script agent selects which cards to read by scanning one-line descriptions, which means card description quality and the agent's own attention across a long context window determine whether the trained skills are actually applied.

An organization deploying this system today would find its effectiveness variable in exactly the ways that are hardest to predict: not randomly, but systematically correlated with generation length, context load, and the quality of card descriptions. The paper commits to fixing the retrieval side first in future work. That future work does not yet exist.

What This Means for Organizations Running Closed-Source APIs at Domain Scale

The paper is a preprint, explicitly labeled work in progress, with code not yet released. Its evaluation is on a single domain (short-drama screenwriting) with custom metrics, trained on a specific corpus of professional scripts whose sourcing and IP status are not discussed. The ablation comparison between memory pool generations is described by the authors themselves as a natural-history comparison rather than a strictly controlled study.

None of that diminishes the strategic question the paper forces. If a frozen library of 18 natural-language rule cards, trained against a self-supervised signal from existing human artifacts in roughly 174 micro-steps, can close most of the gap between a generic frontier model and professional craft standards on held-out content, and that library can be carried unchanged to the next model generation, then the question for any organization doing domain-specific content work at scale is what their version of those 20 professional screenplays is.

Most organizations with serious domain expertise already have the artifacts. Legal teams have high-quality briefs. Financial analysts have reports that moved decisions. Technical writers have documentation that actually worked. The training corpus already exists. What this paper describes is a method for turning that corpus into portable, auditable, model-agnostic skill knowledge, without annotation, without weight access, and without starting over every time a better model ships.

The retrieval bottleneck is a real limitation and the framework is not production-ready in its current published form. But the architecture it proposes, train the skill library, not the model, will age better than the alternative. Every organization that continues coupling its domain expertise to specific model versions is building something it will have to rebuild. The question is not whether that matters. It is whether rebuilding is still the plan.

Published by Agents Applied. Research covered: arXiv:2607.27557v1, Li et al., 30 July 2026.