HazyResearch Proposes Training-Free Method to Write Facts into LLMs

HazyResearch and collaborators propose a novel approach: using a closed-form solution to directly write factual knowledge into Transformer MLP layers without any training process like gradient descent. The paper has been accepted by COLM 2026. This research suggests that knowledge accumulation does not necessarily rely on lengthy training, providing significant inspiration for continual learning.

Confirmed

Based on the premise that factual knowledge in language models is stored within MLPs, the team provided a closed-form solution to inject knowledge directly. They confirmed that with the proper initialization method, Transformer models can directly query and utilize this pre-loaded knowledge, completely bypassing gradient descent.

Why it matters

As @andrewncarr pointed out, this mechanism of directly writing knowledge without gradient descent offers crucial insights into continual learning for large models. It breaks the traditional paradigm that knowledge acquisition must depend on massive data training, potentially reducing the cost of updating factual knowledge in the future.

2026-07-23 ~ 2026-07-23 · 5 related posts

Primary sources