PoLar 复现研究:把 Transformer 层当作可调用的函数库
Programs-of-Layers in LLMs through the Lens of Cortical Areas
有人在 5 个模型上复现了 PoLar 这篇论文,结论一半成立一半翻车,还发现纠错程序脆弱得离谱,做层路由研究的可以看看。
Li et al. 提出的 program-of-layers(PoLar)让 LLM 不再固定逐层前向传播,而是按输入难度动态跳过或重复层块。本研究在 5 个模型上重建并复现了 PoLar 的 MCTS 诊断流程,确认跳层优于标准前向、重复优于跳层、两者结合效果最好,且难题需要更多层重复。但学习到的路由器未能复现:单次推理时其最高排序预测退回标准前向,top-k 程序合起来才有真实准确率提升。研究还发现少数通用程序即可解决大多数问题,而纠错类程序极其脆弱,改动其中一个编辑就失效。
Programs-of-Layers in LLMs through the Lens of Cortical Areas
Inference in LLMs is conventionally a fixed-depth, fixed-order forward pass through every layer, regardless of how difficult the input is. The human brain does not work this way: using the thalamus as a central hub, it routes information flexibly to all regions of the cortex according to demand. Li et al. (2026) recently showed, with a system they call program-of-layers (PoLar), that transformers can be given an analogous flexibility if their layers are treated as a library of functions rather than a fixed sequence. Performance improves over the standard forward pass when each input is dynamically routed through an adaptive sequence of skipped or repeated contiguous layer blocks. We reconstructed PoLar's diagnostic MCTS in more detail than the original paper and applied it across 5 models. We reproduced several of PoLar's findings: skipping outperformed the standard pass, repeating outperformed skipping, and combining both outperformed either alone. Shorter programs sufficed for easier questions, while harder questions required more layer repeats. However, we failed to replicate the main claim regarding their learned router for single-shot inference: its top-ranked prediction consistently collapsed back to the standard pass, even though its top-k predicted programs, taken together, did show a real accuracy gain. Beyond reproduction, we find that a small number of generic programs are enough to solve most of the questions. We also provide a much deeper analysis of these programs' structure and robustness: for example, we found that programs that correct errors are highly brittle: undoing even a single edit inside a program typically breaks the correction. Connecting this to the brain's routing mechanisms, PoLar mirrors principles of thalamo-cortical coordination between cortical-area-like transformer layers. We publicly release the code at https://datexis.github.io/RE-PoLar/