potentialpaper

A mathematical theory of balancing relational generalization and memorization

Luke Cheng, Samuel Lippl

CompLearn @ ICML 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

TL;DR. We introduce a task that requires relational generalization and memorization of exceptions, analytically characterize the behavior of kernel models on this task, and validate our theory in pretrained language models.

Abstract. Humans, animals, and modern machine learning models exhibit impressive abilities to learn complex behaviors and generalize these behaviors to unseen situations. This ability requires us to learn rules and regularities that allow for such generalizations. At the same time, in most complex environments, any rule will have its exceptions. How do learning systems balance between learning general regularities and memorizing exceptions? We argue that a lack of task paradigms has hindered the study of this essential ability. To address this gap, we introduce a novel task, transitive inference with exceptions, that tests for relational generalization and memorization of an exception to the relational rule. We then analytically characterize the behavior of a simple, theoretically tractable model of neural network learning (kernel ridge regression) across a broad family of representations and task parameters. We find that these models can balance between relational generalization and memorization, but unlike for transitive inference without an exception, successful generalization is sensitive to the specific representational geometry. We explain why this task is more challenging mechanistically by drawing on our analytical theory. Finally, we validate our theoretical insights in pretrained language models that are finetuned on ordered relations, finding that these models successfully generalize according to the transitive rule, but also make the kinds of systematic mistakes predicted by our theory. Crucially, by analyzing the representational geometry of different models for different tasks, we identify the tradeoff between rule learning and memorization predicted by our theory: a model with a larger memorization population is more likely to make generalization errors but less likely to fail to memorize the exception. Overall, our theory shows how learning systems can balance between relational generalization and memorization, explains how this can go wrong, and emphasizes the need for new task paradigms designed to probe this ability.

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 paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

FromAToBDateVersionSubmitted toPDFEvidence
4 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]—[1]
8 May 2026CompLearn @ ICML 2026submittedCompLearn @ ICML 2026Accepted · Poster—[1]
Their titles, abstracts and, where both have a PDF, the text.Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:45 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

a) Summary. The paper studies how learning systems balance relational generalization and memorization when learning mostly transitive rules with local exceptions. It introduces a transitive inference with exceptions benchmark and develops a kernel ridge regression analysis showing that behavior depends on representation geometry and regularization, with a tradeoff between compositional generalization and exception memorization. The authors further evaluate fine-tuned language models and report qualitative agreement with the theoretical predictions.

(b) Strengths. The paper studies an important and underexplored problem, as many existing works consider generalization and memorization separately. The proposed benchmark and theoretical decomposition provide an interpretable framework for analyzing relational reasoning behavior.

(c) Weaknesses. The theory relies on strong exchangeable representation assumptions that may not reflect modern neural networks, and the connection between the theoretical parameters and actual LLM representations is largely qualitative. The empirical validation is limited, focusing mainly on synthetic relational tasks, without quantitatively demonstrating that the proposed mechanism explains PLM behavior or generalizes to realistic reasoning settings.

(d) Please provide stronger evidence connecting the theory to learned representations. Additional experiments beyond synthetic relational tasks, together with clearer positioning against prior relational reasoning theories, would also strengthen the paper.

(e) The authors responded substantively by estimating the theoretically relevant representation geometry, testing its relationship with memorization and generalization, and extending the analysis to multiple exceptions. Reviewers found these additions helpful, while noting that they provide supporting rather than complete mechanistic validation.

(f) The main strength is the combination of a clean benchmark with an exact, interpretable analysis that yields specific empirical predictions. The principal limitation is that broader claims about language models rely on restrictive kernel assumptions and correlational evidence, leaving generality to semantic priors and feature-learning regimes uncertain.

Final justification

Reviewers generally considered the work technically rigorous, while sharing concerns about the restrictive exchangeability assumption and the gap between the fixed-kernel theory and finetuned PLMs. The rebuttal materially strengthened this connection through quantitative representation analyses, but the evidence remains correlational and its broader applicability is not fully established.

Area Chair LFBL · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

a) Summary. The paper studies how learning systems balance relational generalization and memorization when learning mostly transitive rules with local exceptions. It introduces a transitive inference with exceptions benchmark and develops a kernel ridge regression analysis showing that behavior depends on representation geometry and regularization, with a tradeoff between compositional generalization and exception memorization. The authors further evaluate fine-tuned language models and report qualitative agreement with the theoretical predictions.

(b) Strengths. The paper studies an important and underexplored problem, as many existing works consider generalization and memorization separately. The proposed benchmark and theoretical decomposition provide an interpretable framework for analyzing relational reasoning behavior.

(c) Weaknesses. The theory relies on strong exchangeable representation assumptions that may not reflect modern neural networks, and the connection between the theoretical parameters and actual LLM representations is largely qualitative. The empirical validation is limited, focusing mainly on synthetic relational tasks, without quantitatively demonstrating that the proposed mechanism explains PLM behavior or generalizes to realistic reasoning settings.

(d) Please provide stronger evidence connecting the theory to learned representations. Additional experiments beyond synthetic relational tasks, together with clearer positioning against prior relational reasoning theories, would also strengthen the paper.

(e) The authors responded substantively by estimating the theoretically relevant representation geometry, testing its relationship with memorization and generalization, and extending the analysis to multiple exceptions. Reviewers found these additions helpful, while noting that they provide supporting rather than complete mechanistic validation.

(f) The main strength is the combination of a clean benchmark with an exact, interpretable analysis that yields specific empirical predictions. The principal limitation is that broader claims about language models rely on restrictive kernel assumptions and correlational evidence, leaving generality to semantic priors and feature-learning regimes uncertain.

Final justification

Reviewers generally considered the work technically rigorous, while sharing concerns about the restrictive exchangeability assumption and the gap between the fixed-kernel theory and finetuned PLMs. The rebuttal materially strengthened this connection through quantitative representation analyses, but the evidence remains correlational and its broader applicability is not fully established.

1 comment
Authors · CommentOpenReview ↗

Dear Area Chair,

Thank you very much for your thoughtful comments. We wanted to summarize the major changes we’ve made during the rebuttal period.

1 Stronger evidence connecting the theory to learned representations

We agree that strengthening the connection between PLM behavior and our theory is important. To address this, we ran a new set of experiments using multiple relational domains, prompt formats, and models. Please see the first part of our response to reviewer GaRE and our subsequent comment to reviewer xzKD for details.

As a brief summary, we estimated an effective conjunctivity factor α\alpha for each setting and model, both from the last hidden layer of the model (the relevant representation for linear probing) and from the model’s neural tangent kernel (the relevant representation for full finetuning). Our theory predicts that larger α\alpha should lead to worse generalization performance, in particular on cross-section generalization, while improving memorization. Across domains, prompts, and models, we found precisely this pattern. These findings indicate that changes in α\alpha do not simply change the overall performance of a PLM. Rather, larger α\alpha shifts models along the generalization-memorization tradeoff identified by our theory: improving accuracy on the training premises, while reducing accuracy on the test premises. These findings strengthen the mechanistic connection between our theoretical analysis and PLM behavior.

2 Clearer positioning against prior relational reasoning theories

Please see the last part of our rebuttal for reviewer xzKD, where we discuss the implications of our work in detail. We also take this opportunity to clarify how our work relates to prior relational reasoning theories.

