Papers
Topics
Authors
Recent
Search
2000 character limit reached

In-Context Logistic Regression Advances

Updated 4 July 2026
  • In-context logistic regression is a framework redefining binary classification by incorporating context via randomized subsampling, transformer optimization, and online sequential methods.
  • The approach employs leverage-score sampling to reduce computational cost and uses softmax transformer layers to simulate normalized gradient descent in in-context settings.
  • Recent work illustrates its versatility in tens-of-shot classification and online adaptation, offering calibrated probability estimates and competitive performance against large language models.

Searching arXiv for the cited papers to ground the article in current research. arXiv search query: (Chowdhury et al., 2024) In-context logistic regression denotes a family of settings in which logistic-regression-like classification is performed or approximated from a context rather than from a conventional standalone batch-training pipeline. In recent arXiv work, the term spans at least three technically distinct regimes: randomized subsampling methods for large-scale binary logistic regression in the ndn \gg d regime (Chowdhury et al., 2024), transformer mechanisms that perform in-context logistic regression by exactly simulating normalized gradient descent on an in-context loss (Zhang et al., 7 May 2026), and “tens-of-shot” classification pipelines in which penalised logistic regression is fitted on embeddings from a small LLM (Buckmann et al., 2024). Related sequential formulations appear in online logistic regression, where second-order parameter-free updates yield logarithmic regret under adversarial or well-specified stochastic assumptions (Vilmarest et al., 2019). Taken together, these lines of work position logistic regression not merely as a classical generalized linear model, but as an analyzable algorithmic substrate for subsampling, in-context learning, and sequential adaptation.

1. Conceptual scope and definitions

The classical binary logistic regression model uses predictor matrix XRn×dX \in \mathbb{R}^{n\times d}, labels y{0,1}ny\in\{0,1\}^n, and probabilities

pi(β)=exp(Xiβ)1+exp(Xiβ).p_i(\boldsymbol{\beta})=\frac{\exp(X_{i*}\boldsymbol{\beta})}{1+\exp(X_{i*}\boldsymbol{\beta})}.

Its log-likelihood is

(β)=i=1n(yiXiβlog(1+exp(Xiβ))),\ell(\boldsymbol{\beta}) = \sum_{i=1}^n \left( y_iX_{i*}\boldsymbol{\beta}-\log(1+\exp(X_{i*}\boldsymbol{\beta})) \right),

and the maximum-likelihood estimator β\boldsymbol{\beta}^* satisfies

X(yp(β))=0X^\top\big(\mathbf{y}-\mathbf{p}(\boldsymbol{\beta}^*)\big)=0

(Chowdhury et al., 2024).

Within recent work, “in-context logistic regression” does not refer to a single formalism. In (Zhang et al., 7 May 2026), it refers to transformer-based in-context learning on linear classification data, where a multi-layer softmax transformer exactly implements normalized gradient descent on an in-context loss. In (Buckmann et al., 2024), the relevant setting is practical few-shot or “tens-of-shot” classification, where a small LLM provides embeddings and a penalised logistic regression classifier is trained on those embeddings. In (Vilmarest et al., 2019), the sequential analogue appears in online logistic regression, where the learner repeatedly updates its parameter estimate from past examples only. This suggests that the phrase is best understood as covering algorithmic uses of logistic-regression-style objectives and updates when supervision is mediated by context, prompts, subsamples, or streams rather than by a single full-data optimization pass.

A further terminological complication is that (Zhang et al., 7 May 2026) uses the exponential loss

LICL(θ)=1ni=1neθ,yixi\mathcal L_{\mathrm{ICL}}(\theta)=\frac{1}{n}\sum_{i=1}^n e^{-\langle \theta, y_i x_i\rangle}

while referring to the construction as “in-context logistic regression” in the broader implicit-bias sense for exponential-tailed classification losses. Accordingly, the recent literature links the topic not only to the standard Bernoulli log-likelihood but also to related classification dynamics with similar optimization geometry and margin behavior.

