MCP
BD

Benoit Dherin

46 papers in the library · Same-name authors told apart using DBLP

Papers

30
The Safety Operator: Modulating the Expression of Safety Instructions via Spectral Optimization
Benoit DherinMichael MunnXavier GonzalvoAdrian GoldwaserBlaz BratanicAnanth BalashankarAndrey VlasovPinzhi HuangCecile LogeNicole MitchellAndre FernandesTrilok Acharya  +5
This paper studies safety instructions in transformer language models by treating context tokens as a multiplicative operator absorbed into model weights. The authors show that modulating the operator's dominant eigenvalue controls how strongly the instruction shapes generation. They derive a Contrastive Safety Loss with a suppression weight balancing emphasis on harmful versus harmless queries. Varying this weight reveals a tradeoff between attack success and over-refusal rates, supporting the eigenvalue as a continuous dial. The relationship holds across parameterizations, yielding Pareto-improved safety instructions.
arXivarXiv · · September 29, 2026
0
0
The Safety Operator: Modulating the Expression of Safety Instructions via Spectral Optimization
Benoit DherinMichael MunnJavier GonzalvoAdrian GoldwaserBlaž BrataničAnanth BalashankarAndrey VlasovPinzhi HuangCécile LogéNicole Elyse MitchellAndre FernandesTrilok Acharya  +5
This paper treats context tokens as a multiplicative operator absorbed into a transformer language model's weights and studies it for safety instructions, showing that the operator's dominant eigenvalue governs how strongly the instruction shapes generation. A Contrastive Safety Loss with suppression weight $\rho$ controls the tradeoff between emphasizing the instruction on harmful queries and suppressing it on harmless ones; varying $\rho$ traces a relationship between attack success rate and over-refusal rate that is relatively independent of how the loss is parameterized, supporting the view of the eigenvalue as a continuous dial for instruction influence and yielding Pareto-improved safety instructions at appropriate $\rho$.
OpenReviewOpenReview · · September 16, 2026
0
Transmuting prompts into weights
Hanna MazzawiBenoit DherinMichael MunnAdrian GoldwaserMichael WunderJavier Gonzalvo
This work extends Dherin et al.'s mapping of a prompt's conditioning effect to token-dependent implicit weight updates into a formalized model-editing algorithm that condenses prompt information into lightweight, token-independent thought vectors and matrices. Folding redundant token computations into compact parameter-space updates addresses the high compute and memory cost of long text sequences, and the constructs supply a theoretical basis for existing vector- and matrix-based editing techniques, yielding a resource-efficient way to transmute textual inputs into reusable weight updates for complex architectures and new knowledge injection.
OpenReviewOpenReview · · August 29, 2026
0
Learning without training: The implicit dynamics of in-context learning
Benoit DherinMichael MunnHanna MazzawiMichael WunderJavier Gonzalvo
This work explains in-context learning in Large Language Models by showing that a transformer block, consisting of a self-attention layer followed by an MLP, effectively updates the MLP's weights based on the context. The authors argue, through theory and experiments, that a standard forward pass with context is mathematically equivalent to a forward pass without context but with the MLP weights modified by a minimal low-rank update representing the context. This implicit weight modification may account for the ability to learn new patterns at inference time without weight updates.
OpenReviewOpenReview · · June 4, 2026
0
Grow, Don't Overwrite: Fine-tuning Without Forgetting
Dyah AdilaHanna MazzawiBenoit DherinXavier Gonzalvo
This paper introduces a function-preserving expansion method that mitigates catastrophic forgetting during fine-tuning. The technique replicates pre-trained parameters within transformer submodules and applies a scaling correction, making the expanded model mathematically identical to the original at initialization. This enables stable training while leveraging existing knowledge. Empirically, the method achieves downstream task performance matching full fine-tuning without degrading the original model's capabilities. Additionally, selectively expanding a small subset of layers yields the same performance at a fraction of the computational cost.
arXivarXiv · · March 9, 2026
0
1
Equivalence of Context and Parameter Updates in Modern Transformer Blocks
Adrian GoldwaserMichael MunnJavier GonzalvoBenoit Dherin
This paper extends the theory that context can be implicitly represented as rank-1 patches to MLP weights from vanilla transformers to modern LLMs. For a Gemma-style block, it proves the full context effect maps to rank-1 MLP weight patches plus a learned RMSNorm scale patch. A general framework defines input and output controllability, proving a perfect implicit weight patch exists for any MLP block whose inner and outer functions satisfy these properties. This unifies diverse architectures like gating, pre-/post-norm, mixture of experts, and sequential/parallel blocks.
OpenReviewOpenReview · · January 20, 2026
0
Equivalence of Context and Parameter Updates in Modern Transformer Blocks
Adrian GoldwaserMichael MunnJavier GonzalvoBenoit Dherin
This paper extends the theory that context can be implicitly represented as a rank-1 patch to MLP weights from vanilla transformers to modern LLM architectures. It provides an analytical solution for a Gemma-style block, showing that context effects map to rank-1 patches on MLP weights and a patch to RMSNorm scale. A general framework based on input and output controllability is introduced, proving that a perfect implicit weight patch exists for any MLP block satisfying these properties, covering architectures like gating, MoE, and parallel blocks.
arXivarXiv · · November 22, 2025
0
5
Transmuting prompts into weights
Hanna MazzawiBenoit DherinMichael MunnMichael WunderJavier Gonzalvo
This work provides a theoretical foundation for inference-time model editing, grounding steering vectors and weight updates in transformer computations. Building on the finding that prompts induce token-dependent implicit weight updates, the authors derive token-independent "thought vectors" and "thought matrices" as principled condensations of that information. These constructs explain existing vector- and matrix-based editing heuristics and offer a direct, computationally-grounded method for converting textual prompts into reusable weight updates.
arXivarXiv · · October 9, 2025
0
3
On residual network depth
Benoit DherinMichael Munn
The paper presents an explicit analytical formula verifying that increasing depth in residual networks (ResNet, Transformer) is mathematically equivalent to expanding an implicit ensemble of shallower models. This expansion reveals a hierarchical combinatorial growth of computation paths, causing an explosion of the output signal. The authors derive a scaling factor for each residual module that tames this explosion, providing a first-principles explanation for the necessity of normalization layers and a principled foundation for normalization-free techniques.
arXivarXiv · · October 3, 2025
0
1
On residual network depth
Benoit DherinMichael Munn
This paper explains the effectiveness of depth in residual networks via an explicit analytical formula confirming the ensemble view: increasing depth is mathematically equivalent to enlarging an implicit ensemble. The expansion exposes a hierarchical structure where combinatorial growth of computation paths causes an output-signal explosion, offering a first-principles reason for normalization layers' historical necessity and explaining normalization-free methods like SkipInit and Fixup. The Residual Expansion Theorem shows that scaling residual modules tames this explosion and implicitly regularizes by diminishing higher-order terms.
OpenReviewOpenReview · · September 19, 2025
0
Learning without training: The implicit dynamics of in-context learning
Benoit DherinMichael MunnHanna MazzawiMichael WunderJavier Gonzalvo
This work attributes in-context learning in LLMs to a simple implicit mechanism: within a transformer block composed of a self-attention layer followed by an MLP, the context effectively transforms into a low-rank weight update of the MLP, requiring no actual weight changes. Through theory and experiments, the authors argue this mechanism, which operates at inference time even for patterns unseen during training, may explain how LLMs learn in-context rather than only during training.
OpenReviewOpenReview · · September 19, 2025
0
How iteration composition influences convergence and stability in deep learning
Benoit DherinBenny AvelinAnders KarlssonHanna MazzawiJavier GonzalvoMichael Munn
This work finds that the composition order of gradient updates influences stability and convergence in gradient-based optimizers under constant learning rate and small batch sizes. Using backward-SGD, which reverses the forward composition of batch gradients, they show it converges to a point in contractive regions (e.g., near minima), whereas forward-SGD generally converges only to a distribution. Experiments confirm improved stability. Although computationally intensive, backward-SGD suggests reusing previous batches could yield beneficial optimization effects, a new avenue in deep learning.
OpenReviewOpenReview · August 13, 2025
0
3
Learning by solving differential equations
Benoit DherinMichael MunnHanna MazzawiMichael WunderSourabh MedapatiJavier Gonzalvo
This paper reinterprets gradient descent in deep learning as the Euler method for solving the gradient-flow ODE, motivating the use of higher-order Runge-Kutta (RK) solvers as optimizers. The authors evaluate these RK-based optimizers, analyze their limitations, and propose remedies. Notably, they improve performance by integrating essential components of modern optimizers, such as preconditioning, adaptive learning rates, and momentum.
OpenReviewOpenReview · · August 13, 2025
0
Learning without training: The implicit dynamics of in-context learning
Benoit DherinMichael MunnHanna MazzawiMichael WunderJavier Gonzalvo
This paper proposes that a single transformer block, consisting of a self-attention layer followed by an MLP, can implicitly modify the MLP's weights based on the context provided in the prompt. This context-dependent weight update is shown to be a low-rank modification, enabling the model to learn new patterns at inference time without any explicit gradient update. The authors argue through theory and experiments that this simple mechanism may underlie the in-context learning ability of large language models (LLMs).
arXivarXiv · · July 21, 2025
0
60
Learning by solving differential equations
Benoit DherinMichael MunnHanna MazzawiMichael WunderSourabh MedapatiJavier Gonzalvo
This paper reinterprets gradient descent as the Euler method applied to the gradient flow ODE and evaluates higher-order Runge-Kutta (RK) solvers as alternatives for deep learning. It identifies limitations of these solvers and proposes enhancements—preconditioning, adaptive learning rates, and momentum—that improve their performance, making them competitive with modern optimizers.
arXivarXiv · · May 19, 2025
0
1
How iteration order influences convergence and stability in deep learning
Benoit DherinBenny AvelinAnders KarlssonHanna MazzawiJavier GonzalvoMichael Munn
This paper shows that the order in which gradient updates are composed during optimization affects neural network training stability and convergence. The authors introduce backward-SGD, which inverts the usual forward composition order of batch gradients. In contractive regions around minima, backward-SGD converges to a single point, whereas standard forward-SGD converges only to a distribution. This improved stability is demonstrated experimentally, establishing a new direction for deep learning optimization by creatively reusing previous batches at each step, though full backward-SGD is computationally intensive.
arXivarXiv · · February 3, 2025
0
3
A Margin-based Multiclass Generalization Bound via Geometric Complexity
Michael MunnBenoit DherinJavier Gonzalvo
This paper presents a new upper bound on the multiclass generalization error of neural networks. The bound depends on the margin-normalized geometric complexity of the network and holds for a broad family of data distributions and model classes. The authors empirically validate the bound for a ResNet-18 trained with SGD on CIFAR-10 and CIFAR-100 with both original and random labels.
arXivarXiv · · May 28, 2024
0
2
The Impact of Geometric Complexity on Neural Collapse in Transfer Learning
Michael MunnBenoit DherinJavier Gonzalvo
This paper identifies geometric complexity of learned representations as a mechanism linking loss-surface flatness and neural collapse in transfer learning. Through theory and experiments, the authors show that mechanisms affecting a pre-trained network's geometric complexity also influence neural collapse, and that this effect generalizes to the neural collapse of new classes, thereby improving downstream performance, especially in few-shot settings.
arXivarXiv · · May 24, 2024
0
12
The Impact of Geometric Complexity on Neural Collapse in Transfer Learning
Michael MunnBenoit DherinJavier Gonzalvo
This paper identifies geometric complexity as a mechanism connecting loss-surface flatness and neural collapse in transfer learning. Through experiments and theory, the authors show that mechanisms altering the geometric complexity of pre-trained representations also influence neural collapse, extending this effect to new classes and improving downstream task performance, especially in few-shot settings.
OpenReviewOpenReview · · May 14, 2024
0
Geometric States
Benoit DherinAlan Weinstein
The paper introduces a family of distributional $\alpha$-densities and provides a transversality criterion for when their product is defined, relating it to H\"ormander's criterion for general distributions. For the subspace of distributional half-densities ($\alpha=1/2$), the product naturally yields a pairing that extends the usual pairing on smooth half-densities.
arXivarXiv · · February 19, 2024
0
0
Corridor Geometry in Gradient-Based Optimization
Benoit DherinMihaela Rosca
This paper defines corridors as regions of the loss surface where gradient flow trajectories become straight lines. In these regions, gradient descent and gradient flow coincide, loss decreases linearly, and no implicit regularization or instability arises. The authors derive Corridor Learning Rate (CLR), a learning rate adaptation scheme that matches a special case of the Polyak step-size. Experiments on CIFAR-10 and ImageNet confirm the convergence of this method for neural networks.
arXivarXiv · · February 13, 2024
0
1
Deep Fusion: Efficient Network Training via Pre-trained Initializations
Hanna MazzawiJavier GonzalvoMichael WunderSammy JeromeBenoit Dherin
This paper introduces Deep Fusion, an efficient deep network training approach that grows larger networks from pre-trained small-network initializations, and a theoretical framework based on backward error analysis to understand mid-training network growth. The framework guides optimal Deep Fusion use. Experiments show significant reductions in training time and resource consumption without performance loss, and improved generalization across NLP tasks and T5 sizes.
OpenReviewOpenReview · · January 30, 2024
0
Implicit biases in multitask and continual learning from a backward error analysis perspective
Benoit Dherin
Using backward error analysis, this paper reveals implicit training biases in multitask and continual learning for neural networks trained with stochastic gradient descent. The derived modified loss contains three terms: the original loss, an implicit flatness regularization proportional to the learning rate, and a conflict term. In multitask learning, the conflict term measures gradient alignment between tasks. In continual learning, it is the Lie bracket between task gradients, a new quantity in deep learning optimization that can theoretically harm convergence and regularization.
arXivarXiv · · November 1, 2023
0
2
Implicit biases in multitask and continual learningfrom a backward error analysis perspective
Benoit Dherin
Using backward error analysis, the authors derive modified losses implicitly minimized during SGD training in multitask and continual learning. Each modified loss comprises the original loss, a learning-rate-proportional flatness regularization term, and a conflict term. In multitask settings, this conflict term is the known gradient alignment between tasks; in continual learning, it emerges as the Lie bracket between task gradients, a new quantity in deep learning optimization.
OpenReviewOpenReview · September 26, 2023
0
Morse Neural Networks for Uncertainty Quantification
Benoit DherinHuiyi HuJie RenMichael W. DusenberryBalaji Lakshminarayanan
Morse neural networks are a new deep generative model for uncertainty quantification. They generalize unnormalized Gaussian densities to have modes on high-dimensional submanifolds rather than discrete points. Fitted via KL-divergence, the model simultaneously provides an unnormalized generative density, an OOD detector, a calibration temperature, a generative sampler, and, in supervised settings, a distance-aware classifier. This versatility unifies several existing techniques, including entropic OOD detection, deep support vector description, and contrastive one-class classification.
arXivarXiv · · July 2, 2023
0
7
Deep Fusion: Efficient Network Training via Pre-trained Initializations
Hanna MazzawiXavi GonzalvoMichael WunderSammy JeromeBenoit Dherin
Deep Fusion is a network training approach that initializes a larger network from a pre-trained smaller one, reducing computational cost. The paper contributes this method and a backward error analysis framework that explains mid-training network growth dynamics. Experiments on T5 models across NLP tasks show Deep Fusion maintains or surpasses traditional training performance while accelerating training and lowering resource consumption. The theoretical framework guides optimal use of the method.
arXivarXiv · · June 20, 2023
0
9
Morse Neural Networks for Uncertainty Quantification
Benoit DherinHuiyi HuJie RenMichael W DusenberryBalaji Lakshminarayanan
The Morse neural network is a deep generative model that generalizes unnormalized Gaussian densities to have modes on high-dimensional submanifolds rather than discrete points. Fitting it via a KL-divergence loss provides an unnormalized generative density, an out-of-distribution detector, a calibration temperature, a generative sampler, and, in the supervised case, a distance-aware classifier. It can augment pre-trained networks with distance-aware calibration and unifies techniques such as entropic OOD detection, one-class deep support vector description, and contrastive one-class classification, with connections to support vector machines, kernel methods, and Morse theory.
OpenReviewOpenReview · · May 26, 2023
0
A margin-based multiclass generalization bound via geometric complexity
Michael MunnBenoit DherinJavier Gonzalvo
This paper derives a new margin-based multiclass generalization bound for neural networks, expressed in terms of the recently introduced geometric complexity, which measures the variability of the model function. The upper bound on generalization error scales with margin-normalized geometric complexity and holds for a broad family of data distributions and model classes. The bound is empirically validated using a ResNet-18 trained with SGD on CIFAR-10 and CIFAR-100 with both original and random labels.
OpenReviewOpenReview · · May 24, 2023
0
On a continuous time model of gradient descent dynamics and instability in deep learning
Mihaela RoscaYan WuChongli QinBenoit Dherin
The paper introduces the principal flow (PF), a continuous-time dynamical system that approximates gradient descent and captures its divergent, oscillatory, and instability behaviors, including escaping local minima and saddle points. Through its dependence on the Hessian's eigendecomposition, the PF explains the edge of stability phenomenon in deep learning. Based on this understanding, the authors propose a learning rate adaptation method that controls the trade-off between training stability and test performance.
arXivarXiv · · February 3, 2023
0
26
Why neural networks find simple solutions: the many regularizers of geometric complexity
Benoit DherinMichael MunnMihaela RoscaDavid G.T. Barrett
This paper proposes geometric complexity, measured by a discrete Dirichlet energy, as a unifying measure of model function variability in deep learning. Through theoretical arguments and empirical results, the authors show that diverse training heuristics—including parameter norm, spectral norm, flatness, implicit gradient, and noise regularization, as well as initialization choice—all control geometric complexity. This framework explains why neural networks tend to find simple solutions across different regularization strategies.
arXivarXiv · · September 27, 2022
0
67
Frequent collaborators
Michael Munn (21)
Javier Gonzalvo (17)
Hanna Mazzawi (14)
Michael Wunder (9)
Alberto S. Cattaneo (7)
Alan Weinstein (6)
Adrian Goldwaser (5)
Mihaela Rosca (5)
Yan Wu (3)
David G.T. Barrett (3)
Xavier Gonzalvo (2)
Ananth Balashankar (2)