SearcharxivSearch

arXiv subjects

Francesco Mori

Publications and source records attributed to Francesco Mori.

At least 19 recordsLinked to original sources

Theory of Optimal Learning Rate Schedules and Scaling Laws for a Random Feature Model

Setting the learning rate (LR) for a deep learning model is a critical part of successful training. Choosing LRs is often done empirically with trial and error. In this work, we explore a solvable model of optimal LR schedules for a powerlaw random feature model trained with stochastic gradient descent (SGD). We consider the optimal schedule $η_T^\star(t)$ where $t$ is the current iterate and $T$ is the training horizon. This schedule is computed both as a numerical optimization problem and also analytically using optimal control theory. Our analysis reveals two regimes which we term the easy phase and hard phase. In the easy phase the optimal schedule is a polynomial decay $η_T^\star(t) \simeq T^{-ξ} (1-t/T)^δ$ where $ξ$ and $δ$ depend on the properties of the features and task. In the hard phase, the optimal schedule resembles warmup-stable-decay with constant initial LR and annealing performed over a vanishing fraction of training steps. We investigate joint optimization of LR and batch size and find batch ramps can improve the wall-clock time in the easy phase. Beyond SGD, we derive optimal schedules for momentum parameter $β(t)$ and show that it improves the loss-scaling exponent in the hard phase. We compare our optimal schedule to various benchmarks including (1) optimal constant learning rates $η_T(t) \sim T^{-ξ}$ (2) optimal power laws $η_T(t) \sim T^{-ξ} t^{-χ}$, finding that our schedule achieves better rates than either of these. Our theory suggests that LR transfer across training horizon depends on the structure of the model and task. For ResNet image classification on CIFAR-5M, the learning curves exhibit hard-phase behavior where optimal base LRs are constant under sufficient annealing. GPT-2 style transformers trained in language modeling exhibit easy-phase behavior where optimal LRs shift even under annealing.

cond-mat.dis-nn

Optimal switching strategies for navigation in stochastic settings

When navigating complex environments, animals often combine multiple strategies to mitigate the effects of external disturbances. These modalities often correspond to different sources of information, leading to speed-accuracy trade-offs. Inspired by the intermittent reorientation strategy seen in the behavior of the dung beetle, we consider the problem of the navigation strategy of a correlated random walker moving in two dimensions. We assume that the heading of the walker can be reoriented to the preferred direction by paying a fixed cost as it tries to maximize its total displacement in a fixed direction. Using optimal control theory, we derive analytically and confirm numerically the strategy that maximizes the walker's speed, and show that the average time between reorientations scales inversely with the magnitude of the environmental noise. We then extend our framework to describe execution errors and sensory acquisition noise. As a result, we provide a range of testable predictions and suggest new experimental directions. Our approach may be amenable to other navigation problems involving multiple sensory modalities that require switching between egocentric and geocentric strategies.

cond-mat.stat-mech

Analytic theory of dropout regularization

Dropout is a regularization technique widely used in training artificial neural networks to mitigate overfitting. It consists of dynamically deactivating subsets of the network during training to promote more robust representations. Despite its widespread adoption, dropout probabilities are often selected heuristically, and theoretical explanations of its success remain sparse. Here, we analytically study dropout in two-layer neural networks trained with online stochastic gradient descent. In the high-dimensional limit, we derive a set of ordinary differential equations that fully characterize the evolution of the network during training and capture the effects of dropout. We obtain a number of exact results describing the generalization error and the optimal dropout probability at short, intermediate, and long training times. Our analysis shows that dropout reduces detrimental correlations between hidden nodes, mitigates the impact of label noise, and that the optimal dropout probability increases with the level of noise in the data. Our results are validated by extensive numerical simulations.

stat.ML

Cosmic-ray transport in inhomogeneous media