The cognitive science and neuroscience literature has often considered models that are constrained to relationally generalize. For example, many models of transitive inference are constrained to learn a ranking system, which enforces transitivity and prevents these models from memorizing exceptions [Wynne, 1995; Jensen et al., 2017]. Similarly, a line of work in machine learning shows how compositional constraints can lead to successful compositional generalization [31-34]. At the same time, studies also emphasize the importance of non-transitive relations for studying whether subjects are able to represent nonlinear interactions between different items [24-26]. More recent works in cognitive science and machine learning have shown that neural networks (which are not constrained in such a manner) can generalize transitively [13,18-21], and that training Transformers on linear regression can cause these models to generalize transitively in-context [Geerts et al., 2025; see also our discussion of this paper in our response to reviewer N2kR].

However, to our knowledge, existing studies have considered relational generalization and memorization in isolation. Our study addresses this gap and provides a theoretical foundation for understanding how standard learning systems can generalize according to a relational rule while also memorizing an exception to this rule. We further show that introducing an exception results in qualitatively distinct generalization patterns compared to transitive inference without exceptions. We think this is an important observation, as many studies in neuroscience and machine learning evaluate relational generalization only in tasks without exceptions. Given the prevalence of relational and compositional exceptions in the real world, this simplification may overlook important properties that are only apparent in tasks involving exceptions.

We agree that discussing the relation of our work to this prior literature in more detail is important and will add a condensed version of this discussion to the paper.

3 Extension of our theory to multiple exceptions

In response to reviewer GarE, we extended our theory to consider multiple exceptions, showing that we can characterize this case as a natural extension of the single-exception case (see our response to reviewer GarE). This demonstrates that the intuitions and insights we provided in our paper naturally extend to more complex relational structures as well.

Overall, we think this rebuttal phase has substantially strengthened our manuscript by 1) providing stronger mechanistic evidence linking our theory to the empirical results, 2) better positioning our work within the prior literature, and 3) extending the theoretical framework. We sincerely thank you and the reviewers for your helpful suggestions.

Reviewer xzKdOpenReview ↗
Rating
4/6
Confidence
3/5
Quality
3/4
Clarity
2/4
Significance
3/4
Originality
4/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

In this paper, the authors investigate how learning system balance generalization and memorization in relational tasks. To achieve this, they introduce a new task: transitive inference with exceptions. In this task, the system is presented with pairs of elements (Ij,Ik)(I_j,I_k) (concatenated orthogonal vectors) and a corresponding binary label that indicates whether Ij>IkI_j>I_k or vice versa. Most of the pairs follow the expected relational rule (allowing to train and test the system’s generalization), while some break it (allowing to test memorization of these exceptions). This task is used to extensively test the trade-off between generalization and memorization in kernel ridge regression models. In particular, the authors investigate this trade-off in relation with two specific properties: the “conjunctivity factor” (which quantifies the extent to which the representations of the pairs’ elements are entangled in the latent space) and the “effective regularization parameter” (which quantifies the relative strength of the L2 regularization). The results show that these models, despite their simplicity, can effectively strike a balance between the two extremes (memorization and generalization) in a specific region of the conjunctivity-regularization space. Finally, the same task (in a slightly different form, using prompts related to poker hands and sport teams) is used to test PLM. Investigating empirically three training regimes (full finetuning, LoRa finetuning, linear probe training) they find that the behavior of the investigated PLMs shows a statistically relevant agreement with what observed for the simpler kernel regression models.

Strengths and weaknesses

Strengths

The problem tackled by this work is relevant and interesting for the research community; understanding and/or characterizing the exact mechanisms underlying the memorization-generalization trade-off is a very important step in the development of more robust and reliable learning systems. The theoretical and experimental analysis is scientifically rigorous, the experiments replicable, and the paper quality is solid. The characterization of the memorization-generalization trade-off in these terms is novel.

Weaknesses

  1. Sections 3.2 and 4.1 do not clearly introduce why the conjunctivity and regularization factors are relevant in the analysis and how they are naturally derived from the exchangeable kernel representation assumption and the chosen kernel ridge regression model. Stitching the information between these two sections is currently not trivial, and as a result the definition of α\alpha and c~\tilde{c} appeared to me quite arbitrary and confusing at a first read. A restructuring of these two sections (not including every detail of the derivation, but rather with some intuition on how those factors emerge and why they are defined the way they are) would make the paper more accessible.

  2. The exchangeable kernel representation assumption is good for a theoretical analysis of a simple models such as ridge regression, but it is explicitly violated in larger models which rely heavily on semantic priors. This is clearly observable in the PLM experiments on Poker and Reverse Poker, where prior knowledge exhibits a clear causal relationship with model performance and results in a deviation from what the theory would have predicted. To be fair, the authors acknowledge this limitation in the final discussion section and in Appendix C.7, but it still limits the generalizability of the results and phenomena observed.

  3. Independently from the previous point, I believe that the connection between the theoretical part and the PLM experiments is a bit underdeveloped. The paper is missing a quantification of the conjunctivity and regularization factors for the evaluated PLMs. Without this, the theoretical framework operates more as a post-hoc conceptual analogy than a rigorous predictive mechanism. Specifically, it remains unclear whether the PLMs' observed generalization behaviors are genuinely driven by the geometric constraints identified in the kernel model, or if the empirical alignment is merely coincidental.

  4. The results could be better contextualized and discussed more thoroughly in the text. What are the practical implications and what lessons can be learned from the observations in the paper? What does the observed phenomena entail for the field more in general?

  5. Minor issue: the appendix is currently a bit chaotic. I would suggest the authors to include clear page breaks to avoid mixing within appendix sections. For example, Appendix D is interrupted by several plots belonging to other sections. As a result, the section spans over 3 entire pages, significantly affecting its readability.

  6. Minor issue: in Figure 3b, it is not possible to see that the non-monotonicity in the ranking system only arises for every value of α∈(0,1)\alpha\in(0, 1), since α=0.3\alpha=0.3 covers up the other α\alphas.

Questions

See Weaknesses.

Limitations

Yes.

Final justification

The authors addressed part of my concerns in their rebuttal.

However, the reported α\alpha-accuracy analysis currently concerns linear probing on standard transitive inference without exceptions. It therefore does not yet directly establish that the same geometric mechanism explains the central memorization–generalization trade-off, or the cross-section failures, in transitive inference with exceptions. Similarly, the connection remains less direct for full fine-tuning, LoRA, and settings in which semantic priors substantially violate exchangeability. I would consequently describe the PLM results as substantive supporting evidence for the theoretical account, rather than a complete mechanistic validation of it.

Formatting concerns

No formatting issues

3 comments
Authors · RebuttalOpenReview ↗
Rebuttal

Thank you very much for your thoughtful review. We respond to your questions and suggestions below.

Sections 3.2 and 4.1 do not clearly introduce why the conjunctivity and regularization factors are relevant in the analysis and how they are naturally derived from the exchangeable kernel representation assumption and the chosen kernel ridge regression model. (...)A restructuring of these two sections (...) would make the paper more accessible.

Thanks for this suggestion, we agree that the clarity of this transition could be improved. To address it, we will restructure these sections to introduce the encoding model (see Fig. 3C and last paragraph of Section 4.1) before defining α\alpha and c~\tilde{c}. This provides a concrete intuition for the role played by α\alpha: it describes the relative salience of the nonlinearly conjunctive representations of specific item combinations compared to representations of each item by itself.

Why is α\alpha defined the way that it is? To understand this, we first highlight that for a fully compositional representation, the similarity of overlapping trials will be halfway between the similarity of fully identical trials (κs\kappa_s) and fully distinct trials (κd\kappa_d). Introducing a nonlinearly conjunctive population boosts the similarity of fully identical trials, but not that of overlapping trials. Thus the position of κo\kappa_o relative to κd\kappa_d and κs\kappa_s captures the overall conjunctivity of our representation. Our definition removes the baseline (by subtracting κd\kappa_d) and the overall scale of the representation (by dividing by κs−κd\kappa_s-\kappa_d), thus isolating specifically the conjunctivity. This conjunctivity impacts model behavior as it determines to what extent the model uses the item-level representation (which can generalize to the test set) versus the conjunctive representation (which does not generalize).

