Memorization and generalization in LLMs are associated with distinct neurons, and steering those neurons at inference time can switch a model between the two behaviors.
Quantifying In-Context Reasoning Effects and Memorization Effects in LLMs
1 Pith paper cite this work. Polarity classification is still indexing.
abstract
In this study, we propose an axiomatic system to define and quantify the precise memorization and in-context reasoning effects used by the large language model (LLM) for language generation. These effects are formulated as non-linear interactions between tokens/words encoded by the LLM. Specifically, the axiomatic system enables us to categorize the memorization effects into foundational memorization effects and chaotic memorization effects, and further classify in-context reasoning effects into enhanced inference patterns, eliminated inference patterns, and reversed inference patterns. Besides, the decomposed effects satisfy the sparsity property and the universal matching property, which mathematically guarantee that the LLM's confidence score can be faithfully decomposed into the memorization effects and in-context reasoning effects. Experiments show that the clear disentanglement of memorization effects and in-context reasoning effects enables a straightforward examination of detailed inference patterns encoded by LLMs.
fields
cs.CL 1years
2024 1verdicts
CONDITIONAL 1representative citing papers
citing papers explorer
-
Neuron-Level Differentiation of Memorization and Generalization in Large Language Models
Memorization and generalization in LLMs are associated with distinct neurons, and steering those neurons at inference time can switch a model between the two behaviors.