MCP
MM

Michael Munn

35 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
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 Bayesian Model Selection Criterion for Selecting Pretraining Checkpoints
Michael MunnSusan Wei
The paper introduces a Bayesian model selection criterion, the downstream free energy, for choosing pretraining checkpoints that best adapt to downstream tasks. It quantifies a checkpoint's adaptability by measuring the concentration of nearby favorable parameters for a task, and can be implemented without access to downstream data or prior task knowledge. Empirical evidence shows the criterion reliably correlates with improved fine-tuning performance, offering a principled approach to predicting model adaptability. The work addresses underexplored mechanisms behind the pretrain-then-adapt paradigm of foundation models like BERT, GPT, T5, and Vision Transformers.
OpenReviewOpenReview · January 22, 2025
0
4
Leveraging free energy in pretraining model selection for improved fine-tuning
Michael MunnSusan Wei
The paper introduces the downstream free energy, a Bayesian model-selection criterion that gauges a pretrained checkpoint's adaptability by measuring the concentration of nearby parameters favorable for a downstream task. It can be implemented without downstream data or prior task knowledge. Empirical evidence shows it reliably correlates with improved fine-tuning performance, offering a principled way to predict model adaptability.
OpenReviewOpenReview · September 23, 2024
0
0
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
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
Unified Functional Hashing in Automatic Machine Learning
Ryan GillardStephen JonanyYingjie MiaoMichael MunnConnal de SouzaJonathan DungayChen LiangDavid R. SoQuoc V. LeEsteban Real
This paper introduces a unified functional hashing technique for automatic machine learning (AutoML) that accelerates evolutionary search by detecting functionally equivalent candidates through hashing, even when they are represented differently (e.g., as compute graphs, imperative code, or lambda functions). The central contribution is the functional equivalence caching method, which avoids costly re-evaluation of equivalent candidates—a frequent occurrence in AutoML search. The method demonstrates dramatic efficiency improvements across domains such as neural architecture search and algorithm discovery, with empirical analysis of hash collisions, evaluation noise, and search distribution effects.
arXivarXiv · · February 10, 2023
0
2
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
The Geometric Occam's Razor Implicit in Deep Learning
Benoit DherinMichael MunnDavid G.T. Barrett
This paper proposes that over-parameterized deep neural networks trained with stochastic gradient descent are implicitly regularized by a Geometric Occam's Razor: the geometric model complexity of the learned function. For one-dimensional regression, this complexity is the arc length of the function; for higher dimensions, it is the Dirichlet energy. Experiments on ResNets with CIFAR-10 show that Dirichlet energy measurements align with this implicit regularization.
arXivarXiv · · November 30, 2021
0
11
On Weak Super Ricci Flow through Neckpinch
Sajjad LakzianMichael Munn
This paper studies the Ricci flow neckpinch in metric measure spaces. It introduces a weak refined super Ricci flow defined via coupled contraction of diffusions on maximal diffusion components. The main theorem shows that if a non-degenerate spherical neckpinch admits a smooth forward evolution past the singularity, the corresponding Ricci flow metric measure spacetime is a weak super Ricci flow for convex cost functions if and only if singularities occur only on totally geodesic hypersurfaces $\{x\} \times S^n$ (single point pinching). The spacetime is a refined weak super Ricci flow iff the flow is a smooth Ricci flow with possibly singular final time.
arXivarXiv · · August 24, 2020
0
4
COT-GAN: Generating Sequential Data via Causal Optimal Transport
Tianlin XuLi K. WenliangMichael MunnBeatrice Acciaio
COT-GAN is an adversarial algorithm for generating sequential data. Its loss function is built on Causal Optimal Transport (COT), which augments classical optimal transport with a temporal causality constraint that naturally parameterizes a robust cost learned by the discriminator. An entropic penalty enables Sinkhorn-based computation. Experiments show COT-GAN effectively and stably generates low- and high-dimensional time series, aided by an improved Sinkhorn divergence with reduced bias.
arXivarXiv · · June 15, 2020
0
204
Three-Dimensional Alexandrov spaces with positive or nonnegative Ricci curvature
Qintao DengFernando Galaz-GarciaLuis GuijarroMichael Munn
This paper classifies closed three-dimensional Alexandrov spaces satisfying a synthetic lower Ricci curvature bound in the $\mathsf{CD}^*(K,N)$ sense. For $K=2$ and $N=3$, such spaces are homeomorphic to a spherical space form or the suspension of $\mathbb{R}P^2$. For $K=0$ and $N=3$, a complete classification of these spaces is provided.
arXivarXiv · · February 24, 2016
0
14
Geometric singularities and a flow tangent to the Ricci flow
Lashi BandaraSajjad LakzianMichael Munn
The paper studies a geometric flow that is tangent to the Ricci flow almost everywhere along geodesics, applied to spaces with geometric singularities. For a smooth manifold with a rough metric that has a sufficiently regular heat kernel, the authors construct a family of evolving metric tensors on an appropriate nonsingular open region and provide a regularity theory for the flow based on heat kernel regularity. When the rough metric induces a metric measure space satisfying a Riemannian Curvature Dimension condition, they show that the distance induced by the flow equals the evolving distance metric defined by Gigli and Mantegazza on admissible points. As a consequence, a smooth compact manifold with finitely many conical singularities remains a smooth manifold with a smooth metric away from the cone points for all future times, and the distance agrees with the flow of RCD(K, N) spaces.
arXivarXiv · · May 19, 2015
0
11
Alexandrov spaces with large volume growth
Michael Munn
This paper studies $n$-dimensional Alexandrov spaces whose Hausdorff measure $\mathcal{H}^n$ induces a metric measure space with a notion of nonnegative Ricci curvature. The central contribution is that when the volume growth is sufficiently large, the space has finite topological type, generalizing classical Riemannian geometry arguments.
arXivarXiv · · May 13, 2014
0
7
Intrinsic flat convergence with bounded Ricci curvature
Michael Munn
For a sequence of complete Riemannian manifolds with a two-sided bound on Ricci curvature, a uniform upper bound on diameter, and non-collapsed volume, the intrinsic flat limit exists and agrees with the Gromov-Hausdorff limit. This extends a previous no-cancellation theorem that required nonnegative Ricci curvature. The result corrects an earlier version that assumed only an arbitrary lower Ricci bound.
arXivarXiv · · May 13, 2014
0
10
Frequent collaborators
Benoit Dherin (21)
Javier Gonzalvo (16)
Hanna Mazzawi (11)
Michael Wunder (7)
Adrian Goldwaser (5)
Sajjad Lakzian (4)
Ananth Balashankar (2)
Andrey Vlasov (2)
Pinzhi Huang (2)
Andre Fernandes (2)
Trilok Acharya (2)
Wendy Kan (2)