2. Large-scale subsampled logistic regression

For large-scale binary logistic regression with ndn \gg d, the computational bottleneck of full-data IRLS or Newton methods is that each iteration requires solving a weighted least-squares system and effectively inverting a Hessian of cost O(nd2)O(nd^2) (Chowdhury et al., 2024). The central question in this setting is whether one can subsample only a small fraction of rows, fit logistic regression on that sample, and still recover accurate estimated probabilities for all XRn×dX \in \mathbb{R}^{n\times d}0 points.

The subsampling algorithm in (Chowdhury et al., 2024) constructs a sampling-and-rescaling matrix XRn×dX \in \mathbb{R}^{n\times d}1 by sampling row indices with replacement according to probabilities XRn×dX \in \mathbb{R}^{n\times d}2, then rescaling each selected row by XRn×dX \in \mathbb{R}^{n\times d}3. The paper uses row leverage scores of XRn×dX \in \mathbb{R}^{n\times d}4 as the sampling probabilities: XRn×dX \in \mathbb{R}^{n\times d}5 where XRn×dX \in \mathbb{R}^{n\times d}6 is the thin SVD and XRn×dX \in \mathbb{R}^{n\times d}7 contains the left singular vectors. Since XRn×dX \in \mathbb{R}^{n\times d}8, XRn×dX \in \mathbb{R}^{n\times d}9, so this is the standard leverage-score distribution.

The sampled objective is

y{0,1}ny\in\{0,1\}^n0

with y{0,1}ny\in\{0,1\}^n1. The estimator y{0,1}ny\in\{0,1\}^n2 is obtained by maximizing this subsampled log-likelihood, producing output probabilities

y{0,1}ny\in\{0,1\}^n3

and the subsampled MLE satisfies

y{0,1}ny\in\{0,1\}^n4

(Chowdhury et al., 2024).

The significance of this formulation is not merely algorithmic acceleration. The paper’s emphasis is that the approximation guarantee is directly on the estimated probabilities, rather than only on the logistic loss. That focus aligns the subsampled estimator with downstream use cases in which probability calibration or decision thresholds matter at least as much as objective value.

3. Structural conditions and probability-approximation guarantees

The analysis in (Chowdhury et al., 2024) is built on two structural conditions involving y{0,1}ny\in\{0,1\}^n5, y{0,1}ny\in\{0,1\}^n6, and the residual y{0,1}ny\in\{0,1\}^n7: y{0,1}ny\in\{0,1\}^n8 and

y{0,1}ny\in\{0,1\}^n9

These are shown to hold with high probability when pi(β)=exp(Xiβ)1+exp(Xiβ).p_i(\boldsymbol{\beta})=\frac{\exp(X_{i*}\boldsymbol{\beta})}{1+\exp(X_{i*}\boldsymbol{\beta})}.0 is built from leverage-score sampling, using a randomized matrix multiplication argument.

Under these conditions, the key theorem states that

pi(β)=exp(Xiβ)1+exp(Xiβ).p_i(\boldsymbol{\beta})=\frac{\exp(X_{i*}\boldsymbol{\beta})}{1+\exp(X_{i*}\boldsymbol{\beta})}.1

The discrepancy guarantee obtained via the reverse triangle inequality is

pi(β)=exp(Xiβ)1+exp(Xiβ).p_i(\boldsymbol{\beta})=\frac{\exp(X_{i*}\boldsymbol{\beta})}{1+\exp(X_{i*}\boldsymbol{\beta})}.2

Thus the probability error and the overall model misfit are controlled by the full-data residual (Chowdhury et al., 2024).

A central ingredient is the randomized matrix multiplication lemma

pi(β)=exp(Xiβ)1+exp(Xiβ).p_i(\boldsymbol{\beta})=\frac{\exp(X_{i*}\boldsymbol{\beta})}{1+\exp(X_{i*}\boldsymbol{\beta})}.3

