acceptodds
Published as a conference paper at NeurIPS 2026

Continual Learning in Modern Hopfield Networks with an Application to Diffusion Models

Ken Takeda, Masafumi Oizumi, Ryo Karakida

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.

Keywords:
Sydney

Reviews

Among:
Shape:
123456this paper, Bottom 17%
Figure 1. Mean review rating of the reviewed papers at NeurIPS 2026. This paper averages 4.00 over 3 reviews, above 17% of the others.
Reviewer_7f15OpenReview ↗
Rating
4
Clarity
3
Confidence
4
Originality
3
Quality
3
Significance
3
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 T1T_1 undergo the largest distributional change after introducing a task T2T_2 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

  1. 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.
  2. Overall the manuscript is well written, each equation has its purpose clearly articulated and intuitive proof steps provide enough information to interpret the conclusions.
  3. The use of MHN energy function to understand and design a replay algorithm is novel and can open up new research directions.
  4. 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

  1. 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 ∥ξ∥2\lVert {\xi} \rVert^2 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 ξ\xi is normalized (to avoid the effect of ∥ξ∥2\lVert {\xi} \rVert^2, and β\beta 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.
  2. 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.
  3. 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 ξa,ξb\xi_a, \xi_b, if E(ξa)>E(ξb)  ⟹  ΔE(ξa)−ΔE(ξb)>0E(\xi_a) > E(\xi_b) \implies \Delta E(\xi_a) - \Delta E(\xi_b) > 0 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.
  4. 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.
  5. 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 XoldX_{\text{old}} with XnewX_{\text{new}} or VXVX, rather than modeling the parameter-learning dynamics by which a neural network forgets during sequential training.
  6. 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.
  7. (Clarity) xx and ξ\xi are used is confusing ways. In Eqns 1,2,3, xix_i is used to indicate the stored memories in the MHN, and ξ\xi was the state of the network. Later, in Section 3.3, xx and yy are used. Then in Equation 4, xx is defined to be a state variable(instead of ξ\xi).
  8. (Clarity) DDPM not expanded or introduced
  9. (Clarity) L55 - FID not expanded or introduced
Questions
  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?
  2. 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?
  3. 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.

Paper formatting concerns

no concerns.

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.

Reviewer_6yuqOpenReview ↗
Rating
4
Clarity
2
Confidence
3
Originality
3
Quality
3
Significance
2
Read review
Summary

This paper studies the mechanism of forgetting and replay in continual learning.

  1. First, this paper defines intrinsic forgetting as the change in Hopfield energy when changing the task.

  2. 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.

  3. 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

  1. 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.

  2. 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.

  3. 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
  1. 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?

  2. When verifying Theorem 5.1, Figure S.3 is the ideal result where the green bars are almost the same for x2x_2 to x12x_{12}. But in Figure 4, the middle green bars differ from each other significantly. Can the authors provide more explanations for this phenomenon?

  3. 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.

Paper formatting concerns

There are no formatting concerns.

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.

Reviewer_rnPwOpenReview ↗
Rating
4
Clarity
2
Confidence
3
Originality
3
Quality
3
Significance
3
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).

Paper formatting concerns

None

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.

Comments on the paper

1 comment
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:

  1. The generality of the theoretical analysis is unclear, given its reliance on a highly simplified setting.
  2. Reviewers identified clarity and presentation issues at different points in the paper, please check the individual reviews for specific areas of improvement.
  3. 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.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Related papers

Loading the map…

Discussion (0)

Sign in to comment.