Entropy Production and the Gravitational Origin of the Second Law


Abstract

We investigate the relation between gravitational dynamics and the second law of thermodynamics in a non-equilibrium framework. Extending Jacobson’s thermodynamic derivation of the Einstein equations, we introduce a stochastic geometric flow for the spacetime metric and define entropy production as the ratio between forward and time-reversed trajectories. We show that entropy production is governed by curvature and matter contributions, and that its vanishing selects configurations satisfying the Einstein field equations. Classical general relativity thus emerges as the reversible limit of an underlying stochastic geometro-dynamics, while the second law arises from its non-equilibrium evolution.

1 Introduction↩︎

The relation between gravitation and thermodynamics has long suggested the existence of a deeper underlying structure. A milestone in this direction was achieved by [1], who showed that the Einstein field equations can be derived from the first law of thermodynamics, \(\delta Q = T \delta S\), applied to local causal horizons, together with the assumption that entropy is proportional to the horizon area. In this framework, spacetime dynamics emerges as an equation of state, valid in local equilibrium. This result has motivated a broad line of research exploring the thermodynamic interpretation of gravitational dynamics [2].

This perspective raises a natural and fundamental question: what is the role of non-equilibrium thermodynamics in gravitational dynamics? In particular, while Jacobson’s construction relies on reversible transformations, physical systems generically evolve through irreversible processes characterized by entropy production. Understanding how such irreversibility is encoded in spacetime dynamics is essential for extending the thermodynamic interpretation of gravity beyond equilibrium. Stochastic formulations of field dynamics have a long history, notably in the context of stochastic quantization [3], [4].

Jacobson’s equilibrium construction was later extended to non-equilibrium spacetime thermodynamics, where an internal entropy-production term is associated with gravitational dissipation, horizon shear and tidal heating [5], [6]. This supports the view that irreversibility is not merely added to gravity, but may be intrinsically encoded in gravitational degrees of freedom. In parallel, the emergent-gravity perspective suggests that Einstein gravity itself may arise as a low-energy, hydrodynamic or collective phenomenon [7]. Our approach differs from these works by reversing the usual logic: rather than deriving gravity from thermodynamic assumptions, we derive entropy production from a stochastic geometric dynamics, with Einstein gravity identified as the reversible limit.

In this work, we address this question by introducing a stochastic extension of geometric evolution, based on a Ricci flow supplemented by multiplicative noise. The stochastic dynamics is interpreted as a non-equilibrium relaxation process for the metric, analogous to gradient flows in complex systems. Within this framework, we employ methods from stochastic thermodynamics [8] and express entropy production as the logarithmic ratio between forward and time-reversed trajectories in the space of metrics, following the Onsager-Machlup formalism [9].

This construction leads to three main results. First, we derive an explicit expression for entropy production in terms of geometric quantities, showing that it is governed by curvature and matter contributions. Second, we demonstrate that the condition of vanishing entropy production selects configurations satisfying the Einstein field equations, thereby identifying classical general relativity as the reversible limit of the stochastic dynamics. Third, we analyze the structure of entropy production away from equilibrium and show that it is associated with geometric fluctuations of the metric, providing a natural link between irreversibility and the dynamical evolution of spacetime geometry.

This approach provides a complementary viewpoint to the thermodynamic derivation of gravitational dynamics: rather than starting from thermodynamic principles to obtain the Einstein equations, we derive thermodynamic irreversibility from an underlying stochastic geometro-dynamics. In this sense, the second law of thermodynamics emerges as a consequence of the non-equilibrium relaxation of the gravitational field.

2 Stochastic geometric flow↩︎

We consider a stochastic extension of the Ricci flow for the spacetime metric, originally introduced in a geometric context [10] and later developed in relation to entropy functionals [11],

\[\label{eq:stochastic95ricci} \partial_s g_{\mu\nu}(x,s) = -2\Big(R_{\mu\nu} - \kappa \,R_{\mu\nu}^{T}\Big) + g_{\mu\nu}(x,s)\,\eta(x,s)\,,\tag{1}\] where \(s\) is a stochastic (thermodynamic) time parameter, \(R_{\mu\nu}\) is the Ricci tensor, \(R_{\mu\nu}^{T} = T_{\mu\nu} - \frac{1}{2}T g_{\mu\nu}\) encodes matter contributions, and \(\eta\) is a Gaussian noise with zero mean and correlator \[\langle \eta(x,s)\eta(x',s') \rangle = 2D\,\frac{\delta^4(x-x')}{\sqrt{-g}}\,\delta(s-s')\,.\]

This dynamics can be interpreted as a geometric relaxation process in the space of metrics, driven by curvature and stochastic fluctuations. Functional identities for Gaussian noise, such as the Novikov theorem [12], [13], play a key role in evaluating stochastic averages.

The stochastic evolution can equivalently be described in terms of a Fokker–Planck equation [14], [15]. The induced evolution of geometric quantities under the stochastic flow is discussed in Sec. 10 of the Appendix. The probability of a trajectory \(g_{\mu\nu}(s)\) is defined through the Onsager-Machlup functional [9], \[\label{eq:OM95action} P[g] \propto \exp\left[-S_{\mathrm{OM}}[g]\right]\,,\tag{2}\] where, to leading order in the diffusion coefficient \(D\), the action takes the schematic form \[S_{\mathrm{OM}}[g] = \frac{1}{64D} \int ds\, d^4x \sqrt{-g} \left[g^{\mu\nu} \left(\partial_s g_{\mu\nu} + 2R_{\mu\nu} + \dots \right)\right]^2\,.\] A derivation of the Onsager–Machlup functional from the stochastic dynamics, as well as the corresponding Fokker–Planck description and stationary distribution, are discussed in Sec. 11 of the Appendix.

3 Path-integral representation↩︎

The stochastic dynamics admits an equivalent path-integral representation. Introducing a functional delta enforcing the Langevin equation and integrating over the noise, the trajectory probability can be written as \[P[g] = \int \mathcal{D}\eta\, P[\eta]\, \delta\!\left[\partial_s g_{\mu\nu} + 2R_{\mu\nu} - g_{\mu\nu}\eta \right].\] Using a standard Martin–Siggia–Rose–Janssen–de Dominicis construction [16], [17], this can be recast as \[P[g] \propto \int \mathcal{D}g' \exp\left(-S_{\rm MSR}[g,g']\right),\] where \(g'_{\mu\nu}\) is an auxiliary response field. Integrating out \(g'_{\mu\nu}\) yields the Onsager–Machlup functional, \[\begin{align} &&S_{\rm OM} \sim \frac{1}{64D} \int ds\, d^4x \{\sqrt{-g} [g^{\mu\nu}(\partial_s g_{\mu\nu} + 2R_{\mu\nu}+\nonumber\\ &&+\frac{D}{V_{Pl.}}g_{\mu\nu})]^2+..\}\,, \end{align}\] with \(V_{Pl.}\) Planck size volume, up to terms that do not contribute to entropy production. Further details are provided in Sec. 13 of the Appendix.

4 Entropy production↩︎

Following stochastic thermodynamics [8], entropy production along a trajectory is defined as the logarithmic ratio between forward and time-reversed path probabilities, \[\label{eq:entropy95def} \Delta S = \ln \frac{P[g]}{P_R[g]}\,.\tag{3}\] In a fully consistent formulation, the trajectory probability contains both the dynamical Onsager–Machlup contribution and the probability weight induced by the Fokker-Planck evolution. Accordingly, the entropy variation of the Universe can be decomposed as \(\Delta S_{\rm U} = \Delta S_{\rm OM} + \Delta S_{\rm FP}\), where \(\Delta S_{\rm OM}\) arises from the stochastic action, while \(\Delta S_{\rm FP}\) accounts for the change in probability measure along the flow. Further details concerning the definition of entropy, time-reversal condition and the form of both actions can be found in Secs. 15-16 of the Appendix.

In the regime considered here, either near stationarity or at leading order in the weak-noise expansion, the Fokker–Planck contribution does not modify the antisymmetric part under time reversal that controls irreversibility. The entropy production is therefore governed by the Onsager–Machlup sector, yielding \[\label{eq:entropy95general} \Delta S_{\rm OM} \propto \left\langle \int ds \int d^4x \sqrt{-g}\, g^{\mu\nu}(\partial_s g_{\mu\nu}) \left( R + \mathcal{O}(D) \right) \right\rangle\,.\tag{4}\]

Using \(\partial_s \sqrt{-g} = \frac{1}{2}\sqrt{-g}\, g^{\mu\nu}\partial_s g_{\mu\nu}\), this expression can be rewritten in geometric form, \[\label{eq:entropy95compact} \Delta S_{\rm OM} =\frac{-1}{4D} \left\langle \int ds \int d^4x \, \partial_s(\sqrt{-g})\, R \right\rangle +\mathcal{O}(D)\,.\tag{5}\]