which, under leverage-score probabilities, simplifies to

pi(β)=exp(Xiβ)1+exp(Xiβ).p_i(\boldsymbol{\beta})=\frac{\exp(X_{i*}\boldsymbol{\beta})}{1+\exp(X_{i*}\boldsymbol{\beta})}.4

Using Markov’s inequality and a union bound, the paper shows that both structural conditions hold with probability at least pi(β)=exp(Xiβ)1+exp(Xiβ).p_i(\boldsymbol{\beta})=\frac{\exp(X_{i*}\boldsymbol{\beta})}{1+\exp(X_{i*}\boldsymbol{\beta})}.5 if

pi(β)=exp(Xiβ)1+exp(Xiβ).p_i(\boldsymbol{\beta})=\frac{\exp(X_{i*}\boldsymbol{\beta})}{1+\exp(X_{i*}\boldsymbol{\beta})}.6

The practical takeaway is summarized as requiring on the order of

pi(β)=exp(Xiβ)1+exp(Xiβ).p_i(\boldsymbol{\beta})=\frac{\exp(X_{i*}\boldsymbol{\beta})}{1+\exp(X_{i*}\boldsymbol{\beta})}.7

rows for high-quality approximation, independent of the data-dependent complexity factor pi(β)=exp(Xiβ)1+exp(Xiβ).p_i(\boldsymbol{\beta})=\frac{\exp(X_{i*}\boldsymbol{\beta})}{1+\exp(X_{i*}\boldsymbol{\beta})}.8 that appears in some prior coreset results (Chowdhury et al., 2024).

This framework is notable because its proof architecture is unusually clean for logistic regression. The argument reduces the approximation problem to randomized matrix multiplication and leverage-score concentration, two standard primitives of randomized numerical linear algebra. A plausible implication is that the result is as much about the geometry of the design matrix as about the nonlinearity of the logistic link.

4. Transformer implementations of in-context logistic regression

In (Zhang et al., 7 May 2026), in-context logistic regression is formulated as an in-context optimization problem for linear classification data

pi(β)=exp(Xiβ)1+exp(Xiβ).p_i(\boldsymbol{\beta})=\frac{\exp(X_{i*}\boldsymbol{\beta})}{1+\exp(X_{i*}\boldsymbol{\beta})}.9

with labels generated by a ground-truth vector (β)=i=1n(yiXiβlog(1+exp(Xiβ))),\ell(\boldsymbol{\beta}) = \sum_{i=1}^n \left( y_iX_{i*}\boldsymbol{\beta}-\log(1+\exp(X_{i*}\boldsymbol{\beta})) \right),0 via

(β)=i=1n(yiXiβlog(1+exp(Xiβ))),\ell(\boldsymbol{\beta}) = \sum_{i=1}^n \left( y_iX_{i*}\boldsymbol{\beta}-\log(1+\exp(X_{i*}\boldsymbol{\beta})) \right),1

Using signed feature vectors (β)=i=1n(yiXiβlog(1+exp(Xiβ))),\ell(\boldsymbol{\beta}) = \sum_{i=1}^n \left( y_iX_{i*}\boldsymbol{\beta}-\log(1+\exp(X_{i*}\boldsymbol{\beta})) \right),2, the paper defines the in-context loss as

(β)=i=1n(yiXiβlog(1+exp(Xiβ))),\ell(\boldsymbol{\beta}) = \sum_{i=1}^n \left( y_iX_{i*}\boldsymbol{\beta}-\log(1+\exp(X_{i*}\boldsymbol{\beta})) \right),3

The core result is that a multi-layer softmax transformer can be constructed so that each layer exactly performs one step of normalized gradient descent: (β)=i=1n(yiXiβlog(1+exp(Xiβ))),\ell(\boldsymbol{\beta}) = \sum_{i=1}^n \left( y_iX_{i*}\boldsymbol{\beta}-\log(1+\exp(X_{i*}\boldsymbol{\beta})) \right),4 The transformer uses input embedding matrix

