# In-Context Benign Overfitting: A Feature-Selection Model in Linear Regression ICL

*Puneesh Deora, Bhavya Vasudeva, Christos Thrampoulidis*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/154755) · [OpenReview](https://openreview.net/forum?id=BCHILY5fm6) · [Open on the map](../papers.html#p154755)

Category: [Interpretability & Model Adaptation](../pcat/15.md) › [Transformer In-Context Learning](../pgroup/655.md) · Type: new method · Keywords: in-context learning, benign overfitting, feature selection, linear regression, model scaling

Areas: [Continual Learning & Adaptation](../areas/continual-adaptation.md) › Non-Stationarity Adaptation › Generalization and Adaptation

## Summary
The paper introduces In-Context Benign Overfitting, showing that larger models can simultaneously memorize pretraining tasks and generalize to novel tasks within a linear-regression feature-selection setting.

## Explained to a 5-year-old
Big computer programs can learn many things and remember them. They can also solve new problems by looking at a few examples. This works better when the program is very large. The bigger the program, the more it can remember and the better it gets at new tasks. It helps them be both smart and flexible.

## Explained to a 5-year-old, longer
When we give a computer program a lot of examples to learn from, it stores them in its memory. If we later ask it to solve a problem it has never seen, it can still try to guess the answer. Sometimes the program can do both: it remembers the old examples well and also solves new problems. This works better when the program is very large. The bigger the program, the more it can remember and the better it gets at new tasks. In this paper, the researchers looked at a simple math problem that acts like a tiny version of these programs. They showed that even this simple problem can have both good memory and good new-task ability. They also found that other simple programs have a tradeoff: being good at remembering hurts being good at new tasks. This tells us that making programs bigger can help them avoid that tradeoff. The findings suggest that future AI systems could become more useful by growing larger. Overall, the study helps us understand how big AI models can be both accurate and adaptable.

## For a technical reader
The paper investigates how large language models can retain previously learned information while also adapting to new tasks when given only a few examples. It shows that increasing model size reduces the usual tradeoff between memorization and generalization. The analysis uses a simple linear-regression feature-selection model to illustrate the phenomenon. The results suggest that scaling up models can lead to more robust and flexible AI behavior.

## Problem
Understanding how a frozen model can both retain knowledge of previously seen tasks and adapt to new tasks when solving few-shot prompts is a key challenge in scalable AI systems.

## Method
The authors analyze a minimal linear-regression feature-selection model to demonstrate that increasing model size enables simultaneous memorization and generalization, contrasting this with standard models that exhibit a retrieval-learning tradeoff.

## Results
The findings reveal that larger models improve both retrieval and learning performance, and the theoretical analysis confirms the benign overfitting phenomenon in the examined setting.

## Contributions
The work identifies a regime of in-context benign overfitting, provides a formal proof in a linear-regression feature-selection model, and highlights the retrieval-learning tradeoff in conventional models.

## Research questions this paper is counted under

- [How can prompt tuning handle multiple related tasks while preserving prior knowledge in frozen models?](../q/832.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/154755)