A theory of cosmic-ray transport in multi-phase diffusive media is developed, with the specific application to cases in which the cosmic-ray diffusion coefficient has large spatial fluctuations that may be inherently multi-scale. We demonstrate that the resulting transport of cosmic rays is diffusive in the long-time limit, with an average diffusion coefficient equal to the harmonic mean of the spatially varying diffusion coefficient. Thus, cosmic-ray transport is dominated by areas of low diffusion even if these areas occupy a relatively small, but not infinitesimal, fraction of the volume. On intermediate time scales, the cosmic rays experience transient effective sub-diffusion, as a result of low-diffusion regions interrupting long flights through high-diffusion regions. In the simplified case of a two-phase medium, we show that the extent and extremity of the sub-diffusivity of cosmic-ray transport is controlled by the spectral exponent of the distribution of patch sizes of each of the phases. We finally show that, despite strongly influencing the confinement times, the multi-phase medium is only capable of altering the energy dependence of cosmic-ray transport when there is a moderate (but not excessive) level of perpendicular diffusion across magnetic-field lines.

astro-ph.HE

A statistical physics framework for optimal learning

Learning is a complex dynamical process shaped by a range of interconnected decisions. Careful design of hyperparameter schedules for artificial neural networks or efficient allocation of cognitive resources by biological learners can dramatically affect performance. Yet, theoretical understanding of optimal learning strategies remains sparse, especially due to the intricate interplay between evolving metaparameters and nonlinear learning dynamics. The search for optimal protocols is further hindered by the high dimensionality of the learning space, often resulting in predominantly heuristic, difficult to interpret, and computationally demanding solutions. Here, we combine statistical physics with control theory in a unified theoretical framework to identify optimal learning protocols in prototypical neural network models. In the high-dimensional limit, we derive closed-form ordinary differential equations that track online stochastic gradient descent through low-dimensional order parameters. We formulate the design of learning protocols as an optimal control problem directly on the dynamics of the order parameters with the goal of minimizing the generalization error. This formulation encompasses a variety of learning scenarios, optimization constraints, and control budgets. We apply it to representative cases, including optimal curricula, adaptive dropout regularization and noise schedules in denoising autoencoders. We find nontrivial yet interpretable strategies highlighting how optimal protocols mediate learning trade-offs. Our results establish a principled foundation for understanding and designing optimal protocols and suggest a path toward a theory of meta-learning grounded in statistical physics.

cond-mat.dis-nn

Optimal Protocols for Continual Learning via Statistical Physics and Control Theory

Artificial neural networks often struggle with catastrophic forgetting when learning multiple tasks sequentially, as training on new tasks degrades the performance on previously learned tasks. Recent theoretical work has addressed this issue by analysing learning curves in synthetic frameworks under predefined training protocols. However, these protocols relied on heuristics and lacked a solid theoretical foundation assessing their optimality. In this paper, we fill this gap by combining exact equations for training dynamics, derived using statistical physics techniques, with optimal control methods. We apply this approach to teacher-student models for continual learning and multi-task problems, obtaining a theory for task-selection protocols maximising performance while minimising forgetting. Our theoretical analysis offers non-trivial yet interpretable strategies for mitigating catastrophic forgetting, shedding light on how optimal learning protocols modulate established effects, such as the influence of task similarity on forgetting. Finally, we validate our theoretical findings with experiments on real-world data.

cs.LG

Thermodynamic cost of finite-time stochastic resetting

Recent experiments have implemented resetting by means of an external trap, whereby a system relaxes to the minimum of the trap and is reset in a finite time. In this work, we set up and analyse the thermodynamics of such a protocol. We present a general framework, even valid for non-Poissonian resetting, that captures the thermodynamic work required to maintain a resetting process up to a given observation time, and exactly calculate the moment generating function of this work. Our framework is valid for a wide range of systems, the only assumption being relaxation to equilibrium in the resetting trap. Examples and extensions are considered. In the case of Brownian motion, we investigate optimal resetting schemes that minimise work and its fluctuations, the mean work for arbitrary switching protocols and comparisons to previously studied resetting schemes. Numerical simulations are performed to validate our findings.