(β)=i=1n(yiXiβlog(1+exp(Xiβ))),\ell(\boldsymbol{\beta}) = \sum_{i=1}^n \left( y_iX_{i*}\boldsymbol{\beta}-\log(1+\exp(X_{i*}\boldsymbol{\beta})) \right),5

a self-attention layer

(β)=i=1n(yiXiβlog(1+exp(Xiβ))),\ell(\boldsymbol{\beta}) = \sum_{i=1}^n \left( y_iX_{i*}\boldsymbol{\beta}-\log(1+\exp(X_{i*}\boldsymbol{\beta})) \right),6

and residual recursion

(β)=i=1n(yiXiβlog(1+exp(Xiβ))),\ell(\boldsymbol{\beta}) = \sum_{i=1}^n \left( y_iX_{i*}\boldsymbol{\beta}-\log(1+\exp(X_{i*}\boldsymbol{\beta})) \right),7

The model output is the last-column lower block (β)=i=1n(yiXiβlog(1+exp(Xiβ))),\ell(\boldsymbol{\beta}) = \sum_{i=1}^n \left( y_iX_{i*}\boldsymbol{\beta}-\log(1+\exp(X_{i*}\boldsymbol{\beta})) \right),8 (Zhang et al., 7 May 2026).

The exact NGD implementation follows from the block parameterization

(β)=i=1n(yiXiβlog(1+exp(Xiβ))),\ell(\boldsymbol{\beta}) = \sum_{i=1}^n \left( y_iX_{i*}\boldsymbol{\beta}-\log(1+\exp(X_{i*}\boldsymbol{\beta})) \right),9

with arbitrary β\boldsymbol{\beta}^*0. Defining

β\boldsymbol{\beta}^*1

the hidden states satisfy

β\boldsymbol{\beta}^*2

for the rescaled data β\boldsymbol{\beta}^*3 (Zhang et al., 7 May 2026).

The mechanism is explicit: the key/query matrix is chosen so that softmax scores become functions of β\boldsymbol{\beta}^*4; the softmax weights are therefore proportional to β\boldsymbol{\beta}^*5, exactly the weighting appearing in the gradient of the exponential loss; and the value matrix maps this weighted sum into the update direction. The paper’s interpretation is consequently algorithmic rather than merely representational: the transformer acts as an in-context learner by iteratively optimizing an in-context objective.

5. Trainability, looped transformers, and out-of-distribution guarantees

A second contribution of (Zhang et al., 7 May 2026) is to show that the NGD-implementing layer can itself be learned by training a single self-attention layer. The teacher is a one-step gradient descent update,

β\boldsymbol{\beta}^*6

and the training loss is the population MSE

β\boldsymbol{\beta}^*7

The assumptions are β\boldsymbol{\beta}^*8, β\boldsymbol{\beta}^*9, X(yp(β))=0X^\top\big(\mathbf{y}-\mathbf{p}(\boldsymbol{\beta}^*)\big)=00, and gradient descent from zero initialization on X(yp(β))=0X^\top\big(\mathbf{y}-\mathbf{p}(\boldsymbol{\beta}^*)\big)=01 (Zhang et al., 7 May 2026).

The training dynamics preserve a strong structural invariance: all blocks of X(yp(β))=0X^\top\big(\mathbf{y}-\mathbf{p}(\boldsymbol{\beta}^*)\big)=02 and X(yp(β))=0X^\top\big(\mathbf{y}-\mathbf{p}(\boldsymbol{\beta}^*)\big)=03 stay zero except X(yp(β))=0X^\top\big(\mathbf{y}-\mathbf{p}(\boldsymbol{\beta}^*)\big)=04 and X(yp(β))=0X^\top\big(\mathbf{y}-\mathbf{p}(\boldsymbol{\beta}^*)\big)=05, and these remain scalar multiples of the identity,