This structure makes explicit that entropy production is governed by the coupling between metric flow and curvature. The positivity of entropy production follows from standard fluctuation relations and Jensen’s inequality, \(\langle e^{-\Delta S}\rangle=1 \Rightarrow \langle \Delta S\rangle \ge 0\), ensuring consistency with the second law — see the relevant sections of the Appendix.

5 Einstein equations as reversible limit↩︎

The rate of entropy production follows from Eq.@eq:eq:entropy95compact as \[\label{eq:entropy95rate} \frac{\delta S_{\rm Un.}}{\delta s} = \int d^4x \sqrt{-g}\, \mathcal{F}(g_{\mu\nu},T_{\mu\nu})\,,\tag{6}\] where, to leading order, \(\mathcal{F} \propto g^{\mu\nu} \left( R_{\mu\nu} - \kappa\,R_{\mu\nu}^{T} - \Lambda g_{\mu\nu} \right)\).

A central result of this work is that the condition of vanishing entropy production, \[\label{eq:reversible95condition} \frac{\delta S}{\delta s} = 0\,,\tag{7}\] selects configurations satisfying \(R_{\mu\nu} - \frac{1}{2}R g_{\mu\nu} + \Lambda g_{\mu\nu} = \kappa \,T_{\mu\nu}\), namely the Einstein field equations.

This establishes that classical general relativity corresponds to the reversible sector of the stochastic geometric dynamics, while deviations from Einstein solutions are associated with entropy production and thus with irreversible processes.