Finally c~\tilde{c} is defined the way that it is because the impact of regularization is relative to the overall scale of a representation. If our representation is very large, smaller weights have a bigger impact and a given regularization therefore has less impact on model behavior. We therefore need to divide by the scale of the representation (κs−κd\kappa_s-\kappa_d).

We will incorporate the explanations above into our restructuring of the transition between Section 3.2 and Section 4.1. Please let us know if you have any other suggestions, as we are committed to improving the clarity of the paper.

The exchangeable kernel representation assumption is good for a theoretical analysis of simple models such as ridge regression, but it is explicitly violated in larger models which rely heavily on semantic priors. This is clearly observable in the PLM experiments on Poker and Reverse Poker, (...)

This is a fair concern: our theory focuses on the case where individual items are uninformative and models cannot rely on prior knowledge about these items when inferring the relational order. We highlight that this is considered a particularly important (and frequently studied) case of relational generalization, in particular in the cognitive science and neuroscience literature [emphasized e.g. in refs. 26, 37, 40]. It is therefore important to first understand how models behave in this foundational case, before evaluating how introducing prior knowledge changes their behavior. We agree with you that such an analysis would be really interesting and therefore included an initial empirical experiment designed to probe the effects of prior knowledge. We think a theoretical exploration of the impact of prior knowledge deserves its own detailed treatment and we therefore leave it for future work.

Independently from the previous point, I believe that the connection between the theoretical part and the PLM experiments is a bit underdeveloped. The paper is missing a quantification of the conjunctivity and regularization factors for the evaluated PLMs. (...) Specifically, it remains unclear whether the PLMs' observed generalization behaviors are genuinely driven by the geometric constraints identified in the kernel model, or if the empirical alignment is merely coincidental.

Great point. Please see the first part of our response to reviewer GarE, which provides a set of novel analyses that strengthen the link between our theory and our empirical analysis. As a brief overview, we first empirically estimate an effective α\alpha for the models. Our estimates of α\alpha fall within the same range we previously considered (0.03-0.37) and we find significant variation in α\alpha across models and task variants. We then examined the relationship between α\alpha and test set performance. Our theory predicts that a larger α\alpha negatively affects test set generalization. Consistent with this prediction, we find a significant negative correlation between α\alpha and test set accuracy (Spearman correlation ρ=−0.55,p<10−5\rho=-0.55,p<10^{-5}), confirming the link predicted by our theory. We currently present results for linear probing in TI without exceptions. Due to the limited time during the rebuttal, experiments covering additional settings are still running. We will update you on the results of these experiments once they are complete. We hope that these new analyses address your concerns.

The results could be better contextualized and discussed more thoroughly in the text. What are the practical implications and what lessons can be learned from the observations in the paper? What does the observed phenomena entail for the field more in general? We appreciate the opportunity to expand on the implications of our work. We highlight a few takeaways that we will emphasize more in the manuscript.

  1. Compositionally structured representations have long been proposed as a basis for systematic generalization (e.g. Bernardi et al., 2020; Fascianelli et al., 2024). We build upon this literature to understand how their capacity for systematic generalization is impacted by an important property of real-world tasks: the frequent occurrence of exceptions to systematic rules. Our results highlight that simple learning systems can leverage compositional structure in their representations to generalize transitively. At the same time, these representations must also contain partially conjunctive populations to be able to memorize exceptions. Moreover, for representational geometries that are either too compositional or too conjunctive, models either fail to generalize or fail to memorize. On the one hand, this highlights that tasks involving exceptions result in a more nuanced relationship between representational geometry and behavior than tasks without exceptions. On the other hand, it highlights that compositionally structured representations by themselves are not sufficient for successful behavior on compositional tasks. Better learning rules could potentially navigate the tradeoff between compositionality and conjunctivity more gracefully. One such mechanism could be to use two learning systems with separate objective functions: one that focuses on generalization (with a highly compositional representation) and one that focuses on memorization (with highly conjunctive representations). Our theory would suggest that such a learning system (which has precedence in the neuroscience literature, see e.g. ref. 74) would navigate the memorization-generalization tradeoff more gracefully by reducing interference between the jointly learned conjunctive and compositional subpopulations (see Section 3.4).
  2. Research in machine learning and cognitive science has long highlighted that systems employing symbolic generalization rules are brittle in the face of exceptions to those rules and similarly emphasized the potential of connectionist systems to generalize while also learning such exceptions (e.g. Smolensky, 1988; Rumelhart & McClelland, 1987). Yet to our knowledge, there have been few theoretical investigations of how simple learning systems actually accomplish this balance. Our study fills this important gap and therefore provides a theoretical foundation for understanding how connectionist models can emergently give rise to both compositional generalization and memorization.
  3. We find that introducing an exception results in qualitatively distinct patterns of generalization compared to TI without such an exception. This is an important cautionary tale as many theoretical studies of compositional generalization focus on cases where the compositional or relational rule has no exceptions. Our results therefore highlight the importance of validating these studies in cases with exceptions, given the prevalence of such exceptions in the real world.
  4. Finally, the fact that our simple theoretical model can help us better understand compositional generalization in LLMs (especially given the new analyses we provide above) highlights that studying the impact of representational geometry is a promising perspective on understanding out-of-distribution generalization in LLMs during fine-tuning. We suggest that future work should leverage this perspective on a broader range of tasks; our study here serves as a proof of concept for this approach.

Minor issue: the appendix is currently a bit chaotic. I would suggest the authors to include clear page breaks to avoid mixing within appendix sections.

Thanks, we have now changed this.

Minor issue: in Figure 3b, it is not possible to see that the non-monotonicity in the ranking system only arises for every value of α\alpha, since α\alpha = 0.3 covers up the other α\alphas.

Thanks, we will provide a zoomed in version so this is clear.

Reviewer xzKd · CommentOpenReview ↗

I appreciate the detailed rebuttal provided by the authors. The response addresses several of my original concerns and has improved my assessment of the submission.

In particular, the proposed restructuring around the encoding model provides a much clearer motivation for the definitions of α\alpha and c~\tilde{c}. The expanded discussion of the practical implications also better contextualizes the contribution.

More importantly, the new analysis estimating an effective α\alpha from the residual-stream geometry is a meaningful step toward connecting the kernel theory to pre-trained language models. The reported variation in α\alpha across models and settings, together with its negative association with generalization performance, strengthens the empirical case beyond the primarily qualitative correspondence presented in the original submission.

However, the reported α\alpha-accuracy analysis currently concerns linear probing on standard transitive inference without exceptions. It therefore does not yet directly establish that the same geometric mechanism explains the central memorization–generalization trade-off, or the cross-section failures, in transitive inference with exceptions. Similarly, the connection remains less direct for full fine-tuning, LoRA, and settings in which semantic priors substantially violate exchangeability. I would consequently describe the PLM results as substantive supporting evidence for the theoretical account, rather than a complete mechanistic validation of it.

Authors · CommentOpenReview ↗

Thank you for your response. We are glad that our rebuttal addressed several of your concerns and appreciate the increase in score. We have now completed additional experiments that we hope address the remaining concerns that you had highlighted.

Impact of α\alpha on TI with exceptions for linear probing

