How UnimAI makes multi-agent AI cheaper and safer
Phase 1 orchestrates each workflow across the right mix of models to cut inference cost. Phase 2 extends that orchestration across the local–cloud boundary, so sensitive data stays local, and makes local execution fast enough to carry real work — which is where Relay comes in.
Complex tasks need a team, not one costly model
Decompose the workflow, route each subtask to the best-fit model, and pay premium inference cost only where it adds value.
Reasoning model
$$$Plan, decide, resolve ambiguity — invoked selectively.
Small + fast model
$Search, extract, summarize — routine volume stays inexpensive.
Specialist / private model
$$Code, vision, domain, sensitive data — preserves control.
In Phase 1 the orchestrator proposes this split for every task API key, and you can override it: allow or block models, and edit the task graph node by node.
Preliminary evaluation
Two agent benchmarks, each run twice: every step on a large model, then orchestrated by UnimAI. Success rates stayed similar; reported token cost (USD) fell sharply.
AsynCodeBench
−70.7% token cost (USD)
- All large model
- UnimAI
AgentCompany
−56.3% token cost (USD)
- All large model
- UnimAI
Preliminary internal evaluations. Reported token cost (USD) compared with running every step on a large model; task success rates were similar in both configurations.
Hybrid local–cloud architecture
Phase 2 jointly optimizes where each task runs, what information reaches the cloud, and how efficiently local agents execute.
Security-aware orchestration
Tasks are split between local and cloud models according to your security requirements. A local controller holds sensitive data and shares only authorized, appropriately processed information with cloud models.
Efficient local AI infrastructure
Optimized local inference, resource use and multi-agent execution keep latency and compute cost down — built on our research in inference, memory and context optimization, including Relay.
Efficient local AI infrastructure
Relay: share the reusable core, recompute only the delta
When a multi-agent workflow hands off between different models, the target normally re-reads the whole task history. Relay is our research on removing that cost — one of the technologies behind Phase 2's local execution.
Both agents receive the same prompt, but only the source performs the full prefill. Relay maps that state into the target's space, and the target resumes from it — selectively recomputing only what is needed to meet the configured quality threshold.
- What today's systems do
- Prefix and KV caching in engines like vLLM, SGLang, and LMCache reuse computed state when the same model sees the same prefix again. Reuse is a lookup inside one model's representation space.
- Where they stop
- A handoff to a different model has no shared representation — different tokenizer, different attention geometry, different hidden dimensions. There is nothing to look up, so the target model performs a full prefill of the whole history.
- What Relay adds
- Relay maps state between representation spaces, checks the result against a quality threshold, and recomputes only the delta that check demands — falling back to full prefill when a model pair cannot clear the bar.
Relay prototype benchmarks
Increasing difficulty: scale transfer, then bidirectional transfer, then cross-family translation.
Llama 3.1-70B → Qwen 2.5-7B
Cross family
| Method | Accuracy | Latency |
|---|---|---|
| Llama 70B native | 44.0% | 7,328 ms |
| Qwen 7B native | 45.7% | 899 ms |
| UnimAI KV sharing | 44.0% | 138 ms |
- 96% of native accuracy
- 6.5× faster than Qwen 7B
- Up to 53× faster than Llama 70B
Qwen 2.5-7B → Qwen 2.5-1.5B
Same family
| Method | Accuracy | Latency |
|---|---|---|
| 7B native | 45.7% | 899 ms |
| 1.5B native | 27.6% | 288 ms |
| UnimAI KV sharing | 34.5% | 53.8 ms |
- +6.9 accuracy points over native 1.5B
- 5.4× faster than native 1.5B
- 16.7× faster than 7B
LongBench2 · 116 samples · 16K–32K prompts. Handoff latency covers translation, transfer, assembly, and first-token decoding — it is not standard end-to-end TTFT. The cross-family experiment transfers Llama 3.1-70B KV state into a frozen Qwen 2.5-7B target; the same-family experiment transfers Qwen 2.5-7B state into a frozen Qwen 2.5-1.5B target.
Roadmap
Phase 1 · Coming soon
Cost-efficient multi-agent API platform
- OpenAI-compatible API, billed per token
- Per-key model selection and editable task graphs
- Workflow, token and cost visibility
Phase 2 · In development
Secure hybrid local–cloud platform
- Security-aware local–cloud task placement
- Local controller for sensitive data
- Efficient local inference, including Relay