Agentic AI
Octopus v4 Chains Open-Source AI Models to Beat Proprietary Systems
A new routing model uses functional tokens to orchestrate smaller, specialized language models into a graph-based system that outperforms larger proprietary alternatives.
Researchers have developed Octopus v4, a system that coordinates multiple open-source language models through a novel routing mechanism, achieving competitive performance while avoiding the cost and energy demands of proprietary giants like GPT-4.
The Problem with Proprietary Models#
Large language models from companies like OpenAI and Anthropic deliver strong capabilities but come with substantial drawbacks. These systems are expensive to access, require significant computational resources, and remain closed to scrutiny. Meanwhile, the open-source community has produced increasingly capable alternatives, and specialized smaller models trained on domain-specific data—such as those built for legal, medical, or financial work—often outperform their proprietary equivalents on targeted tasks.
How Octopus v4 Works#
Rather than relying on a single large model, Octopus v4 takes a graph-based approach that treats multiple open-source models as nodes in a coordinated network. The system introduces functional tokens—special directives that allow the routing model to:
- Identify which specialized model is best suited for a given query
- Reformat the user's input to match that model's strengths
- Intelligently orchestrate the flow of information across the graph
This builds on earlier iterations (Octopus v1, v2, and v3) by improving how the system selects models and understands task-specific parameters.
Performance Results#
The approach proves remarkably efficient. By activating only models smaller than 10 billion parameters, Octopus v4 achieved a state-of-the-art MMLU (Massive Multitask Language Understanding) score of 74.8 among models in its size category—demonstrating that thoughtful composition can rival or exceed brute-force scaling.
Availability#
The researchers have released Octopus v4 as open-source software on GitHub, inviting the community to build on the architecture and contribute specialized models to an expanding graph of language models.

