There is an obvious implication: since the initial models were trained without loops, it is exceedingly unlikely that a single stack of consecutive N layers represents only a single, repeatable circuit that can be safely looped. It is much more likely that the loopable circuits are superposed across multiple layers and have different effective depths. That you can profitably loop some say 3-layer stack is likely a ha…
Show HN: Duplicate 3 layers in a 24B LLM, logical deduction .22→.76. No training
21–30 of 100 posts
Re: Show HN: Duplicate 3 layers in a 24B LLM, logical deduction .22→.76. No training
#22There is an obvious implication: since the initial models were trained without loops, it is exceedingly unlikely that a single stack of consecutive N layers represents only a single, repeatable circuit that can be safely looped. It is much more likely that the loopable circuits are superposed across multiple layers and have different effective depths. That you can profitably loop some say 3-layer stack is likely a ha…
Re: Show HN: Duplicate 3 layers in a 24B LLM, logical deduction .22→.76. No training
#23Wow, every single word in the original post and on that README.md is pure LLM. How sad. In any case, this has been done at least since the very first public releases of Llama by Meta... It also works for image models. There are even a few ComfyUI nodes that let you pick layers to duplicate on the fly, so you can test as many as you want really quickly.
On the prior art: you're right that layer duplication has been explored before. What I think is new here is the systematic sweep toolkit + validation on standard benchmarks (lm-eval BBH, GSM8K, MBPP) showing exactly which 3 layers matter for which model. The Devstral logical deduction result (0.22→0.76) was a surprise to me.
If there are ComfyUI nodes that do this for image models, I'd love links, the "cognitive modes" finding (different duplication patterns that leads to different capability profiles from the same weights) might be even more interesting for diffusion models.
Re: Show HN: Duplicate 3 layers in a 24B LLM, logical deduction .22→.76. No training
#24Re: Show HN: Duplicate 3 layers in a 24B LLM, logical deduction .22→.76. No training
#25Re: Show HN: Duplicate 3 layers in a 24B LLM, logical deduction .22→.76. No training
#26Re: Show HN: Duplicate 3 layers in a 24B LLM, logical deduction .22→.76. No training
#27Considering this, I think (again, assuming the benchmarks themselves are sound) the most plausible explanation for the observations is (1) the layers being duplicated are close to the identity function on most inputs; (2) something happened to the model in training (RLHF?) that forcefully degraded its reasoning performance; (3) the mechanism causing the degradation involves the duplicated layers, so their duplication has the effect of breaking the reasoning-degrading mechanism (e.g. by clobbering a "refusal" "circuit" that emerged in post-training).
More concisely, I'm positing that this is an approach that can only ever break things, and rather than boosting reasoning, it is selectively breaking things deleterious to reasoning.
Re: Show HN: Duplicate 3 layers in a 24B LLM, logical deduction .22→.76. No training
#28Re: Show HN: Duplicate 3 layers in a 24B LLM, logical deduction .22→.76. No training
#29There is an obvious implication: since the initial models were trained without loops, it is exceedingly unlikely that a single stack of consecutive N layers represents only a single, repeatable circuit that can be safely looped. It is much more likely that the loopable circuits are superposed across multiple layers and have different effective depths. That you can profitably loop some say 3-layer stack is likely a ha…
Re: Show HN: Duplicate 3 layers in a 24B LLM, logical deduction .22→.76. No training
#30i feel that sometimes a lot of the layers might just be redundant and are not fully needed once a model is trained.