← All questionsNewOther engineering
Can an AI write neural network weights directly as code?
You are not the only one. Asked 1 time since November 2026, 6 of them in the last 4 weeks.
Times asked per week
9 Sept – 1 Dec
Week of 9 SeptTimes asked0Week of 16 SeptTimes asked0Week of 23 SeptTimes asked0Week of 30 SeptTimes asked0Week of 7 OctTimes asked0Week of 14 OctTimes asked0Week of 21 OctTimes asked0Week of 28 OctTimes asked0Week of 4 NovTimes asked0Week of 11 NovTimes asked0Week of 18 NovTimes asked06Week of 25 NovTimes asked6
Week of 9 SeptWeek of 25 Nov
Coloured columns are the last 4 weeks.
What people answer
- One saysAn AI can produce network weights by acting like a compiler that builds a network from scratch, or like a debugger that patches an existing trained model, rather than guessing billions of numbers.
- One saysIn one case the AI analyzed the slow Monte Carlo code, derived an approximate closed-form formula, and hand-built a network from parts to implement it, using no training data.
- One saysHand-engineered features and weights help most at small model sizes, but that doesn't mean the result beats a larger model.
- One saysA fairer test would match the compared networks on parameter count or inference budget, since the method processes billions of weights to compute features.
Gemini
A language model summarised 3 public replies and posts. Views are mixed. These are other people's views, not advice from Navigara.
What people asked
Each line is our one-sentence summary. The link opens the original discussion.
- How does weight space programming work, where an AI model writes the weights of a neural network directly as code without gradient descent, and how does it calculate what the weights should be?Open thread →
- Would the performance gain from generating an LLM's initial weights as code be larger for smaller language models than for larger ones?Open thread →
- Why not apply a mapper to the weights of a neural network to reduce extreme outlier values in a model whose weights were generated as code?Open thread →
Show 3 more
- Could passing neural network weights through a sigmoid function help a model whose initial weights were generated as code?Open thread →
- Could an LLM trained from generated initial weights be simply overfitting, and how should its train, test and validation sets be split and sized?Open thread →
- How long does compiling LLM weights written as code take compared with training the same model with conventional gradient-based training?Open thread →
Where it is asked
- Hacker News6