training sample
CausalNTP: A World-Model Recipe for Causal Next-Token Prediction under Noisy Training-data
Inject the phrase "the answer is 42" to a natural language math problem, and a transformer trained with standard next-token prediction will often change its answer to 42. Inject an irrelevant background sentence and the response drifts. We show that these failure modes are a property of the standard next-token-prediction (NTP) objective itself, some of which cannot be fixed by model scale, data scale, or choice of token-ordering in training dataset: NTP either teaches a transformer to explicitly exploit non-causal tokens its left-context that correlates with the target, or renders a model that is never taught to avoid them during inference. We formalize said failure modes by deriving the Bayes-optimal predictor under samples drawn from a causal DAG, where the notion of causal relationship between nodes are clearly defined. In this setting, we show that standard NTP fails to find models that ignore non-parent nodes present in the left-context. We propose an objective whose minimizer is a predictor that achieves the causally correct value even when the training data contains partially corrupted targets. We then prove that an Occam realization of this minimizer -- the smallest circuit that implements this predictor -- reads only the causal parents of the target, and hence guarantees that the predictor predicts the target correctly even outside the support of the training distribution. CausalNTP is a practical algorithm that approximates this objective; it lifts GSM8K accuracy under adversarial hint and irrelevant context injection from $60.0\%$ to $70.6\%$ in the clean-target regime, and from $44.1\%$ to $59.9\%$ when $10\%$ of training targets are themselves wrong.
Learning the Projection onto the Data Support: Distribution Learning that Avoids Memorization
We introduce a framework for learning distributions supported on manifolds based on estimating the nearest-point projection onto the data support. Specifically, we define an objective functional over a class of functions whose minimizer recovers this projection. The proposed framework automatically adapts to the intrinsic dimension and allows for data supported on unions of manifolds with varying dimensions. The resulting objective can be optimized using standard neural network architectures. We present population-level results establishing recovery of the manifold projection and prove finite-sample Wasserstein generalization bounds. Furthermore, we validate the approach empirically across a range of settings. In contrast to widely used generative models such as diffusion models, whose objectives can be minimized by memorizing training samples, our formulation excludes such behavior. We also introduce a direct memorization metric to verify that the learned projection generates new samples rather than reproducing the training set.
Attributing Cohen's d: Training Data Attribution for Disease-Related Effects in Normative Age Biomarkers
Snel, Jakob, Schulz, Marc-Andre
Normative age models are trained to predict chronological age in a nominally healthy cohort. In patients, the gap between predicted and chronological age is read as disease risk. We attribute the disease-related effect size of the age gap directly to individual training samples, rather than using a prediction-level loss as the attribution target. For the Cohen's d effect size, the resulting closed-form influence functional, validated against leave-one-out retraining, ranks training samples by their effect on held-out case-control separation. Across four diseases and two biomarker modalities in UK Biobank, removing the 10% most influential training samples raises held-out disease-related effect size in every seed. It more than doubles the metabolomic-age effect for type 2 diabetes and raises the brain-age effect for multiple sclerosis by roughly a third. Random removal leaves effect size flat even at 50% removal, confirming the gain comes from which samples are removed, not how many. Flagged subjects, missed by diagnosis-based exclusion, show elevated cardiometabolic markers the model never sees, consistent with subclinical contamination of the reference cohort. For type 2 diabetes, where the method gains most, the marker recovered is HbA1c, the standard measure of blood sugar control. We release our influence-function package pyinfluence.
Improvise, Adapt, Overcome: An On-The-Fly Multifidelity Algorithm for Efficient Machine Learning
Machine learning has accelerated quantum chemistry but is hindered by the prohibitive cost of generating high fidelity training data. Multifidelity machine learning (MFML) mitigates this overhead by systematically combining abundant low fidelity data with sparse high fidelity data. In spite of its success, standard MFML schemes rely on pre-defined scaling factors to determine sparse data ratio across fidelities, often generating redundant multifidelity data resulting in a loss of efficiency. Here, we introduce an adaptive on-the-fly multifidelity framework for machine learning that autonomously determines training dataset composition. By dynamically querying training samples at each fidelity, the algorithm saturates model accuracy at lower fidelities before moving up to more expensive reference calculations. We benchmark the novel adaptive-MFML across diverse chemical properties including theoretical best estimate ab initio potential energy surfaces, golden standard coupled cluster energies, and the more chemically challenging excitation energies. In our numerical experiments we show that our adaptive algorithm reduces data generation costs by up to a factor of 20 compared to single fidelity methods and improves upon standard MFML by up to a factor of 3. The mitigation of data redundancy establishes a high-accuracy low-cost pathway for sustainable cost-aware machine learning in quantum chemistry.
Structure and Regularization of Fused Objectives in Kernel Discriminant Analysis for Small-Sample-Size Problems
In hyperspectral remote sensing, for instance, expert annotation of land cover classes requires extensive field surveys under harsh environmental conditions [1]. Similarly, industrial fault diagnosis systems must often operate with limited failure examples due to the high costs of mechanical breakdowns [2], while medical diagnosis is constrained by strict privacy and ethical regulations in collecting large-scale patient data [3]. Even in face recognition, an extensively investigated computer vision task, many real-world settings such as law enforcement or rare disease screening face the challenge of extremely limited samples per identity [4]. These practical constraints render advanced deep learning models, which demand abundant labeled data and complex architectures, often impractical in SSS conditions. Existing approaches to small-sample learning can be broadly categorized into two paradigms. The first paradigm improves generalization by leveraging knowledge transferred from external datasets, including transfer learning for knowledge reuse [5], fewshot learning for rapid adaptation from few labeled examples [6], meta-learning for learning transferable learning strategies [7], and self-supervised pretraining for acquiring general-purpose representations [8]. Representative methods include metric-based few-shot learning (e.g., ProtoNet [9]), self-supervised representation learning (e.g., SimCLR [10]), and adaptation based on pretrained foundation models [11]. These approaches have demonstrated strong generalization across a wide range of data-scarce applications, including remote sensing [12], medical image analysis [13], image recognition [14], and agricultural applications [15]. However, they generally rely on the availability of large auxiliary datasets and pretrained representations, making them fundamentally different from the classical supervised setting considered in this work.
Augmentation-Guided Adversarial Training via Local Stability-Based Sample Selection
Asante, Daniel Agyei, Tetteh, Mark, Asamoah, Deborah, Asante, Bernard, Turkson, Regina Esi
Adversarial training remains one of the most effective defenses against adversarial attacks, but its standard PGD-based training is computationally expensive because adversarial examples are generated for every training sample. Selective adversarial training reduces this cost by perturbing only a subset of samples. However, existing selective techniques typically rely on point-wise difficulty signals such as loss, entropy, margin, or gradients. We show that these point-wise criteria do not capture local instability in a sample's neighborhood. Motivated by this, we propose Augmentation-Guided Adversarial Training (AGAT), a selective adversarial training framework that uses augmentation-induced local variation to allocate samples with unstable neighborhoods for adversarial training. AGAT ranks samples using Augmentation-based Local Stability (ALS), a lightweight score that measures the normalized change in model logits between an input and its label-preserving augmented variant. Experiments across different architectures on MNIST, CIFAR-10, CIFAR-100, and Tiny-ImageNet-200 demonstrate that AGAT achieves comparable or higher robust accuracy while applying adversarial supervision to only 20-30% of the training samples in each minibatch. AGAT also requires less training time than all other adversarial training baselines in the computational cost evaluation.
Towards Faithful Data Selection: Statistical Limits and Scalable Algorithms
Inane, Ahmed Mehdi, Haghifam, Mahdi, Dziugaite, Gintare Karolina, Mitliagkas, Ioannis
What does it mean to have an optimal data selection algorithm? Optimality is conventionally framed as finding a subset that minimizes the population error of the classifier trained only on that subset. Our starting point in this work is first to show that this goal is information-theoretically impossible unless the data selection algorithm has access to a validation set order-wise larger than the training set. This impossibility result motivates shifting from unverifiable population risk minimization to a one-sided guarantee that we refer to as faithfulness: for any candidate subset, we provide an estimable proxy that upper-bounds the difference between training on the full training data and on only the subset. We model training with the Unadjusted Langevin Algorithm and bound the Kullback--Leibler divergence between subset-trained and full-data-trained parameter distributions by the trajectory-accumulated gradient discrepancy. Minimizing this discrepancy gives a principled way to select a subset. Even though the resulting problem is NP-hard, we propose a swap-based local search that decreases the bound at every accepted step. It can therefore refine the output of any selector without worsening its bound. Finally, we provide experimental results on CIFAR10 and CIFAR100 showing that it matches existing data selection baselines. Implementation of our algorithm and the code for reproducing the results are available at: https://github.com/Mehdi-Inane/data_selection_swap.
The RNN Homunculus: Learning to Gate Long-Term Memory
Fan, Zeyu, Manolache, Alexandru-Dragos, van Gemert, Jan
Learning long-range dependencies with recurrent neural networks (RNNs) is difficult because of the vanishing gradient problem. Gated recurrent neural networks like GRUs and LSTMs address this problem and are commonly explained by their ability to create additive copy paths through time. This explanation is correct, but incomplete: useful RNN gate values must themselves be learned, which is typically done with another RNN. We study this gate-learning problem through carefully controlled sequence classification tasks. Our analysis shows that gated architectures struggle when all training samples require long-range memory and thus equally suffer from the vanishing gradient problem. We intervene by adding short-dependency samples which let gated models learn solutions that capture long-dependency samples, but also generalize across different class labels. When properly learned, gated RNNs match or even exceed the test accuracy of modern architectures like Mamba and xLSTM. Overall, our results highlight gate learning as a central part of learning long-range memory and show how training data can support this process by exposing the same task over shorter dependencies.
ERIS: Enhancing the Privacy-Utility-Scalability Trade-Off in Federated Learning via Federated Shard Aggregation
Fenoglio, Dario, Polverino, Pasquale, Dhasade, Akash, Quizi, Jacopo, Gjoreski, Martin, Langheinrich, Marc
Scaling Federated Learning (FL) to billion-parameter models forces a challenging trade-off between privacy, scalability, and model utility. Existing solutions often tackle these challenges in isolation, sacrificing accuracy, relying on costly cryptographic tools, or introducing communication and optimization inefficiencies that affect convergence. We introduce ERIS, an FL framework centered on Federated Shard Aggregation (FSA), a novel mechanism that partitions each client update into non-overlapping shards whose aggregation is distributed across multiple client-side aggregators. FSA removes the central aggregation bottleneck, limits the information visible to any single observer, and preserves the centralized FL update after reassembly. ERIS can further readily integrate Distributed Shifted Compression (DSC) to reduce transmitted payloads and exposed coordinates. We prove that ERIS preserves convergence under standard assumptions and bounds mutual information leakage by the observable fraction of each update, decreasing with the number of client-side aggregators, and with the compression level when DSC is enabled. Experiments across image and text tasks, including large language models, show that ERIS achieves FedAvg-level utility while substantially reducing communication bottlenecks and improving robustness to membership inference and reconstruction attacks, without relying on heavy cryptography or utility-degrading perturbations.
Generalised Balanced Softmax: A Finite-Data Perspective on Logit Adjustment for Long-Tailed Recognition
Zhu, Yi-Hang, Raman, Rajeev, Su, Shiqi, Sun, Jianyuan, Yang, Xinyu, Xing, Nan, Zhou, Huiyu
Models trained on long-tailed data using standard softmax tend to exhibit higher training error and a larger generalisation gap for classes with fewer training samples. We characterise this class-wise disparity as the preference issue and quantify it using a new metric, the model imbalance level $I$. To understand this issue, we analyse how imbalanced training data adversely affects class-wise gradients under standard softmax training. This paper then develops a finite-data Generalised Balanced Softmax (GBS) framework for analysing and mitigating the preference issue. The framework uses the training-time logit adjustment $z_{nc}+β\log|N_c|$, which is algebraically identical to the training-time logit-adjusted loss of Menon et al. (2021) when $τ=β$. The case $β=1$ also coincides with Balanced Softmax and with the unit adjustment supported by the Fisher-consistency argument under the true data distribution, corresponding to an idealised infinite-data setting. Building on this existing loss family, this paper uses a heuristic power-law assumption to motivate the adjustable coefficient and studies how $β$ affects trained models. Across the evaluated long-tailed benchmarks, $β=1$ does not attain the highest average testing recall on most datasets, showing that a different coefficient can be preferable when training on finite data. The selected values of $β$ reduce $I$ and improve average testing recall relative to the $β=1$ reference, while retaining negligible computational overhead and compatibility with existing representation-learning frameworks.