Can Small Local Models Handle Agent Skills? A POMDP-Based Engineering Approach
Agent Skill frameworks built on large closed-source language models excel at automating complex tasks, but they often fall short in industries like financial risk control and defense manufacturing, where strict data privacy and security isolation make continuous cloud API calls impractical. This article explores whether Agent Skills frameworks can be successfully transferred to small local language models (SLMs), presents a formal POMDP-based definition of the framework, and shares practical engineering strategies for building local Agent systems under limited hardware budgets.
In recent years, Agent Skill frameworks built on large closed-source language models have demonstrated remarkable results. Empowered by various AI coding tools and industry-wide solutions, these frameworks have significantly improved the automation of complex task execution. However, when we turn to industrial scenarios with strict data privacy and security isolation requirements—such as financial risk control and defense manufacturing—a clear pain point emerges: solutions that continuously call public cloud APIs often struggle to survive under the dual pressure of compliance audits and high invocation costs. Enterprises urgently need an Agent solution that runs entirely on-premises, with data never leaving their domain.
1. The Core Question: Can Small Models Handle Agent Skills?
The key question facing the industry is this: can the Agent Skills framework, originally designed for massive foundation models, be handed down to small open-source language models (SLMs) running locally while delivering a comparable performance boost? This is not only an algorithmic challenge but also a core engineering problem. To convert the black-box “intuition” into quantifiable engineering metrics, researchers in academia and industry have begun restructuring Agent Skills on a foundation of rigorous mathematical models.
Researchers abstract an Agent Skill system as a constrained controller that searches for information in a partially observable world. The underlying system follows Markovian dynamics. Because the agent cannot directly observe the true “agent–task” state, the system is naturally modeled as a Partially Observable Markov Decision Process (POMDP), with explicit information-gathering actions introduced.
2. Formal Definition of Agent Skills Based on POMDPs
Under the POMDP framework, the agent must make a careful trade-off at every decision step, weighing task progress against limited attention and context resources, and then choose one of the following three operations:
- Commit to and execute a skill: Directly invoke a defined skill based on the information currently available.
- Reveal more information about the skill or its references: Add explicit information-gathering actions that trade additional compute or time cost for better observations, thereby improving subsequent decisions.
- Take a direct action in the environment: Interact directly with the environment or tools without going through a complex skill.
To make this logic engineerable, each skill is formally defined as an abstract triple:
- Text descriptor: The skill’s name and textual description. This is the foundation for the agent to understand the skill’s semantics and perform intent matching.
- Internal policy: A skill-internal policy extended over time, which can be viewed as an option-level process or workflow that triggers a sequence of actions. It defines the internal state transitions once the skill is invoked.
- Referencing mechanism: Formalized as a Markov kernel, it can reveal additional skill-related context and tools, and even pointers to other skills. This mechanism enables skills to collaborate and chain together, which is key to building complex Agent systems.
3. A Deep Dive into the POMDP State Space
To precisely evaluate and optimize system behavior, the POMDP state space is rigorously defined across the following core dimensions:
- State (S): Represents potentially hidden task context, covering user intent, task stage/progress, and environment facts that have not yet been retrieved. These states genuinely exist but are invisible to the agent at the current moment.
- Observation (O): What the agent can access at time step t, such as the current user message, available history, and any revealed or loaded resources and skills. Observations are the agent’s only window into the external world.
- Action (A): A rich action set, mainly including skill selection, paid context acquisition, skill execution, and environment/tool calls, plus internal planning and reasoning actions.
- Belief State: The core of POMDP solving. The agent maintains a probability distribution over system states, given all observations and past actions so far. By continuously updating the belief state, the agent can compensate for the information gap caused by partial observability and make more robust decisions.
4. Engineering Practice: Strategies for Building Local Agents
To validate the reliability of this theoretical framework in real industrial scenarios, researchers conducted a stress test on the most realistic industrial datasets, covering a full spectrum of open-source models from 270M to 80B parameters. This provides highly valuable guidance for engineering decisions. With a limited hardware budget, assembling a capable Local Agent requires the following strategies:
1. Model Size Selection and Hardware Budget Trade-offs
Bigger is not always better. Ultra-small models in the 270M to 1B range are well suited for lightweight intent recognition, text classification, and simple tool routing. Models in the 8B to 14B range, when deployed locally (for example, on general-purpose compute instances or container platforms such as those offered by Baidu AI Cloud), strike a good balance between inference speed and context understanding, making them suitable for routine skill execution and medium-complexity planning. Skills that demand deep logical reasoning and long-horizon task planning may require models above 70B. The key is to allocate compute resources reasonably according to the action space defined by the POMDP, achieving a “large model as the brain, small models as the limbs” collaboration.
2. Routing Configuration and Skill Assembly
Dynamic routing based on the belief state is key to building a high-performance Agent. Developers can design a lightweight scheduling layer that updates the belief state based on observations O and past actions, and dispatches tasks to the most appropriate local model or skill module. For example, when the belief state indicates that the task is in the initial intent-parsing stage, a small model is called to quickly match skill descriptors; when the belief state moves into the execution stage of a complex skill’s internal policy, a larger model is woken up for fine-grained reasoning.
3. Context Resource Management
In local deployments, GPU memory and context windows are extremely precious. By leveraging the “paid context acquisition” action in the POMDP, developers can implement an on-demand loading mechanism. Additional context or tool environments are dynamically loaded only when the uncertainty of the belief state exceeds a certain threshold, or when a skill’s referencing mechanism is triggered—thereby avoiding wasted resource usage.
5. Conclusion
Successfully handing the Agent Skills framework down to local open-source small models is a critical step toward breaking the monopoly of ultra-large closed-source APIs and achieving industrial-grade data isolation. By introducing rigorous mathematical models such as POMDPs, we can turn previously vague intuition into clear engineering metrics. In future practice, routing and model selection across the full spectrum of model sizes, combined with fine-grained state space management, will become the core competitive edge for developers building powerful local Agents within a limited budget.