First, we extended the analysis described in our previous rebuttal to TI with exceptions (the base case, i.e. n=9, p=5, q=3) by training several PLMs on experiments using a variety of relational domains and different prompt formats (100 samples per setting). Because we used a small regularization coefficient, all models trained to 100% training accuracy. Our theory predicts that increases in α\alpha should lead to worse generalization, in particular on cross-section generalization. We therefore examined the relationship between the estimated α\alpha in the last hidden layer of the PLM and cross-section generalization accuracy (results for test accuracy on all pairs were similar). As predicted by our theory, we found that increasing α\alpha leads to decreased test accuracy (Spearman correlation ρ=−0.46,p<10−5\rho=-0.46, p<10^{-5}). Moreover, α\alpha affected test accuracy beyond model-level differences: in a linear model controlling for PLM identity, α\alpha was still significantly negatively correlated with performance (t=−3.8,p=1.6⋅10−4t=-3.8,p=1.6\cdot 10^{-4}).

Impact of α\alpha on TI with exceptions for fine-tuning

We then ran an analogous experiment to evaluate the networks trained with full fine-tuning. As we noted in the original submission, our hypothesis is that during fine-tuning, PLMs are well approximated by a kernel model with the neural tangent kernel (NTK), consistent with prior work on PLM fine-tuning (refs. 57,58 in the manuscript). We therefore computed the NTK for each experiment and used it to estimate an effective α\alpha. The NTK’s effective α\alpha ranged from 0.06 to 0.26 (median 0.11). We then fine-tuned the different PLMs on TI with exceptions (n=9, p=5, q=3), using the same set of relational domains and prompt formats as for linear probing.

As noted above, our theory predicts that increases in α\alpha should lead to worse generalization. We therefore estimated the relationship between the NTK’s effective α\alpha and the cross-section generalization accuracy (results for test accuracy on all pairs were similar). As predicted by our theory, we found that increasing α\alpha leads to decreased test accuracy (Spearman correlation ρ=−0.50,p<10−5\rho=-0.50,p<10^{-5}). This effect persisted even when controlling for model-level differences (t=−4.32,p=3.4⋅10−5t=-4.32,p=3.4\cdot 10^{-5}).

Notably, in the full fine-tuning case, not all models reached perfect training accuracy. In this setting, our theory also predicts that increasing α\alpha should improve accuracy on the training set. In accordance with this prediction, we found that increases in α\alpha indeed lead to increases in training accuracy (Spearman correlation ρ=0.43,p=10−5\rho=0.43,p=10^{-5}). This effect persisted when controlling for model-level differences (t=3.57,p=5.3⋅10−4t=3.57, p=5.3\cdot 10^{-4}).

Together, these two findings indicate that changes in α\alpha do not simply change the overall performance of a PLM. Rather, larger α\alpha shifts models along the generalization-memorization tradeoff identified by our theory: improving accuracy on the training premises, while reducing accuracy on the test premises.

Impact of α\alpha on TI without exceptions for fine-tuning

Finally, we assessed the performance of PLMs on TI without exceptions in the full fine-tuning case. In accordance with our theoretical predictions, increases in α\alpha decreased test accuracy (Spearman correlation ρ=−0.54,p<10−5\rho=-0.54,p<10^{-5}), an effect that persisted when controlling for model-level differences (t=−5.0,p<10−5t=-5.0,p<10^{-5}).

Conclusion

In summary, these experiments substantially strengthen the mechanistic connection between our theory and our PLM experiments, showing that α\alpha predicts the memorization-generalization tradeoff followed by PLMs on relational tasks with exceptions. We will incorporate these results in the manuscript and think they substantially improve the connection between our theoretical and empirical results. Thank you again for your continued interaction, your suggestions have substantially improved our manuscript. Please let us know if you have any other suggestions.

Reviewer GarEOpenReview ↗
Rating
5/6
Confidence
3/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper introduces the task of "transitive inference with exceptions" to study realistic problems in which a model needs to generalize relational rules and memorize exceptions. The task is studied from a theoretical point of view by considering a kernel ridge regression model and proving that the network behavior depends on two factors: one that captures the compositional nature of the internal representation and another related to the adopted regularization. By studying these factors, the authors highlight systematic errors in generalization and memorization, which are then discussed and explained via mechanistic insights. Moreover, similar behavior and systematic errors are observed when fine-tuning pre-trained language models.

Strengths and weaknesses

Strenghts

  • Relational learning is an important research area that can provide valuable insights and open new directions for complex reasoning in AI models
  • This is a solid paper with a rigorous analysis of the generalization-memorization tradeoff in relational learning and interesting insights on relational model functioning
  • the text is reasonably easy to read: several figures exemplify the presented concepts, and the most heavy mathematical parts are in the appendices

Weaknesses

  • There is a significant gap between the theoretical analysis and the empirical validation. The connection between the two is developed at a qualitative level without a formal bond or a quantitative mapping.
  • The PLM fine-tuning analysis is performed only considering the accuracy and not discussing the regimes for \alpha and ~c. Connecting the different fine-tuning methods to the theoretical parameters would close the loop. Would it be possible to estimate \alpha (from the attention / from the MLP activations / from the internal model representation)?
  • The theory predicts that systematic errors occur at specific item pairs near the boundary of the intransitive section. Do the PLM experiments confirm this spatially specific error pattern, or are errors more diffuse? The heatmaps in Fig. 5 are suggestive but worth quantifying.
  • Would it be possible to also discuss the case with more than one intransitive loop? In general, it would be interesting to get closer to realistic conditions where there might be more than one exception.
Questions

Please consider the list of weaknesses as well as the following questions

  • How do you estimate or bound the effective \alpha for the representations in fine-tuned Llama/Qwen models? Have you attempted to measure it from the attention or MLP activations or through the geometry of item representations?

  • Is it possible to generalize Theorem 1 when there is more than one intransitive loop? Is there a phase transition in the number of exceptions beyond which cross-section generalization collapses entirely?

  • Systematic errors occur at specific item pairs near the boundary of the intransitive section. Do the PLM experiments confirm this spatially specific error pattern, or are errors more diffuse?

  • Does the theory have anything to say about how the choice of the pretraining-induced priors modulates the effective \alpha and ~c?

Limitations

The last paragraph of section 6 discusses some limitations, mainly considering the adopted assumption and potentially planning future extensions. I found the open questions in Appendix C.7 even more interesting: it could be valuable to move them to the main paper.

Final justification

The rebuttal addressed my concerns. I think that the paper has some interesting contributions for the community. The Authors are strongly encouraged to include the main point of the rebuttal discussion in the final version of the paper.

Formatting concerns

none

2 comments
Authors · RebuttalOpenReview ↗
Rebuttal

Thank you very much for your thoughtful review. We respond to your questions and suggestions below.

There is a significant gap between the theoretical analysis and the empirical validation. The connection between the two is developed at a qualitative level without a formal bond or a quantitative mapping.

Would it be possible to estimate \alpha (from the attention / from the MLP activations / from the internal model representation)?

Great point. We now provide a new analysis in which we estimate the effective α\alpha for LLMs and test its relationship to generalization performance. To do this, we ran a new set of experiments using several alternative relational domains (debate performance, voter preference, pack dominance, board game performance, and the winner in a fight between two fictional beasts; crucially these are all ordered relations that would generally be expected to be largely transitive but that can also have some exceptions). We further presented the prompt in different ways and evaluated performance across multiple models. We hypothesized that differences in task, prompt format, and model would alter the effective α\alpha and therefore affect generalization performance. For each setting, we evaluated 100 seeds. Below we present results for linear probing in TI without exceptions. Due to the limited time during the rebuttal, experiments covering additional settings are still running. We will update you on the results of these experiments once they are complete.

