arXiv Science⌕ Search

arXiv subjects

Michaël E. Sander

Publications and source records attributed to Michaël E. Sander.

5 recordsLinked to original sources

Adelic Neural Network Architectures via Universal Approximation

Real and $p$-adic spaces offer complementary inductive biases for machine learning: $\mathbb{R}$ naturally represents smooth variations of magnitude, whereas the ultrametric tree structure of $\mathbb{Q}_p$ naturally captures hierarchies and modular arithmetic. Combining both in a single neural network is not straightforward because $\mathbb{R}$ is connected whereas $\mathbb{Q}_p$ is totally disconnected, so naive cross-field layers either break continuity or discard the ultrametric geometry. In this paper, we derive a new universal approximator on the proxi-adelic space $\mathbb{R}^{d_0}\times\prod_{i=1}^{M}\mathbb{Q}_{p_i}^{d_i}$, which combines real coordinates with $p$-adic coordinates for finitely many distinct primes. For continuous maps on $K_{\mathbb{R}}\times\prod_{i}\mathbb{Z}_{p_i}^{d_i}$, with $K_{\mathbb{R}}$ compact and connected, we show that the topology of the space largely constrains the form of an approximator. A real-valued output is approximated by finitely many real networks, each switched on by the indicator of a ball in the $p$-adic coordinates. A $p_i$-adic-valued output cannot depend on the real input at all, and depends on the other primes only through ball indicators. The result holds for any choice of universal real and $p$-adic approximators; instantiated with perceptrons and $p$-adic character networks, it yields an explicit universal layer. We then show that universality is preserved under two relaxations: replacing partitions by covers, which gives a successive refinement along the $p$-adic tree, and replacing ball indicators by their Fourier expansion, which turns the gating into a modulation by cosines of $p$-adic fractional parts.

cs.LG↗

On the Difficulty of Sequence-Level Supervised Learning for Autoregressive Language Models

During the supervised learning phase, autoregressive language models are typically trained by minimizing the negative log-likelihood of the training data, which decomposes as a sum of token-level cross-entropies via teacher forcing. This objective is simple and efficient but potentially suffers from so-called exposure bias: a mismatch between the way the model is trained and the way it is used at inference time. Can we instead design sequence-level loss functions that incorporate inference-time decoding procedures, such as greedy decoding or autoregressive sampling? We show that two natural attempts lead to loss functions that are fundamentally flawed: unbounded below. We further show that these two flawed loss functions are intimately connected: using autoregressive Gumbel tricks, the sampling based loss is the expected greedy loss under Gumbel perturbations. Since the pathology stems from the dependence of the decoded sequence on the model parameters, we analyze the update direction obtained by applying a stop gradient on the sampling procedure, leading to a moment matching direction. While it is not the gradient of any loss function, we prove that it defines a valid descent direction in function space for the autoregressive negative log-likelihood. Despite these theoretical insights, the moment matching direction suffers from high variance. We conclude that teacher forcing may well be ``all you need'' for supervised learning of autoregressive models.

cs.LG↗

Differentiable Knapsack and Top-k Operators via Dynamic Programming

Knapsack and Top-k operators are useful for selecting discrete subsets of variables. However, their integration into neural networks is challenging as they are piecewise constant, yielding gradients that are zero almost everywhere. In this paper, we propose a unified framework casting these operators as dynamic programs, and derive differentiable relaxations by smoothing the underlying recursions. On the algorithmic side, we develop efficient parallel algorithms supporting both deterministic and stochastic forward passes, and vector-Jacobian products for the backward pass. On the theoretical side, we prove that Shannon's negative entropy is the unique separable regularization choice that yields permutation-equivariant operators, and characterize regularizers inducing sparse selections. On the experimental side, we demonstrate our framework on a benchmark on learning to predict Knapsack solutions, an extension of discrete VAEs, and a constrained dynamic assortment RL problem.

cs.LG↗

A Study on Hidden Layer Distillation for Large Language Model Pre-Training

Knowledge Distillation (KD) is a critical tool for training Large Language Models (LLMs), yet the majority of research focuses on approaches that rely solely on output logits, neglecting semantic information in the teacher's intermediate representations. While Hidden Layer Distillation (HLD) showed potential for encoder architectures, its application to decoder-only pre-training at scale remains largely unexplored. Through compute-controlled experiments, we benchmark HLD against logit-based KD and self-supervised baselines with Gemma3 3.4B as teacher and 123M and 735M students trained on up to 168B tokens from the C4 dataset. Our experiments show that HLD does not consistently outperform standard KD on downstream evaluation tasks. Nevertheless, we show that HLD can yield a systematic perplexity gain over KD across all shared-hyperparameter configurations, suggesting that a latent signal can be extracted, but a breakthrough may be needed for it to play a more significant role in LLM pre-training.

cs.CL↗

Clustering in Deep Stochastic Transformers

Transformers have revolutionized deep learning across various domains but understanding the precise token dynamics remains a theoretical challenge. Existing theories of deep Transformers with layer normalization typically predict that tokens cluster to a single point; however, these results rely on deterministic weight assumptions, which fail to capture the standard initialization scheme in Transformers. In this work, we show that accounting for the intrinsic stochasticity of random initialization alters this picture. More precisely, we analyze deep Transformers where noise arises from the random initialization of value matrices. Under diffusion scaling and token-wise RMS normalization, we prove that, as the number of Transformer layers goes to infinity, the discrete token dynamics converge to an interacting-particle system on the sphere where tokens are driven by a \emph{common} matrix-valued Brownian noise. In this limit, we show that initialization noise prevents the collapse to a single cluster predicted by deterministic models. For two tokens, we prove a phase transition governed by the interaction strength and the token dimension: unlike deterministic attention flows, antipodal configurations become attracting with positive probability. Numerical experiments confirm the predicted transition, reveal that antipodal formations persist for more than two tokens, and demonstrate that suppressing the intrinsic noise degrades accuracy.

stat.ML↗