Searcharxiv⌕ Search

arXiv · 2611.26797

Memorization and Generalization in Generative Models: A Perspective From Energy-based Modeling and Associative Memory

Abstract

Generative models now write working code, produce realistic images, and hold long conversations, yet the mechanisms behind their intelligence still evade our understanding. This thesis explores that puzzle through Associative Memory (AM), in which patterns are stored as energy minima and retrieved through attractor dynamics. Beyond their capacity, AMs form new minima known as spurious states, long regarded as a failure of memory. We argue that this failure is where creativity begins, and that memorization and generalization can coexist as outcomes of one retrieval process. First, we show that diffusion models behave as AMs. With little data, a diffusion model forms a distinct basin of attraction around each training sample. As the data grows, these basins shrink, and spurious states emerge as attractors that blend stored samples yet match none of them. They are the first signs of generative capability. We characterize this transition by measuring the volume, energy, and curvature of these basins across datasets and architectures, including Stable Diffusion. We then turn to language and move beyond the energy-based view of AM. We show that uniform-state discrete diffusion models are AMs capable of retrieving unseen data, with basins of attraction that arise from conditional likelihood maximization alone. As the training set grows, basins around training examples contract while basins around unseen examples expand, until corrupted test sentences are recovered as reliably as training ones. Conditional entropy exposes this coexistence within a single sequence and cheaply diagnoses where a model lies along the transition. Together, these results suggest that AM is a general principle defined by basins of attraction, and that memorization and generalization can coexist within one model. AM thus offers a framework for asking when a generative model recalls and when it creates.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Bao Pham. 2026-11-19. Memorization and Generalization in Generative Models: A Perspective From Energy-based Modeling and Associative Memory. https://searcharxiv.com/abs/2611.26797

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite Searcharxiv by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

VeRA: Verified Reasoning Data Augmentation at Scale

Static benchmarks wear out: their problems circulate widely and can enter training data, and their scores saturate as models improve. Renewing a benchmark requires new problems with reliable answers, which are expensive to write by hand at competition level. We introduce VeRA (Verified Reasoning Data Augmentation), in which a language model automatically compiles each benchmark problem into an executable specification: a question template, a generator of valid inputs, and a program that computes the answer. Once its programs pass automatic checks, a specification yields many fresh, code-labeled problems at almost no cost, and people are needed only to audit. VeRA-E (equivalent) draws new instances of the same computation. VeRA-H (hardened) modifies the computation to create harder problems where scores saturate; because code computes every answer, the language model that writes them never has to solve them. VeRA-H Pro keeps the hardest of up to five such candidates, as ranked by a judge. Across 16 frontier models, fresh instances of AIME 2024 problems lower accuracy from 84.46% to 70.25%, and every model drops. GSM8K and the less-circulated Beyond-AIME, compiled by the same pipeline, stay essentially unchanged, so the drop reflects familiarity with specific problems, not an artifact of rewriting. On the near-saturated AIME 2024 II problems, VeRA-H Pro lowers accuracy from 84.91% to 58.57%. Expert audits back the labels, with all 220 audited fresh instances accepted and 95.1% of hardened candidates usable after repair. Compiling all 1,319 GSM8K problems cost about USD 100. VeRA thus makes benchmarks renewable by construction: wherever code can compute the answer, a benchmark can be refreshed whenever its problems leak or models catch up.

cs.AI↗

ScrapMem: A Bio-Inspired Framework for On-Device Personalized Agent Memory via Optical Forgetting

Long-term personalized memory for LLM agents is challenging on resource-limited edge devices because multimodal histories grow continually and are costly to store. To address this challenge, we propose ScrapMem, a bio-inspired framework that consolidates each day's heterogeneous records into a unified "Scrapbook Page." ScrapMem introduces Optical Forgetting, an optical compression mechanism that progressively reduces the resolution and JPEG quality of older pages, lowering storage costs while keeping recent evidence at higher fidelity. To preserve semantic consistency and support structured retrieval, we construct an Episodic Memory Graph (EM-Graph) that organizes semantic nodes into causal-temporal EM-Paths. This design separates a stable retrieval structure from aging visual evidence, allowing relevant episodes to remain accessible as page fidelity decreases. Under the common ATM-Bench protocol, ScrapMem without forgetting establishes a new non-oracle state of the art with 51.0% Joint@10 and reaches 70.3% Recall@10. Optical Forgetting reduces the persistent memory footprint by up to 93.0% relative to the raw corpus while retaining over 90% of No-Forget performance. ScrapMem offers a storage-efficient and interpretable approach to long-term multimodal memory for on-device LLM agents. The code is available on GitHub.

cs.AI↗

CatalyticMLLM: A Graph-Text Multimodal Large Language Model for Catalytic Materials

Property prediction and inverse structural design of catalytic materials are typically modeled as two independent tasks: the former predicts target properties from given structures, whereas the latter generates candidate structures conditioned on desired properties. Although this decoupled paradigm facilitates the construction of a ``generation--evaluation--screening'' workflow, the two models may have different domains of applicability because they are trained on different data distributions. Consequently, during closed-loop optimization, the generative model may produce structures that fall outside the reliable applicability domain of the evaluation model, while prediction errors from the evaluator may accumulate over successive iterations, ultimately degrading inverse-design performance. In this work, we propose CatalyticMLLM, a unified graph--text multimodal large language model for catalytic materials that integrates \textbf{property prediction} and \textbf{inverse design} within a single model and a shared representation space. Under this unified framework, CatalyticMLLM not only performs reliable property prediction by jointly leveraging three-dimensional structures and textual information, but also generates and screens physically feasible CIF candidates conditioned on target properties, thereby establishing a closed-loop workflow of ``inverse design--prediction--screening--redesign.'' Experimental results demonstrate that the unified paradigm outperforms decoupled baselines in both catalytic relaxation-energy prediction and inverse-design tasks, validating the effectiveness of jointly modeling property prediction and structure generation within a single multimodal model.

cs.AI↗