Have you ever thought about the question: how can a large model that can write, understand law and solve maths get it to learn something more without forgetting what it is?
It sounds like getting a doctor who's been working for years to study new technologies. It's too strong, it's likely to dilute the original clinical experience; it's too shallow to learn. The big model faces the dilemma of "renewed knowledge."
** This is a solution from Shanghai University of Transportation, which allows the cost of new knowledge to be drastically reduced in large models, while not having to look at the data in the reasoning. **
Let's start with the hard part.
Why isn't the current method enough Okay.
The large model acquires external knowledge, about three paths.
The first path is to continue pre-training, to take new language and then to train models. The problem with this approach is that it leads to "": models learn new things, but they probably forget some of the old things. Imagine you're going to make a Western meal, and now you're going to have lunch every day, and you're going to cook eggs in a few months, and you're losing your hand.
The second is that this is currently the most common option. The problem, however, is that every time you answer a question, you have to go to the database and search the database, a process that increases the obvious delay, and the quality of the search directly determines the quality of the answer, and the model also talks nonsense once what is retrieved is out of line.
The third way is "" that's a relatively new idea. In short, the "internalization" of external knowledge into an additional small module in advance, without the need to look into the data when deduced, is generated directly by the information provided in this small module. Sounds nice, but the problem is the cost of internalizing.
Existing parametric memory methods, such as " what distribution should be in the search scene " .
** This means that when building training data, almost every word in the language library must be retrieved once. **
You can imagine how terrible this is if you're going to give a "reference" to every word in a book with 100,000 words. Even more troublesome, these methods are just the last step of the model, "show the answer" and combine the information that was retrieved with the original output of the model into a probabilistic interpolation, which is called ""; the information is not actually going into the modeling process, but is "a little" at the last moment.
# # DFM's core idea: Retrieval by block, deep integration
DFM solves it in two steps, one to save money from retrieving, and one to really "involve" memory in thinking.
First step, save money.
DFM does not assign a search result to each word, but cuts the text into a "block" (32 words in the paper are a piece), and then retrieves it only once for each.
** This change directly reduced the search volume 32 times and the number of items retrieved 2048 times. **
This is a very straightforward trade-off: it was 4 billion times, and now only 125 million times; it was 1024 candidates for each query and only 16 for each query. If word-level retrieval continues, the entire training data build process will become an extremely long off-line project, which alone will take an amazing amount of time and storage to complete. A block search is tantamount to a "word-to-word check" into a "subsumed " , at the expense of a little detail, in return for a fall in search workload.
Here is a point that is easily misunderstood: a block search does not mean that the model gets rougher.
Because of all the words inside each block, this level of memory signals can still be shared, but the memory itself is generated by block, not by word. This is like a team meeting that does not need a single meeting for everyone to pass on the same minutes of talks, a meeting of the General Assembly, where everyone can get the same message, and then how everyone can use it and be flexible.
Next step, deep integration.
It's the biggest difference between DFM and the way before. The previous method was only at the last minute of the model "Fearing to Spit" and the retrieval information was embedded in the output probability. The DFM is a mechanism that feeds the predicted memory directly into the hidden state of the middle of the model by means of a mechanism called **** (gated cross-attent: the current word inside the model to focus on the memory content and to control the power of the attention through a learning switch).
What does that mean? It means that when memory information comes in, the later Decoder layer can continue to process it and re-understand it, instead of simply mixing the odds at the end.
For example, subsurface integration is like you've finished writing an essay, and the teacher has taken a reference note next to the last paragraph, and you've already had it before you could digest it; and deep integration is like you've been writing this reference in your mind, trying to figure out how to use it in the logic of the text. The latter will clearly make this information more useful, but at the cost of more complex system design, requiring dedicated access to memory and attention in parallel within the model.
# How the memories are predicted #
In specific technical detail, the DFM has designed a module** that is dedicated to predicting the expected rate of the next piece of text, based on the text content already present earlier.
This predictor has a standard answer at the training stage. The research team will use a fixed searcher in advance to find the 16 most relevant adjacent text blocks for each piece of text in the outside language library, and to express their vectors (see below).
The training was used to monitor the prediction process. After the training has been completed, the reasoning phase will no longer require a searcher, and the predictor will be able to "think" the memory himself.
Here's a detail worth saying: training, integration modules.
The benefits of doing so are straightforward, and the original language capability of the model will not be undermined at all, as that part of the parameter is not touched at all. It also echoes the question of "defeating oblivion" referred to earlier, and the DFM chooses the parameters of a backbone network that is completely out of range and places all learning tasks on the new lightweight module.
# # Experimental effects: QA missions and field adaptations are significantly enhanced
What's the real effect of all this creative ideas?
Thesis is in six.
Method Average score
|---|---|---|
|Base | 13.63 | 22.71 |
| RAG | 23.41 | 20.86 |
| (one of the strongest non-parameter baselines)
MLP Memoory (the strongest parameterized baseline)
| **DFM** | **27.21** | **26.46** |
At Mistral-7B-v0.3, the DFM had the strongest baseline xRAG, a relative increase of **12.71 per cent**; at Qwen3-8B-Base, a relative increase of **11.19 per cent** compared to MLP Memory, the strongest baseline.
There is an interesting finding behind this set of numbers: DFM's promotion is particularly evident in multi-jumping question and answer missions (which require a series of clues to answer), such as the Bamboogle mission, where Mistral jumped directly from the original 3.91 to 22.65. This suggests that the projected memory does support issues requiring multi-step reasoning, not just simple fact finding.
But not all missions win. For example, on a WebQA mission, Qwen3 used DFM and then fell from 41.78 to 39.47 instead of MLP Memoory's 43.26. This reminds us one thing: Parametric memory is not a panacea, and even if the skeleton model is not moving, the training of the new module will fluctuate in different missions, and it will not simply be better to say "use it."
In addition to the question-and-answer missions, the paper tested the adaptive capacity in the field and experimented in the three areas of code, mathematics and law.
Average score Qwen3-8B-Base
|---|---|---|
| Raw model (Base)
(continuing pre-training)
| | 60.70 | 66.96 |
| **DFM** | **64.69** | **67.52** |
** DFM received the highest average score for both size models, which was 6.51 and 4.38 percentage points higher than the Base model, respectively. **
It's more interesting in the legal field, DFM.
What's the cost of saving?
Reference was made to a 32-fold reduction in search search volumes and a 2048-fold reduction in search entries, which correspond to real time and hardware costs.
The paper gave a set of comparative data: on the same 16-dollar A800 graphic cards, the MLP Memoory training round took approximately 64 hours, and the DFM had only 24 hours,** training time was reduced by about 62.5 per cent.**
DFM adds only 0.75 B parameters to the new amount of parameters, which is half the 1.5 B of MLP Memoory.
If this is translated into a more routine scenario: assuming that you are going to index the company's knowledge base, the original approach was to indicate the reference to each word word word word word by word, and the current approach was to mark the paragraph by paragraph, with a paragraph covering all words in the paragraph. The workload had been rapidly reduced, and the time saved had not been bought at the expense of accuracy, and the results of the experiment had shown that the subparagraphs were better studied.
# A few decomposition experiments worth fine
The paper also did a number of decomposition experiments (ablation: removing a design or changing parameters to verify whether the design is really useful or not) and here are some interesting observations.
** Door control mechanisms are indeed necessary. **
The paper compared door-controlled and door-uncontrolled versions: after removing the door-controlled, the average of the six assignments fell from 27.21 to 26.83. The initial bias of the door control is best achieved when 0 is the best, with 27.90 minutes. The research team eventually opted for bias to -2 as a default setting, because this initialization amounts to a relatively small contribution from the memory branch at the beginning (about 11.9% weight), and it is a sound starting strategy to learn how much weight should be put into the training process.
There is much to be said about the layers of memory integration. The experiment found that the integration modules were distributed evenly between the middle and the back layers (e.g., 9th, 16th, 24th, 31st floors) and were clearly better than all stacked on the last layers. Only the last four layers were integrated, and the score fell from 27.21 to 22.07 and fell by 5 percentage points. This result is consistent with another classic paper RETRO's creation: if knowledge is integrated too closely, the model does not have enough semantic processing space to digest this external information, which is less effective.
** The impact on the result is relatively small with two super-parameters, size of blocks and number of memory slots. **
The size of the block ranges from 16 to 64 words, with only small fluctuations between 26.51 and 27.21 on average; and the number of memory slots (i.e., the number of candidate memory entries provided for model reference) increases from 2 to 16, with only 0.33 fraction changes. This means that, when actually deployed, there is no need to overburden the two parameters, which should be fine-tuned and allow for a larger, misinclusive space.
What's the fundamental contradiction of this solution?
Back to the first question: how to keep new knowledge of modelling in mind, how to make models use external information without slowing down.
The answer given by DFM is to move from "memory" to an external resource that requires real-time searching to an in-house capability that can be "forecasted" and to actually embed it in the middle of model thinking rather than on the surface.
It's kind of like having an internalized tutor for a student. Instead of reading the answers to students at the exams (which is the RAG approach), the mentor helps students to digest the points of knowledge in advance, and trains students to use them naturally at every step of the subject, rather than simply looking at the answers at the end.
Of course, there are limitations to this analogy, and after all, the fact that the DFM is a "pregnant" memory, not a real search of the original text, carries the inherent risk that the prediction memory will "prescribe" something that does not exist. This issue is not discussed in particular in the paper, which may be a way forward.
# Write it in the back
After reading the paper, what was most impressive was not the number of points, but the shift of thought behind the design choice of "share surveillance signals by block."
Many of the engineering issues, when opting for "more refined", are prone to inertia: since word-to-word search works, is it as fine as possible? DFM, in turn, has proven that it is not a simple linear relationship between the particle size and the end effect of monitoring the signal, but that sometimes "broad" is a more reasonable choice, because what really matters is not how fragmented the information is, but whether it can be used effectively by models.
Another interesting detail is the choice of door control bias. The paper's seemingly insignificant number, which in fact implies a "conservative start-up, gradual decentralization" training philosophy, should be applied in many of the scenes where new modules need to be inserted into the pre-training model, which is one of the few techniques left by the paper.
A question that has not been fully answered is, where is the limit of the memory's reliability when it comes to predicting, not searching? If the language library itself is updated, should this predictor be retrained? This may be the next step worth digging.