<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Praharsha on Medium]]></title>
        <description><![CDATA[Stories by Praharsha on Medium]]></description>
        <link>https://medium.com/@praharsha101?source=rss-c757ad7c0349------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*3jDWIC6ephUWigwmgzPLMw.jpeg</url>
            <title>Stories by Praharsha on Medium</title>
            <link>https://medium.com/@praharsha101?source=rss-c757ad7c0349------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 14:05:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@praharsha101/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Why One Run Isn’t Enough: Replicating “Sparks of Weight-Space Programming” with Claude]]></title>
            <link>https://medium.com/@praharsha101/why-one-run-isnt-enough-replicating-sparks-of-weight-space-programming-with-claude-790e7b96d957?source=rss-c757ad7c0349------2</link>
            <guid isPermaLink="false">https://medium.com/p/790e7b96d957</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[reinforcement-learning]]></category>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[claude]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Praharsha]]></dc:creator>
            <pubDate>Mon, 23 Nov 2026 20:58:36 GMT</pubDate>
            <atom:updated>2026-11-24T11:31:20.862Z</atom:updated>
            <content:encoded><![CDATA[<h4>Claude hand-wrote all 20,486 weights of a game-playing network, with no training, and five of 105 attempts matched GPT-6 Astra. The catch: given more room to think, it often never finished.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SPYG00h7PF_l4ir3KFX4mQ.png" /></figure><p>Earlier this month, a blog post called <a href="https://rikiyat.github.io/blog/weight-space-programming/"><em>Sparks of Weight-Space Programming</em></a>, by Rikiya Takehi, Jayden Teoh, Alex Zhang and Omar Khattab at MIT CSAIL, made a strange claim. You can ask a language model to write a neural network the way you’d write code. Not by training it, mind you, but by setting its weights, the numbers inside the network, one at a time, in a single reply.</p><p>In their Experiment 5, OpenAI’s GPT-6 Astra got a description of the Atari-style game Breakout and an empty network with 20,486 weights. It had to set every weight by hand. It had no code to run, no way to test its work and no second try. The network it wrote averaged <strong>517 points</strong>.</p><p>For scale, the authors report that the same network trained the normal way, with reinforcement learning (PPO) for 500 million steps, scored just <strong>25 points</strong>.</p><p>When people tried the same test on Anthropic’s Claude, the results were messy. Single runs of Claude Opus 5.5 reported online scored <a href="https://github.com/MaceTenth/weight-space-programming-replication">55</a>, <a href="https://github.com/Sir-Olexander/lm_understand-logs-claude">57</a>, <a href="https://github.com/nihilistau/weight-space-claude">307</a>, <a href="https://github.com/MatinKhajavi/Weight-Space-Programming">484</a> and <a href="https://github.com/EphraiemSarabamoun/weight-space-programming-opus">504</a>, and not all under the same conditions: one ran at a lower thinking setting, and two got extra turns (more on that below). So which is it? Can Claude do this or not?</p><p>After going through those reports, I concluded that one run can’t answer this question. So naturally, I ran it 105 times.</p><p>The short answer: yes, Claude can, but at the thinking setting Astra used, most runs thought until they ran out of room and never wrote a single weight. Like my therapist says, overthinking never helps, huh?</p><h3>The setup</h3><p>I kept everything from the original experiment and changed only the model.</p><ul><li><strong>The same prompt,</strong> byte for byte, from the authors’ <a href="https://github.com/RikiyaT/lm_understand-logs">public logs</a>.</li><li><strong>The same game,</strong> MinAtar Breakout (<a href="https://arxiv.org/abs/1903.03176">Young &amp; Tian, 2019</a>), a 10×10 version of Breakout made for AI research. You get one life, so the game ends the first time you miss the ball.</li><li><strong>One reply, no tools.</strong> The model can think as long as its output limit allows (128,000 tokens; a token is roughly a word piece, and the model’s hidden thinking counts too), then it has to write the weights.</li><li><strong>Scoring:</strong> each network plays 1,000 games, and its score is the average. As in the original, a game is stopped after 10,000 steps, which matters for the best networks (more below).</li><li><strong>Baselines:</strong> random play scores 0.54, and so does an empty network. I also wrote a simple rule, “move the paddle toward the ball”, and it scores 8. Keeping up with the ball isn’t enough. You have to know where it’s <em>going</em>.</li></ul><p>I wrote the scorer myself and I checked it against the original first. Astra’s published network scores <strong>502.9</strong> under my scorer, against the 517.4 the authors report. That’s within normal statistical noise, and two other people’s independent scorers got the same 502.8 to 502.9. From here on I compare Claude with that 503, measured the same way.</p><p>One detail of the setup matters more than it looks. When a reply hits the output limit, Claude Code (Anthropic’s command-line tool, which I used, as did at least two of the replications above) doesn’t stop. It quietly sends the model a new message, “Output token limit hit. Resume directly…”, and lets it keep going, up to three more times. One version of that message tells the model to “reason much more briefly”. That’s helpful when you’re coding. In an experiment, it means you’re no longer measuring one reply. The 57 and the 484 above both went through these automatic continuations, as their authors note in their own READMEs. My harness (the script that runs each test) stops the run at that point, so every result here is one reply, like the original.</p><p>Before any run was scored, I wrote down the rules and committed them to git: how a reply is read, how it’s scored, and what counts as a failure. Every change after that is dated and explained. That way I can’t quietly move the goalposts once I see results.</p><p>Then I ran four Claude models, 10 times each, at the effort setting Astra used (“xhigh”): Haiku 5.5, Sonnet 5.5, Opus 5.5 and Fable 5.2. The effort setting controls how long the model thinks before it answers. Claude’s “xhigh” has the same name as Astra’s, but they are two companies’ settings and needn’t mean the same amount of thinking.</p><h3>The results</h3><figure><img alt="Four scatter plots, one per Claude model, showing all 105 runs: score on a log scale against the output tokens each reply used, with marks for the medium, high, xhigh and max settings. Runs cut off at the 128K-token cap have no network and appear as arrows in a grey column at the right. Dashed lines mark random play, reinforcement learning, the follow-the-ball rule and GPT-6 Astra. Opus reaches 510 and Fable 503, level with Astra; Sonnet’s best is 351 and Haiku’s 20." src="https://cdn-images-1.medium.com/max/1024/0*e6GnLhnQMaK5Mx-a.png" /><figcaption>Figure 1. All 105 runs, one mark each: score against the tokens the reply used.</figcaption></figure><p>For now, look at the circles and at the arrows labelled “xhigh” in the grey column.</p><p>“Finished” below means the reply ended normally with a network in it. A run that didn’t finish plays at random, 0.54.</p><figure><img alt="Table of results at the xhigh setting. Haiku 5.5: 0 of 10 runs finished a network, median score 0.54, best 0.54. Sonnet 5.5: 6 of 10 finished, median 29, best 351. Opus 5.5: 4 of 10 finished, median 0.54, best 510. Fable 5.2: 0 of 10 finished, median 0.54, best 0.54." src="https://cdn-images-1.medium.com/max/1024/0*s0kaNw98_ZsvbhbZ.png" /></figure><p><strong>Twice, Claude Opus 5.5 wrote a network as good as GPT-6 Astra’s.</strong> Its two best networks scored 510 and 503, both within statistical noise of Astra’s 503. A language model sat down, reasoned for 17 to 18 minutes, and typed out a Breakout player that scores 20 times what the authors got from 500 million steps of reinforcement learning.</p><p>Sonnet’s best was 351. All six of its finished networks beat the reinforcement-learning baseline, though the weakest only barely (27 against 25).</p><p>But look at the second column. Most runs produced <strong>nothing at all</strong>. Haiku and Fable never finished a network, and Opus failed six times out of ten.</p><p>The problem wasn’t that they wrote bad networks, but that they never got around to writing them at all. I know the feeling. My room is still waiting for its perfect cleaning strategy.</p><h3>They ran out of room</h3><p>Each reply has a budget: 128,000 tokens of output, and that includes the model’s thinking. 30 of the 40 runs at “xhigh” hit that limit, and in 28 of them the model was still thinking. The reply ends there, with no usable network, and it plays at random (0.54 points).</p><p>In Figure 1, every failed “xhigh” run is an arrow in the grey column, cut off at 128,000.</p><p>Compare that with Astra. Its network took <strong>20,567 tokens</strong>, about 17,000 of them reasoning. The Claude runs that <em>succeeded</em> at “xhigh” used a median of 115,000 (Opus) and 109,000 (Sonnet). The two companies count tokens differently, so the comparison is rough, but the gap is large: Claude isn’t solving a harder problem; it’s spending more than five times as many tokens to solve the same one, and the clock runs out.</p><p>That suggested a test: <strong>what if I tell the model to think less?</strong></p><p>The effort setting can be turned down from “xhigh” to “high” and “medium”, or up to “max”. These runs are exploratory, and the protocol labels them that way. Haiku at “high” was added after the first pilot runs. Five runs each of Fable at “high” and Opus at “max” were planned in advance as optional extras. The rest (Sonnet and Opus at “high”, Fable’s second five, Sonnet at “max”, and Haiku, Opus and Fable at “medium”) came after I had seen every “xhigh” result.</p><p>I wasn’t the first to try this. shawnghu <a href="https://www.lesswrong.com/posts/wg3K6xFFTdM6RmRgn/claude-fable-5-2-can-do-weight-space-programming-about-as">ran Fable 5.2 at “high”</a> three times: all three finished, averaging about 485, while at “xhigh” it used up its whole budget thinking in 8 of 9 attempts across three games. My runs test the same idea with ten runs at “high” and more models.</p><p>In this table, bold marks the best of each model’s settings.</p><figure><img alt="Table of every model and setting, listing runs that finished a network, median score and best score. Haiku 5.5: medium 5 of 5, 5.3, 7.8; high 9 of 10, 6.4, 20; xhigh 0 of 10, 0.54, 0.54. Sonnet 5.5: high 10 of 10, 7.6, 16; xhigh 6 of 10, 29, 351; max 0 of 5, 0.54, 0.54. Opus 5.5: medium 5 of 5, 41, 109; high 10 of 10, 56, 352; xhigh 4 of 10, 0.54, 510; max 0 of 5, 0.54, 0.54. Fable 5.2: medium 5 of 5, 61, 119; high 9 of 10, 450, 503; xhigh 0 of 10, 0.54, 0.54." src="https://cdn-images-1.medium.com/max/1024/0*mR4OvEFWDzlPe0xT.png" /></figure><p>Turning the setting down got every model to finish almost every run, but the quality of what they wrote differed a lot from model to model.</p><p>Ten runs is a small sample, so I checked how likely the jumps from “xhigh” to “high” would be by chance alone, with a Fisher exact test. The p-value is that chance; small means luck is an unlikely explanation. Fable going from 0 to 9 out of 10, and Haiku from 0 to 9, are very unlikely to be luck (p = 0.0001 each), and so is Opus going from 4 to 10 (p = 0.01). Sonnet’s 6 to 10 could be (p = 0.09). Since these runs are exploratory and ran at different times of day, we should treat the p-values as a guide instead of some robust proof.</p><p><strong>Fable at “high” is the strongest result in this whole experiment.</strong> It went from zero out of ten at “xhigh” to nine out of ten, and its median network scores 450. Three of its networks (503, 502 and 501) are level with Astra’s.</p><p><strong>Opus at “high” finished all ten, but aims lower.</strong> All ten runs produced a network, typically scoring about 56, and none came close to its two 500-point networks at “xhigh”. Going the other way, Opus at “max” ran out of room every time as none of its five runs produced anything.</p><p><strong>Sonnet at “high” barely thinks; Haiku thinks but doesn’t get far.</strong> Sonnet replied in about a minute, using around 7,000 tokens, and its networks score about as well as the follow-the-ball rule (median 7.6, best 16; one scored 0). Haiku used far more room, a median of 70,000 tokens, and still wrote weak networks; its best scored 20. For Haiku, the model itself is the limit.</p><p><strong>At “medium”, everything finishes, but nothing gets better.</strong> I ran Haiku, Opus and Fable one step lower, five times each, to check whether “high” was really their best setting or just the lowest I had tried. All 15 runs finished, using a median of 15,000 to 23,000 tokens, and no model wrote better networks than at “high”: Haiku’s median went from 6.4 to 5.3, Opus’s from 56 to 41, and Fable’s from 450 to 61. With five runs each, only Fable’s drop is clearly more than chance; its best at “medium” was 119.</p><p>So there is no single right setting. In these runs, each model had a point where it thought enough to design something good but stopped in time to write it down. For Haiku and Fable that point is “high”. For Sonnet it is “xhigh”, on both median and best score. For Opus it depends on what you want: “xhigh” gave its two best networks, “high” a working one every time. The “max” effort was tried five times each with Opus and Sonnet (the only two models that ever finished at “xhigh”), and with that they never finished at all.</p><h3>Why scores range from 57 to 510</h3><p>When Opus finished, its scores were 57, 134, 503 and 510. That looks chaotic, but the spread has a simple cause: the one-life rule.</p><p>I measured how often each network misses the ball when it reaches the bottom, over 200 games each:</p><figure><img alt="Table of how often each network misses the ball. Fable’s best (high): score 503, misses 1 ball in 2,100. Opus’s best (xhigh): 510, 1 in 1,800. GPT-6 Astra: 503, 1 in 900. Opus’s worst finished network (xhigh): 57, 1 in 95. The rule “move the paddle toward the ball”: 8, 1 in 10." src="https://cdn-images-1.medium.com/max/1024/0*J27mQQMHpTwAJLo8.png" /></figure><p>A network that catches 99% of balls survives about 100 returns and scores about 57. One that catches 99.95% survives about 2,000 and scores about 500. Both are “almost perfect” but you only have to miss once to lose the game, and that small difference between almost perfect and very nearly perfect evolves into a ninefold gap in score.</p><p>There are two things worth keeping in mind here. Catching the ball scores nothing by itself; points come only from breaking bricks, and catching just keeps the game going. That’s why Sonnet’s network, despite missing even less often than Astra’s, still ends up with a lower score of 351 points. There’s also a limit of 10,000 steps per game, which means the highest scores eventually hit a ceiling. Astra’s network reached that limit in 517 out of 1,000 games, while Claude’s five best networks managed it in anywhere from 703 to 780 games. So when we say Claude is level with Astra, we’re really saying that both are pushing against the same scoring ceiling, not that they’re necessarily equally good at everything.</p><h3>What did Claude actually write?</h3><p>The best part of hand-written networks is that you can read them.</p><figure><img alt="Heatmaps of the first-layer weights of Opus’s 503-point network: ten columns for its ten hidden units, three rows for where the paddle is, where the ball is and where the ball was a step ago, each drawn as the 10 by 10 screen (red positive, blue negative). Units 0 and 1 compare the ball with its last cell to get its direction. Units 2 to 9 weigh the paddle row against diagonal bands and sideways V shapes on the ball’s position, tracing where the ball will land." src="https://cdn-images-1.medium.com/max/1024/0*E6CYqRltr6U5UNoQ.png" /><figcaption>Figure 2. What each hidden unit in Opus’s 503-point network looks for: its first-layer weights.</figcaption></figure><p>The network has room for 32 hidden units (the “neurons” in its middle layer), but Opus used only 10. The other 22 have all-zero weights, so the figure shows just the ten.</p><ul><li><strong>Two units work out which way the ball is moving.</strong> They compare where the ball is with where it just was. One for up or down and the other for left or right.</li><li><strong>Eight units, in four pairs, work out where the ball will land.</strong> Each pair covers one of the four directions the ball can travel. It traces the ball’s diagonal path down to the paddle row, folding it where the ball would bounce off a side wall (the diagonal ridges), and compares the landing spot with the paddle. For a rising ball, the pair also allows for its bounce off the bricks or the top wall (the sideways V shapes). One unit of the pair fires when the paddle is too far left, the other when it is too far right.</li></ul><p>A second layer then acts as a switch: of the four landing-spot pairs, it passes on only the one for the direction the ball is moving, and that pair alone pushes the paddle left or right.</p><p>In effect, Claude wrote a trajectory predictor in raw weights, without running a single line of code. Opus’s other network above 500 (the 510), from a different run, solves the same problem with a different layout of units.</p><figure><img alt="Animation of two Breakout games side by side on the same game seed: GPT-6 Astra’s network on the left and Opus’s 503-point network on the right, each moving its paddle to keep returning the ball and break bricks over the first 400 steps." src="https://cdn-images-1.medium.com/max/1004/0*SOV8NPxe9LyvE6MN.gif" /><figcaption>Figure 3. GPT-6 Astra’s network (left) and Opus’s 503-point network (right) play the same game for its first 400 steps.</figcaption></figure><h3>What this does and doesn’t show</h3><p><strong>It shows</strong> that current Claude models can hand-write a working neural network, sometimes at the level of the best published result, and that their effort setting mostly decides whether they finish. Five Claude networks scored above 500: two from Opus at “xhigh” and three from Fable at “high”.</p><p><strong>It doesn’t show</strong> that Claude is better or worse than GPT-6 Astra overall. Astra’s result is one published run; we don’t know how often it succeeds. Ten runs of a setting is also small. “2 of 10” could reasonably be anything from 1 in 20 to 1 in 2, and “medium” and “max” got only five. I also didn’t try every combination. Nothing ran at “low”, Sonnet skipped “medium”, and Haiku and Fable skipped “max”, since neither finished a single run at “xhigh”.</p><p>I stopped there because each of those sits past a point where the results were already getting worse: “medium” was no better than “high” for any model I tried, Sonnet was already weaker at “high” than at “xhigh”, and “max” never finished a single run for Opus or Sonnet.</p><p><strong>Caveats:</strong></p><ul><li>I ran Claude through Claude Code, which adds a few hundred tokens of its own context to each request. It’s the same for every run, but it’s not identical to the original setup.</li><li>All of this is one game. The original post also tested Seaquest and Asterix.</li></ul><p>So, can Claude do this? Yes. Fable at “high” finished nine times out of ten with a median of 450, and Opus at “xhigh” wrote the highest-scoring network. But no single run would have told you that.</p><h3>What’s next</h3><p>Writing a network from scratch is one thing. Next week I’ll try the harder version from the same post: giving Claude a real language model’s weights and asking it to make the model better at math, by editing the weights directly.</p><p><em>Code, prompts, every reply, every network and every score are on my GitHub: </em><a href="https://github.com/praharshaAdhikari/weight-reading-claude"><em>weight-reading-claude</em></a><em>. The original experiment’s logs are by Rikiya Takehi, Jayden Teoh, Alex Zhang and Omar Khattab (</em><a href="https://github.com/RikiyaT/lm_understand-logs"><em>lm_understand-logs</em></a><em>, CC BY 4.0). Figures are drawn from my own data.</em></p><p><em>Disclosure: I used Claude (Opus 5.5, through Claude Code) to build the test harness and scorer as well as run the experiments. Every number was checked against the data, and the final text is my own. I’m not affiliated with Anthropic, OpenAI or the original authors, and I ran everything on my own Claude subscription.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=790e7b96d957" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>