WorksPhysics and Astronomy
Improved constraints on axion inflation with the new code AxioGen: an efficient generator of curvature perturbations
Abstract
Axion inflation, in which a pseudoscalar inflaton couples to a gauge field via a Chern-Simons interaction, has garnered significant interest due to its rich phenomenology. The power spectrum and bispectrum for this model are often parametrized by functions known as and , respectively. Previous work computed and using an approximation for the gauge field mode functions. While these approximate solutions are fairly accurate () for large values of the model parameter , which controls gauge field particle production, our recent work has shown them to be quite inaccurate for smaller values of . We present new fitting functions for and that are significantly more accurate than those previously used. We use these functions to place new constraints on and also set lower bounds for the energy scale of the axion gauge field coupling for and inflationary potentials. Additionally, we present a new public code to efficiently generate realizations of the primordial curvature perturbation for axion inflation in the weak backreaction regime. This code enables numerical computation of higher order correlators and provides a novel path to initial conditions for large-scale structure formation.
Introduction
The statistics of the cosmic microwave background (CMB) temperature and polarization anisotropies have been successfully reproduced by a fluctuating scalar field in the early universe during a period of rapid expansion known as inflation. This scalar degree of freedom, the inflaton, sources scalar fluctuations in the metric which freeze on superhorizon scales and provide the seeds from which large-scale structure (LSS) formed.
We focus here on axion inflation, in which a pseudoscalar inflaton field couples to a gauge field via a Chern-Simons interaction. This model has a rich phenomenology: it can produce large non-Gaussianity [1, 2, 3], primordial magnetic fields [4, 5, 6, 7], primordial black holes [8, 9], and gravitational waves [10, 11, 12].
In this model, gauge field particle production is controlled by the parameter , which depends on the motion of the inflaton background and on the axion-gauge field interaction strength. The gauge field is analogous to the photon and can be decomposed into left- and right-handed circular polarization states. The axion-gauge field interaction introduces a tachyonic instability, producing copious amounts of gauge quanta with one polarization type while suppressing the other. This process dynamically breaks parity symmetry. The phenomenological predictions of axion inflation are often difficult to determine analytically. An approximation for the gauge-field mode functions first presented in [5] has been widely used to make these calculations tractable [2, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24].
[2] explicitly demonstrated how to compute the power spectrum and bispectrum for this model, defining the functions and to parameterize these two correlators, respectively. Recently, in [25], we presented a new method for computing realizations of the inverse decay curvature perturbation in axion inflation for the case of weak backreaction. In that work, we used these realizations to recompute and for several different values of , and found that our results were quite different from [2]. This was due to [2]’s using an approximate gauge-field mode function, as the discrepancy disappeared when we redid our analysis using this same approximation.
[26] performed a more general computation of the power spectrum and bispectrum, including both gauge-field helicities, metric perturbations, and the real and imaginary parts of the gauge-field mode functions. They compared their results with [2] for only large values of and found an difference. In [25], we found that our results for and are in good agreement with those of [26] for the values of that we tested.
In this Letter, we recompute the power spectrum and equilateral bispectrum of the inverse decay curvature perturbations in axion inflation for , extending our work [25]. We then give new fitting functions for and . We use Planck constraints on the scalar spectral amplitude and the (equilateral-type) nonlinearity parameter to place bounds on and the energy scale of the axion-gauge field interaction . Furthermore, we present a new code, Axiogen, for generating primordial curvature perturbations for axion inflation in the weak backreaction regime. Axiogen is publicly available at https://github.com/MattReinhard/Axiogen.
Physical Setup
We begin by assuming a homogeneous and isotropic Friedmann–Lemaître–Robertson–Walker (FLRW) spacetime geometry:
where we have set . is the scale factor and is conformal time, related to the cosmic time via . We consider axion- inflation, in which the pseudoscalar inflaton couples to a gauge field via the Chern-Simons interaction with Lagrangian density
Here is the metric determinant, is the axion gauge field coupling, is the field strength tensor, is its dual, and is the Levi-Civita symbol.
Here we present only the definitions and equations absolutely necessary for the reader to follow the current work. A more detailed presentation of this model is in [2]. We work in Coulomb gauge, setting and , and write the gauge field as an inverse Fourier transform (FT):
where are the two possible polarizations of the gauge field, the circular polarization vectors satisfy
and
h.c. means “Hermitian conjugate”, and * means a complex conjugate. and are the gauge-field annihilation operator and mode function, respectively.
The gauge field experiences a tachyonic instability, resulting in large particle production for the modes [1, 13]. Additionally, the real part of the mode function dominates over the imaginary part. We therefore neglect the modes and include only the real part of the gauge-field mode function in what follows.
The mode function is
where is the Coulomb function of the second kind [27]. The parameter controls gauge-field particle production, where is the background value of the inflaton and is the Hubble parameter. A very commonly-used approximation [2, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 28] for this mode function is
In Section III, we will see that these approximate mode functions lead to significant underestimates of the power spectrum and bispectrum.
Recomputing and
In axion inflation, the curvature perturbation receives a contribution from both vacuum fluctuations, and from the inverse decay of gauge quanta into inflaton fluctuations [1]:
The inverse decay perturbation can be written as
where is the vacuum power at the pivot scale , is the scalar spectral index, and denotes the response of the inflaton field to the gauge-field source. Our work [25] presented a method to generate realizations of the response on a discrete Fourier grid and used these realizations to compute for , and .
Generation of the response involves integrals over conformal time and momentum . In [25] we determined the proper sampling rate for time integration to ensure numerical convergence to within for . We found that significantly higher sampling was required for convergence as we decreased the value of . In Appendix A we demonstrate convergence for .
Here we use our method [25] to compute and for values of between and in increments of . We take a brute-force approach by using only the established convergent sampling rates for . As convergence requires finer time integral sampling for smaller values of , we use the established convergent settings for the bottom of each range. For example, we use the convergent sampling rate for when generating realizations with , and use the convergent sampling rate for for realizations with between and . This approach uses finer sampling than is required for convergence, increasing the time required to generate realizations, but avoids the need to determine convergence settings for each value of .
The Power Spectrum
The inverse-decay dimensionless power spectrum is
where was first defined in [2] and involves an integral over gauge-field mode functions.
For each value of we generate 20 realizations of the response , compute the dimensionless power spectrum
for each, and average them. Here is a dimensionless wavenumber and is the power spectrum of . We then average this result for over the convergent range ([25] gives further details). Denoting the result of this average , we compute via
We then fit a monomial to our measured values of , obtaining
[26] calculated taking into account both gauge-field polarizations, both real and imaginary parts of the mode functions, and metric perturbations. We used the PlotDigitizer [29] tool to extract these points ([26] Figure 1a). These points and the fit to our own realizations, Eq. (13), are shown in Figure 1. We find that our result for closely matches those of [26].
Figure 1. The fits for functions (left) and (right) which were computed from realizations of the stochastic response (as described in Section III) are shown. Also shown are results reproduced from Durrer et al. [26], Barnaby et al. [2], and the Planck collaboration [30]. We find that our results are in good agreement with Durrer et al., but differ significantly from Barnaby et al. and [30]. This difference is due to the fact that we use the exact mode functions (6), whereas Barnaby et al. and (likely) [30] use the approximate mode functions (7), leading to a significant underestimate of the power spectrum and bispectrum.
[2] neglects the suppressed gauge-field modes and includes only the real part of the mode functions (as we do in this work); however, they use the approximate mode function (7) for their computation of . They give the fit
We include this, and also the fit for used by the Planck collaboration [30] for their constraints on this inflationary model, in Figure 1. [30] does not explicitly state whether they used the exact (Eq. (6)) or approximate (Eq. (7)) mode functions to compute , but their fit closely matches that of [2], suggesting use of the approximate mode functions.
The Bispectrum
Following [2, 25], we can write the inverse decay bispectrum as
where , , and . We compute for the equilateral case via
where is the dimensionless equilateral bispectrum of the response . At each value of , was measured at from 100 realizations of and then averaged. We chose this value of as it sits safely in the converged region of the power spectrum (see [25] and Appendix § 4 for more details). We then fit a monomial to our measured values of , finding
[2] found a fit to using the approximate mode function:
In the right panel of Figure 1 we plot these functions. We also include points extracted from the [26] Figure 2a, as well as the fit used in the Planck analysis [30]. We again find that our fit is in very good agreement with [26] and closely matches [30], but there is a large discrepancy between and .
AXIOGEN
AXIOGEN is our new code to generate primordial curvature perturbations for axion inflation in the weak back-reaction regime. Our code generates realizations of both the vacuum and inverse-decay curvature perturbations on a discrete Fourier grid of side length and grid size .
Many of the calculations are done in dimensionless coordinates:
where is a wave-vector, is a dimensionless wave-vector, is the dimensionless box length, and is a quantity with units that sets the conversion between dimensionless and dimensional coordinates. The default settings for the dimensionless box geometry are and . These settings were demonstrated to have a convergent inverse decay power spectrum for with in [25] and Appendix § 4 (for the case ).
The code uses a default conversion factor of which yields a box length of matching the size of the Abacus Dark Energy Spectroscopic Instrument (DESI) Year 1 (Y1) Luminous Red Galaxy (LRG) mock catalogs. This choice of corresponds to a physically converged scale of , which lies within the range explored in the DESI Y1 LRG full-shape analysis [31].
In [25], we presented an algorithm to generate realizations of the inverse decay curvature perturbation. In Section III we used this algorithm to determine , which parametrizes the power of these inverse decay fluctuations for .
The dimensionless power spectrum, including vacuum and inverse decay effects, is
Solving for the quadratic equation that stems from expanding out Eq. (20), we find
The Planck collaboration reports at the pivot scale [32]. Axiogen uses Eq. (21) along with the fit for given in Eq. (13) to determine the spectral amplitude at the pivot scale for the input value of .
The vacuum curvature perturbations are generated by first initializing white noise at each point of a dimensionless coordinate grid with volume and grid spacing
respectively. The values of this white noise field are drawn at each point from a Gaussian distribution with zero mean and a variance of [33]. Axiogen
then takes the FT of and rescales the result to obtain the dimensionless vacuum curvature perturbation
where is the FT of . This rescaling ensures that these perturbations produce the desired vacuum power spectrum in Eq. (20). We also set the Fourier coefficient of the zero mode to zero; this enforces that the average of our perturbations vanishes.
Axiogen separately produces the dimensionless inverse decay perturbation
which is just the dimensionless form of Eq. (9). Axiogen uses our algorithm [25] to compute the dimensionless response . It then outputs the physical perturbations by multiplying the dimensionless curvature perturbations by .
Constraints on non-Gaussianity
The bispectrum was shown to be nearly equilateral in [2, 26]. We therefore compute the equilateral nonlinearity parameter [2]
We use Eqs. (21) and (17) to express Eq. (25) as a function of only , and then obtain its root using Mathematica. An analysis of Planck data found $f_{\mathrm{NL}}^{\mathrm{equil}}=-26\pm47 (68% CL) [34]. Since for this model, we impose the upper bound of the central interval, i.e. we take . From this we find the upper bound that .
We now consider the monomial family of potentials
The slow-roll approximation yields [2]
where is the reduced Planck mass and is the number of e-folds between the moment the CMB scales exited the horizon and the end of inflation. We consider the cases of with and with , as these potentials are still viable according to recent CMB measurements [35]. Eq. (27) allows us to directly translate our constraint on to a constraint on the energy scale of the axion-gauge field interaction for these two cases. We find GeV for and GeV for .
Conclusion
The seminal work of [2] demonstrated how to compute the power spectrum and bispectrum for axion inflation using the approximate mode functions of [5]. Their provided expressions for the functions and have been used in multiple Planck analyses [30, 34, 36]. [26] gave a more general framework for this computation, including both the real and imaginary parts of the gauge-field mode functions, metric perturbations, and both polarizations. They compared their results to those of [2] only at large , finding an difference. In [25], we presented a new algorithm for generating realizations of the inverse-decay curvature perturbation and used them to compute and for several values of . Our results differed significantly from those of [2], especially for smaller values of . In the current work, we have used the algorithm of [25] to obtain new fitting functions for and in the range . These functions can be used in future CMB analyses to provide more accurate constraints on axion inflation. Furthermore, we used Planck constraints on and to determine an upper bound of and a lower bound on the energy scale of the axion-gauge field interaction for both the and potentials.
In the current work, we have also presented a new code, Axiogen, that generates realizations of both vacuum and inverse-decay curvature perturbations in the weak backreaction regime, with a combined power consistent with Planck measurements. These realizations offer a novel path to obtaining initial conditions for LSS formation, and enable numerical computation of higher-order correlators. We plan to use AXIOGEN to further constrain axion inflation with current and upcoming LSS data, such as DESI, Euclid, Roman, and SPHEREx. We are particularly interested in searching for the signal of this model in the parity-odd galaxy 4-Point Correlation Function.
Convergence Tests for
Here we closely follow [25] to find settings such that the integrals required to generate realizations of the response are convergent for the case of .
where is a convolution involving gauge field mode functions. We find it easier to work with the dimensionless response .
We first test that our integral converges as the late-time bound approaches zero. We compare against a late-time reference at different values of via the relative -norm:
For this test, we set our grid size to , , and set the number of sampling points for time integration to . We find that the same late-time bound of used in [25] has a relative error of when compared against a reference.
We next determine the number of sampling points required for time integration. We again set , , and fix a late-time integration bound of . We compared the response generated with different number of sample points for the time integration in (A1) against an reference using the relative -norm. The results are shown in Table 1.
| Percent error | |
| 120 | 1.126% |
| 150 | 0.919% |
| 180 | 0.793% |
| 300 | 0.500% |
| 500 | Reference |
Table 1. Displayed is the dimensionless response computed with different numbers of sampling points for the time integration in Eq. (28). The errors are calculated by comparing each result against an reference via the relative -norm. The production setting used for our computation of and in Section III is shown in bold.
Informed by these two convergence tests, we choose a late-time bound of and a time integration sampling of when producing realizations of to measure the power spectrum and bispectrum in Section III. We also use these settings for the remaining convergence tests in this appendix.
We next turn to UV (large ) and IR (small ) convergence. The UV and IR bounds
are set by the Nyquist wavenumber and the fundamental mode of our dimensionless grid, respectively. We first fix and vary the number of grid points. This fixes the grid resolution while increasing the UV bound for the convolution integral . We use the dimensionless power spectrum from Eq. (11) as a diagnostic for convergence as a converged spectrum should be approximately flat. All spectra were computed using the pylians3 library. We find that a grid
size of is sufficiently converged for the region . The results are shown in Figure 2. For the IR convergence test we consider three different combinations of dimensionless box length and grid size : . We note that these combinations keep the ratio fixed which ensures that the UV bound is unchanged. The results can be seen in Figure 3. We find that the power spectrum is sufficiently converged for the case of and , where the IR bound is .
Figure 2. In the top panel, the dimensionless power spectrum of the inverse decay response is shown for different grid sizes for the case of . For each grid size, 10 realizations were generated and their power spectra were computed using the pylians3 library; we then averaged the power spectra at each . The shaded region around each curve gives the uncertainty of the mean. In the bottom panel, the ratio of the power spectra to the reference is shown. As the spectrum should be approximately flat, we note that for there is very good convergence in the region .
Figure 3. In the top panel, the dimensionless response power spectrum with is shown for the different combinations , which correspond to the grid resolutions , respectively. In the bottom panel, the ratio of each of the two smaller grid power spectra and the reference are shown. The and curves show good agreement for the entire range, indicating that has already converged in the IR for .
ACKNOWLEDGMENTS
This work was supported in part by JSPS KAKENHI Grant Numbers 23K25868 and 26H02044 (AT). AT also acknowledges support from FY2025 MUSUBIME of Kyoto University. We acknowledge the use of ChatGPT for code development, but did not use it at all for the writing of this manuscript. ZS acknowledges support from NASA grant number 80NSSC24M0021. We thank the Slepian research group at the University of Florida for useful conversations.
References
- [1]N. Barnaby and M. Peloso, Large non-gaussianity in axion inflation, Physical Review Letters 106, 10.1103/physrevlett.106.181301 (2011).pubmed.ncbi.nlm.nih.gov/21635081
- [2]N. Barnaby, R. Namba, and M. Peloso, Phenomenology of a pseudo-scalar inflaton: naturally large nongaussianity, Journal of Cosmology and Astroparticle Physics 2011 (04), 009–009.
- [3]D. Jamieson, A. Caravano, and E. Komatsu, Primordial power spectrum and bispectrum from lattice simulations of axion-u(1) inflation, Physical Review D 112, 10.1103/3zml-71dj (2025).DOI
- [4]W. D. Garretson, G. B. Field, and S. M. Carroll, Primordial magnetic fields from pseudo goldstone bosons, Physical Review D 46, 5346–5351 (1992).
- [5]M. M. Anber and L. Sorbo, N-flationary magnetic fields, Journal of Cosmology and Astroparticle Physics 2006 (10), 018–018.
- [6]T. Fujita, R. Namba, Y. Tada, N. Takeda, and H. Tashiro, Consistent generation of magnetic fields in axion inflation models, Journal of Cosmology and Astroparticle Physics 2015 (05), 054–054.DOI
- [7]P. Adshead, J. T. Giblin, T. R. Scully, and E. I. Sfakianakis, Magnetogenesis from axion inflation, Journal of Cosmology and Astroparticle Physics 2016 (10), 039–039.
- [8]E. Bugaev and P. Klimai, Axion inflation with gauge field production and primordial black holes, Phys. Rev. D 90, 103501 (2014), arXiv:1312.7435 [astro-ph.CO].DOI
- [9]A. Linde, S. Mooij, and E. Pajer, Gauge field production in supergravity inflation: Local non-gaussianity and primordial black holes, Physical Review D 87, 10.1103/physrevd.87.103506 (2013).DOI
- [10]L. Sorbo, Parity violation in the cosmic microwave background from a pseudoscalar inflaton, Journal of Cosmology and Astroparticle Physics 2011 (06), 003–003.DOI
- [11]X. Niu, M. H. Rahat, K. Brinivasan, and W. Xue, Gravitational wave probes of massive gauge bosons at the cosmological collider, Journal of Cosmology and Astroparticle Physics 2023 (02), 013.DOI
- [12]S. P. Corbă, Gravitational wave anisotropies from axion inflation, Journal of Cosmology and Astroparticle Physics 2026 (1), 029, arXiv:2504.13156 [astro-ph.CO].arxiv.org/abs/2504.13156
- [13]M. M. Anber and L. Sorbo, Naturally inflating on steep potentials through electromagnetic dissipation, Physical Review D 81, 10.1103/physrevd.81.043534 (2010).DOI
- [14]N. Barnaby and M. Peloso, Large non-gaussianity in axion inflation, Physical Review Letters 106, 10.1103/physrevlett.106.181301 (2011).pubmed.ncbi.nlm.nih.gov/21635081
- [15]N. Barnaby, E. Pajer, and M. Peloso, Gauge field production in axion inflation: Consequences for monodromy, non-gaussianity in the cmb, and gravitational waves at interferometers, Physical Review D 85, 10.1103/physrev d.85.023525 (2012).DOI
- [16]J. L. Cook and L. Sorbo, Particle production during inflation and gravitational waves detectable by ground-based interferometers, Physical Review D 85, 10.1103/physrevd.85.023534 (2012).DOI
- [17]M. M. Anber and L. Sorbo, Non-gaussianities and chiral gravitational waves in natural steep inflation, Physical Review D 85, 10.1103/physrevd.85.123537 (2012).DOI
- [18]P. Meerburg and E. Pajer, Observational constraints on gauge field production in axion inflation, Journal of Cosmology and Astroparticle Physics 2013 (02), 017–017.DOI
- [19]R. Zambujal Ferreira and M. Sloth, Universal constraints on axions from inflation, Journal of High Energy Physics 2014 (2014).
- [20]J. García-Bellido, M. Peloso, and C. Unal, Gravitational waves at interferometer scales and primordial black holes in axion inflation, Journal of Cosmology and Astroparticle Physics 2016 (12), 031–031.
- [21]V. Domcke, F. Muia, M. Pieroni, and L. T. Witkowski, Pbh dark matter from axion inflation, Journal of Cosmology and Astroparticle Physics 2017 (07), 048–048.DOI
- [22]O. Özsoy and G. Tasinato, Inflation and primordial black holes, Universe 9, 203 (2023).DOI
- [23]K. Alam, K. Dutta, and N. Jaman, Cmb constraints on natural inflation with gauge field production (2024), arXiv:2405.10155 [astro-ph.CO].arxiv.org/abs/2405.10155
- [24]R. Z. Ferreira, A. Notari, and J. J. T. Díaz, Axion inflation with a massive abelian gauge field (2026), arXiv:2607.28593 [astro-ph.CO].arxiv.org/abs/2607.28593
- [25]M. A. Reinhard, Z. Slepian, and A. Taruya, Enabling polyspectra via stochastic realizations of inverse decay curvature perturbations in axion inflation (2026), arXiv:2610.18748 [astro-ph.CO].arxiv.org/abs/2610.18748
- [26]R. Durrer, R. von Eckardstein, D. Garg, K. Schmitz, O. Sobol, and S. Vilchinskii, Scalar perturbations from inflation in the presence of gauge fields, Physical Review D 110, 10.1103/physrevd.110.043533 (2024).DOI
- [27]Https://mathworld.wolfram.com/CoulombWaveFunction.html.
- [28]J. Kume, M. Peloso, and N. Bartolo, Revisiting the chern-simons interaction during inflation with a non-canonical pseudo-scalar, Journal of Cosmology and Astroparticle Physics 2025 (08), 044.DOI
- [29]Https://plotdigitizer.com/.
- [30]Planck Collaboration, Planck 2015 results: Xx. constraints on inflation, Astronomy & Astrophysics 594, A20 (2016).
- [31]A. Adame et al., Desi 2024 ν: Full-shape galaxy clustering from galaxies and quasars, Journal of Cosmology and Astroparticle Physics 2025 (09), 008.DOI
- [32]Planck Collaboration, Planck 2018 results: Vi. cosmological parameters, Astronomy & Astrophysics 641, A6 (2020).
- [33]This corresponds to a delta function normalization in the continuum.
- [34]P. Collaboration, Planck 2018 results. ix. constraints on primordial non-gaussianity (2019), arXiv:1905.05697 [astro-ph.CO].
- [35]E. Calabrese et al., The atacama cosmology telescope: Dr6 constraints on extended cosmological models (2025), arXiv:2503.14454 [astro-ph.CO].arxiv.org/abs/2503.14454
- [36]Planck Collaboration, Planck 2015 results: Xvii. constraints on primordial non-gaussianity, Astronomy & Astrophysics 594, A17 (2016).