cond-mat.stat-mech

Cost of excursions until first crossing of the origin for random walks and Lévy flights: an exact general formula

We consider a discrete-time random walk on a line starting at $x_0\geq 0$ where a cost is incurred at each jump. We obtain an exact analytical formula for the distribution of the total cost of a trajectory until the process crosses the origin for the first time. The formula is valid for arbitrary jump distribution and cost function (heavy- and light-tailed alike), provided they are symmetric and continuous. We analyze the formula in different scaling regimes, and find a high degree of universality with respect to the details of the jump distribution and the cost function. Applications are given to the motion of an active run-and-tumble particle in one dimension and extensions to multiple cost variables are considered. The analytical results are in perfect agreement with numerical simulations.

cond-mat.stat-mech

The dynamics of accretion flows near to the innermost stable circular orbit

Accretion flows are fundamentally turbulent systems, yet are classically modelled with viscous theories only valid on length scales significantly greater than the typical size of turbulent eddies in the flow. We demonstrate that, while this will be a reasonable bulk description of the flow at large radii, this must break down as the flow approaches absorbing boundaries, such as the innermost stable circular orbit (ISCO) of a black hole disc. This is because in a turbulent flow large velocity fluctuations can carry a fluid element over the ISCO from a finite distance away, from which it will not return, a process without analogy in conventional models. This introduces a non-zero directional bias into the velocity fluctuations in the near-ISCO disc. By studying reduced random walk problems, we derive a number of implications of the presence of an absorbing boundary in an accretion context. In particular, we show that the average velocity with which a typical fluid element crosses the ISCO is much larger than is assumed in traditional theories. This enhanced velocity modifies the thermodynamic properties of black hole accretion flows on both sides of the ISCO. In particular, thermodynamic quantities for larger ISCO stresses no longer display pronounced cusps at the ISCO in this new formalism, a result with relevance for a number of observational probes of the intra-ISCO region. Finally, we demonstrate that these extended models reproduce the trans-ISCO behaviour observed in GRMHD simulations of thin discs.

astro-ph.HE

Nonlinear-Cost Random Walk: exact statistics of the distance covered for fixed budget

We consider the Nonlinear-Cost Random Walk model in discrete time introduced in [Phys. Rev. Lett. 130, 237102 (2023)], where a fee is charged for each jump of the walker. The nonlinear cost function is such that slow/short jumps incur a flat fee, while for fast/long jumps the cost is proportional to the distance covered. In this paper we compute analytically the average and variance of the distance covered in $n$ steps when the total budget $C$ is fixed, as well as the statistics of the number of long/short jumps in a trajectory of length $n$, for the exponential jump distribution. These observables exhibit a very rich and non-monotonic scaling behavior as a function of the variable $C/n$, which is traced back to the makeup of a typical trajectory in terms of long/short jumps, and the resulting "entropy" thereof. As a byproduct, we compute the asymptotic behavior of ratios of Kummer hypergeometric functions when both the first and last arguments are large. All our analytical results are corroborated by numerical simulations.

cond-mat.stat-mech

Viscoelastic confinement induces periodic flow reversals in active nematics

We use linear stability analysis and hybrid lattice Boltzmann simulations to study the dynamical behaviour of an active nematic confined in a channel made of viscoelastic material. We find that the quiescent, ordered active nematic is unstable above a critical activity. The transition is to a steady flow state for high elasticity of the channel surroundings. However, below a threshold elastic modulus, the system produces spontaneous oscillations with periodic flow reversals. We provide a phase diagram that highlights the region where time-periodic oscillations are observed and explain how they are produced by the interplay of activity and viscoelasticity. Our results suggest new experiments to study the role of viscoelastic confinement in the spatio-temporal organization and control of active matter.

cond-mat.soft

Cost of diffusion: nonlinearity and giant fluctuations