X(yp(β))=0X^\top\big(\mathbf{y}-\mathbf{p}(\boldsymbol{\beta}^*)\big)=06

Under

X(yp(β))=0X^\top\big(\mathbf{y}-\mathbf{p}(\boldsymbol{\beta}^*)\big)=07

the scalar dynamics stay in the compact region

X(yp(β))=0X^\top\big(\mathbf{y}-\mathbf{p}(\boldsymbol{\beta}^*)\big)=08

and the proxy loss has a unique local minimizer

X(yp(β))=0X^\top\big(\mathbf{y}-\mathbf{p}(\boldsymbol{\beta}^*)\big)=09

up to LICL(θ)=1ni=1neθ,yixi\mathcal L_{\mathrm{ICL}}(\theta)=\frac{1}{n}\sum_{i=1}^n e^{-\langle \theta, y_i x_i\rangle}0. The training loss and iterates converge linearly (Zhang et al., 7 May 2026).

After training one layer, the paper recurrently applies it LICL(θ)=1ni=1neθ,yixi\mathcal L_{\mathrm{ICL}}(\theta)=\frac{1}{n}\sum_{i=1}^n e^{-\langle \theta, y_i x_i\rangle}1 times to form a looped transformer. For test distributions that are log-concave with mean LICL(θ)=1ni=1neθ,yixi\mathcal L_{\mathrm{ICL}}(\theta)=\frac{1}{n}\sum_{i=1}^n e^{-\langle \theta, y_i x_i\rangle}2 and covariance LICL(θ)=1ni=1neθ,yixi\mathcal L_{\mathrm{ICL}}(\theta)=\frac{1}{n}\sum_{i=1}^n e^{-\langle \theta, y_i x_i\rangle}3, the main OOD theorem states that with high probability, for any fixed input,

LICL(θ)=1ni=1neθ,yixi\mathcal L_{\mathrm{ICL}}(\theta)=\frac{1}{n}\sum_{i=1}^n e^{-\langle \theta, y_i x_i\rangle}4

The paper interprets this as a decomposition into optimization or implicit-bias error,

LICL(θ)=1ni=1neθ,yixi\mathcal L_{\mathrm{ICL}}(\theta)=\frac{1}{n}\sum_{i=1}^n e^{-\langle \theta, y_i x_i\rangle}5

and statistical error,

LICL(θ)=1ni=1neθ,yixi\mathcal L_{\mathrm{ICL}}(\theta)=\frac{1}{n}\sum_{i=1}^n e^{-\langle \theta, y_i x_i\rangle}6

The max-margin solution appears because NGD on separable classification problems has an implicit bias toward the maximum-margin separator

LICL(θ)=1ni=1neθ,yixi\mathcal L_{\mathrm{ICL}}(\theta)=\frac{1}{n}\sum_{i=1}^n e^{-\langle \theta, y_i x_i\rangle}7

(Zhang et al., 7 May 2026).

This line of work reframes logistic-regression-like adaptation as an internal computation carried out by attention. The paper is also careful about its scope: the theory is for linear classification with exponential loss, the exact implementation is proved for an attention-only construction, the training analysis concerns a single-layer block under a population objective, and the OOD result assumes log-concave feature distributions (Zhang et al., 7 May 2026).

6. Tens-of-shot classification with small LLMs

A separate practical instantiation appears in “Logistic Regression makes small LLMs strong and explainable ‘tens-of-shot’ classifiers” (Buckmann et al., 2024). There, the claim is not that a transformer internally simulates gradient descent, but that simple sentence classification can often be handled more effectively by extracting embeddings from a small local generative LLM and fitting penalised logistic regression on top of them.