Estimating the effective α\alpha

We first estimated the effective α\alpha for each setup, using the last layer of the residual stream of a given network. To do this, we computed an average empirical κs,κo,κd\kappa_s,\kappa_o,\kappa_d by averaging all pairs of trials with the corresponding structure. We then used these numbers to compute α\alpha.

Across all setups, we observe values of α\alpha in the range we generally considered in the evaluation of our theory as well (min: 0.03, max: 0.37, median: 0.12). Different models had substantially different values of α\alpha. In particular, Gemma generally had a higher α\alpha than Qwen (e.g. Gemma4-4B had a mean α=0.25\alpha=0.25, whereas Qwen3.5-4B had a mean α=0.09\alpha=0.09). This highlights that there are significant differences in representational geometry across these models.

Relating α\alpha to accuracy

Our theory predicts that increases in α\alpha should lead to worse generalization. We therefore tested this prediction empirically. We focused on accuracy on pairs not involving terminal items (as these are the more challenging pairs; results for accuracy over all test pairs look similar). We found that in accordance with our theory, increases in α\alpha led to decreases in test accuracy (Spearman correlation ρ=−0.55,p<10−5\rho=-0.55,p<10^{-5}). This trend reflected, for example, some differences between models: we found that Gemma4-4B (which had a higher associated α\alpha) had a test accuracy of 64%, whereas Qwen3.5-4B (which had a lower associated α\alpha) had a test accuracy of 71%. α\alpha impacted test accuracy even beyond model-level differences: in a linear model controlling for LLM identity, α\alpha was still significantly negatively associated with performance (t=-3.4, p=9e-4).

Overall, this new analysis directly tests the connection between our theoretical predictions and our empirical results. Beyond reproducing the qualitative error pattern identified previously, it shows that the specific geometric quantity highlighted by our theory (namely α\alpha) predicts generalization performance. Thank you again for your suggestion; we will add this analysis to the revised version of the paper (and will update you on the results of our additional experiments). Above, we discussed the impact of α\alpha in our empirical experiments. With respect to the impact of c~\tilde{c}, we note that in the case of linear probing, the regularization parameter cc takes on a similar role as c~\tilde{c} in our theory. Notably, we identified several effects of this parameter that were consistent with our theoretical predictions. In particular, increased regularization can induce systematic errors on cross-section generalization (but not within-section generalization) (see Fig. 5F in the manuscript).

Is it possible to generalize Theorem 1 when there is more than one intransitive loop?

We agree that extending the theory to multiple exceptions would be valuable. In response to your suggestion, we have extended our theory in this direction. Below we first state our novel formal result and then note its implications.

Theorem R1. On TI with SS distinct exceptions in positions {(ps,qs)}s=1,…,S\{(p_s,q_s)\}^{s=1,\dotsc,S}, the predictions of a kernel model with an exchangeable representation are given by

$ f(x_{j,k})=\begin{cases} r_j(\alpha,\tilde{c})-r_k(\alpha,\tilde{c})&\text{ for }x\notin\mathcal{D},\\ m(\alpha,\tilde{c})y_{j,k}+(1-m(\alpha,\tilde{c}))(r_j(\alpha,\tilde{c})-r_k(\alpha,\tilde{c}))&\text{ for } x\in\mathcal{D}, \end{cases} $

where

$ r_j(\alpha,\tilde{c}):=r_j^{TI}(\alpha,\tilde{c})+\sum_{s=1}^Sv_jr_j^{\text{pert}(p_s,q_s)}(\alpha,\tilde{c}) $

for a set of weights vjv_j and where rjpert(ps,qs)r_j^{\text{pert}(p_s,q_s)} is defined in (S20) in the paper (note that above we make the dependence on the specific identity of the exception (ps,qs)(p_s,q_s) explicit as we now have multiple exceptions).

For non-intersecting exceptions (i.e. where we can arrange exceptions into an order q1<p1<q2<p2<⋯<qS<pSq_1<p_1<q_2<p_2<\dotsb<q_S<p_S), all these weights are positive: vj>0v_j>0.

Thus, the key intuitions from the single-exception case extend naturally to multiple exceptions. As a reminder, in the case of a single exception, the ranking system was given by rj=rjTI+rjpert(p,q)r_j=r_j^{TI}+r_j^{\text{pert}(p,q)}. Moreover, rjpert(p,q)r_j^{\text{pert}(p,q)} is monotonically increasing within the section involving the exception, negative before the exception, and positive after the exception. If this effect is sufficiently strong it gives rise to a failure on cross-section generalization (as the pre-exception ranks are lowered and the post-exception ranks are increased). Our novel result immediately implies that this same effect arises for multiple exceptions (with the exact same rank perturbation). Crucially, the perturbation arising from each exception only depends on the other exceptions in its magnitude (i.e. the weight vjv_j) but not its shape (i.e. the vector rjpert(ps,qs)r_j^{\text{pert}(p_s,q_s)}).

To better understand the implications of this, we focus on the case with two exceptions: q1<p1<q2<p2q_1<p_1<q_2<p_2. In this case, there are two intransitive sections (q1,...,p1q_1,...,p_1 and q2,...,p2q_2,...,p_2) and three transitive sections (1,...,q1−11,...,q_1-1, p1+1,q2−1p_1+1,q_2-1, and p2+1,...,np_2+1,...,n). Consequently, we can evaluate three different kinds of cross-section generalization. First, for generalization between the first and the second transitive section, we actually observe that introducing the second exception p2,q2p_2,q_2 is helpful, compared to the case without that exception. The perturbation arising from this particular exception is monotonically decreasing before q2q_2 and widens the gap. However, for the cross-section generalization between the first and the third section, the two exceptions both contribute to making the model perform even worse on this generalization, thus making it more likely to make a systematic error in this case.

Taken together, our theory has a natural extension to the case with multiple exceptions and many of the intuitions from the single-exception case carry forward. Thank you again for your suggestion. We will add this analysis to the camera-ready version of the paper should it get accepted.

Systematic errors occur at specific item pairs near the boundary of the intransitive section. Do the PLM experiments confirm this spatially specific error pattern, or are errors more diffuse?

Great point. We re-analyzed the results on the base case experiment (where our theory would predict that systematic errors should only arise for one specific data point, (I3,I7)(I_3,I_7)) and found that the systematic errors indeed arise on that data point specifically. In particular, on full fine-tuning, Llama3.2-1B makes systematic errors on both the “fake teams” and “real teams” task on this specific data point, but none of the other data points. We present the accuracies on the different data points (together with 95% bootstrapped confidence intervals below), which show these specific error patterns:

Fake teams

Item 1 \ Item 2 7 8 9
1 0.935 [0.900, 0.965] 0.945 [0.910, 0.975] 1.000 [1.000, 1.000]
2 0.720 [0.670, 0.770] 0.850 [0.780, 0.910] 0.920 [0.880, 0.960]
3 0.455 [0.370, 0.540] 0.735 [0.675, 0.790] 0.930 [0.890, 0.965]

Real teams

Item 1 \ Item 2 7 8 9
1 0.915 [0.875, 0.955] 0.900 [0.855, 0.940] 0.990 [0.975, 1.000]
2 0.580 [0.515, 0.640] 0.735 [0.675, 0.795] 0.935 [0.905, 0.965]
3 0.305 [0.260, 0.355] 0.525 [0.465, 0.590] 0.875 [0.835, 0.910]