We introduce a simple model of diffusive jump process where a fee is charged for each jump. The nonlinear cost function is such that slow jumps incur a flat fee, while for fast jumps the cost is proportional to the velocity of the jump. The model -- inspired by the way taxi meters work -- exhibits a very rich behavior. The cost for trajectories of equal length and equal duration exhibits giant fluctuations at a critical value of the scaled distance travelled. Furthermore, the full distribution of the cost until the target is reached exhibits an interesting ``freezing'' transition in the large-deviation regime. All the analytical results are corroborated by numerical simulations. Our results also apply to elastic systems near the depinning transition, when driven by a random force.

cond-mat.stat-mech

Resetting in Stochastic Optimal Control

``When in a difficult situation, it is sometimes better to give up and start all over again''. While this empirical truth has been regularly observed in a wide range of circumstances, quantifying the effectiveness of such a heuristic strategy remains an open challenge. In this paper, we combine the notions of optimal control and stochastic resetting to address this problem. The emerging analytical framework allows not only to measure the performance of a given restarting policy but also to obtain the optimal strategy for a wide class of dynamical systems. We apply our technique to a system with a final reward and show that the reward value must be larger than a critical threshold for resetting to be effective. Our approach, analogous to the celebrated Hamilton-Jacobi-Bellman paradigm, provides the basis for the investigation of realistic restarting strategies across disciplines. As an application, we show that the framework can be applied to an epidemic model to predict the optimal lockdown policy.

cond-mat.stat-mech

Current fluctuations in stochastically resetting particle systems

We consider a system of non-interacting particles on a line with initial positions distributed uniformly with density $ρ$ on the negative half-line. We consider two different models: (i) each particle performs independent Brownian motion with stochastic resetting to its initial position with rate $r$ and (ii) each particle performs run and tumble motion, and with rate $r$ its position gets reset to its initial value and simultaneously its velocity gets randomised. We study the effects of resetting on the distribution $P(Q,t)$ of the integrated particle current $Q$ up to time $t$ through the origin (from left to right). We study both the annealed and the quenched current distributions and in both cases, we find that resetting induces a stationary limiting distribution of the current at long times. However, we show that the approach to the stationary state of the current distribution in the annealed and the quenched cases are drastically different for both models. In the annealed case, the whole distribution $P_{\rm an}(Q,t)$ approaches its stationary limit uniformly for all $Q$. In contrast, the quenched distribution $P_{\rm qu}(Q,t)$ attains its stationary form for $Q Q_{\rm crit}(t)$. We show that $Q_{\rm crit}(t)$ increases linearly with $t$ for large $t$. On the scale where $Q \sim Q_{\rm crit}(t)$, we show that $P_{\rm qu}(Q,t)$ has an unusual large deviation form with a rate function that has a third-order phase transition at the critical point. We have computed the associated rate functions analytically for both models. Using an importance sampling method that allows to probe probabilities as tiny as $10^{-14000}$, we were able to compute numerically this non-analytic rate function for the resetting Brownian dynamics and found excellent agreement with our analytical prediction.

cond-mat.stat-mech

Entropy production of resetting processes

Stochastic systems that undergo random restarts to their initial state have been widely investigated in recent years, both theoretically and in experiments. Oftentimes, however, resetting to a fixed state is impossible due to thermal noise or other limitations. As a result, the system configuration after a resetting event is random. Here, we consider such a resetting protocol for an overdamped Brownian particle in a confining potential $V(x)$. We assume that the position of the particle is reset at a constant rate to a random location $x$, drawn from a distribution $p_R(x)$. To investigate the thermodynamic cost of resetting, we study the stochastic entropy production $S_{\rm Total}$. We derive a general expression for the average entropy production for any $V(x)$, and the full distribution $P(S_{\rm Total}|t)$ of the entropy production for $V(x)=0$. At late times, we show that this distribution assumes the large-deviation form $P(S_{\rm Total}|t)\sim \exp\left[-t^{2α-1}ϕ\left(\left(S_{\rm Total}-\langle S_{\rm Total}\rangle\right)/t^α\right)\right]$, with $1/2<α\leq 1$. We compute the rate function $ϕ(z)$ and the exponent $α$ for exponential and Gaussian resetting distributions. In the latter case, we find the anomalous exponent $α=2/3$ and show that $ϕ(z)$ has a first-order singularity at a critical value of $z$, corresponding to a real-space condensation transition.

