Cmpnd Releases dspy-wsp: Weight-Space Programming Comes to DSPy
In one sentence
Cmpnd has open-sourced dspy-wsp, a DSPy optimizer that lets frontier LLMs directly inspect and edit smaller models' weights without gradients or fine-tuning.
Key points
- Based on MIT's weight-space programming research, dspy-wsp uses LLM reasoning to generate code patches that edit target model weights.
- The process requires no gradient descent, training loops, or fine-tuning datasets, relying on a few forward passes in a sandbox for verification.
- In Cmpnd's tests, $5 to $10 worth of GPT-6-Astra calls improved performance across 0.6B to 9B parameter decision models.
- The tool remains experimental, with slow runtimes of 78 to 167 minutes per run and weaker gains on larger models.
In depth
An AI-written overview of the original article, not the article itself.
According to the article, Cmpnd has released dspy-wsp, a prototype optimizer that brings weight-space programming to the DSPy framework. Without using gradients or fine-tuning datasets, it allows a frontier LLM to directly read and edit a smaller model's weights, offering a low-cost, verifiable experimental approach to model optimization.
Core Mechanism and Workflow
Originating from MIT research, weight-space programming treats neural network weights as code that can be read and rewritten. dspy-wsp packages this into the WeightSpace optimizer, which coordinates a local student model, a frontier writer LLM (such as GPT-6-Astra), and a code execution sandbox.
During optimization, the writer model reasons about the weights and edits them over a budget of 25 forward passes. The process outputs a small, hash-verified patch file, allowing developers to deploy the edited model locally without relying on hosted APIs.
Benchmark Performance
On the Typed Decisions benchmark, Cmpnd tested open decision models ranging from 0.6B to 9B parameters on a single Mac. Each run took 78 to 167 minutes and cost between $5.42 and $7.63 in writer LLM calls.
WeightSpace alone improved scores by 1.9 to 16.1 points. When stacked with Cmpnd's earlier ReAnchor optimizer, total gains reached 6.5 to 20.0 points, pushing d1-omni-600M from 50.9% to 69.1%.
Limitations and Caveats
The article notes that dspy-wsp is still highly experimental, slow to run, and shows weaker gains on larger models. For instance, the 9B Clef-Flash model gained only 1.9 points from WeightSpace alone.
The choice of writer model also matters significantly, with GPT-6-Astra outperforming gpt-6.1-sol. Furthermore, enforcing the original paper's stricter rule by disabling in-kernel decision head recomputation (setting simulate_head=False) drops d1-omni-600M's standalone gain to 2.8 points.
This summary was generated by AI from the original article and may contain errors; the original is authoritative. Copyright belongs to the original author.