Combining the entropy due to the Onsager–Machlup action and the one that is derived from the Fokker-Planck equation, we finally find that \[\begin{align} \label{V3:entropy-production} &&\frac{\delta S_{\rm U}}{\delta s}\propto-\left \langle\int d^4x \frac{\partial_s \sqrt{-g}}{V_{\rm Pl. }} \right \rangle= \nonumber \\ && =\left \langle \int d^4x \sqrt{-g} \frac{1}{2V_{\rm Pl.}}g^{\mu\nu}(2(R_{\mu\nu}-kR_{\mu\nu}^T)-\Lambda g_{\mu\nu}\right \rangle\,, \nonumber\\ \end{align}\tag{8}\] where \(\Lambda={D}/{V_{\rm Pl.}}\).

Thus, denoting with dot the thermal-time derivative, the Einstein equations (up to term \(D^{\frac{1}{2}}\)) imply that \(\dot{S}=0\), and that \(\dot{S}=0\) (and consequently \(TdS=\delta Q\)), implies the Einstein equations — performing a saddle point approximation, and requesting the conservation of the stress energy tensor and the stability of the reversible evolution.

6 Irreversibility and geometric flow↩︎

Away from equilibrium, Eq. 6 implies \[\frac{\delta S}{\delta s} \ge 0\,,\] which constrains the admissible geometric evolution. Introducing the local entropy production density \(\sigma(x,s) \equiv \frac{1}{\sqrt{-g}}\frac{\delta S}{\delta s}\), one finds, to leading order, \[\sigma \sim g^{\mu\nu}\partial_s g_{\mu\nu}\, R + \mathcal{O}(D)\,.\]

It is important to stress that the total entropy variation receives contributions from both the Fokker–Planck measure and the Onsager–Machlup functional, \(\Delta S = \Delta S_{\rm FP} + \Delta S_{\rm OM}\). In this decomposition, \(\Delta S_{\rm FP}\) corresponds to the change of probability density along the stochastic flow and can be interpreted, in the sense of Einstein fluctuation theory, as the entropy variation of the macroscopic (coarse-grained) system. Conversely, \(\Delta S_{\rm OM}\) arises from the dynamical path weight and encodes the entropy exchange with the underlying non-equilibrium degrees of freedom, playing the role of an effective environment contribution.

In the near-stationary regime considered here, the antisymmetric part governing irreversibility is dominated by the Onsager–Machlup contribution, while the Fokker–Planck term affects only subleading or boundary contributions.

Using the stochastic flow 1 , the Onsager–Machlup sector can be expressed in terms of deviations from the Einstein manifold. Defining \(X_{\mu\nu} \equiv R_{\mu\nu} - \kappa R_{\mu\nu}^{T} - \Lambda g_{\mu\nu}\), one finds \[\frac{\delta S_{\rm OM}}{\delta s} \sim \int d^4x \sqrt{-g}\, X_{\mu\nu} X^{\mu\nu} + \mathcal{O}(D),\] which is manifestly non-negative at leading order.

This shows that entropy production measures the distance from the Einstein sector in configuration space, while the positivity of the total entropy production is ensured by the combined contribution of \(\Delta S_{\rm FP}\) and \(\Delta S_{\rm OM}\), consistently with Jensen’s inequality and fluctuation relations.

At trace level, projecting onto scalar degrees of freedom, one obtains the behavior \[\label{eq:entropy95curvature} \frac{\delta S}{\delta s} \propto \int d^4x \sqrt{-g}\, \left( R + kT \right),\tag{9}\] where \(T = g^{\mu\nu}T_{\mu\nu}\). The derivation of this projection is detailed in Sec. 15 of the Appendix.

This structure mirrors the standard non-equilibrium form \(\dot{S}=\int J\cdot X\), where the metric flow plays the role of a generalized flux, \(J_{\mu\nu} \sim \partial_s g_{\mu\nu}\), and curvature defines the thermodynamic force, \[X^{\mu\nu} \sim R^{\mu\nu} - \kappa R_T^{\mu\nu} - \Lambda g^{\mu\nu}.\] The entropy production therefore measures the distance from the Einstein manifold in configuration space. The second law emerges as a geometric selection principle: stochastic evolution drives the system toward configurations that minimize this distance, identifying Einstein geometries as fixed points of the flow.

As shown in Sec. 19 of the Appendix, the expression for the entropy of the universe that appears in Eq. 8 is equivalent to the Smarr formula and gives naturally rise, for reversible transformation, to the Komar mass.

Figure 1: Conceptual structure of the framework. A stochastic geometric flow defines path probabilities for metric configurations. Entropy production, defined as the ratio between forward and time-reversed trajectories, induces a curvature-driven functional. The vanishing of entropy production selects the Einstein equations as the reversible limit, while positive entropy production yields the second law.

7 Discussion↩︎

The framework developed in this work provides a unified perspective on gravitational dynamics and thermodynamic irreversibility. By formulating a stochastic extension of geometric evolution, we have shown that entropy production can be expressed directly in terms of curvature and matter contributions, and that the Einstein field equations emerge as the condition of vanishing entropy production. The relation between the stochastic flow parameter and thermodynamic quantities is further discussed in Sec. 16 of the Appendix.

A central implication of this result is that classical general relativity can be interpreted as the reversible sector of a more general stochastic geometro-dynamics. In this picture, spacetime configurations evolve in a space of metrics under a flow driven by curvature, while stochastic fluctuations induce deviations from equilibrium. The second law of thermodynamics then arises as a constraint on this evolution, requiring that entropy production be non-negative along admissible trajectories.

This interpretation suggests a natural analogy with gradient flow systems, in which the dynamics is governed by a functional whose stationary points correspond to equilibrium configurations. In the present context, the entropy functional plays this role, with Einstein geometries corresponding to stationary points. The stochastic contributions drive the system toward these configurations while generating irreversible effects away from equilibrium.

Beyond equilibrium, entropy production is controlled by curvature invariants and matter sources, indicating that irreversibility is intrinsically encoded in the geometric structure of spacetime. This provides a geometric realization of the second law, in which entropy production is not imposed as an external principle but emerges from the underlying dynamics of the gravitational field.

An intriguing consequence of this framework is that non-equilibrium evolution may be associated with fluctuations of geometric quantities that are suppressed in the classical limit. While the present analysis focuses on the leading-order stochastic dynamics, it opens the possibility that higher-order effects could encode more refined geometric or topological information. In particular, stochastic fluctuations may provide a mechanism through which spacetime explores nearby configurations in the space of geometries, potentially giving rise to effective coarse-grained descriptions.

It is important to emphasize that the stochastic time parameter \(s\) introduced in this work should be interpreted as a thermodynamic or flow parameter, rather than as physical time. This perspective is reminiscent of the thermal time hypothesis, in which time emerges from the statistical state of a system [18]. In this sense, the evolution described here is analogous to renormalization group flows or gradient descent dynamics, and the emergence of irreversibility should be understood within this extended framework.

Finally, the positivity of entropy in Eq. 8 provides a insightful instantiation of the arrow of time, which characterizes the evolution of non reversible processes.

8 Conclusions↩︎

Several directions for future investigation naturally arise. A first important question concerns the microscopic origin of the stochastic noise and its possible relation to quantum gravitational degrees of freedom. A second direction is the extension of the present formalism to include more general matter sectors and interactions. Finally, it would be interesting to explore possible observational or phenomenological consequences of non-equilibrium geometric dynamics, particularly in regimes where deviations from classical general relativity may become significant.

Overall, the results presented here suggest that thermodynamic irreversibility and gravitational dynamics are deeply intertwined, and that the second law of thermodynamics may be understood as a manifestation of the non-equilibrium evolution of spacetime geometry. In this direction, they resonate with broader ideas relating gravity and thermodynamics [2], [19].

9 General remarks and conventions↩︎

In this Appendix we summarize the technical steps underlying the main text. Our aim is not to provide a mathematically complete construction of stochastic gravity as a rigorous measure-theoretic theory, but rather to establish the field-theoretic structure required for the entropy-production arguments used in the Letter.

Throughout, \(s\) denotes the stochastic or thermodynamic time parameter, distinct from physical time. We consider metric trajectories \(g_{\mu\nu}(x,s)\) governed by a stochastic geometric flow. For definiteness, we work in the Stratonovich prescription for multiplicative noise, since it preserves the ordinary chain rule and is therefore the natural choice for geometric stochastic differential equations [14], [15]. Whenever needed, the corresponding Itô form can be obtained by the usual drift renormalization.

In the main text we mostly focus on the vacuum-plus-matter stochastic flow \[\partial_s g_{\mu\nu} = -2\Big(R_{\mu\nu}-\kappa R_{\mu\nu}^{T}\Big) + g_{\mu\nu}\eta, \label{SM:general95flow}\tag{10}\] with \[R_{\mu\nu}^{T}=T_{\mu\nu}-\frac{1}{2}T g_{\mu\nu}, \qquad T=g^{\mu\nu}T_{\mu\nu}.\] In several intermediate derivations it is sufficient to set \(T_{\mu\nu}=0\) and restore the matter sector at the end by the replacement \[R_{\mu\nu}\longrightarrow R_{\mu\nu}-\kappa R_{\mu\nu}^{T}.\]

We further assume either compact manifolds without boundary or boundary conditions such that total divergences do not contribute. This is sufficient for the local and trace-level results used in the Letter. A more complete treatment with explicit Gibbons–Hawking–York boundary terms would modify only the boundary contribution in the passages related to the calculation of the entropy, but in general not the final form of the entropy. Further details will be provided in the next sections.

10 Evolution of geometric quantities with multiplicative noise↩︎

Starting from the stochastic Ricci flow \[\partial_s g_{\mu\nu} = -2R_{\mu\nu} + g_{\mu\nu}\eta, \label{SM:ricci95flow}\tag{11}\] We may neglect the contributions of the fluctuations provided by matter fields entering the stress energy tensor.
We may provide an intuitive argument about the validity of this approximation. Taking into account a field \(\phi^a\) that is subject to the stochastic evolution \[\begin{align} \label{SM:Langevin95phi} \partial_s \phi^a=F^a+\alpha\xi^a\,, \end{align}\tag{12}\] we may consider the related stochastic Ricci flow and expanding the Ricci target \[\begin{align} &&\partial_s g_{\mu\nu}=-2R_{\mu\nu}+2kR_{\mu\nu}^T(g,\phi)+g_{\mu\nu}\eta=\nonumber\\ &&=-2R_{\mu\nu}+2kR_{\mu\nu}^T(g,\phi)|_{\phi_0}+2k\frac{\delta R_{\mu\nu}^T}{\delta \phi^a}(\phi^a-\phi^a_0)+\nonumber\\ &&+O(\alpha^2)+g_{\mu\nu}\eta \,, \end{align}\] where \(\phi_0\) is the solution to the Langevin equation Eq. 12 for vanishing noise \(\xi^a\) — in order to explicit the noise contribution from the matter sector to the geometric gradient flow, we made use of the previous expansion.
Thus, the difference \(\phi-\phi_0\) is proportional to the amplitude of the stochastic fluctuation \(\alpha\xi^a\). If we consider \[\frac{\delta R_{\mu\nu}^T}{\delta \phi^a}\alpha\xi^a<\! \!<g_{\mu\nu}\eta\,,\] which is reasonable for classical objects or in low density states in which vacuum fluctuations dominates over the matter ones, we can neglect contributions due to \(\xi^a\).
To assess properly the effectiveness of our approach, we have to demonstrate that the Langevin equation that we provided indeed manages to reproduce results of standard general relativity. Neglecting the stochastic fluctuations of the matter content, this turns out to be a completely reasonable approximation for our purposes. Nonetheless, a more complete treatment would involve a system of coupled Langevin equations for both matter fields and the metric tensor.
We may now study the induced evolution of the Levi-Civita connection and curvature.

The Christoffel symbols are \[\Gamma^\lambda_{\mu\nu} = \frac{1}{2}g^{\lambda\alpha} \left( \partial_\mu g_{\alpha\nu} + \partial_\nu g_{\alpha\mu} - \partial_\alpha g_{\mu\nu} \right).\] Differentiating with respect to \(s\) gives \[\begin{align} \partial_s\Gamma^\lambda_{\mu\nu} =&& \frac{1}{2}\,\partial_s g^{\lambda\alpha} \left( \partial_\mu g_{\alpha\nu} + \partial_\nu g_{\alpha\mu} - \partial_\alpha g_{\mu\nu} \right)+ \\ &&+ \frac{1}{2}g^{\lambda\alpha} \left( \partial_\mu \partial_s g_{\alpha\nu} + \partial_\nu \partial_s g_{\alpha\mu} - \partial_\alpha \partial_s g_{\mu\nu} \right). \nonumber \end{align}\]

Working in a locally inertial frame at a given point, where \(\partial_\rho g_{\mu\nu}=0\), the first term vanishes at that point and one finds \[\partial_s\Gamma^\lambda_{\mu\nu} = \frac{1}{2}g^{\lambda\alpha} \left( \partial_\mu \partial_s g_{\alpha\nu} + \partial_\nu \partial_s g_{\alpha\mu} - \partial_\alpha \partial_s g_{\mu\nu} \right).\] Substituting Eq. 11 , we can write \[\begin{align} \partial_s\Gamma^\lambda_{\mu\nu} &= -g^{\lambda\alpha} \left( \partial_\mu R_{\alpha\nu} + \partial_\nu R_{\alpha\mu} - \partial_\alpha R_{\mu\nu} \right)+ \nonumber\\ &\quad + \frac{1}{2}g^{\lambda\alpha} \left( \partial_\mu(g_{\alpha\nu}\eta) + \partial_\nu(g_{\alpha\mu}\eta) - \partial_\alpha(g_{\mu\nu}\eta) \right). \end{align}\] Restoring covariance, we find \[\begin{align} \partial_s\Gamma^\lambda_{\mu\nu} &= -g^{\lambda\alpha} \left( \nabla_\mu R_{\alpha\nu} + \nabla_\nu R_{\alpha\mu} - \nabla_\alpha R_{\mu\nu} \right) +\mathcal{N}^\lambda_{\mu\nu}, \label{SM:gamma95evolution} \end{align}\tag{13}\] with noise contribution \[\mathcal{N}^\lambda_{\mu\nu} = \frac{1}{2} \left( \delta^\lambda_{\nu}\nabla_\mu\eta + \delta^\lambda_{\mu}\nabla_\nu\eta - g_{\mu\nu}\nabla^\lambda\eta \right).\]

The Riemann tensor evolves as \[\partial_s R^\lambda{}_{\mu\nu\rho} = \nabla_\nu (\partial_s\Gamma^\lambda_{\mu\rho}) - \nabla_\rho (\partial_s\Gamma^\lambda_{\mu\nu}), \label{SM:riemann95evolution}\tag{14}\] which makes explicit that curvature evolution is controlled by Ricci flow plus derivatives of the noise.

Contracting indices yields the Ricci tensor evolution, \[\begin{align} \partial_s R_{\mu\nu} = \Delta_L R_{\mu\nu} &&+ \text{quadratic curvature terms} \nonumber \\ &&+ \text{noise-gradient terms}, \end{align}\] where \(\Delta_L\) denotes the Lichnerowicz Laplacian. At trace level one recovers \[\partial_s R = \Delta R + 2R_{\mu\nu}R^{\mu\nu} + \text{noise corrections}. \label{SM:R95evolution95schematic}\tag{15}\] Equation 15 is the only ingredient needed for the entropy-density evolution used below.

11 Fokker–Planck equation and stationary distribution↩︎

The stochastic flow 11 may be written in Langevin form [14], [15] \[d g_{\mu\nu} = -2R_{\mu\nu}\, ds + g_{\mu\nu}\circ dW, \label{SM:langevin}\tag{16}\] where \(\circ\) denotes Stratonovich multiplication and \[\langle dW(x,s)dW(x',s')\rangle = 2D\,\frac{\delta^4(x-x')}{\sqrt{-g}}\,\delta(s-s')\,ds\,ds'.\]

The corresponding Fokker–Planck equation for the probability functional \(P[g,s]\) acquires the form, using the Stratonovich prescription, \[\partial_s P[g,s] = -\frac{\delta}{\delta g_{\mu\nu}} \left(F_{\mu\nu}P\right) + D\frac{\delta}{\delta g_{\mu\nu}} \left( g_{\mu\nu} \frac{\delta g_{\alpha\beta}(x) P}{\delta g_{\alpha\beta}(x)} \right), \label{SM:FP95equation}\tag{17}\] where \[F'_{\mu\nu}=-2R_{\mu\nu}.\]

A more covariant treatment would include the DeWitt supermetric and associated functional measure factors. Since the Letter only uses the trace-level stationary structure, the simplified form 17 is sufficient. In particular, it correctly captures the competition between deterministic Ricci drift and multiplicative diffusion.

The stationary condition \(\partial_s P=0\) implies \[\frac{\delta}{\delta g_{\mu\nu}} \left(F_{\mu\nu}P\right) = D\frac{\delta}{\delta g_{\mu\nu}} \left((Bg_{\mu\nu}) P+ g_{\mu\nu}g_{\alpha\beta} \frac{\delta P}{\delta g_{\alpha\beta}} \right)\,,\] with \(B^{\mu\nu}\,_{\rho\sigma}=\mathbf{1}^{\mu\nu}\,_{\rho\sigma}\) (with \(\mathbf{1}^{cd}_{ab}=\frac{1}{2}(\delta^c_a\delta^d_b+\delta^c_b\delta^d_a)\).

At leading order this is solved by \[P[g]\propto \exp\left[ -\frac{1}{2D}S_{\rm EH}[g] +\frac{B}{2}\int d^4x\,\sqrt{-g}\,\delta(0) \right], \label{SM:stationary}\tag{18}\] where \(S_{\rm EH}\) is the Einstein–Hilbert action. The \(\delta(0)=\delta^4(0)/\sqrt{-g}\) term is the standard local contribution associated with coincident functional contractions and may be interpreted as a volume-density counterterm. In a local inertial frame we can indeed consider it as the inverse of the Planck volume \(V_{\rm Pl}\). Since the expression is covariant, the identification holds in any reference frame. This does not affect the antisymmetric time-reversal sector that controls entropy production.

Thus the stationary distribution is controlled by the same functional that defines classical general relativity. This is the first signal that Einstein configurations play the role of equilibrium configurations of the stochastic dynamics.

12 Noise distribution↩︎

The Gaussian noise is taken to have probability distribution \[P[\eta]\propto \exp\left[ -\frac{1}{4D}\int d^4x\,ds\,\sqrt{-g}\,\eta^2 \right], \label{SM:noise95dist}\tag{19}\] which yields \[\langle \eta(x,s)\eta(x',s')\rangle = 2D\,\frac{\delta^4(x-x')}{\sqrt{-g}}\,\delta(s-s'). \label{SM:noise95corr}\tag{20}\]

By the Wick’s theorem, higher connected correlators vanish identically for the Gaussian measure. This is precisely why the Novikov identity applies and why the stochastic corrections used in the Letter close at two-point level. In the weak-noise regime, higher-order nonlinear corrections arise only through the metric dependence of the multiplicative coupling, not from non-Gaussian noise cumulants.
It is worth to notice that, in the distribution, the \(\sqrt{-g}\) depends on the noise — this is useful in the calculation of the path integral action. This does not affect the cumulants, since the contribution are of the order \(D^n\) with \(n>1\).
Since we will see that \(D\sim \Lambda V_{\rm Pl}\) (with \(\Lambda\) cosmological constant), we can neglect higher order contributions.

13 Path integral and Onsager–Machlup functional↩︎

The probability of a metric trajectory may be written as \[P[g] = \int D\eta\,P[\eta]\, \delta\!\left[ \partial_s g_{\mu\nu}+2R_{\mu\nu}-g_{\mu\nu}\eta \right]\det[\frac{\delta \mathcal{E}_{\mu\nu}}{\delta g_{\alpha\beta}}]. \label{SM:pathprob}\tag{21}\] with \[\mathcal{E}_{\mu\nu} \equiv \partial_s g_{\mu\nu}+2R_{\mu\nu}-g_{\mu\nu}\eta,\] Using a functional Fourier representation of the delta functional, we recover \[\delta[\mathcal{E}_{\mu\nu}] \propto \int Dg'_{\mu\nu}\, \exp\left[ -\int ds\,d^4x\,\sqrt{-g}\, g'^{\mu\nu}\mathcal{E}_{\mu\nu} \right],\] one obtains the Martin–Siggia–Rose–Janssen–de Dominicis functional representation [16], [17] \[P[g]\propto \int Dg'\,\exp\left(-S_{\rm MSR}[g,g']\right).\]

Performing the Gaussian integral over \(\eta\) gives \[\begin{align} S_{\rm MSR}[g,g'] &\!=\!\! \int\! ds\,d^4x\,\sqrt{-g}\, g'^{\mu\nu}\!\left(\partial_s g_{\mu\nu}\!+ \!2R_{\mu\nu}\!+\!BD\frac{g_{\mu\nu}}{V_{\rm Pl}}\right) \nonumber\\ &\quad - D\int ds\,d^4x\,\sqrt{-g}\, \left(g'^{\mu\nu}g_{\mu\nu}\right)^2 +\cdots, \end{align}\] where the omitted terms arise from Jacobians, measure factors, and coincident-point regularization. These terms are even under time reversal and do not contribute to the antisymmetric sector of the action that defines entropy production.

Integrating out the response field \(g'_{\mu\nu}\) at saddle-point level yields the Onsager–Machlup functional [9] \[S_{\rm OM} = \int \frac{ ds\,d^4x\,}{64D}\sqrt{-g}\! \left[ g^{\mu\nu}\! \left( \partial_s g_{\mu\nu}+2R_{\mu\nu} +B'D\frac{g_{\mu\nu}}{V_{\rm Pl}} \right) \right]^2\!\!, \label{SM:OM95action}\tag{22}\] with \(B'\) constant term.
The key point for the Letter is that under time reversal \(s\rightarrow-s\), the terms even in \(\partial_s g_{\mu\nu}\) cancel in the ratio \(P[g]/P_R[g]\), while the cross-term linear in \(\partial_s g_{\mu\nu}\) survives and produces the entropy-production functional.

14 Novikov theorem and stochastic contractions↩︎

For Gaussian noise, the Novikov identity [12], [13] reads \[\langle \eta(x,s)F[g]\rangle = 2D \left\langle \frac{\delta F[g]}{\delta \eta(x,s)} \right\rangle. \label{SM:novikov95identity}\tag{23}\] Applying this to the metric gives \[\langle \eta\,g_{\mu\nu}\rangle = 2D \left\langle \frac{\delta g_{\mu\nu}}{\delta\eta} \right\rangle.\] In the Stratonovich prescription, causality implies [[20]][21]: \[\frac{\delta g_{\mu\nu}(x,s)}{\delta\eta(x',s')} = \frac{1}{2} g_{\mu\nu}(x,s)\, \frac{\delta^4(x-x')}{\sqrt{-g}}\, \delta(s-s') +\cdots,\] hence \[\label{SM:novikov32con32g} \langle \eta\,g_{\mu\nu}\rangle = D\,g_{\mu\nu} \frac{1}{V_{\rm Pl}} 1+O(D^2).\tag{24}\] This relation is sufficient for evaluating the leading stochastic correction to the entropy-production density.

15 Entropy production: full structure and positivity↩︎

Entropy production is defined as \[\Delta S = \ln\frac{P[g]}{P_R[g]}. \label{SM:entropy95def}\tag{25}\]

In a complete stochastic formulation, the trajectory probability contains both:

  • the Onsager–Machlup dynamical contribution,

  • the Fokker–Planck weight associated with the evolving probability measure.

In particular we have that: \[\begin{align} P[g]=P_0(g_0)P_{\rm OM}\{g_0|g\}\,,\\ P_R[g]=P(g_f)P_{\rm R}(g(s))\,, \end{align}\] where \(P_{\rm OM}\{g_0|g\}\) denotes the probability of a transition (calculated with the path integral) and \(P_{\rm R}(g(s))\) represents the same probability calculated under time reversal symmetry, which means \(g'(s)=g(t_f-s)\) for \(0\leq s \leq t_f\).
\(P[g_0]\) and \(P[g_f]\) are calculated from the FP equation since we suppose to start and end up at stationary states 1.
Accordingly, \[\Delta S = \Delta S_{\rm OM} + \Delta S_{\rm FP}.\]

It is immediate to recognize that the normalisation of the FP distribution cancels out. In fact, using a change of variable we have that \[\begin{align} \int Dg(t_0)\exp{-\frac{S[g({t_0})]}{2D}}=\int Dg(t_f)\exp{-\frac{S[g({t_f})]}{2D}}\,. \end{align}\] A bit more involved is the demonstration that the normalization drops out from the path integral expression. For simple cases one can show, adopting the Stratonovich prescription, that it factors out in the ratio between the path probability and its time reversal [22]. More in general, within the Crooks [23] approach, one can write the normalization as a free energy, finally factored out while considering the ratio.
We will generally assume that in the ratio the normalizations cancel out and we will neglect its contribution.

15.1 Onsager–Machlup contribution↩︎

Using the action 22 , the antisymmetric part under time reversal yields \[\Delta S_{\rm OM} \propto\textcolor{blue}{-} \int ds\,d^4x\,\sqrt{-g}\, g^{\mu\nu}\partial_s g_{\mu\nu}\left( \,2R +\frac{D}{V_{\rm Pl}}N\right)\,, \label{SM:entropy95from95OM}\tag{26}\] with N constant. Then, further manipulating, one finds

\[\begin{align} &&\Delta S_{OM}=-\frac{1}{8D}\int ds d^4x \partial_s\sqrt{-g}(2R+N\frac{D}{V_{Pl}})=\nonumber\\ &&=-\frac{1}{2D}\int d^4x \int ds \frac{\partial \sqrt{-g}}{\partial s}\frac{\partial (S_{EH}+\int d^4y\frac{N'D}{V_{\rm Pl}}\sqrt{-g})}{\partial \sqrt{-g}}=\nonumber\\ &&=-\frac{1}{2D}\Delta S_{EH}-\int d^4x \Delta \sqrt{-g}\frac{N'}{2V_{\rm Pl}} \,, \end{align}\] with \(S_{EH}=\int d^4y \sqrt{-g}R\).
In the previous formula we used the following two identities: \[\begin{align} &&\frac{\delta S_{EH}}{\delta \sqrt{-g}}=\frac{\delta g^{\mu\nu}}{\delta \sqrt{-g}}\frac{\delta S_{EH}}{\delta g^{\mu\nu}}=\frac{-g^{\mu\nu}}{2\sqrt{-g}}(R_{\mu\nu}-\frac{1}{2}g_{\mu\nu}R)=\frac{R}{2}\,,\nonumber\\ &&1=\frac{\delta \sqrt{-g}}{\delta \sqrt{-g}}=\frac{\delta g^{\mu\nu}}{\delta \sqrt{-g}}\frac{\delta \sqrt{-g}}{\delta g^{\mu\nu}}\xrightarrow[]{}\frac{\delta g^{\mu\nu}}{\delta \sqrt{-g}}=-\frac{g^{\mu\nu}}{2\sqrt{-g}}\,. \end{align}\] It is now clear that it will be straightforward to generalize this result to a non vacuum scenario, and to a case in which boundary terms are taken into account. In fact, their contribution will just change the action \(S_{EH}\), anyway vanishing in the calculation of the entropy of the Universe.

15.2 Fokker–Planck contribution↩︎

The Fokker–Planck term corresponds to the ratio of probability densities, \[\Delta S_{\rm FP} = -\ln P[g_f] + \ln P[g_i].\] Using the stationary distribution 18 , this contributes terms proportional to \[\Delta S_{\rm FP} \sim \frac{1}{2D}\Delta S_{\rm EH} -C\int d^4x \frac{\Delta \sqrt{-g}}{V_{\rm Pl}}.\]

In regimes close to stationarity or at leading order in \(D\), this contribution does not affect the antisymmetric part controlling entropy production, and can be consistently absorbed into boundary terms or normalization factors.

15.3 Geometric entropy production↩︎

Combining the two contributions and retaining leading-order antisymmetric terms yields for the entropy production in the Universe \[\label{SM:entropia32e32volume} \langle \Delta S_{\rm U}\rangle \propto -\Big \langle \int ds\,d^4x\, \Delta(\sqrt{-g} \,)\, \frac{1}{V_{\rm Pl}} \Big \rangle\,.\tag{27}\]

As we can see, the terms related to the drift disappear. It is then straightforward to show that this is a property of the Langevin equations endowed with a drift term that can be written as a derivative of another quantity.
We then obtain that \[\begin{align} &&\Big \langle\frac{\delta S_{\rm U}}{\delta s}\Big \rangle \propto \Big \langle \int d^4x \sqrt{-g}(R-2\eta(x,s)\Big \rangle =\nonumber\\ &&=\Big \langle \int d^4x \sqrt{-g}g^{\mu\nu}(R_{\mu\nu}-g_{\mu\nu}\Lambda)\Big \rangle\,, \end{align}\] where we used the results cited in Eq. 24 and defined \(\Lambda\propto \frac{D}{V_{\rm Pl}}\).
Therefore, since we have that \(D\sim \Lambda V_{\rm Pl}\), we can perform a saddle point approximation and neglect the \(\langle\, \cdot\, \rangle\), hence obtaining \[\begin{align} &&\Big \langle\frac{\delta S_{\rm U}}{\delta s}\Big \rangle=\Big \langle A\int d^4x \sqrt{-g}g^{\mu\nu}(R_{\mu\nu}-g_{\mu\nu}\Lambda)\Big \rangle=\nonumber\\ &&=A'\int d^4x \sqrt{-g}g^{\mu\nu}(R_{\mu\nu}-g_{\mu\nu}\Lambda)\,. \end{align}\] Inserting now also matter within the form of the Ricci target we obtain: \[\begin{align} \label{SM:entropy32production32con32Ricci32target} \Big \langle\frac{\delta S_{\rm U}}{\delta s}\Big \rangle=A'\int d^4x \sqrt{-g}g^{\mu\nu}(R_{\mu\nu}-R_{\mu\nu}^T-g_{\mu\nu}\Lambda) \end{align}\tag{28}\]

We can moreover rewrite the formula for the entropy of the Universe in Eq. 27 as it follows:
\[\begin{align} &&\langle\delta S_{\rm U}\rangle\propto-\Big\langle\frac{1}{V_{\rm Pl}} \delta V \Big\rangle\,, \end{align}\] with \(\delta V\) defined as \[\begin{align} \delta V=\int d^4x \delta(\sqrt{-g})=\int d^4x \sqrt{-g}\, \delta \ln \sqrt{-g}\,. \end{align}\]
The logarithmic formula can be interpreted as the gravitational analogous of Gibbs’ formula for the entropy.

15.4 Local entropy production and positivity↩︎

Defining \[S_{\rm OM} = \int d^4x\,\sqrt{-g}\,\sigma(x,s),\] one finds \[\partial_s \sigma = \frac{1}{4D}\Delta R + \frac{1}{2D}R_{\mu\nu}R^{\mu\nu} - \frac{1}{2} \left\langle \frac{\delta R}{\delta\eta} \right\rangle.\]

Near the Einstein sector it holds \[X_{\mu\nu} = R_{\mu\nu}-\kappa R_{\mu\nu}^T-\Lambda g_{\mu\nu},\] and the stochastic flow then implies \[\partial_s g_{\mu\nu} \sim -2X_{\mu\nu}.\] Hence, \[\frac{\delta S_{\rm OM}}{\delta s} \sim \int d^4x\,\sqrt{-g}\, X_{\mu\nu}X^{\mu\nu} +\mathcal{O}(D). \label{SM:positive95form}\tag{29}\]

This provides an explicit quadratic form ensuring positivity at leading order.

15.5 Jensen inequality and fluctuation relation↩︎

Independently of the approximation, entropy production satisfies the exact identity \[\left\langle e^{-\Delta S} \right\rangle = 1,\] which implies, by Jensen’s inequality, \[\langle \Delta S \rangle \ge 0.\]

Thus positivity is guaranteed both:

  • structurally (quadratic form near Einstein solutions);

  • statistically (fluctuation theorem).

16 Time–temperature relation↩︎

The stochastic parameter \(s\) should be interpreted as a thermodynamic flow parameter, not as physical time. A heuristic relation to temperature follows from the energy-time uncertainty relation, \[\Delta t\sim\frac{1}{\Delta E}\sim\frac{1}{T},\] hence \[\Delta t\propto \frac{1}{T}. \label{SM:thermal95time}\tag{30}\]

The latter relation is relevant for the thermodynamical interpretation that we will provide in the following section.
In order to calculate the thermodynamical quantities, including heat and entropy, we will need to take into account a time long enough to generate a sizable heat and entropy flow.
Calculating the average in time of the vacuum fluctuations that generate those quantities, we obtain \[\begin{align} \langle\Delta t\rangle\sim\Big\langle\frac{ 1 }{\Delta E}\Big\rangle\sim \frac{1}{T}\,, \end{align}\] with \(\langle\Delta t\rangle\) mean value of the time-extensions of the vacuum fluctuations — thus \(\langle F\rangle=\sum_{p_i} g(p_i) F_i\), with \(g(p_i)\) probability to create a particle \(p_i\) — and \(T\) temperature of the system.
We stress that Eq. 30 is not used as a dynamical input in the derivation of the main results. Rather, it provides an interpretive bridge between the stochastic flow parameter and thermodynamic time.

17 Recovering Jacobson’s formula↩︎

Requiring the transformation to be reversible (\(\dot{S}=0\)) implies, through Eq. 28 , the validity of the equations of motion for the trace. If we consider a transformation that remains reversible, regardless the size of the volume, we may then neglect the integral — while more complex processes would require more complicated procedures.
The condition for reversibility is in general \[\label{SM:Field32equation32con32A} G_{\mu\nu}+\Lambda g_{\mu\nu}-kT_{\mu\nu}=A_{\mu\nu}\,,\tag{31}\] with \(A_{\mu\nu}\) traceless tensor.
Thus, if the transformation is reversible, we find \[\partial_sg_{\mu\nu}=2(A_{\mu\nu}-\Lambda g_{\mu\nu})+g_{\mu\nu}\eta\,.\] In order to find the exact form of \(A_{\mu\nu}\), it is reasonable to suppose that the reversible transformation is at least as stable (and as simple) as the initial Ricci Flow equation, and therefore it does not contain derivative of the metric higher than the second order and it is, at maximum, linear in the second order derivatives.
Furthermore, the conservation of the stress-energy tensor implies through Eq. 31 that \(A_{\mu\nu}\) is divergence-less.
Combining these two observations with the property of symmetry of \(A_{\mu\nu}\), we can apply the Lovelock theorem [24] and find that \(A_{\mu\nu}\) has the form \[A_{\mu\nu}=AG_{\mu\nu}+Bg_{\mu\nu}\,,\] with \(A\) and \(B\) constants.
The traceless condition then provides \[g^{\mu\nu}A_{\mu\nu}=Ag^{\mu\nu}G_{\mu\nu}+4B=-AR+4B=0\,.\] Since \(R\) is not a constant, the only solution to the previous equation is \(A=B=0\).
Thus, if we require that the transformation is reversible (\(\delta S_{\rm U}=0\)) — together with the conservation of the energy and the requirement related to the stability — the Einstein equations must hold.
On the other side, the reversibility requirement implies that, for the system, the Clausius equation holds (\(T\delta S_{\rm S}=\delta Q\)).
Finally, we have shown the validity of Jacobson’s formulation, only relying on arguments of stochastic thermodynamics, and without using any specific ansatz about the area-law for the entropy.

18 Recovering the Komar mass and the Smarr formula↩︎

For simplicity, we have hitherto worked using a boundary-less manifold. This is a non-necessary hypothesis, since we can simply add the Gibbons-Hawking-York (GHY) boundary term [25], [26] to the action and obtain the same result. After a simple calculation, within the same framework and approach used previously, we obtain that the entropy production has the same form as in Eq. 28 .
We may show now that for a reversible transformation respecting the aforementioned hypotheses (i.e., transformations in which the Einstein equations hold), in a space with a timelike Killing vector (\(k^{\mu}\)), we can recast the metric in the form \[g_{\mu\nu}=-u_{\mu}u_{\nu}+h_{\mu\nu}\,,\] with \(u^{\mu}\) unit timelike vector. Hence, we can write \(k^\mu=u^{\mu}N\) — for simplicity, we have assumed a vanishing shift vector, i.e. \(\beta^i=0\), but in what follows we will consider the more general case \(\beta^i\neq0\) and observe that the results remain unchanged.
Denoting now with \(K_{ij}\) the extrinsic curvature tensor and with \(R^{(3)}\) the 3D Ricci scalar, we can recast the scalar Gauss equation [27] as \[\begin{align} \label{SM:scalar32Gauss} R=-2R_{\mu\nu}u^\mu u^\nu+R^{(3)}+K^2-K_{ij}K^{ij}\,. \end{align}\tag{32}\] Together with the Hamiltonian constraint [27] (neglecting the cosmological constant) \[\begin{align} \label{SM:scalar32constraint} R^{(3)}+K^2-K_{ij}K^{ij}=2k\rho\,, \end{align}\tag{33}\] we obtain \[\begin{align} R=-2R_{\mu\nu}u^\mu u^\nu+2k\rho\,, \end{align}\] with \(\rho=T_{\mu\nu}u^\mu u^\nu\) energy density.
Inserting the latter relation inside Eq. 28 — neglecting again the cosmological constant term — and writing \(g^{\mu\nu}T_{\mu\nu}=-\rho+S\), we obtain \[\begin{align} &&\frac{\delta S_{uni}}{\delta s}=\int d^4x 2A'\sqrt{-g}[u^{\mu}u^{\nu}(-2R_{\mu\nu})+2k\rho-k\rho+kS]\nonumber\\ &&=\int d^4x 2A'\sqrt{-g}[u^{\mu}u^{\nu}(-2R_{\mu\nu})+k\rho+kS]\nonumber=\\ &&=\int d^4x 4A'\sqrt{-g}[u^{\mu}u^{\nu}(-R_{\mu\nu})+\frac{k}{2}(\rho+S)]\nonumber=0\,. \end{align}\] Decomposing \(\sqrt{-g}=N\sqrt{h}\), we can then recast the latter relation as \[\label{SM:Komar} \frac{2}{k}\int d^3x \sqrt{h}R_{\mu\nu}k^{\mu}u^{\nu}=2\int d^3x \sqrt{h}k^{\mu}u^{\nu}(T_{\mu\nu}-\frac{1}{2}Tg_{\mu\nu})\,,\tag{34}\] where we exploited a timelike Killing vector while performing the integral over the time coordinate, and the fact — since \(u^\mu u^\nu g_{\mu\nu}=-1\) — that \[\begin{align} u^{\mu}u^{\nu}[T_{\mu\nu}-\frac{1}{2}g_{\mu\nu}T] =T_{00}+\frac{1}{2}(-\rho+S)=\frac{1}{2}(\rho+S)\,. \end{align}\] The term on the left hand-side of Eq. 34 is precisely the volume-integral definition of the Komar mass [28]. It has been demonstrated — see e.g. [28] — that this relation is equivalent to the Smarr formula for black holes [29]. Therefore, this finally proves that, as expected, the Smarr formula is just a particular case of the relation \(T\delta S=\delta Q\).
If the shift vector \(\beta^i\neq 0\), we obtain an additional term — since the timelike Killing vector \(k^\mu=u^\mu N+\beta^\nu\) [27] — namely \[\begin{align} -2R_{\mu\nu}u^\mu u^\nu N=-2R_{\mu\nu}u^\nu k^\mu+2R_{\mu\nu}u^\nu \beta^\mu\,. \end{align}\] If the transformation would have been assumed to be reversible — i.e. \(R_{\mu\nu}=T_{\mu\nu}-\frac{1}{2}g_{\mu\nu}T\) — because of \(g_{\mu\nu}u^\mu \beta^\nu=u_\nu \beta^\nu=0\) [27], we would have obtained \[\begin{align} &&-2R_{\mu\nu}u^\mu u^\nu N=-2R_{\mu\nu}u^\nu k^\mu+2T_{\mu\nu}u^\nu \beta^\mu=\nonumber\\ &&=-2R_{\mu\nu}u^\nu k^\mu-2p_\mu\beta^\mu\,, \end{align}\] with \(-p_\nu\beta^\nu=T_{\mu\beta}u^\mu h^{\beta}_\nu\beta^\nu=T_{\mu\beta}u^\mu(g^\beta_\nu+u^\beta u_\nu)\beta^\nu=T_{\mu\nu}u^\mu \beta^\nu\), as defined in [27].
In other words, this procedure would have provided the term \(-2p_\mu \beta^\mu\) that is present inside the definition of the Komar mass — see e.g. Ref. [27].
More in general, we can rewrite the entropy production — neglecting again the cosmological constant — according to \[\begin{align} \frac{\delta S}{\delta s}\propto \Big \langle\int d^4x \sqrt{-g}\, [R-\rho+P_{tot}]\Big \rangle\,, \end{align}\] where we have used the fact that the trace of the stress-energy tensor can be considered (for a shear-less fluid such as a perfect gas) as \(T=-\rho+P_{tot}\) — where \(\rho\) denotes the energy density and \(P_{tot}\) the total pressure generated by the matter content.
The relation between \(T\), \(\rho\) and \(P_{tot}\) presents a striking resemblance with the first principle of thermodynamics, since \[\begin{align} &&\rho dV=-TdV+P_{tot}dV\quad \quad \text{(Trace of T_{\mu\nu})}\\ &&dU=\delta Q-PdV\, \quad\qquad \quad\text{(First principle)} \end{align}\] where the signs for the work are different due to a different sign convention in the Smarr formula [28], [29]. This brings therefore tom the identification \[\begin{align} -TdV=\delta Q\,. \end{align}\] Thus \(T\) is directly linked to the heat exchange, which is in turn related to the matter content.
It is worth to notice that here the variation of the heat, \(\delta Q\), is considered with respect to the change in the volume, and not with respect to the “thermal time”, as considered for the entropy production in Eq. 28 . This allows us to identify \[\begin{align} \label{SM:T61Q} \Big\langle\int d^4x\sqrt{-g}\,\,T\Big \rangle\propto-\frac{1}{\tilde{T}}\frac{\delta Q_{\text{matter}}}{\delta s}\,, \end{align}\tag{35}\] with \(N\) lapse function and \(\tilde{T}\) temperature.
Once we have interpreted the trace of the stress-energy tensor as the heat exchange induced by the matter content, we can consider that \[\begin{align} \label{SM:R61Q43S} \Big \langle\int d^4x\sqrt{-g} R\, \Big\rangle\propto-\frac{1}{\tilde{T}}\frac{\delta Q_{\rm gravity}}{\delta s}+\frac{\delta S_{\rm gravity}}{\delta s}\,. \end{align}\tag{36}\] This identification allows us to regain the classic Clausius relation \(\tilde{T}\delta S\geq\delta Q\). Moreover it is consistent with what found through the Smarr formula [28], [29], as it will be recovered in the next section.
Furthermore, the identification in Eq. 36 seems to point out to the fact that \(\tau=\Delta t\) in the integral over \(d^4x\) is equal to \({\tilde{T}}^{-1}\). This has been already introduced in other approaches to thermodynamics — see e.g. [25] — and can be interpreted thanks to the intuitive argument presented in the previous section.
Therefore, considering the identification in Eq. 36 , we see that the Ricci scalar contains both the gravitational entropy of the system and the heat exchange due to the gravitational processes — as it can also be understood from the manipulation of the Komar mass in Eq. 34 that leads to the Smarr formula.

19 The positivity relation↩︎

From the relation stating the positivity of the entropy we can extract an inequality between the Ricci scalar and the stress-energy tensor.
First, we notice that the positivity of the entropy induces an arrow of time with respect to the expansion (or better the contraction) of the Universe. In fact from Eq. 27 we observe that \[\delta S\propto- \Big\langle\int d^4x \frac{1}{V_{\rm Pl}}\delta\sqrt{-g}\, \Big\rangle=- \Big \langle\frac{1}{V_{\rm Pl}}\delta V_{\rm manifold} \Big \rangle\,.\] We immediately infer that \[\label{SM:freccia32del32tempo} \delta S\geq0 \rightarrow\langle\delta V_{\rm manifold}\rangle\leq 0\,.\tag{37}\] From Eq. 37 we then recognize that a non-reversible transformation induces a contraction (with respect to the thermal time) of the space-time volume.
It is important to notice that this change in volume does not regard any change of the integration extremes, but solely the change of the \(\sqrt{-g}\) itself.
We may verify that Eq. 37 provides the right sign for the thermodynamical relation, once Eq. 32 , which implies that \(R^{(3)}+K^2-K_{ij}K^{ij}:=\mathcal{H}\), is plugged into Eq. 28 — having neglected for simplicity the cosmological constant and using (for simplicity) a spacetime with shift function \(\beta^i=0\) — namely \[\begin{align} \frac{\delta S}{\delta s}\propto \Big \langle\int d^4x \sqrt{-g}\, (-2R_{\mu\nu}u^\mu u^\nu+\mathcal{H})\Big \rangle\geq0 \,. \end{align}\] If we suppose that a timelike Killing vector \(k^\mu\) exists, require again for the sake of simplicity that \(\beta=0\), and perform the saddle-point expansion, we obtain — through a similar reasoning as the one explained in the previous section — that \[\begin{align} \int d^3x \sqrt{h}(-2R_{\mu\nu}u^\nu k^\mu)\geq -\int d^3x \sqrt{h}N(\mathcal{H})\,. \end{align}\]

Considering a manifold with two boundaries, one at infinity, \(\mathcal{S}\), and the other one on a Killing horizon \(\mathrm{H}\), and choosing the normal vector suitably, we can observe — see e.g. [28] — that the relation holds \[\begin{align} \int dV[-2R_{\mu\nu}u^\nu k^\mu]=\int_\mathcal{S} \alpha-\int_\mathrm{H} \alpha\,, \end{align}\] with \(\alpha_{ab}=\epsilon_{abcd}\nabla^ck^d\), as defined in [28].
The boundary term on \(\mathcal{S}\) can be then interpreted as \(-M\), total mass [28], while the boundary term on \(\mathrm{H}\) can be demonstrated [28] to be equal to \[\begin{align} -\int_\mathrm{H} \alpha=2\mathrm{k}A\,, \end{align}\] with \(\mathrm{k}\) surface gravity and \(A\) area of the horizon.
Therefore, combing all the previous relations, we obtain \[\begin{align} \label{SM:Clausius32gravitazionale} \frac{2}{8\pi}\mathrm{k}A=2TS\geq M-\int dVN \mathcal{H}:=Q_{gravity}\,, \end{align}\tag{38}\] where we interpreted \(M-\int dVN\mathcal{H}\) as \(U-W=Q\), with \(W\) work — with the sign convention for the work being the same one used in the Smarr formula — and \(Q\) heat. It then follows that the sign of the Clausius relation, \(TdS\geq \delta Q\), is recovered.
During a non-reversible transformation, if the generator of the horizon is not the timelike Killing vector (as in stead it happens for a Kerr black hole, for example), the previous formula will give rise to additional terms that are related to the work, such as \(\Omega_H J\), as demonstrated in [28].
We may now consider two thermal time values \(s\) and \(s_0\), where for \(s_0\) the equality in Eq. 38 holds. From Eq. 38 we then obtain \[\begin{align} \label{SM:vero32Clausius32grav} &&2T(s)S(s)=2T(s)S(s)-2T(s_0)S(s_0)+Q(s_0)\geq Q(s)\nonumber\\&&\longrightarrow\Delta^s_{s_0}(\frac{1}{4\pi}\mathrm{k}A)\geq \Delta^s_{s_0} Q \,. \end{align}\tag{39}\] The last inequality in Eq. 39 provides us with a more general property than Eq. 37 , since it takes into account also the variation of the extremes of the integral, instead of a simple variation of \(\sqrt{-g}\).
The form of the inequalities in Eq. 37 and Eq. 39 may open new cosmological scenarios that go beyond Friedmann cosmology. Indeed, the Friedmann equations work solely for reversible transformations, being a consequence of the Einstein equations.
Finally, Eq. 37 provides us with an insightful definition of the arrow of time that may also represents a solution to the frozen formalism problem. Indeed, the frozen formalism can only be a consequence of the Einstein equations, thus of reversible transformations. From Eq. 28 we finally recover, neglecting the cosmological constant, that \[\frac{\delta S}{\delta s}\propto\int Dx \, [R+kT]\, \geq 0\,.\] Since the latter relation holds for a generic volume, we can extrapolate the inequality \[\frac{\delta S}{\delta s}\geq0 \qquad \longrightarrow \qquad R\geq -kT\,,\] which provides a lower bound for the Ricci scalar.

20 An intuitive argument in favour of the Holographic principle↩︎

Let us consider again Eq. 36 . Since the thermal time has physical dimension of the square of a length, the variation of the entropy with respect to the thermal time can be recast, in natural units \(c=\hbar=G=k_B=1\), as \[\begin{align} {\frac{\delta {S}_{\rm gravity}}{\delta s}}\sim \frac{1}{V_{\rm Pl}}\int d^4x \sqrt{-g}\, R\,. \end{align}\] The Einstein equations arise from the equivalence between the derivatives in the thermal time of the heat and the entropy. Thus the Planck volume cancels, and only the integral is left, having the dimensions of an area.
An intuitive argument about the origin of the area-law is the following — for the sake of simplicity, we again assume the case \(\beta^i=0\).
We start from the standard conservation law for the entropy \[\begin{align} \label{SM:continuita95classica} \partial_t s=-\nabla\cdot J_s+\sigma\,, \end{align}\tag{40}\] with \(s\) entropy density, \(J_s\) entropy current and \(\sigma\) entropy production. Adapting it in our case, we can write \[\begin{align} \partial_s s=-\nabla_\mu J^\mu+\sigma\,. \end{align}\] Assuming now a spacetime with a timelike Killing vector, we obtain (writing the divergence explicitly) \[\begin{align} &&\partial_s s=-\frac{1}{\sqrt{-g}}\partial_0(\sqrt{-g}J^0)-\frac{1}{\sqrt{-g}}(\partial_i \sqrt{-g} J^i)+\sigma=\nonumber\\ &&=-\frac{1}{\sqrt{-g}}(\partial_i \sqrt{-g} J^i)+\sigma\,, \end{align}\] where in the last equality we used the fact that \(\partial_0(\sqrt{-g}J^0)=0\), the quantity being independent on time. Thus we find \[\begin{align} \partial_s s=-\frac{1}{\sqrt{-g}}(\partial_i \sqrt{-g} J^i)+\sigma\,, \end{align}\] which is the covariant version of the expression in Eq. 40 .
Elaborating on this parallelism, we integrate in space the term \(\nabla\cdot J\) and obtain the Newton’s law for cooling, stating that \[\begin{align} \int \,dV\, \nabla \cdot J_q=\int dA\, h\,\Delta T=h\,\Delta T\, A\,, \end{align}\] with \(A\) area of the boundary surface between the system and the environment, \(h\) the heat transfer coefficient and \(\Delta T\) the difference between the temperatures of the system and of the environment.
Recalling now that in absence of matter flow — a reasonable assumption for a static black hole, in vacuum — \(J_s=-\frac{J_q}{T}\) (with \(T\) temperature of the system 2) we obtain, integrating the classical expression, that \[\begin{align} \int dV \, \partial_t s=\int dV\, \frac{J_q}{T}+\int dV \, \sigma=\frac{A\, h\, \Delta T}{T}+\int dV \, \sigma\,. \end{align}\] Going back to the covariant expression, we find that \[\begin{align} &&\frac{\delta S_{\rm gravity}}{\delta s}-\frac{\delta Q}{T\delta s}=\int d^4x \sqrt{-g}\, \partial_s s \, \, -\frac{\delta Q}{T\delta s}=\nonumber\\ &&=\int d^4x \sqrt{-g}\nabla_i J^i_s+\int d^4x \sqrt{-g}\sigma -\frac{\delta Q}{T\delta s}\, \propto\nonumber\\ &&\propto\, \frac{1}{4\pi T}\mathrm{k}A-\frac{M}{T}+\frac{1}{T}\int dV NH\geq 0,\nonumber\\ \end{align}\] where the proportionality relation arises from Eq. 38 , having also used \(\Delta t \propto \frac{1}{T}\).
We finally realize that: i) the area term arises directly from the general-relativistic formulation of the Newton’s law of cooling; ii) the surface gravity \(\mathrm{k}\), consequently, represents the difference between the temperature inside the black hole and the temperature in the outer space; iii) the quantity \(\int d^3x \sqrt{h}N H\) can be interpreted as the entropy production term of the out-of-equilibrium vacuum transformation — namely, \(h=\frac{1}{4\pi}\) within units \(c=G=\hbar=k_B=1\).
This last interpretation is consistent with the fact that \(H=0\) for reversible transformations in vacuum (i.e., for general relativity in the vacuum) and allows us to interpret the term \(\int d^3x \sqrt{h}N H\) as out-of-equilibrium work (or dissipated gravitational heat).
For \(\beta^i\neq0\), we can regard the term \(2R_{\mu\nu}u^\mu \beta^\nu\) as a “torsional” dissipated heat, and then consider it as part of the entropy production, being it vanishing in the vacuum.

References↩︎

[1]
T. Jacobson, “Thermodynamics of spacetime: The einstein equation of state,” Phys. Rev. Lett., vol. 75, pp. 1260–1263, 1995, doi: 10.1103/PhysRevLett.75.1260.
[2]
T. Padmanabhan, “Thermodynamical aspects of gravity: New insights,” Rep. Prog. Phys., vol. 73, p. 046901, 2010, doi: 10.1088/0034-4885/73/4/046901.
[3]
G. Parisi and Y.-S. Wu, “Perturbation theory without gauge fixing,” Sci. Sin., vol. 24, p. 483, 1981.
[4]
M. Lulli, A. Marciano, and X. Shan, “Stochastic quantization of general relativity à la ricci-flow,” Fortschritte der Physik, 2025, [Online]. Available: https://onlinelibrary.wiley.com/doi/10.1002/prop.70041.
[5]
C. Eling, R. Guedens, and T. Jacobson, “Non-equilibrium thermodynamics of spacetime,” Physical Review Letters, vol. 96, p. 121301, 2006, doi: 10.1103/PhysRevLett.96.121301.
[6]
G. Chirco and S. Liberati, “Non-equilibrium thermodynamics of spacetime: The role of gravitational dissipation,” Physical Review D, vol. 81, p. 024016, 2010, doi: 10.1103/PhysRevD.81.024016.
[7]
C. Barceló, S. Liberati, and M. Visser, “Einstein gravity as an emergent phenomenon?” International Journal of Modern Physics D, vol. 10, pp. 799–806, 2001, doi: 10.1142/S0218271801001621.
[8]
U. Seifert, “Stochastic thermodynamics, fluctuation theorems and molecular machines,” Rep. Prog. Phys., vol. 75, p. 126001, 2012, doi: 10.1088/0034-4885/75/12/126001.
[9]
L. Onsager and S. Machlup, “Fluctuations and irreversible processes,” Phys. Rev., vol. 91, pp. 1505–1512, 1953, doi: 10.1103/PhysRev.91.1505.
[10]
R. S. Hamilton, “Three-manifolds with positive ricci curvature,” J. Diff. Geom., vol. 17, pp. 255–306, 1982.
[11]
G. Perelman, “The entropy formula for the ricci flow and its geometric applications,” arXiv:math/0211159, 2002.
[12]
E. A. Novikov, “Functionals and the random-force method in turbulence theory,” Sov. Phys. JETP, vol. 20, p. 1290, 1965.
[13]
K. Furutsu, “On the statistical theory of electromagnetic waves in a fluctuating medium,” J. Res. Natl. Bur. Stand. D, vol. 67, p. 303, 1963.
[14]
C. W. Gardiner, Handbook of stochastic methods. Springer, 2009.
[15]
H. Risken, The fokker-planck equation. Springer, 1996.
[16]
P. C. Martin, E. D. Siggia, and H. A. Rose, “Statistical dynamics of classical systems,” Phys. Rev. A, vol. 8, pp. 423–437, 1973, doi: 10.1103/PhysRevA.8.423.
[17]
C. De Dominicis, “Techniques de renormalisation de la theorie des champs et dynamique des phenomenes critiques,” J. Phys. Colloques, vol. 37, pp. C1–247, 1976.
[18]
C. Rovelli, “Statistical mechanics of gravity and the thermodynamical origin of time,” Class. Quant. Grav., vol. 10, pp. 1549–1566, 1993, doi: 10.1088/0264-9381/10/8/016.
[19]
E. Verlinde, “On the origin of gravity and the laws of newton,” JHEP, vol. 1104, p. 029, 2011, doi: 10.1007/JHEP04(2011)029.
[20]
R. F.Fox, “Functional-calculus approach to stochastic differential equations,” Physical Review A, vol. 33, no. 1, 1986.
[21]
J. M. Sancho and M. S. M. et al., “Analytical and numerical studies of multiplicative noise,” Physical Review A, vol. 26, no. 3, 1982.
[22]
M. E. Cates, É. Fodor, T. Markovich, C. Nardini, and E. Tjhung, “Stochastic hydrodynamics of complex fluids: Discretisation and entropy production,” Entropy, vol. 24, no. 2, 2022, doi: 10.3390/e24020254.
[23]
G. E. Crooks, “Path-ensemble averages in systems driven far from equilibrium,” Phys. Rev. E, vol. 61, pp. 2361–2366, Mar. 2000, doi: 10.1103/PhysRevE.61.2361.
[24]
D.Lovelock, “The einstein tensor and its generalizations,” Journal of Mathematical Physics., vol. 12, no. 3, 1971, doi: 10.1063/1.1665613.
[25]
S. H. G. Gibbons, “Action integrals and partition functions in quantum gravity,” Physical Review D, vol. 15, no. 10, 1977.
[26]
J. W. York, “Boundary terms in the action principles of general relativity,” Foundations of Physics, vol. 16, no. 3, 1986.
[27]
E. Gourgoulhon, “3+1 formalism and bases of numerical relativity,” Lecture Notes in Physics (Springer, Berlin), vol. 846, 2012.
[28]
R. M. Wald, General relativity. University of Chicago Press, 1984.
[29]
L. Smarr, “Mass formula for kerr black holes,” Physical Review Letters, vol. 129, no. 4, 1973.

  1. The FP equation provides a transition probability. For stationary processes we find that \(P[g_0]=\int Dg_i P_{FP}[g_0|g_i]P(g_i)=P_{FP}[g_0|g_i]\), with \(P[g_i]\) generic initial probability and \(P_{FP}[g_0|g_i]\) stationary solution of the FP equation.↩︎

  2. \(T\) represents the local temperature. When it is realistic to consider the system to be at equilibrium, it has a constant temperature (given by vacuum fluctuations) in the whole space surrounding a black hole.↩︎