Continual Learning in Modern Hopfield Networks with an Application to Diffusion Models
Ken Takeda, Masafumi Oizumi, Ryo Karakida
NeurIPS 2026
TL;DR. We show that Hopfield energy serves as an indicator of forgetting in both theoretically tractable models and diffusion models. High-energy samples are more easily forgotten, but energy-guided replay effectively mitigates this forgetting.
Abstract. Generative models, including diffusion models, are increasingly used as foundation models and adapted through sequential fine-tuning, making continual learning an essential problem setting. However, continual learning in such generative models remains poorly understood: after a task change, what aspects of the learned distribution are most easily lost, and what replay samples should be prioritized? We address these questions through the modern Hopfield energy. Recent links between modern Hopfield networks (MHNs) and diffusion models allow analyses in MHNs to be transferred to diffusion models. We introduce intrinsic forgetting as an increase in Hopfield energy after the task change. In tractable settings in an MHN, we prove that high-energy, outlier-like samples undergo a larger energy increase than cluster-like samples, implying that samples located in sharp, isolated basins are more forgettable. We further analyze memory replay and show that replay is particularly effective for high-energy samples, enabling an energy-based selection of replay samples. We validate these predictions in experiments on MHNs and two diffusion models under continual-learning settings: Stable Diffusion and a pixel-space DDPM. In these diffusion models, Hopfield energy tracks reconstruction-based forgetting, and replay experiments reveal energy-dependent mitigation of forgetting that is consistent with the MHN analysis.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:46 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
Overall, the reviews are moderately positive.
While reviewers generally appreciate the formulation of the problem and the presented results, several concerns require clarification. I summarise the main ones below; please also refer to the individual reviews for more specific comments:
- The generality of the theoretical analysis is unclear, given its reliance on a highly simplified setting.
- Reviewers identified clarity and presentation issues at different points in the paper, please check the individual reviews for specific areas of improvement.
- Reviewer 7f15 raised several relevant technical concerns that I would like the authors to clarify:
- The analysis considers only fixed points near stored memories, not spurious fixed points arising from combinations of stored memories.
- The connection to the generalisation regime, rather than the memorisation regime, remains unclear.
- The mechanism models continual learning as the replacement of stored memories rather than the parameter-update dynamics of sequential training; the implications of this mismatch require clarification.
Final justification
The Authors engaged constructively with the discussion.
Most of the concerns have been addressed. Several clarifications, including changes in the figures, notation, and additional appendix material, have been provided to improve clarity (point 2). More specifically, the Authors strengthened the temperature condition to explicitly prove that spurious/mixed states are unstable in the memorisation regime, showing that the energy-forgetting relationship holds across all stable fixed points (3.1). For intermediate temperatures, the authors promised additional appendix material extending the high-level geometric picture beyond pure memorisation (point 3.2). Finally, the Authors clarified the scope of the paper, limiting the mechanism to the one proposed (point 3.3). Point 1 is also partially resolved: the authors clarified that while the strict closed-form theorem relies on the simplified equal-angular setting, the general Hessian formula applies to arbitrary memory configurations and added discussions on high-dimensional memory relaxations.
Standing concerns regard the idealised scope of the analysis. A complete proof for the generalisation regime remains open, and the model analyses memory set replacement rather than exact parameter updates during sequential training. Additionally, high-energy replay specifically targets the tail rather than guaranteeing an overall global-average improvement across benchmarks.
In light of this, I recommend this paper for a poster presentation.
Read meta-review
Meta-review
Overall, the reviews are moderately positive.
While reviewers generally appreciate the formulation of the problem and the presented results, several concerns require clarification. I summarise the main ones below; please also refer to the individual reviews for more specific comments:
- The generality of the theoretical analysis is unclear, given its reliance on a highly simplified setting.
- Reviewers identified clarity and presentation issues at different points in the paper, please check the individual reviews for specific areas of improvement.
- Reviewer 7f15 raised several relevant technical concerns that I would like the authors to clarify:
- The analysis considers only fixed points near stored memories, not spurious fixed points arising from combinations of stored memories.
- The connection to the generalisation regime, rather than the memorisation regime, remains unclear.
- The mechanism models continual learning as the replacement of stored memories rather than the parameter-update dynamics of sequential training; the implications of this mismatch require clarification.
Final justification
The Authors engaged constructively with the discussion.
Most of the concerns have been addressed. Several clarifications, including changes in the figures, notation, and additional appendix material, have been provided to improve clarity (point 2). More specifically, the Authors strengthened the temperature condition to explicitly prove that spurious/mixed states are unstable in the memorisation regime, showing that the energy-forgetting relationship holds across all stable fixed points (3.1). For intermediate temperatures, the authors promised additional appendix material extending the high-level geometric picture beyond pure memorisation (point 3.2). Finally, the Authors clarified the scope of the paper, limiting the mechanism to the one proposed (point 3.3). Point 1 is also partially resolved: the authors clarified that while the strict closed-form theorem relies on the simplified equal-angular setting, the general Hessian formula applies to arbitrary memory configurations and added discussions on high-dimensional memory relaxations.
Standing concerns regard the idealised scope of the analysis. A complete proof for the generalisation regime remains open, and the model analyses memory set replacement rather than exact parameter updates during sequential training. Additionally, high-energy replay specifically targets the tail rather than guaranteeing an overall global-average improvement across benchmarks.
In light of this, I recommend this paper for a poster presentation.
3 comments
Response to the Metareview (Part2)
Spurious fixed points
The analysis considers only fixed points near stored memories, not spurious fixed points arising from combinations of stored memories.
The original manuscript did not explicitly consider stable spurious states. In the revised manuscript, we have added the new condition , under which they are unstable and need not be considered. In this condition, our theory is perfectly valid because we do not need consider the effect of spurious states. Even in the condition that the inverse temparature is lower, where stable spuriou/mixed states do appear we have also showed that the mixed state lies in the flat landscape and the outlier-like state lies in the sharpe state.
The original argument is consistent with taking fixed before , because the strengthened condition then eventually holds automatically. However, that order of limits was not sufficiently explicit in the submission, and is insufficient for general joint scalings. We will state this correction directly and prove the spurious-state exclusion in the appendix.
For a symmetric mixture of cluster memories, the splitting eigenvalue is
Since and on the mixed branch, the revised condition makes this eigenvalue negative. Thus, mixed and subset-averaging branches are saddles, and every stable fixed point is pattern-localized. Consequently, for all stable fixed points in this regime,
Revision: We will strengthen the temperature condition, prove that the mixed branches are unstable under this condition, and state the resulting energy--forgetting implication over all stable fixed points. The proof and the corresponding revision of Theorem 4.1 are given in Reviewer 7f15 (Weaknesses, Comment 1; Question 1, Comment 2).
Connection to the generalization regime
The connection to the generalisation regime, rather than the memorisation regime, remains unclear.
The intrinsic-forgetting theorem provided in the original manuscript is a memorization-regime result; it is not currently proved in the generalization regime. However, in response to the comment, In the generalization regime, we have additionally established a landscape-level extension in the revised manuscript: the same energy and flatness ordering holds for a mixed/prototype state. However, the evaluation on the corresponding fixed points remains open for the subsequent work.
At intermediate , the equal-angular model admits a stable cluster-mean mixed attractor. Over a nonempty interval, direct evaluation at the prototype and the outlier gives
where is the tangential-curvature quantity used in our perturbation analysis. Thus, the supported prototype is lower and flatter than the isolated state, reproducing the qualitative ordering in Fig. 1 beyond the memory-localized regime. Extending the exact forgetting calculation at the fixed points requires tracking the displaced mixed fixed point and additional non-stationary gradient terms, which we leave to subsequent work.
Revision: We will add the mixed/prototype energy-and-curvature calculation to the appendix and state explicitly that the corresponding full forgetting theorem remains open. The calculation is given in Reviewer 7f15 (Question 1, Comment 2) and summarized in Reviewer 6yuq (Weakness 2).
Response to the Metareview (Part3)
Replacement of memories versus parameter-update dynamics
The mechanism models continual learning as the replacement of stored memories rather than the parameter-update dynamics of sequential training; the implications of this mismatch require clarification.
We agree that the present theory models continual learning as the replacement of stored memories and does not model the parameter-update dynamics of sequential training. We will make this scope explicit and describe the learned-model experiments as empirical tests of the geometric prediction, not as derivations of parameter-learning dynamics.
This decomposition is deliberate: replacing the fitted memory distribution isolates the component of forgetting caused by the distribution change itself. The learned MHN-BM and diffusion experiments then test whether the predicted energy--forgetting relationship remains observable after actual sequential parameter updates. Incorporating approximation, optimization, and parameter interference into the theory is an important subsequent step, but is not required for the intrinsic mechanism established here.
Revision: We will state that the theory isolates distribution-induced landscape change, describe the learned-model results as empirical tests rather than derivations of parameter dynamics, and identify optimization and interference as subsequent work. The supporting discussion is given in Reviewer 7f15 (Weaknesses, Comment 1; Question 3, Comment 2).
In summary, the revision will make three boundaries explicit: stable spurious states are excluded in the strengthened theorem regime; the landscape ordering extends to mixed states, while their full forgetting dynamics remain open; and parameter-learning dynamics are empirically tested but not theoretically derived. We hope these clarifications help focus the discussion on the precise claims established by the paper.
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- theory
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The authors introduce a theoretical framework to tackle the question of what happens to task distributions when continual learning is performed in a modern Hopfield Network setup in the memorization regime. The authors use the connection between MHN and difffusion models introduced by Raya and Ambrogioni to connect the MHN analysis to phenomenon observed in diffusion models. The authors specifically ask what training samples in a task undergo the largest distributional change after introducing a task The results are presented in two key theorems. The first, Theorem 4.1 states that "outlier" points undergo the largest change in energy and hence the largest distributional change. The second, Theorem 5.1 shows the energy rise as a result of replaying samples based on the energy function. The theoretical results are validated with experimental results -- both idealized through MHN-BM and practically relevant through Stable diffusion.
Overall, the paper is well presented and the results fall clearly from the theoretical exposition. The scope of the claims however needs to be adjusted to match the results obtained (see Weaknesses section).
Strengths and weaknesses
Strengths
- The authors tackle a challenging and interesting problem in MHN and continual learning literature. The setup is very analytically tractable and the conclusions easy to understand.
- Overall the manuscript is well written, each equation has its purpose clearly articulated and intuitive proof steps provide enough information to interpret the conclusions.
- The use of MHN energy function to understand and design a replay algorithm is novel and can open up new research directions.
- Experimental validation is conducted in simple settings to validate the theoretical predictions. The theoretical claims are validated using qualitative evaluation of experimental results. The authors have also done the extra effort of training diffusion models for validation.
Weaknesses
- L110 states "The energy is low when the state ξ lies near a cluster 111 of memories, and high when it lies near an isolated memory". I dont see how this statement is necessarily true just from the energy function. The term also increases if the state of the system were equal to the sum of all the memories. The statement needs qualification - it is only true under the assumption that is normalized (to avoid the effect of , and is sufficiently large (so there is overlap in the memory basins creating the cluster in the first place). These assumptions are detailed later in the Appendix, but the assumptions should be articulated here itself.
- Current analysis of forgetting is restricted to fixed points near the stored memories. Spurious memories that are created from linear combinations of stored memories are not considered and this limitation is not articulated.
- There is a mismatch between the statement of Theorem 4.1 -- High-energy patterns are forgotten more -- and the actual content of the theorem. To establish the statement High-energy patterns are forgotten more, one would need to establish that for all , if but the current proof is only done for the specific outlier and cluster fixed points. The statement must be adjusted to match the actual proof, currently the statement of the proof and the later prose is more general than what the analysis shows.
- The analysis currently is focused on the memorization regime of diffusion models, but the generalization regime is the more practically relevant and interesting regime where more insights are required. It is unclear how the current analysis can be extended to the generalization regime.
- The continual learning analysis is done at the memorization regime where it is assumed that task 2 memories replace the existing task 1 memories in the MHN. The theory analyzes the energy landscape induced by replacing the memory set with or , rather than modeling the parameter-learning dynamics by which a neural network forgets during sequential training.
- What the colorbars mean in Fig 3.b, c are not described. I am assuming it is the number of samples with the specific range of values in the X and Y axis.
- (Clarity) and are used is confusing ways. In Eqns 1,2,3, is used to indicate the stored memories in the MHN, and was the state of the network. Later, in Section 3.3, and are used. Then in Equation 4, is defined to be a state variable(instead of ).
- (Clarity) DDPM not expanded or introduced
- (Clarity) L55 - FID not expanded or introduced
Questions
- In addition to the fixed points declared in Eqn 7, combinations of memories can create spurious fixed point. in the case of MHN, there is a fixed point at a linear combination of memories. How does forgetting dynamics work with these fixed points?
- In Fig. 5.c, high-energy replay appears to help the high-energy tail but can underperform random replay for low-energy samples. What is the overall average Task-1 reconstruction error for top-energy, random, bottom-energy, and no replay? Does energy-guided replay improve global forgetting, or primarily tail forgetting?
- Are the experiments done in the memorization regime of diffusion? Asking because most of the analysis seems to correctly translate to the experimental setting.
Limitations
The main limitation regarding the memorization regime of diffusion is discussed in the limitations sections. Other limitations that were identified in the weaknesses have not been addressed.
Final justification
The paper is overall a nice theoretical contribution to the MHN diffusion model analysis literature that adds continual learning. The authors have addressed my technical concerns, but the significance and applicability beyond the simplified setting is still unclear. I keep my original positive score.
Formatting concerns
no concerns.
6 comments
Response to Reviewer 7f15 (Part1)
We thank the reviewer for the careful comments. Some wording was broader than our exact results, and we will make the theorem's scope explicit.
Weakness
- L110 states "The energy is low when the state ξ lies near a cluster 111 of memories, and high when it lies near an isolated memory". I dont see how this statement is necessarily true just from the energy function. The term also increases if the state of the system were equal to the sum of all the memories. The statement needs qualification - it is only true under the assumption that is normalized (to avoid the effect of , and is sufficiently large (so there is overlap in the memory basins creating the cluster in the first place). These assumptions are detailed later in the Appendix, but the assumptions should be articulated here itself.
The reviewer is correct that the sentence is unqualified as written. We will qualify the first occurrence by stating that the claim applies to unit-normalized memories at sufficiently large in the “memorization regime” [Biroli+24], not to an arbitrary state .
All memories are unit-normalized, and for sufficiently large , the stable states considered here are localized near individual memories and asymptotically inherit their normalization. Within this setting, the cluster-localized state has lower energy than the isolated-memory state. A state formed from multiple memories corresponds instead to a mixed/spurious state, for which the norm term becomes relevant; we discuss this case separately below.
[Biroli+24] G Biroli, T Bonnaire, V De Bortoli, M Mézard, “Dynamical regimes of diffusion models ” Nature Communications, 2024
- Current analysis of forgetting is restricted to fixed points near the stored memories. Spurious memories that are created from linear combinations of stored memories are not considered and this limitation is not articulated.
- The analysis currently is focused on the memorization regime of diffusion models, but the generalization regime is the more practically relevant and interesting regime where more insights are required. It is unclear how the current analysis can be extended to the generalization regime.
Under the additional condition , stable spurious fixed points are absent and therefore do not affect the forgetting dynamics analyzed in our memorization regime. At , a stable mixed/prototype attractor appears and obeys the same energy-and-curvature ordering as Fig. 1, but its full intrinsic-forgetting dynamics remain open for subsequent work; we will strengthen the theorem's condition, add the spurious-state exclusion and mixed-state ordering to the appendix, and state this limitation explicitly.
Spurious states and the so-called generalization regime are important for understanding MHNs and diffusion models. Our primary objective here is more general: to prove analytically the concept of Fig. 1 that a supported cluster-like basin is lower and flatter than an isolated basin. We begin with large , where samples correspond to identifiable attractors and sample-level forgetting is well defined. We provide the two corresponding arguments below and will add this discussion to the appendix.
Please see Question 1 in the following Comment for the full theoretical analysis supporting these claims.
Response to Reviewer 7f15 (Part2)
- There is a mismatch between the statement of Theorem 4.1 -- High-energy patterns are forgotten more -- and the actual content of the theorem. To establish the statement High-energy patterns are forgotten more, one would need to establish that for all , if but the current proof is only done for the specific outlier and cluster fixed points. The statement must be adjusted to match the actual proof, currently the statement of the proof and the later prose is more general than what the analysis shows.
We will impose to exclude stable spurious states, making the requested implication valid for all stable fixed points, and will add the energy and sharpness comparisons to Theorem 4.1.
This condition is stronger than the current main-text assumption , and we will revise Theorem 4.1 accordingly. As shown above, under this stronger condition, mixed and subset-averaging branches have a negative splitting direction and cannot be stable minima. The stable fixed points are therefore pattern-localized and consist only of the symmetry-related cluster-memory states and the outlier state. Since all cluster-memory states have the same energy and forgetting, while the outlier has both higher energy and greater forgetting, we obtain, for every pair of stable fixed points in this regime,
Thus, the title and statement of Theorem 4.1 are valid over all stable fixed points under the revised assumption; they are not intended as a claim over arbitrary non-stationary states. For completeness, we will also add and explicitly to the theorem body.
- The continual learning analysis is done at the memorization regime where it is assumed that task 2 memories replace the existing task 1 memories in the MHN. The theory analyzes the energy landscape induced by replacing the memory set with or , rather than modeling the parameter-learning dynamics by which a neural network forgets during sequential training.
The reviewer is correct: our theory isolates intrinsic landscape change under an idealized, accurately fitted score; it does not model approximation, optimization, or parameter interference. We will state this scope explicitly and describe the learned-model experiments as empirical tests of the geometric signal, not derivations of parameter-learning dynamics. Just as the exact-score setting was first studied [Biroli+24], and subsequent work began to investigate score-learning dynamics on that foundation [Bonnaire+2025], we expect that our analysis will likewise provide a basis for subsequent work incorporating parameter-learning dynamics.
[Bonnaire+25]T Bonnaire et al. Why Diffusion Models Don't Memorize: The Role of Implicit Dynamical Regularization in Training, NeurIPS, 2025.
- The meaning of the colorbars in Fig. 3(b,c) is not explained.
The colorbars show the logarithmic sample count in each hexagonal bin. We will state this explicitly in the caption.
- (Clarity) and are used is confusing ways. In Eqns 1,2,3, is used to indicate the stored memories in the MHN, and was the state of the network. Later, in Section 3.3, and are used. Then in Equation 4, is defined to be a state variable(instead of ).
We will standardize the notation throughout: denotes a memory set, an MHN state, and a data or diffusion state. We will also explicitly note the transition between the MHN and diffusion notations.
- DDPM is not expanded or introduced.
We will introduce it at first use as denoising diffusion probabilistic model (DDPM).
- FID is not expanded or introduced.
We will introduce it at first use as Fréchet Inception Distance (FID).
Response to Reviewer 7f15 (Part3)
Question 1
In addition to the fixed points declared in Eqn 7, combinations of memories can create spurious fixed point. in the case of MHN, there is a fixed point at a linear combination of memories. How does forgetting dynamics work with these fixed points?
Under the additional condition , stable spurious fixed points are absent and do not affect the forgetting dynamics analyzed in our memorization regime. At , a stable mixed/prototype attractor appears and preserves the energy-and-curvature ordering in Fig. 1, although its full intrinsic-forgetting dynamics remain open. We will strengthen the theorem's condition, prove the exclusion, add the mixed-state ordering to the appendix, and state this limitation explicitly.
Detailed theoretical analysis
Excluding stable mixed attractors. The theorem assumes , whereas the exclusion below requires the stronger sufficient condition
Thus, this argument uses a slightly stronger assumption than the current main text. It is automatic when is fixed before , but is not implied by in an arbitrary joint limit. At any critical point,
For a symmetric mixture of cluster memories (), let be their total softmax mass. Its splitting eigenvalue is
On the cluster-dominated branch, . Since , the additional condition yields
for sufficiently large . Thus the cluster-mean and symmetric subset-mean branches are saddles. A mixture retaining non-vanishing cluster and outlier weights likewise has a negative Hessian direction. Hence the stable minima under this condition are pattern-localized. We will distinguish this result from the weaker main-text assumption.
When a stable mixed attractor appears. We next identify where the memorization-only picture ceases to apply. In the same equal-angular model, define
The fixed-point equation on the line joining and is
It has three solutions once , where
For sufficiently large , the nonempty window
contains an outlier-like minimum near and a stable mixed minimum near . Thus a prototype-like spurious attractor appears at intermediate .
Energy and flatness of the spurious and outlier-like states. To test whether Fig. 1 persists, we directly evaluate and ; the analogous perturbation calculation at stable fixed points will be included in the appendix. Define
Direct substitution gives
For ,
where the tangential-curvature quantity used in our perturbation analysis is
Asymptotically,
This interval is nonempty: for sufficiently large , it contains with . Thus the prototype-like mixed state is lower and flatter than the isolated state, reproducing the key ordering in Fig. 1. This suggests that the mechanism remains relevant when collective/spurious attractors emerge in the so-called generalization regime [Biroli et al., 2024].
What remains open. This establishes the landscape ordering, not a complete forgetting theorem: and need not be stationary, and the full calculation must track the displaced fixed point and non-stationary gradient terms. We will add this comparison to the appendix and leave the extension to subsequent work.
Remark. The dynamical generalization regime of Biroli et al. is not the only route to generalization. Pham et al. [2025] take the number of stored memories to infinity and obtain a generalized low-energy manifold even as . By temperature alone, this is Biroli et al.'s low-temperature memorization regime; generalization instead arises through the infinite-memory limit.
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 2/4
- Significance
- 2/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper studies the mechanism of forgetting and replay in continual learning.
-
First, this paper defines intrinsic forgetting as the change in Hopfield energy when changing the task.
-
Second, this paper focuses on a special case of continual learning, where the memory vectors are composed of a cluster of equal-angular vectors and an orthogonal outlier. Based on this simple setting, this paper theoretically proves that high-energy patterns are forgotten more.
-
Third, this paper considers different types of replay. Theoretical results suggest that outlier-self replay can achieve the highest replay gain, cluster self-replay is next, within-cluster cross replay is smaller, and cross-type replay between the cluster and the outlier is weakest.
Experiments on toy and small datasets support the theories of this paper.
Strengths and weaknesses
Strengths
This paper aims to provide theoretical insights on forgetting and replay in continual learning. This is an important and well-motivated problem in continual learning, and this paper partially solves this problem theoretically by analyzing simple cases.
Weaknesses
-
There are many mathematical notations and definitions in this paper. Some of them are classical in physics but may be unconventional in machine learning or computer science. It would be better to provide a table of frequently used notations in the appendix to help readers retrieve the definitions of notations quickly.
-
Although this paper provides a partial theoretical answer to the mechanism of forgetting and replay, the theoretical derivation and results are based on an extremely simple case with a specific data structure and 2 tasks. It is unclear whether the theories can be extended to more general and complex tasks.
-
The key conclusions of Theorem 4.1 can be presented in a more noticeable way. As described in the title of Theorem 4.1, the outlier pattern should have higher energy and be forgotten more than the cluster pattern. However, Theorem 4.1 only contains the second property, and the first property is only mentioned in previous texts. It would be better to include both of them in Theorem 4.1 to highlight the main conclusions.
Questions
-
In Eq. (5), it is assumed that the inner products of two clustered samples are equal to a constant, which significantly simplifies later derivations. However, this assumption implies that the number of samples should not exceed the input dimension, which is usually violated in practical datasets. Can the authors provide more discussion on the possibility of relaxing this assumption to make the theories more general?
-
When verifying Theorem 5.1, Figure S.3 is the ideal result where the green bars are almost the same for to . But in Figure 4, the middle green bars differ from each other significantly. Can the authors provide more explanations for this phenomenon?
-
As defined in Section 4.1, this paper mainly focuses on continual learning with 2 tasks. In practice, there are usually many tasks in continual learning. Can the authors provide more discussion on whether the current theories and conclusions can be extended to more tasks? More specifically, the replay of outliers can alleviate forgetting when the number of tasks is small, but the replay gain of these outliers may vanish after being replayed several times. Is it possible to quantitatively describe the trend of replay gain when the number of tasks increases?
Limitations
Yes.
Final justification
After reading all the reviews and the corresponding rebuttals, I recommend the acceptance of this paper. In my original review, my main concern was the strong assumption with 2 tasks and equal-angular memories. In the rebuttal, the authors provide more explanations, as well as possible and seemingly feasible relaxations of these assumptions. Thus, I have increased my rating.
Formatting concerns
There are no formatting concerns.
5 comments
Response to Reviwer 6yuq
We thank the reviewer for the careful and constructive comments.
Weakness
- There are many mathematical notations and definitions in this paper. Some of them are classical in physics but may be unconventional in machine learning or computer science. It would be better to provide a table of frequently used notations in the appendix to help readers retrieve the definitions of notations quickly.
Agreed, and this overlaps with a problem we had already identified. We will add an appendix table listing each frequent symbol, its meaning, and its first point of definition, and standardize usage throughout — in particular distinguishing the memory set , an MHN state , and a data state .
- Although this paper provides a partial theoretical answer to the mechanism of forgetting and replay, the theoretical derivation and results are based on an extremely simple case with a specific data structure and 2 tasks. It is unclear whether the theories can be extended to more general and complex tasks.
The strict closed-form energy--forgetting ordering does not extend directly to arbitrary data or task sequences. However, the general Hessian formula applies to arbitrary memory configurations. Moreover, even within our structured setting, spurious/mixed states provide a tractable way to study more complex landscapes, as discussed in our response to Reviewer 7f15. We will state this scope explicitly.
Our setting is more structured than the random or exchangeable pattern ensembles commonly considered in theoretical analyses of MHNs and diffusion models [Lucibello+24,Biroli+24]. Such ensembles are suitable for analyzing typical capacity and retrieval, but average away systematic sample-wise differences in local density. Our cluster--outlier model explicitly introduces this heterogeneity, allowing us to analytically study which memories are more vulnerable to forgetting.
The MHN-BM and diffusion experiments test whether the qualitative prediction persists after relaxing the exact symmetry; they are robustness tests rather than proofs for arbitrary distributions.
As detailed in our response to Reviewer 7f15, stable genuine mixtures are excluded in the theorem’s fixed-, memorization limit, whereas a stable cluster-mean mixed attractor appears at . Direct evaluation reproduces the Fig. 1 ordering over a nonempty interval: the prototype-like state is lower and flatter than the outlier. A complete intrinsic-forgetting theorem for displaced mixed fixed points remains for subsequent work.
[Lucibello+24] C Lucibello, M Mézard, “Exponential capacity of dense associative memories”, PRL, 2024.
[Biroli+24] G Biroli, T Bonnaire, V De Bortoli, M Mézard, “Dynamical regimes of diffusion models
” Nature Communications, 2024
- The key conclusions of Theorem 4.1 can be presented in a more noticeable way. As described in the title of Theorem 4.1, the outlier pattern should have higher energy and be forgotten more than the cluster pattern. However, Theorem 4.1 only contains the second property, and the first property is only mentioned in previous texts. It would be better to include both of them in Theorem 4.1 to highlight the main conclusions.
Agreed, this is an omission on our part. We will state both properties in Theorem 4.1 itself, leaving the existing conclusion unchanged and adding the energy comparison the reviewer notes, plus the sharpness comparison.
Specifically, we will add the following. Under the same assumptions and ,
and
The revised theorem will therefore state directly that the outlier fixed point has higher energy, is sharper, and undergoes greater intrinsic forgetting than the cluster fixed point.
Response to Reviwer 6yuq (Part2)
Question
- In Eq. (5), it is assumed that the inner products of two clustered samples are equal to a constant, which significantly simplifies later derivations. However, this assumption implies that the number of samples should not exceed the input dimension, which is usually violated in practical datasets. Can the authors provide more discussion on the possibility of relaxing this assumption?
Yes, the equal-angular assumption can be relaxed approximately when , including , although the present theorem does not yet prove this regime. We will add it and distinguish it from the proved regime. The cluster Gram matrix is
It has rank for , so an orthogonal outlier requires . Exact equal-angularity therefore permits (and from below), but not fixed .
For , consider normalized isotropic orthogonal to orthonormal , and set
Then and exactly, and for with fixed ,
If with , both the softmax perturbation and total leakage vanish. Eq. (9) therefore preserves the leading leakage hierarchy, suggesting the same local ordering with high probability.
However, entrywise concentration is not exact symmetry or operator-norm Gram convergence. The present theorem does not prove ; this requires uniform fixed-point and remainder bounds without scalar symmetry. We will add this distinction and extension.
- When verifying Theorem 5.1, Figure S.3 is the ideal result where the green bars are almost the same for to . But in Figure 4, the middle green bars differ from each other significantly. Can the authors provide more explanations for this phenomenon?
The middle green bars differ in Fig. 4 because learned MHN-BM retraining breaks the equal-angular symmetry that makes them equal in Fig. S.3. We will revise the captions, rerun the theorem-aligned setting, and report grouped and symmetry diagnostics. Figure S.3 directly evaluates the fixed-memory MHN of Theorem 5.1: replay adds one vector to the same log-sum-exp memory set. The equal-angular geometry makes the gains for equal after averaging over the isotropic rotation ensemble.
Figure 4 instead retrains separate MHN-BM banks with and without replay. Their learned Gram matrix, fixed points, and target-specific softmax masses are no longer equal, while finite optimization and rotation sampling further break symmetry. The theory motivates a category-level comparison but does not require the learned pointwise bars to coincide. Our wording was too strong: Fig. S.3 is the direct verification, whereas Fig. 4 is a learned-model robustness test.
We will rerun with exactly memories, disjoint rotations across seeds, and paired identity controls. We will report the grouped mean and standard error, plus the learned Gram matrix and target-wise symmetry diagnostic, and revise the caption accordingly.
Response to Reviwer 6yuq (Part3)
- As defined in Section 4.1, this paper mainly focuses on continual learning with 2 tasks. In practice, there are usually many tasks in continual learning. Can the authors provide more discussion on whether the current theories and conclusions can be extended to more tasks? More specifically, the replay of outliers can alleviate forgetting when the number of tasks is small, but the replay gain of these outliers may vanish after being replayed several times. Is it possible to quantitatively describe the trend of replay gain when the number of tasks increases?
(i) Does the mechanism extend to more tasks? Yes, provided energy is recomputed after each transition rather than fixed once. The reviewer's conjecture that gain vanishes once the same outliers have been replayed several times is precisely what the energy criterion predicts: replay restores local support for a vulnerable sample, so its energy and hence its replay priority fall, and the buffer rotates toward samples that have newly lost support. The mechanism is self-limiting by construction, and repeatedly replaying a fixed outlier set is not what the criterion prescribes. Our two-task theorem isolates one elementary distribution change; wherever the same or closely related domains recur, we expect the same local-support changes, and hence the same qualitative mechanism, to recur with them.
(ii) Can the trend be described quantitatively as the number of tasks grows? Not from the present theory, and we suspect task count alone is not the governing variable. Continual-learning tasks need not be disjoint: Rainbow Memory studies blurry class-incremental learning with classes shared across tasks [Bang+21], and Dohare et al. study long streams in which earlier classes are revisited, showing that extended training additionally erodes plasticity [Dohare+24]. Replay gain therefore depends on task similarity, revisit frequency, buffer size, replay budget, and remaining plasticity, rather than on the number of transitions per se. Analogous revisit scenarios remain largely unexplored for generative models. We will add this discussion together with the factors a quantitative extension would require, and note that characterizing these trends across multi-task generative benchmarks is an important direction for subsequent work.
[Bang et al., 2021] J. Bang et al., "Rainbow Memory: Continual Learning with a Memory of Diverse Samples", CVPR 2021
[Dohare et al., 2024] S Dohare et al., "Loss of plasticity in deep continual learning", Nature, 2024
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 2/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
Inspired by the mathematical similarity between Modern Hopfield Networks MHN and diffusion models' score, suggest using the MHN energy as an intrinsic signal used to improve diffusion models' results. The idea is empirically supported by a correlation between MHN energy and models' MSE, calculated from real-world data and two different diffusion models. It is then demonstrated that guiding training by selecting high-energy items for re-training provides an interesting avenue for improving diffusion models.
Strengths and weaknesses
Strengths
(S1) Propose a simple idea that connects MHN energy and diffusion models' loss. The resulting signal is model-agnostic, in the sense that it depends only on the training data and not the details of the model, and can thus be applied flexibly.
(S2) Demonstrate a correlation between the diffusion models' MSE and the MHN energy. Retraining on high-energy samples reduces their MSE.
Weaknesses
(W1) It is unclear if the suggested procedure improves the resulting diffusion models as a whole, not just on a per-sample level.
(W2) Figure 5,6 are missing y-labels (probably delta-MSE) and are not well explained, and it is unclear if they support the idea that retraining on high-energy samples is optimal.
(W3) I did not understand the x-label notation at figures 3a, 4, and S2.
Questions
(Q1) Could you explain the x-label notation at figures 3a, 4, and S2?
(Q2) Could you explain the y-label of figure 5cd,6cd? Does this figure support the idea that retraining on high-energy samples is optimal?
(Q3) Does the resulting method using an energy-guided retraining buffer improve the overall assessment of the resulting diffusion models, as measured by standard metrics (e.g., loss or MSE on a test set)?
(Q4) Is it fair to say that the MHN energy identifies isolated samples, which are not well constrained by the training set? So retraining on those samples does not change their isolation, and instead gives them additional weight? If so, I can suggest to have energy-guided learning rate, where the learning rate for isolated samples is up-modulated by the energy.
Limitations
It is not clear whether the resulting method using an energy-guided retraining buffer improves the overall assessment of the resulting diffusion models, as measured by standard metrics (e.g., loss or MSE on a test set).
Final justification
The authors have significantly improved the clarity of the claims, and I appreciated their effort to demonstrate relevance to practical problems in the recently added relation between the new training procedure and test-set MSE. I stand by my positive score.
Formatting concerns
None
5 comments
Response to Reviewer rnPw (Part1)
We thank the reviewer for the careful reading, positive assessment, and constructive suggestions. We agree that the figures should distinguish more clearly between per-sample protection, aggregate reconstruction, and overall generative-model quality.
Weakness
- It is unclear if the suggested procedure improves the resulting diffusion models as a whole, not just on a per-sample level.
Agreed: this was not established in the submission. We have now tested it directly, and the result is positive. On the held-out Task-1 test set, energy-guided replay improves global reconstruction MSE on both datasets (table under Q3). Overall generative quality (e.g., FID) remains untested, so we will narrow that claim accordingly.
Our current manuscript establishes a sample-level and distribution-retention claim: energy-guided replay preferentially protects the high-energy Task-1 tail. Panels 5(d) and 6(d) also aggregate the reconstruction improvement over all evaluated Task-1 samples, but the current manuscript does not report held-out test MSE or FID. We will narrow the claim accordingly and add the held-out comparison described under Question 3.
- Figure 5,6 are missing y-labels (probably delta-MSE) and are not well explained, and it is unclear if they support the idea that retraining on high-energy samples is optimal.
The reviewer is right on both counts. The labels are missing, and the figures do not establish global optimality — they show that high-energy replay is most effective for the vulnerable high-energy tail. We will add the labels, definition and 'positive is better' direction, and replace 'optimal' with 'tail-selective.
We agree that the missing labels obscure this result. The quantity is $\Delta\mathrm{MSE}=\mathrm{MSE}{\mathrm{no\ replay}}- \mathrm{MSE}{\mathrm{replay}}$, so positive values indicate that replay improves reconstruction. Panel (c) reports its mean within each energy bin and panel (d) its sum within each bin. We will add the full labels, definitions, and “positive is better” direction to both axes and captions.
These panels support a more specific conclusion than global optimality: high-energy replay gives the largest per-sample protection in the vulnerable high-energy tail, whereas random or low-energy replay can distribute a smaller effect over a broader range. We will replace “optimal” with “tail-selective” wherever the evidence does not support global optimality. Question 2 gives the precise definitions.
- I did not understand the x-label notation at figures 3a, 4, and S2.
Our notation was underspecified, and we apologize. are the 12 memories in the equal-angular cluster and the orthogonal outlier; each tick identifies the fixed-point branch initialized from that memory. We will state this mapping on the axes and in each caption. Further details are given under Question 1.
Response to Reviewer rnPw (Part2)
Question
- Could you explain the x-label notation at figures 3a, 4, and S2?
The labels denote the clustered memories and the outlier; the tick identifies the corresponding Task-1 fixed point, while the Fig. 4 legend identifies the replay source . We will use “Target Task-1 fixed point ” as the x-axis label and “Replay source ” as the legend title. The cluster memories satisfy for , whereas . In Figs. 3(a) and S2, the height is the rotation-induced energy increase evaluated at . Thus, the bar at tick under “ replay” represents . For example,
- “ replay” at is cluster self-replay ;
- “ replay” at is within-cluster cross replay ;
- “ replay” at is outlier self-replay ; and
- “ replay” at , or “ replay” at a cluster memory, is cross-type replay.
will be retained only as the branch identifier.
- Could you explain the y-label of figure 5cd,6cd? Does this figure support the idea that retraining on high-energy samples is optimal?
No, the figures do not show that high-energy replay universally minimizes global MSE; instead, they show that it is most effective for high-energy targets. We will add the y-axis definition, the “positive is better” direction, the panel-wise aggregation definitions, and the meaning of the error bars, and will distinguish tail-selective efficacy from global optimality. The y-axis quantity is defined as follows. Let
denote the reconstruction improvement for Task-1 sample under replay policy . Positive values mean lower MSE with replay. For energy bin , panel (c) reports the per-sample mean
whereas panel (d) reports the total
Panel (c) tests where replay has the largest effect per sample; panel (d) additionally accounts for how many samples occupy that energy range. Panels (a,b) show the raw post-replay MSE distributions, while the actual no-replay comparison is made in panels (c,d). We will also clarify that the error bars in panel (c) are standard errors across samples within each bin, not across independent training runs.
The figures show that high-energy replay is most effective for high-energy targets. They do not show that it universally minimizes global MSE: the theorem proves a target-matched per-sample replay ordering in the structured MHN, not global optimality of a finite buffer for arbitrary data. In the diffusion experiments, high-energy replay produces a large but narrow high-energy-tail benefit, while other policies can produce broader protection. We will revise the text to distinguish these claims explicitly.
- Does the resulting method using an energy-guided retraining buffer improve the overall assessment of the resulting diffusion models, as measured by standard metrics (e.g., loss or MSE on a test set)?
Yes, for test-set MSE. On the held-out Task-1 test set, energy-guided replay lowers global reconstruction MSE relative to no replay on both datasets. Which energy policy is best globally is benchmark-dependent, whereas high-energy replay is consistently best on the high-energy subset. We have not evaluated distributional generative quality (e.g., FID).
We evaluated the pixel-space diffusion Task-2 checkpoints on the Task-1 test set:
| Dataset | Evaluation subset | No replay | Low-energy replay | High-energy replay |
|---|---|---|---|---|
| Rotated MNIST | Global ( samples) | 0.203200 | 0.188975 | 0.171837 |
| Rotated MNIST | Lowest 20% energy ( samples) | 0.143334 | 0.094170 | 0.136377 |
| Rotated MNIST | Top 20% energy ( samples) | 0.251669 | 0.249980 | 0.190502 |
| CIFAR-10 | Global ( samples) | 0.101990 | 0.097209 | 0.098476 |
| CIFAR-10 | Lowest 20% energy ( samples) | 0.070260 | 0.065258 | 0.069413 |
| CIFAR-10 | Top 20% energy ( samples) | 0.133457 | 0.130627 | 0.126358 |
Globally, high-energy replay performs best on Rotated MNIST, while low-energy replay performs best on CIFAR-10. More importantly, the subset results show the same target-matched behavior on both datasets: low-energy replay performs best on the lowest-energy samples, whereas high-energy replay performs best on the highest-energy samples. Thus, energy-guided replay improves held-out Task-1 retention, while its clearest and most consistent benefit is allocating replay to the targeted energy region. This evaluation does not by itself establish an improvement in overall generative quality.
Response to Reviewer rnPw (Part3)
- Is it fair to say that the MHN energy identifies isolated samples, which are not well constrained by the training set? So retraining on those samples does not change their isolation, and instead gives them additional weight? If so, I can suggest to have energy-guided learning rate, where the learning rate for isolated samples is up-modulated by the energy.
Yes to both, with one refinement. MHN energy identifies samples with weak support from neighboring data, and replay increases their effective weight rather than altering their geometric isolation. The contribution is that energy tells us which samples need that weight, and the theorem gives a target-matched ordering rather than uniform up-weighting.
Energy-guided sample-specific learning rates are an interesting alternative. However, it is currently unclear whether sample-dependent learning rates can train diffusion models stably or whether they are generally effective in continual learning. Their effects may depend on the diffusion noise level, shared model parameters, and optimizer dynamics, making this a substantially more involved method than replay. We therefore leave its design and evaluation to future work. Nevertheless, if such adaptive training methods become feasible, we believe that energy would provide a useful signal for determining which samples should receive stronger updates.
Comments on the paper
1 comment
Rebuttal Posted - Discussion Period Now Open
Dear Reviewers,
Thank you again for your work. The authors have now responded, and the discussion period is open.
Please take a look at their responses and join the discussion over the coming days. Feel free to ask follow-up questions and discuss any remaining doubts. Our goal is to clarify all outstanding concerns before the next phase begins on August 3.
Many thanks for your time!
Best,
AC
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Response to the Metareview (Part1)
We thank the Area Chair for summarizing the key concerns. Below, we give our main conclusions and planned revisions, together with pointers to the detailed responses to the individual reviewers.
Generality of the theoretical analysis
This criticism is valid for the strict closed-form theorem provided in the original submission: it relies on the simplified equal-angular, two-task setting and does not directly extend to arbitrary data or task sequences. Nevertheless, the analysis can be extended in two concrete ways: the general Hessian formula applies to arbitrary memory configurations, and spurious/mixed states provide a tractable extension to more complex landscapes even within our structured model. We will make both the limitation and these extensions explicit in the revised manuscript.
The general Hessian formula can therefore be evaluated for nonuniform memory configurations, although equal-angularity is still required for the universal closed-form strict ordering.
The cluster--outlier model is a controlled setting for proving the strict ordering. It is also deliberately more structured than the random or exchangeable ensembles standard in theoretical analyses of MHNs and diffusion models [Lucibello+24, Biroli+24]. Such ensembles average away the sample-wise heterogeneity in local density that is essential to asking which memories are more vulnerable to forgetting; our structured model makes this quantity analytically identifiable.
As detailed in our response to Reviewer 7f15, stable genuine mixtures are excluded in the theorem's memorization regime, whereas a stable cluster-mean mixed attractor appears at intermediate temperature. Direct evaluation shows that this mixed state remains lower and flatter than the outlier. This provides a tractable extension to a more complex landscape, although a complete intrinsic-forgetting theorem for displaced mixed fixed points remains open. Longer task sequences are discussed separately in Reviewer 6yuq, Question 3.
Revision: We will separate the general Hessian formula from the restricted strict ordering, explain why structured data are needed to expose sample-wise heterogeneity, and add the mixed-state extension while stating the limits for arbitrary data and longer task sequences. Supporting details are given in Reviewer 6yuq (Weakness 2 and Questions 1 and 3) and Reviewer 7f15 (Weaknesses 2 and 4 and Question 1).
Clarity and presentation
We agree and will implement the requested presentation changes throughout the manuscript. Specifically, we will add a notation table; consistently distinguish the memory set X, MHN state ξ, and data sample x; add the energy and sharpness inequalities directly to Theorem 4.1; define DDPM and FID at first use; explain the colorbars; clarify all xi/xo axis labels and replay legends; add the missing ΔMSE labels and “positive is better” direction; and revise the figure captions to distinguish direct theorem verification from learned-model robustness tests.
Revision: We will add the notation table and missing definitions and labels, place the energy and sharpness inequalities in Theorem 4.1, explain the colorbars, axes, and replay legends, and distinguish theorem verification from robustness tests. The itemized changes are given in Reviewer 6yuq (Weaknesses 1 and 3 and Question 2), Reviewer 7f15 (clarity-related Weaknesses), and Reviewer rnPw (Weaknesses 2 and 3 and Questions 1 and 2).