The pipeline has three stages: prompt construction, embedding extraction, and penalised logistic regression. The prompt specifies the task and candidate classes; the final hidden-layer activations before the prediction head are used as the feature vector; and a ridge-regularised logistic regression is trained on those embeddings. The baseline embedding dimension is LICL(θ)=1ni=1neθ,yixi\mathcal L_{\mathrm{ICL}}(\theta)=\frac{1}{n}\sum_{i=1}^n e^{-\langle \theta, y_i x_i\rangle}8, and the baseline model is quantised Llama2 7B chat (q4.0) (Buckmann et al., 2024).

For binary classification, the paper gives

LICL(θ)=1ni=1neθ,yixi\mathcal L_{\mathrm{ICL}}(\theta)=\frac{1}{n}\sum_{i=1}^n e^{-\langle \theta, y_i x_i\rangle}9

with

ndn \gg d0

Here ndn \gg d1 is the embedding of example ndn \gg d2, ndn \gg d3, ndn \gg d4 is the intercept, ndn \gg d5 is the weight vector, and ndn \gg d6 is the L2 penalty. The paper interprets ndn \gg d7 as the log-odds (Buckmann et al., 2024).

The experimental setting comprises 17 sentence classification tasks with 2–4 classes. The main regime is tens-of-shot per class, with learning curves using 10, 30, 100, 250, and 400 labelled instances overall, and explicit few-shot prompting experiments with ndn \gg d8 shots per class. The main evaluation setup uses accuracy as the primary metric, macro F1 as an additional metric, and repeated subsampling. For the learning curves, 20% of observations are held out as a test set, training sets of increasing size are drawn from the remaining 80%, the procedure is repeated 50 times, and confidence intervals are computed by bootstrapping. In the low-label regime, PLR-E is evaluated with ndn \gg d9-fold cross-validation where O(nd2)O(nd^2)0, GPT-4 is evaluated on the same O(nd2)O(nd^2)1 observations, the process is repeated on 250 randomly drawn training sets, and only samples with at least 2 instances per class are retained (Buckmann et al., 2024).

Across the 17 tasks, penalised logistic regression on small-LLM embeddings equals or usually exceeds GPT-4 in the tens-of-shot regime. At 100 training samples, PLR-E on the baseline Llama2 7B embeddings has mean accuracy around 0.80, compared with GPT-4 around 0.77, and the median accuracy also favors PLR-E. The paper states that around 60–75 samples per class are often enough for PLR-E to beat GPT-4. It compares GPT-4 zero-shot next-token classification, Llama2 7B zero-shot next-token classification, PLR-L on logits, and PLR-E on embeddings, with the pattern PLR-E O(nd2)O(nd^2)2 PLR-L O(nd2)O(nd^2)3 raw next-token prediction in many settings (Buckmann et al., 2024).

This work broadens the meaning of in-context logistic regression still further. Here the “context” is the few labeled examples available for calibration, while the LLM supplies a fixed representation space. A plausible implication is that in some practical few-shot regimes, the principal challenge is not generative reasoning over the prompt but linear readout from a pretrained embedding geometry.

7. Sequential and online perspectives

Online logistic regression provides another lens on in-context adaptation. In (Vilmarest et al., 2019), data arrive sequentially as O(nd2)O(nd^2)4 with O(nd2)O(nd^2)5 and O(nd2)O(nd^2)6, the learner produces O(nd2)O(nd^2)7, and incurs logistic loss

O(nd2)O(nd^2)8

The objective is to control regret

O(nd2)O(nd^2)9

against a comparator XRn×dX \in \mathbb{R}^{n\times d}00, or against XRn×dX \in \mathbb{R}^{n\times d}01 in the stochastic setting.

The paper studies two second-order algorithms. The Semi-Online Step (SOS) update is

XRn×dX \in \mathbb{R}^{n\times d}02

with

XRn×dX \in \mathbb{R}^{n\times d}03

For constant dynamics, the EKF recursion is

XRn×dX \in \mathbb{R}^{n\times d}04