We highlight that for the fake teams, the accuracy is below chance, but the 95% confidence interval is too broad to infer significance. However, for the real teams, the accuracy is significantly below chance. In both cases, no other accuracy is below 50% (in fact, almost all of them are significantly above 50%). This highlights that systematic errors are isolated to the specific test pair our theory identifies.

Thank you for your suggestion, as this provides a much more specific test of our theoretical prediction.

I found the open questions in Appendix C.7 even more interesting: it could be valuable to move them to the main paper.

We agree and will move a condensed version into the main text.

Authors · CommentOpenReview ↗

Dear Reviewer,

Following the initial rebuttal period, we have completed additional experiments analyzing whether α\alpha is predictive of PLM performance on TI with exceptions. Briefly, as predicted by our theory, we found that PLMs with an increased effective α\alpha had worse cross-section generalization accuracy under both linear probing and full fine-tuning. In the full fine-tuning case, we also found that PLMs with an increased effective α\alpha had higher training accuracy, again as predicted by our theory. This demonstrates that α\alpha shifts PLMs along the generalization-memorization tradeoff identified by our theory. Taken together, our experiments substantially strengthen the empirical support for our theory in a practically relevant setting. Please see details below:

Impact of α\alpha on TI with exceptions for linear probing

First, we extended the analysis described in our previous rebuttal to TI with exceptions (the base case, i.e. n=9, p=5, q=3) by training several PLMs on experiments using a variety of relational domains and different prompt formats (100 samples per setting). Because we used a small regularization coefficient, all models trained to 100% training accuracy. Our theory predicts that increases in α\alpha should lead to worse generalization, in particular on cross-section generalization. We therefore examined the relationship between the estimated α\alpha in the last hidden layer of the PLM and cross-section generalization accuracy (results for test accuracy on all pairs were similar). As predicted by our theory, we found that increasing α\alpha leads to decreased test accuracy (Spearman correlation ρ=−0.46,p<10−5\rho=-0.46, p<10^{-5}). Moreover, α\alpha affected test accuracy beyond model-level differences: in a linear model controlling for PLM identity, α\alpha was still significantly negatively correlated with performance (t=−3.8,p=1.6⋅10−4t=-3.8,p=1.6\cdot 10^{-4}).

Impact of α\alpha on TI with exceptions for fine-tuning

We then ran an analogous experiment to evaluate the networks trained with full fine-tuning. As we noted in the original submission, our hypothesis is that during fine-tuning, PLMs are well approximated by a kernel model with the neural tangent kernel (NTK), consistent with prior work on PLM fine-tuning (refs. 57,58 in the manuscript). We therefore computed the NTK for each experiment and used it to estimate an effective α\alpha. The NTK’s effective α\alpha ranged from 0.06 to 0.26 (median 0.11). We then fine-tuned the different PLMs on TI with exceptions (n=9, p=5, q=3), using the same set of relational domains and prompt formats as for linear probing.

As noted above, our theory predicts that increases in α\alpha should lead to worse generalization. We therefore estimated the relationship between the NTK’s effective α\alpha and the cross-section generalization accuracy (results for test accuracy on all pairs were similar). As predicted by our theory, we found that increasing α\alpha leads to decreased test accuracy (Spearman correlation ρ=−0.50,p<10−5\rho=-0.50,p<10^{-5}). This effect persisted even when controlling for model-level differences (t=−4.32,p=3.4⋅10−5t=-4.32,p=3.4\cdot 10^{-5}).

Notably, in the full fine-tuning case, not all models reached perfect training accuracy. In this setting, our theory also predicts that increasing α\alpha should improve accuracy on the training set. In accordance with this prediction, we found that increases in α\alpha indeed lead to increases in training accuracy (Spearman correlation ρ=0.43,p=10−5\rho=0.43,p=10^{-5}). This effect persisted when controlling for model-level differences (t=3.57,p=5.3⋅10−4t=3.57, p=5.3\cdot 10^{-4}).

Together, these two findings indicate that changes in α\alpha do not simply change the overall performance of a PLM. Rather, larger α\alpha shifts models along the generalization-memorization tradeoff identified by our theory: improving accuracy on the training premises, while reducing accuracy on the test premises.

Impact of α\alpha on TI without exceptions for fine-tuning

Finally, we assessed the performance of PLMs on TI without exceptions in the full fine-tuning case. In accordance with our theoretical predictions, increases in α\alpha decreased test accuracy (Spearman correlation ρ=−0.54,p<10−5\rho=-0.54,p<10^{-5}), an effect that persisted when controlling for model-level differences (t=−5.0,p<10−5t=-5.0,p<10^{-5}).

Conclusion

In summary, these experiments substantially strengthen the mechanistic connection between our theory and our PLM experiments, showing that α\alpha predicts the memorization-generalization tradeoff followed by PLMs on relational tasks with exceptions. We will incorporate these results in the manuscript and think they substantially improve the connection between our theoretical and empirical results. Thank you again for your helpful feedback and please let us know if you have any additional suggestions.

Reviewer N2kROpenReview ↗
Rating
4/6
Confidence
3/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
2/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper studies how learning systems can both infer general relational rules and memorize exceptions to those rules. In particular, the authors study compositional / relational generalization: models use learned relations such as A > B and B > C to infer unseen relations such as A > C, but when ordered relations contain local intransitive exceptions, a useful learner must generalize where the rule applies while preserving exceptions where they matter. The authors propose that considering only one task (generalization or memorization) in isolation do not test the harder case where a system must perform both at once. As a result, existing theory does not explain how models behave on relations that are mostly transitive but contain exceptions.

In the transitive inference with exceptions task, models learn adjacent ordered pairs plus an exception that creates a local intransitive loop. This splits the item sequence into two transitive sections separated by an intransitive region, allowing the authors to separately evaluate memorization of training pairs, memorization of exception-related pairs, within-section transitive generalization, and cross-section generalization.

They then analyze kernel ridge regression with exchangeable representations and show that the model behaves similarly to an emergent ranking system in order to perform transitive generalization, combined with a conjunctive response to support memorization of specific trained pairs. The balance depends mainly on representational geometry, captured by a conjunctivity parameter, and on effective regularization.

Main Contributions

  1. The paper defines a new relational learning benchmark, transitive inference with exceptions to test whether a learner can learn a mostly transitive rule while memorizing local intransitive exceptions.

  2. It provides an analytic characterization of kernel ridge regression on this task across representation geometries, regularization strengths, and task parameters. The theory identifies when models generalize within sections, when they fail at cross-section generalization, and how regularization and representation shape the tradeoff between rule learning and exception memorization.

  3. It validates the theoretical predictions in finetuned pretrained language models. Across sports-team and poker-relation tasks, the models generally succeed on standard transitive inference and within-section generalization, while exception memorization and cross-section generalization are more brittle in the systematic ways predicted by the kernel theory.

Strengths and weaknesses

Strengths

The paper proposes to study a setting that requires both generalization and memorization. The proposed transitive inference with exceptions task is a useful abstraction of this problem. The theoretical results seem correct, as the kernel ridge regression solution yields an interpretable decomposition into an emergent ranking system plus a conjunctive memorization term. The paper identifies regimes where models succeed or fail as a function of the parameter α\alpha (the "representational geometry" governing compositional to conjunctive representations) and effective regularization c~\tilde c. They found that exceptions can induce systematic cross-section errors, and that stronger L2 regularization can hurt this kind of out-of-distribution relational generalization, is interesting.

The empirical section qualitatively replicates several theoretical predictions: standard TI is easier; within-section generalization is reliable; but cross-section generalization and exception memorization are more difficult. Stronger regularization in linear probing worsens the predicted hard cases. Testing across fake teams, real teams, poker, and reversed poker adds useful robustness.

