---
format: "aidr-story-markdown/v1"
id: "0462b75b1b9181d0e2da0d48dbd2fb1fbb34d3dbfad719ff156306f25b33427f"
canonical_url: "https://aidr.today/0462b75b?lang=en"
title: "WeightCode: Installing New Capabilities into Neural Networks via Weight-Space Programming"
lang: "en"
requested_lang: "en"
available_langs: ["en","vi"]
translation_fallback: null
fallback_fields: []
published_at: "2026-11-24T00:00:00.000Z"
category: "Frameworks"
topics: ["llm","framework"]
source_urls: ["https://huggingface.co/papers/2611.25476"]
summary: "Neural networks encode learned capabilities in their weights, yet extending those capabilities with explicit task knowledge remains a fundamental challenge. Here we show that Weight-Space Programming (WSP), in which executable programs read, construct or modify a network's weights directly, can install new capabilities within trained neural networks. WeightCode, a WSP framework, uses a frozen language model to write executable weight programs that install new computations into trained neural networks using task knowledge and their existing weights, without gradient-based training. Once installed, the new capabilities run independently of the language model. Given a grammar or eight demonstrations, weight programs enable previously unseen command compositions (0% to 99.8% exact match) and a new pickup action (0% to 98.4% success), while preserving the original command and navigation capabilities. On ImageNet, four weight programs achieve net gains of 8.84-17.62 points while preserving clean accuracy, outperforming the best of eight fine-tuning methods under matched examples, checks, and retention constraints."
---

# WeightCode: Installing New Capabilities into Neural Networks via Weight\-Space Programming

> [Open the canonical story](<https://aidr.today/0462b75b?lang=en>)

**Published:** 2026-11-24T00:00:00.000Z
**Category:** Frameworks
**Topics:** llm, framework

## Summary

Neural networks encode learned capabilities in their weights, yet extending those capabilities with explicit task knowledge remains a fundamental challenge\. Here we show that Weight\-Space Programming \(WSP\), in which executable programs read, construct or modify a network's weights directly, can install new capabilities within trained neural networks\. WeightCode, a WSP framework, uses a frozen language model to write executable weight programs that install new computations into trained neural networks using task knowledge and their existing weights, without gradient\-based training\. Once installed, the new capabilities run independently of the language model\. Given a grammar or eight demonstrations, weight programs enable previously unseen command compositions \(0% to 99\.8% exact match\) and a new pickup action \(0% to 98\.4% success\), while preserving the original command and navigation capabilities\. On ImageNet, four weight programs achieve net gains of 8\.84\-17\.62 points while preserving clean accuracy, outperforming the best of eight fine\-tuning methods under matched examples, checks, and retention constraints\.

## Sources

- [Story source](<https://huggingface.co/papers/2611.25476>)

