vSFT: Test-Time Verbal Agent Tuning via Hypernetwork LoRA

vSFT (arXiv:2611.34440, AMAP Alibaba Group & BUPT) pairs a natural-language supervisor with a meta-trained hypernetwork that converts verbal failure critiques into LoRA weight updates at test time—with zero backpropagation. Using Qwen3-4B, vSFT beats GRPO and Reflexion by 8.7% and 13.9% on ALFWorld and 4.8% and 18.2% on WebShop.
vSFT: Test-Time Verbal Agent Tuning via Hypernetwork LoRA: vSFT (arXiv:2611.34440, AMAP Alibaba Group & BUPT) pairs a natural-language supervisor with a meta-trained hypernetwork that converts verbal failure critiques into LoRA weight updates at test time—with zero backpropagation. Using Qwen3-4B, vSFT beats GRPO and Reflexion by 8.7% and 13.9% on ALFWorld and 4.8% and 18.2% on WebShop. Designed as a zero-dependency, open-source TypeScript architecture under the MIT License with native Model Context Protocol (MCP) support and deterministic phase state machines.
- In-Parameter Adaptation Without Backprop: Synthesizes low-rank (A_k, B_k) LoRA matrices in one hypernetwork forward pass from verbal feedback.
- Beats GRPO & Reflexion on Compact 4B Models: Qwen3-4B with vSFT hits 49.00% SR on WebShop (vs 44.20% GRPO, 30.80% Reflexion) and 92.5%–100.0% on ALFWorld.
- Eliminates Prompt Bloat: Internalizes system prompts, few-shot demos, and FIFO critique memory directly into weights instead of stuffing long context windows.
- Orthogonal to RL: Stacking vSFT onto a GiGPO-trained agent adds +37 solved tasks (+8.5% average SR) without touching RL weights.
import { createAgent } from '@smoke-monkey/harness';const supervisorAgent = createAgent({agentId: 'vsft-verbal-supervisor',provider: 'custom',baseUrl: 'http://localhost:8000/v1',model: 'Qwen/Qwen3-4B-Instruct-2507',workspacePath: process.cwd(),permissions: { read_file: 'allow', write_file: 'allow', run_command: 'ask' },});async function runTestTimeAdaptation() {// Phase 1: Collect failed trajectory and emit dense verbal critique z^(t)const critique = await supervisorAgent.run('Analyze failed WebShop search trajectory, diagnose constraint mismatch, and emit compact FIFO verbal supervision for hypernetwork LoRA synthesis.');console.log('Verbal Supervision Vector:', critique.summary);}runTestTimeAdaptation().catch(console.error);
Watch: Related Video Guides
LoRA Fine-tuning Tiny LLMs as Expert Agents
Small AI Models Are More Powerful Than You Think
What Is vSFT? Solving Sparse Rewards and In-Context Drift at Test Time
Verbally Supervised Fine-Tuning (vSFT, arXiv:2611.34440) bridges the gap between reinforcement learning (which updates weights but relies on expensive rollouts and sparse scalar rewards) and verbal reflection methods like Reflexion (which offer dense critiques but leave weights frozen and bloat context windows).
| Adaptation Method | On-Policy | Updates Weights | Dense Feedback | Zero Backprop at Test Time |
|---|---|---|---|---|
| Standard SFT | ✗ | ✓ | ✓ | ✗ |
| Agentic RL (GRPO / GiGPO) | ✓ | ✓ | ✗ | ✗ |
| Reflexion (vRL) | ✓ | ✗ | ✓ | ✓ |
| vSFT (Hypernetwork LoRA) | ✓ | ✓ | ✓ | ✓ |
At trial $t$, vSFT feeds the system prompt $p$, few-shot examples $\mathcal{F}$, and a bounded FIFO queue of verbal critiques $\mathcal{M}^{(t)}$ into a hypernetwork $h_\phi(c^{(t)})$, which directly emits LoRA matrices $(A_k^{(t)}, B_k^{(t)})$ to patch the agent's weights $W_k^{(t)} = W_k + \alpha B_k^{(t)} A_k^{(t)}$ in a single forward pass.
Offline Hypernetwork Meta-Training & JSONSchemaBench Steering
Rather than training a task-specific LoRA, vSFT meta-trains the hypernetwork $\phi$ offline over successful multi-turn trajectories $\mathcal{T}_{\text{succ}}$ so the model learns *how to internalize arbitrary verbal instructions* into weight space. Notice that standard document-internalization hypernetworks fail to steer agent behavior on structured tasks; vSFT's trajectory-conditioned meta-objective enables sharp behavioral shifts.
On JSONSchemaBench (GitHub Easy, Medium, and Hard splits) using Qwen3-4B-Instruct-2507, a hypernetwork meta-trained purely on ALFWorld generalized zero-shot to outperform both in-context prompting and prior hypernetworks on strict JSON schema adherence—especially on the Hard split.
ALFWorld & WebShop Benchmarks: Qwen3-4B Beats GRPO and Reflexion
Evaluated on Qwen3-4B-Instruct-2507 across WebShop and ALFWorld, vSFT outperforms both on-policy RL (GRPO) and frontier-assisted reflection while remaining completely composable with RL checkpoints:
| Method (Agent: Qwen3-4B-Instruct-2507) | WebShop Score | WebShop Success Rate (%) | ALFWorld Seen / Unseen (%) |
|---|---|---|---|
| ReAct Baseline | 40.74 | 18.80% | 63.6% / 66.7% |
| Reflexion (self-critique) | 59.65 | 30.80% | — |
| GRPO (RL) | 65.83 | 44.20% | — |
| GiGPO (RL) | 67.13 | 50.00% | — |
| vSFT (self-supervised) | 73.55 | 49.00% (+18.2) | 92.9% / 92.5% |
| vSFT† (Qwen-Plus supervisor) | 82.19 | 59.80% (+15.0) | — |
| vSFT‡ (curated + Qwen-Plus) | 83.58 | 62.00% | 99.3% / 100.0% |
When stacked directly on top of a GiGPO RL-trained agent, vSFT raised average ALFWorld success from 75.8% (GiGPO alone) to 84.3% (+23 tasks) self-supervised and 89.5% (+37 tasks) with a stronger supervisor.
# Clone official AMAP-ML/vSFT repository for hypernetwork meta-training
git clone https://github.com/AMAP-ML/vSFT.git && cd vSFT
pip install -e . && python scripts/eval_vsft.py --agent Qwen/Qwen3-4B-Instruct-2507 --env webshopWatch for KV-Cache Tradeoffs in Retrieval Tasks
While LoRA internalization boosts multi-hop behavior steering and NIAH (+18.6% on Mix.Sum+NIAH), table ablations show raw base KV retrieval still beats LoRA inference on exact long-context RepoQA (-0.7%) and Math.Find (-14.2%). Keep exact code references in context or tool reads.
Frequently Asked Questions
Q:Does vSFT run gradient descent or backpropagation at test time?
No. At test time, vSFT converts the supervisor's natural-language feedback into low-rank LoRA matrices (A_k, B_k) using a single forward pass of a meta-trained hypernetwork, with zero backpropagation.
Q:How much does vSFT improve Qwen3-4B over GRPO and Reflexion?
Using Qwen3-4B-Instruct-2507, vSFT beats GRPO and Reflexion by 8.7% and 13.9% in success rate on ALFWorld, and by 4.8% and 18.2% on WebShop (reaching 49.00% self-supervised and 62.00% with Qwen-Plus supervision).
Q:Can vSFT be combined with agents already trained with RL like GiGPO?
Yes. Stacking vSFT onto a GiGPO baseline raises average success rate from 75.8% to 84.3% self-supervised (+23 solved tasks) and 89.5% with Qwen-Plus supervision (+37 solved tasks).
Q:Does vSFT still improve if the supervisor is a different model family?
Yes. Supervisor ablations on WebShop show strong gains across Qwen3.8-Max (53.00% SR), GPT-5.6-Terra (55.40% SR), DeepSeek-V4-Pro (53.80% SR), and GLM-5.1 (56.00% SR).
Related Alternatives & Comparisons
Related Architecture Guides
View all guidesBest Open Source Coding Agents in 2026: Free, Local & Fully Hackable Harnesses
MCP Server Security Best Practices: Hardening Model Context Protocol Agents in 2026
Open Source Coding Agent Harness: Build a Forkable, Local AI Engineering Runtime
Build with Smoke Monkey Harness
Zero dependencies. 24 built-in tools. Human-in-the-loop safety. 100% open source under the MIT License.