XRn×dX \in \mathbb{R}^{n\times d}05

SOS is computationally heavier, with iteration XRn×dX \in \mathbb{R}^{n\times d}06 costing XRn×dX \in \mathbb{R}^{n\times d}07, whereas EKF is XRn×dX \in \mathbb{R}^{n\times d}08 per step (Vilmarest et al., 2019).

The main theoretical result is that SOS is the first parameter-free algorithm with XRn×dX \in \mathbb{R}^{n\times d}09 regret in adversarial logistic regression. EKF receives a weaker guarantee: XRn×dX \in \mathbb{R}^{n\times d}10 regret in expectation in the well-specified logistic model, under additional assumptions. The parameter-free aspect is achieved because the effective step size is determined by the inverse curvature matrix rather than a hand-tuned learning rate (Vilmarest et al., 2019).

Although this literature does not use transformer terminology, it is directly relevant to in-context logistic regression in the sequential sense. The learner repeatedly updates predictions from context accumulated so far, without full retraining. This suggests a useful taxonomy: batch subsampling (Chowdhury et al., 2024), transformer-executed in-context optimization (Zhang et al., 7 May 2026), few-shot embedding readout (Buckmann et al., 2024), and online second-order adaptation (Vilmarest et al., 2019) are distinct but adjacent manifestations of the same underlying idea that logistic-regression-style inference can be efficiently approximated, internalized, or incrementally updated from context.

8. Comparative themes, misconceptions, and limitations

Several recurrent themes cut across these works. First, the object of approximation differs substantially. In (Chowdhury et al., 2024), the guarantee is directly about estimated probabilities and model discrepancy. In (Zhang et al., 7 May 2026), the main object is the direction of the learned separator and its convergence under NGD dynamics. In (Buckmann et al., 2024), the focus is predictive accuracy, macro F1, and stable explanations in low-label sentence classification. In (Vilmarest et al., 2019), the central criterion is regret. Treating these as interchangeable would be a mistake.

Second, “in-context logistic regression” does not always mean maximum-likelihood optimization of the standard logistic log-likelihood. The transformer theory in (Zhang et al., 7 May 2026) uses exponential loss, not the Bernoulli negative log-likelihood, and justifies the terminology through implicit-bias considerations. By contrast, (Chowdhury et al., 2024) and (Buckmann et al., 2024) study standard logistic-regression objectives. A common misconception is therefore to assume that all work under this label is analyzing the same loss function.

Third, the scope of provable guarantees is narrow in each case. The subsampling theory of (Chowdhury et al., 2024) is for large-scale binary logistic regression in the regime XRn×dX \in \mathbb{R}^{n\times d}11. The transformer expressivity and trainability results of (Zhang et al., 7 May 2026) are for linear classification with a structured attention-only parameterization and specific distributional assumptions. The tens-of-shot system in (Buckmann et al., 2024) is about simple sentence classification tasks using embeddings from a small local LLM. The online guarantees of (Vilmarest et al., 2019) either concern SOS in the adversarial setting or EKF in expectation under a well-specified stochastic model. None of these results, taken individually, establishes a universal theory of in-context classification.

Finally, all four lines of work emphasize efficiency, but in different senses. The leverage-score method reduces the cost of Newton-style batch fitting (Chowdhury et al., 2024). The transformer construction shows that softmax attention can implement iterative optimization internally (Zhang et al., 7 May 2026). The PLR-E pipeline offers a low-cost and explainable alternative to large-model prompting in the tens-of-shot regime (Buckmann et al., 2024). The SOS and EKF updates replace hyperparameter tuning with curvature adaptation in sequential learning (Vilmarest et al., 2019). The shared conclusion is not that logistic regression solves all in-context learning problems, but that it remains one of the most analyzable and reusable algorithmic primitives for settings in which context must be converted into classification behavior under tight statistical or computational constraints.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to In-Context Logistic Regression.