SKILL.PNG: Learning Agent Skills in Pixel Space

Maximilian Seeth, Chengzhi Martin Hu, Marie Kempkes, Paul Röttger, Leo Schwinn

TL;DR

SKILL.PNG is a novel method for specializing AI agents by optimizing image pixels instead of text instructions. By treating "skills" as differentiable images, researchers can use gradient descent to tune agent behavior across different Vision-Language Models (VLMs), achieving better performance than text-based prompts while using up to 10x fewer tokens.

What Problem Does This Paper Address?

To make AI agents useful for specific tasks—like planning a trip or solving complex math—we typically use "skills." Currently, these skills come in two flavors:

  1. Textual Skills: Natural language instructions (e.g., "Always use the flight search tool first"). These are great because they work across different models, but they are "discrete," meaning we can't easily use math (gradients) to fine-tune them. We have to rely on expensive LLMs to "guess" better versions of the text.
  2. Model Tuning (e.g., LoRA): We update the model's internal weights. This is mathematically efficient but creates a "locked" version of the model that can't easily share its learned skill with a different model.

As the industry shifts toward Vision-Language Models (VLMs) as the backbone for agents, the authors asked: Can we create a skill that is both mathematically optimizable and transferable?

Figure 1. Three ways to improve agents. Text skills work with any model but cannot be optimized with gradients. LoRA is trained with gradients, but is model-specific. SKILL.PNG (ours) encodes the skill as an image, optimized with gradients through one or more frozen models, and transfers across them.

Methods

The authors introduce SKILL.PNG, which encodes agent instructions into the pixels of an image.

Instead of writing text, they initialize a "skill image" (starting as flat gray or noise) and pass it into a frozen VLM along with a task request. They then use gradient descent to adjust the image's pixels to minimize the error in the model's response. Crucially, the model weights never change—only the pixels do.

Key technical innovations include:

  • Ensemble Optimization: To make a skill work across different model families (e.g., Qwen and Gemma), they optimize one image against multiple models simultaneously. They use a "per-model gradient normalization" technique to ensure that a larger model doesn't drown out the learning signals from a smaller one.
  • Hybrid Skills: They found that combining an optimized image with a standard text prompt often yields the best results, suggesting that images and text can provide synergistic guidance to the model.

Datasets

The method was evaluated across four diverse benchmarks:

  • SearchQA: Jeopardy-style questions requiring information retrieval.
  • TRAJECT-Bench: A tool-use benchmark where agents must call the correct APIs with exact parameters.
  • LiveMathematicianBench (LiveMath): Research-level math problems from recent arXiv papers.
  • T1: A complex, multi-turn travel planning dataset.

Key Insights and Ideas

  • The "Pixel Compression" Advantage: Text prompts for complex tasks can be massive, sometimes thousands of tokens long. SKILL.PNG compresses these instructions into a fixed grid of pixels that the VLM's vision encoder turns into just 64 to 256 tokens. This significantly lowers inference costs and saves space in the model's "context window."
  • Machine-Readable "Noise": To a human, a SKILL.PNG looks like colorful static or noise. However, the VLM's vision encoder sees semantic patterns. Interestingly, when asked to describe their own skill images, models often recognized them as "instructions" or "puzzles," while seeing other models' images as mere "noise."
  • Gradient Efficiency: Optimizing pixels with gradients is far more sample-efficient than using an LLM to rewrite text prompts. It allows for fine-grained control over the agent's behavior that is difficult to achieve through natural language alone.
Figure 2. Length of text and image skills. Tokens per skill and model, averaged over the four benchmarks, with error bars showing one standard deviation across them. For SKILL.PNG, these are image tokens, which are fixed per model and so have no error bar.

Key Results

  • Outperforming Text: SKILL.PNG beat state-of-the-art text skills (optimized by frontier models like GPT-4) in 9 out of 16 experimental settings.
  • Massive Gains: On the T1 planning benchmark, SKILL.PNG improved performance by up to 37.8 percentage points over a baseline with no skill.
  • Transferability: By using ensemble optimization, the researchers created a single image that improved both Qwen and Gemma models, proving that "pixel skills" can be shared between different AI architectures.
  • Resolution Matters (to a point): The authors found that most "skill information" fits into a relatively small number of pixels. Increasing image resolution beyond 128x128 provided diminishing returns for most tasks.
Figure 3. Transfer of skills across models. Change in test score over No Skill, in percentage points, when skills optimized on Qwen3.5-4B are injected unchanged into each model. SkillOpt: text skill optimized by GPT-6 Luna on Qwen3.5-4B. UltraBreak: image optimized on Qwen3.5-4B. SKILL.PNG: image optimized on Qwen3.5-4B alone. Ensemble: image optimized jointly on Qwen3.5-4B and Gemma-4-E4B- it. Gray bands mark the models each skill was optimized on, and arrows point to the models it is injected into. Bold: best skill per model and benchmark.

Limitations and Future Work

While promising, SKILL.PNG isn't a silver bullet.

  • Task Specificity: It struggled on TRAJECT-Bench, likely because that task requires exact string matching for tool calls, which might be harder to "steer" via visual embeddings when the system prompt is already very long.
  • Reasoning Gap: The images were optimized with the models' internal "reasoning" (Chain-of-Thought) disabled. When reasoning was turned back on, the performance gains were less consistent, suggesting future work should include reasoning steps in the optimization loop.
  • Human Interpretability: Because the images look like noise, humans cannot "audit" or edit them manually. This creates a "black box" skill that might be difficult to safety-check in sensitive applications.

The authors suggest that future research could explore optimizing text and image skills in parallel or scaling up to even larger ensembles to create truly universal "agent plugins" in pixel space.

Summary updated

Abstract

AI agents are commonly specialized for new tasks and domains using skills, i.e. natural language instructions placed in their context. However, the discrete nature of textual skills prevents continuous optimization. Gradient-based approaches such as finetuning, on the other hand, are typically model-specific, preventing skill transfer across different agents. Since many agents today are built on vision-language models (VLMs), we can address these limitations by introducing Skill.png: a method for obtaining skill-like image inputs whose pixels are optimized with gradient descent through the vision encoder of a frozen VLM. Image skills are compatible with any VLM, and a single image can be optimized jointly for an ensemble of models. We show that Skill.png significantly outperforms state-of-the-art textual skills optimized using frontier LLMs in 9 of 16 settings (across 4 VLMs and 4 benchmarks) while requiring only 64 to 256 image tokens instead of roughly 900 to 2000 text tokens at inference time. Hybrid skills, i.e. text and image skills jointly optimized, further improve agent performance. Moreover, an image optimized with an ensemble of VLMs can successfully transfer across the models in the ensemble. Skill.png thus presents the first agent skill that can be optimized with gradient descent while retaining transfer benefits of text skills. Our code is available at: https://github.com/omseeth/skill.png
BibTeX
@misc{seeth2026skill,
  author = {Maximilian Seeth and Chengzhi Martin Hu and Marie Kempkes and Paul Röttger and Leo Schwinn},
  title = {{SKILL.PNG: Learning Agent Skills in Pixel Space}},
  year = {2026},
  eprint = {2611.26296},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.26296},
}
Figure