Can Small Models and Skill Frameworks Power Reliable AI Agents? A POMDP-Based Approach to Local Deployment
This article examines whether small language models can support production-grade AI Agents when paired with a skill framework. It formalizes skill selection, information retrieval, and tool execution as a partially observable Markov decision process (POMDP), then discusses evaluation across model sizes from 270M to 80B parameters. The analysis highlights practical strategies for improving local Agents, including better skill descriptions, explicit context budgets, cascade routing, and belief-state monitoring.
1. The Core Question: Can Small Models Work with Skill Frameworks?
Agent Skills frameworks have increasingly become a mainstream pattern for building intelligent agents. By breaking complex tasks into reusable “skills,” these frameworks allow a model to load skill descriptions as needed, retrieve relevant context, and call tools.
This approach has been validated with frontier-scale models. However, it relies on several implicit assumptions: that the model can follow instructions reliably, manage long contexts, and plan across multiple reasoning steps.
When the focus shifts to locally deployable open-source small language models (SLMs), several practical challenges emerge:
- Limited context windows: Loading complete skill descriptions and referenced documents can quickly exceed the available context window.
- Weaker instruction following: Small models are more likely to deviate from predefined workflows during multi-step decisions.
- Higher decision noise: They are significantly more likely to select the wrong skill or execute an action prematurely.
The key question, therefore, is not simply whether a small model can run an Agent framework. The more important question is whether its production viability can be evaluated quantitatively: at what model size and under which routing configuration can a local Agent become suitable for industrial use?
2. Formalizing the System: Turning Intuition into a Mathematical Model
A rigorous evaluation of Agent behavior requires moving beyond black-box, experience-based judgments. Researchers can abstract a skill system as a constrained controller that performs information seeking in a partially observable environment.
The central idea is that, at every decision step, the Agent must balance task progress against limited attention and context resources. Its actions can generally be divided into three categories:
- Submit and execute a skill;
- Reveal more relevant information, such as documents or sub-skills referenced by a skill;
- Take a direct action in the environment, such as calling a tool or modifying system state.
The underlying environment follows Markov dynamics, but the Agent cannot directly observe the complete Agent-task state. Hidden information may include the user’s actual intent, the current stage of the task, and facts about the environment that have not yet been retrieved.
This makes the system a natural fit for a partially observable Markov decision process (POMDP) with explicit information-gathering actions. The Agent pays an additional context cost to obtain higher-quality observations.
2.1 Mathematical Representation of a Skill
Each skill can be formalized as a tuple containing three components:
- Textual descriptor: The skill name and natural-language description consumed during retrieval and selection;
- Internal policy: A temporally extended, option-level process that produces a sequence of low-level actions or workflow steps after activation;
- Reference mechanism: A Markov kernel that models the stochastic, on-demand disclosure of additional context, tools, or pointers to other skills.
The important implication is that a skill is not merely a prompt template. It is a dynamic process with internal state and the ability to reference other resources recursively.
2.2 Defining the POMDP State Space
The complete POMDP can be described using the following elements:
- State S: Potentially hidden task conditions, including user intent, task stage or progress, and environmental facts that have not yet been retrieved;
- Observation O: The information visible to the Agent at time step t, including the current user message, conversation history, and already revealed or loaded resources and skills;
- Action A: Skill selection, paid context acquisition, skill execution, environment or tool calls, as well as internal planning and reasoning;
- Belief state b: The Agent’s posterior distribution over the true state, conditioned on all previous observations and actions.
This model turns practical questions such as “Should the small model read the documentation before executing the skill?” into an explicit trade-off between information value and acquisition cost. It also provides a consistent framework for comparing different model sizes and routing strategies.
3. Evaluation Design: A Full Range of Models and Production-Oriented Tasks
To investigate the relationship between model scale and Agent performance, evaluations can cover open-source models ranging from 270M to 80B parameters. These models are stress-tested on datasets designed to reflect realistic production tasks.
Typical evaluation dimensions include:
- Skill-selection accuracy: Whether the belief state effectively converges on the correct skill;
- Efficiency of information acquisition: The total number of context tokens consumed to achieve a comparable task success rate;
- Completion rate and error recovery: Whether the Agent can correct itself after deviating from the intended workflow;
- Scale-performance curves: Where the marginal performance gains from additional parameters begin to change significantly.
The resulting pattern is generally hierarchical:
- Very small models, in the hundreds of millions of parameters, struggle to complete multi-step tasks consistently even when paired with a skill framework.
- Mid-sized models, with several billion parameters, can approach the task success rates of much larger models when supported by well-designed skill descriptions and reference-routing mechanisms. At the same time, they can reduce reasoning costs by more than an order of magnitude.
- 80B-class models are primarily advantageous when skill descriptions are incomplete or low quality, because they are more robust to ambiguity and poor routing signals.
4. Engineering Guidance: Building a Local Agent Under a Limited Budget
The formal framework and evaluation methodology lead to several practical principles for building local Agents.
Improve skill descriptors before increasing model size. For mid-sized models, clear and discriminative skill names and descriptions often improve selection accuracy more than doubling the parameter count.
Set an explicit budget for information acquisition. Limit the number of context-retrieval operations allowed at each task step through the prompt or control layer. This helps prevent small models from entering an endless document-reading loop.
Use cascade routing. Assign lightweight intent classification to a small model, then fall back to a larger model when confidence is low. This creates a cost-quality Pareto frontier.
Monitor belief-state convergence. Record the entropy of the skill-selection distribution at each step. If the entropy does not decrease over time, the problem may lie in the skill descriptors or the retrieval layer.
In cloud-based deployments, a local Agent can also use object storage for the skill library, container platforms for elastic inference capacity, and monitoring and alerting systems to track belief states and resource consumption. Together, these components create an observable operational feedback loop.
5. Conclusion
The primary contribution of the POMDP formulation is that it turns the question of whether “small models plus skill frameworks” are viable from an experience-based debate into a computable and reproducible engineering problem.
For teams operating under limited compute budgets, the right strategy is not necessarily to pursue the largest available model. Instead, teams should understand the cost-benefit structure of information acquisition and use more precise skill design and routing strategies to make every parameter count.