cond-mat.stat-mech

Time to reach the maximum for a stationary stochastic process

We consider a one-dimensional stationary time series of fixed duration $T$. We investigate the time $t_{\rm m}$ at which the process reaches the global maximum within the time interval $[0,T]$. By using a path-decomposition technique, we compute the probability density function $P(t_{\rm m}|T)$ of $t_{\rm m}$ for several processes, that are either at equilibrium (such as the Ornstein-Uhlenbeck process) or out of equilibrium (such as Brownian motion with stochastic resetting). We show that for equilibrium processes the distribution of $P(t_{\rm m}|T)$ is always symmetric around the midpoint $t_{\rm m}=T/2$, as a consequence of the time-reversal symmetry. This property can be used to detect nonequilibrium fluctuations in stationary time series. Moreover, for a diffusive particle in a confining potential, we show that the scaled distribution $P(t_{\rm m}|T)$ becomes universal, i.e., independent of the details of the potential, at late times. This distribution $P(t_{\rm m}|T)$ becomes uniform in the "bulk" $1\ll t_{\rm m}\ll T$ and has a nontrivial universal shape in the "edge regimes" $t_{\rm m}\to0$ and $t_{\rm m} \to T$. Some of these results have been announced in a recent Letter [Europhys. Lett. {\bf 135}, 30003 (2021)].

cond-mat.stat-mech

Number of distinct sites visited by a resetting random walker

We investigate the number $V_p(n)$ of distinct sites visited by an $n$-step resetting random walker on a $d$-dimensional hypercubic lattice with resetting probability $p$. In the case $p=0$, we recover the well-known result that the average number of distinct sites grows for large $n$ as $\langle V_0(n)\rangle\sim n^{d/2}$ for $d<2$ and as $\langle V_0(n)\rangle\sim n$ for $d>2$. For $p>0$, we show that $\langle V_p(n)\rangle$ grows extremely slowly as $\sim \left[\log(n)\right]^d$. We observe that the recurrence-transience transition at $d=2$ for standard random walks (without resetting) disappears in the presence of resetting. In the limit $p\to 0$, we compute the exact crossover scaling function between the two regimes. In the one-dimensional case, we derive analytically the full distribution of $V_p(n)$ in the limit of large $n$. Moreover, for a one-dimensional random walker, we introduce a new observable, which we call imbalance, that measures how much the visited region is symmetric around the starting position. We analytically compute the full distribution of the imbalance both for $p=0$ and for $p>0$. Our theoretical results are verified by extensive numerical simulations.

cond-mat.stat-mech

First-order condensation transition in the position distribution of a run-and-tumble particle in one dimension

We consider a single run-and-tumble particle (RTP) moving in one dimension. We assume that the velocity of the particle is drawn independently at each tumbling from a zero-mean Gaussian distribution and that the run times are exponentially distributed. We investigate the probability distribution $P(X,N)$ of the position $X$ of the particle after $N$ runs, with $N\gg 1$. We show that in the regime $ X \sim N^{3/4}$ the distribution $P(X,N)$ has a large deviation form with a rate function characterized by a discontinuous derivative at the critical value $X=X_c>0$. The same is true for $X=-X_c$ due to the symmetry of $P(X,N)$. We show that this singularity corresponds to a first-order condensation transition: for $X>X_c$ a single large jump dominates the RTP trajectory. We consider the participation ratio of the single-run displacements as the order parameter of the system, showing that this quantity is discontinuous at $X=X_c$. Our results are supported by numerical simulations performed with a constrained Markov chain Monte Carlo algorithm.

cond-mat.stat-mech