Weaknesses

The theory presupposes learned representations that can be captured by a scalar α\alpha where pair similarity only depends on identity/overlap/distinctness. This might not be realistic.

Some of the analytical results might be trivial given the setup. For standard transitive inference, an emergent ranking system in exchangeable kernel regression seems to follow naturally from the symmetry of the setup and prior TI kernel work. The authors should more clearly explain how their result differs from prior work. For example, Geerts, Liu, Chan et al., Relational reasoning and inductive bias in transformers and large language models also studies relational reasoning in transformers. Kirsch et al. study the transition from memorization to generalization during meta-learning in transformers.

The empirical validation is qualitative. The PLM results match broad sign-level predictions, but the paper does not show that PLMs have the exchangeable geometry assumed by the theorem or estimate an effective α\alpha for them. Nor does it explain how a given representational geometry might be learned given the data.

In several places the phrasing appears to be vague and can be more specific. For example, during the discussion "task paradigms like TI with exceptions can 1) help us understand the conditions under which learning systems generalize on such complex tasks and 2) can serve as a benchmark for the development of learning systems that avoid their pitfalls." It would be better if the authors specifically explain exactly which conditions they mean (i.e. the conditions where learning systems generalize on complex tasks). In another example, during the introduction they write "Overall, our findings demonstrate how simple learning systems can balance compositional generalization and memorization." the authors can be clearer about how exactly their findings show that learning systems balance generalization / memorization

Questions
  • How is the current study related to Geerts, Liu, Chan et al., Relational reasoning and inductive bias in transformers and large language models ?

  • Other works in the memorization / generalization literature suggest a sharp transition from memorization to generalization in transformers (see Louis Kirsch, James Harrison, Jascha Sohl-Dickstein, and Luke Metz. General-purpose in-context learning by meta-learning transformers. arXiv preprint arXiv:2212.04458, 2022. and Alex Nguyen, Gautam Reddy. Differential learning kinetics govern the transition from memorization to generalization during in-context learning. arXiv preprint arXiv:2412.00104). How do the authors' result relate to the findings in this literature ?

  • Can the authors provide evidence to support that the representations formed by the pretrained LLMs match assumptions of their theory ?

Limitations

Yes

Final justification

I maintain my positive assessment of this work and my score, due to the novelty of the transitive inference benchmark, the rigor of the theoretical results, and the strength of the experiments. I encourage the authors to add the points covered during the rebuttal period into the camera-ready version of the paper.

Formatting concerns

No

3 comments
Authors · RebuttalOpenReview ↗
Rebuttal

Thank you very much for your thoughtful review. We respond to your questions and suggestions below.

Can the authors provide evidence to support that the representations formed by the pretrained LLMs match assumptions of their theory ?

We agree that the connection between our theory and our empirical experiments should be strengthened. To address your point, below we identify two ways in which the empirical LLM experiments deviate from our theoretical assumptions. We further conducted novel analyses that show that our key insights are robust to this generalized setting.

Our aim here was to understand how different learning systems learn from relational information between different items regardless of the specific identity of the different items. To average out the effect of specific items, we randomly sampled many different instantiations of the items and their position in the hierarchy (e.g. many different fake team names and ways to arrange these fake teams). To connect the LLM experiments to our theory, we now consider two questions: 1) What is the structure of the average kernel (across these different instantiations)? 2) What is the effect of random fluctuations around this average kernel?

1 Structure of the average kernel

We found through added theoretical analysis that the average kernel will only take on six different values:

$ K((i,j),(i’,j’))=\begin{cases} \kappa_s&\text{ if }i=i’\text{ and }j=j’,\\ \kappa_1&\text{ if }i=i’\text{ and }j\neq j’,\\ \kappa_2&\text{ if }i\neq i’\text{ and }j= j’,\\ \kappa_m&\text{ if }i=j’\text{ and }j=i’,\\ \kappa_n&\text{ if }i=j’\text{ xor }j=i’,\\ \kappa_d&\text{ else}. \end{cases} $

We refer to this as a generalized exchangeable kernel as it broadens our own assumptions. Specifically, this kernel admits the possibility that overlaps in the first versus second item will result in different similarities (positional bias) and that having mirror symmetry between the items (e.g. comparing AB and BA) results in different similarities.

How does this kernel impact generalization behavior on our task? Firstly, if κ1=κ2\kappa_1=\kappa_2, we theoretically show that our analysis generalizes exactly, using the parameters α=1−κ1+κ2−2κnκs−κm\alpha=1-\frac{\kappa_1+\kappa_2-2\kappa_n}{\kappa_s-\kappa_m} and c~:=cκs−κm\tilde{c}:=\frac{c}{\kappa_s-\kappa_m}. Thus, despite introducing new degrees of freedom (κm\kappa_m and κn\kappa_n, which in our previous case were equal to κd\kappa_d), model behavior remains exactly unchanged.

Only the positional bias κ1≠κ2\kappa_1\neq \kappa_2 changes model behavior; notably, once κ1≠κ2\kappa_1\neq \kappa_2, κm\kappa_m and κn\kappa_n also impact generalization behavior. We leave a detailed characterization of the impact of this positional bias to future work, as our focus here is the impact of conjunctivity on generalization and memorization. Through a set of simulations, however, we highlight the following insights:

  1. κ1>κ2\kappa_1>\kappa_2 yields a positional bias where the ranking system of the first item is inflated relative to that of the second system. If this bias is sufficiently strong, it can mean that the model chooses the first item if it has a relatively high rank—even if the second item has an even higher rank.
  2. Changes in α\alpha have the same effect as in our theoretical setting: increasing α\alpha makes generalization worse and can eventually lead to failures in cross-section generalization.

2 Effect of noise

In practice, different randomly sampled items will result in different specific kernels with random fluctuations around the mean. To assess the impact of this, we run simulations on representations that are distorted with Gaussian noise with varying standard deviation σ\sigma. We find that larger σ\sigma generally leads to smaller margin and flatter ranking systems, but leaves the effects of α\alpha intact: larger α\alpha still leads to worse generalization and eventually leads to systematic errors on cross-section generalization.

Overall, we really appreciate your suggestion to provide a closer account of how our theoretical assumptions relate to empirical LLMs. In the analysis summarized above, we explored the two ways in which the LLMs deviated, findings that our theoretical results were robust to these deviations. This highlights exciting directions for future work that could help us understand the impact of positional bias and noise in more detail. We think these characterizations deserve their own detailed treatment and therefore consider them out of scope for this study.

The empirical validation is qualitative. The PLM results match broad sign-level predictions, but the paper does not show that PLMs have the exchangeable geometry assumed by the theorem or estimate an effective α\alpha for them.

Great point. Please see the first part of our response to reviewer GarE, which provides a set of novel analyses that strengthen the link between our theory and our empirical analysis. Briefly, we first empirically estimate an effective α\alpha for the models. Our estimates of α\alpha fall within the same range we previously considered (0.03-0.37) and we find significant variation in α\alpha across models and task variants. We then examined the relationship between α\alpha and test set performance. Our theory predicts that a larger α\alpha negatively affects test set generalization. Consistent with this prediction, we find a significant negative correlation between α\alpha and test set accuracy (Spearman correlation ρ=−0.55,p<10−5\rho=-0.55,p<10^{-5}), confirming the link predicted by our theory. We currently present results for linear probing in TI without exceptions. Due to the limited time during the rebuttal, experiments covering additional settings are still running. We will update you on the results of these experiments once they are complete. We hope that these new analyses address your concerns.

How is the current study related to Geerts, Liu, Chan et al.?

Geerts et al. study transitive inference in-context while we focus on in-weights generalization. Their setup provides relational premises in-context and test to generalize to novel item combinations, whereas our setup concerns cases where LLMs are fine-tuned on certain relations and then need to generalize to novel item combinations. They find that pretraining Transformers to perform in-context linear regression (equivalent to a kernel model with α=0\alpha=0) is essential for their ability to transitively generalize in-context. Our theory would predict that such models should struggle to memorize an exception but succeed at cross-section generalization. Pretraining them on slightly nonlinear regression tasks could induce successful memorization and generalization, while highly nonlinear tasks could induce generalization failures. This suggests that different pretraining data may shape in-context memorization and generalization. We agree that this is a highly relevant paper for us and will add this more extended discussion to the paper.

Other works in the memorization / generalization literature suggest a sharp transition from memorization to generalization in transformers (...). How do the authors' results relate to the findings in this literature ?

Thanks for the pointer to this relevant literature. Both papers study generalization and memorization in a meta-learning setting, largely evaluating generalization to test data drawn from the same or a similar distribution as the training datasets. In contrast, we focus on evaluating generalization to an out-of-distribution setting. An interesting connection between our study and these papers relates to the fact that both papers highlight that increases in data diversity yield a sudden transition to generalization. We intentionally operate in a minimal, data-sparse regime in our study to assess how models perform in such a challenging setting. An interesting direction for future work would be to assess whether increasing the dataset size would similarly improve generalization. We will add discussion of both these related papers and this potential future study to the paper.

In several places the phrasing appears to be vague and can be more specific.

Thank you for highlighting this. We will update the phrasing, e.g.:

  • “Task paradigms like TI with exceptions can 1) help us understand how different representational geometries determine whether learning systems generalize on such complex tasks and how interference between the jointly trained compositional and conjunctive sub-populations can lead to failures in both generalization and memorization.”
  • “Overall, our findings demonstrate how simple learning systems can balance compositional generalization and memorization: one subpopulation of the system (responding to combinations of items in an additive manner) will encode a ranking system that generalizes to novel item combinations but is constrained to encoding transitive relations, and a different subpopulation (responding to combinations of items in a conjunctive manner) will memorize the training pairs but won’t be able to generalize. At the same time, this theory also highlights how the addition of exceptions can impact generalization: the conjunctive population explains away systematic errors made by the compositional population rather than just the exceptions.”

The authors should more clearly explain how their result differs from prior work.

Prior work characterized the generalization behavior of kernel models on transitive inference without exceptions and found that these models generalize according to an emergent ranking system. Through extended calculations, we characterized the behavior of kernel models on transitive inference with exceptions, for which we found that models still implemented a ranking system, but that the exception resulted in a systematic perturbation of the ranking system. We will clarify the relation to prior work in the updated version of the paper.

Authors · CommentOpenReview ↗

Dear Reviewer,

Following the initial rebuttal period, we have completed additional experiments analyzing whether α\alpha is predictive of PLM performance on TI with exceptions. Briefly, as predicted by our theory, we found that PLMs with an increased effective α\alpha had worse cross-section generalization accuracy under both linear probing and full fine-tuning. In the full fine-tuning case, we also found that PLMs with an increased effective α\alpha had higher training accuracy, again as predicted by our theory. This demonstrates that α\alpha shifts PLMs along the generalization-memorization tradeoff identified by our theory. Taken together, our experiments substantially strengthen the empirical support for our theory in a practically relevant setting. Please see details below:

Impact of α\alpha on TI with exceptions for linear probing

First, we extended the analysis described in our previous rebuttal to TI with exceptions (the base case, i.e. n=9, p=5, q=3) by training several PLMs on experiments using a variety of relational domains and different prompt formats (100 samples per setting). Because we used a small regularization coefficient, all models trained to 100% training accuracy. Our theory predicts that increases in α\alpha should lead to worse generalization, in particular on cross-section generalization. We therefore examined the relationship between the estimated α\alpha in the last hidden layer of the PLM and cross-section generalization accuracy (results for test accuracy on all pairs were similar). As predicted by our theory, we found that increasing α\alpha leads to decreased test accuracy (Spearman correlation ρ=−0.46,p<10−5\rho=-0.46, p<10^{-5}). Moreover, α\alpha affected test accuracy beyond model-level differences: in a linear model controlling for PLM identity, α\alpha was still significantly negatively correlated with performance (t=−3.8,p=1.6⋅10−4t=-3.8,p=1.6\cdot 10^{-4}).

Impact of α\alpha on TI with exceptions for fine-tuning

We then ran an analogous experiment to evaluate the networks trained with full fine-tuning. As we noted in the original submission, our hypothesis is that during fine-tuning, PLMs are well approximated by a kernel model with the neural tangent kernel (NTK), consistent with prior work on PLM fine-tuning (refs. 57,58 in the manuscript). We therefore computed the NTK for each experiment and used it to estimate an effective α\alpha. The NTK’s effective α\alpha ranged from 0.06 to 0.26 (median 0.11). We then fine-tuned the different PLMs on TI with exceptions (n=9, p=5, q=3), using the same set of relational domains and prompt formats as for linear probing.

As noted above, our theory predicts that increases in α\alpha should lead to worse generalization. We therefore estimated the relationship between the NTK’s effective α\alpha and the cross-section generalization accuracy (results for test accuracy on all pairs were similar). As predicted by our theory, we found that increasing α\alpha leads to decreased test accuracy (Spearman correlation ρ=−0.50,p<10−5\rho=-0.50,p<10^{-5}). This effect persisted even when controlling for model-level differences (t=−4.32,p=3.4⋅10−5t=-4.32,p=3.4\cdot 10^{-5}).

Notably, in the full fine-tuning case, not all models reached perfect training accuracy. In this setting, our theory also predicts that increasing α\alpha should improve accuracy on the training set. In accordance with this prediction, we found that increases in α\alpha indeed lead to increases in training accuracy (Spearman correlation ρ=0.43,p=10−5\rho=0.43,p=10^{-5}). This effect persisted when controlling for model-level differences (t=3.57,p=5.3⋅10−4t=3.57, p=5.3\cdot 10^{-4}).

Together, these two findings indicate that changes in α\alpha do not simply change the overall performance of a PLM. Rather, larger α\alpha shifts models along the generalization-memorization tradeoff identified by our theory: improving accuracy on the training premises, while reducing accuracy on the test premises.

Impact of α\alpha on TI without exceptions for fine-tuning

Finally, we assessed the performance of PLMs on TI without exceptions in the full fine-tuning case. In accordance with our theoretical predictions, increases in α\alpha decreased test accuracy (Spearman correlation ρ=−0.54,p<10−5\rho=-0.54,p<10^{-5}), an effect that persisted when controlling for model-level differences (t=−5.0,p<10−5t=-5.0,p<10^{-5}).

Conclusion

In summary, these experiments substantially strengthen the mechanistic connection between our theory and our PLM experiments, showing that α\alpha predicts the memorization-generalization tradeoff followed by PLMs on relational tasks with exceptions. We will incorporate these results in the manuscript and think they substantially improve the connection between our theoretical and empirical results. Thank you again for your helpful feedback and please let us know if you have any additional suggestions.

Reviewer N2kR · CommentOpenReview ↗

Thank you for your clarifications and new experimental results. I maintain my positive assessment of this work, mainly supported by the novelty of the transitive inference benchmar, the rigor of the theoretical results, and the strength of the experiments.

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

Missing a submission?

Loading the discussion…