1. Introduction
For any
$g,n \geq 0$
, with
$2g-2+n \gt 0$
, let
$\mathscr{M}_{g,n}$
and
$\overline {\mathscr{M}}_{g,n}$
denote the moduli spaces of smooth and stable
$n$
-pointed curves of genus
$g$
, respectively. In this article we implement Deligne’s pullback and pushforward weight spectral sequences to compute weight graded pieces of the compactly supported cohomology of
$\mathscr{M}_{g,n}$
in cases where the
$E_1$
-page, which is built out of pieces of cohomology groups of
$\overline {\mathscr{M}}_{g,n}$
and of strata in the boundary
$\overline {\mathscr{M}}_{g,n} \setminus \mathscr{M}_{g,n}$
, consists only of tautological cohomology. Using this implementation we prove Theorems1.1 and 1.3 below. In the whole of the article, cohomology will mean either
$\ell$
-adic étale cohomology or that of rational Hodge structures.
The symmetric group
$\mathbb S_n$
acts on
$\mathscr{M}_{g,n}$
and
$\overline {\mathscr{M}}_{g,n}$
, and it induces an action on the cohomology groups of these spaces. This action also respects the weight filtration
$W_*$
(induced by Deligne’s weight spectral sequences). To each partition
$\lambda$
of
$n$
we associate, in the usual way, an irreducible representation
$s_{\lambda }$
of
$\mathbb S_n$
. What we aim to compute is then, for each
$q,r$
, the following decomposition of the weight graded pieces,
for some (pure) rational Hodge structures (respectively
$\ell$
-adic Galois representations)
$U^{q,r,\lambda }_{g,n}$
. Using Poincaré duality we then get that
In general, we know that, for
$g\geq 1$
,
$H_c^k(\mathscr{M}_{g,n})$
vanishes for
$k\lt 2g$
when
$n=0,1$
, for
$k\lt 2g+1$
when
$n=2$
and for
$k\lt 2g-2+n$
when
$n \geq 3$
(see [Reference HarerHar86, Reference Church, Farb and PutmanCFP12, Reference Morita, Sakasai and SuzukiMSS13] and [Reference WongWon24, Theorem 4.1]). The results of [Reference Chan, Galatius and PayneCGP22] and [Reference Payne and WillwacherPW24b] have made the weight
$0$
and
$2$
part of the compactly supported cohomology of
$\mathscr{M}_{g,n}$
amenable to computation. Furthermore, the weight graded pieces for odd weights up to
$9$
all vanish (see [Reference Arbarello and CornalbaAC98] and [Reference Bergström, Faber and PayneBFP24, Theorem 1.1]). Finally, the isomorphism in [Reference Payne and WillwacherPW24a, Proposition 1.7] provides a way to compute the weight
$11$
contribution to any compactly supported cohomology group of
$\mathscr{M}_{g,n}$
.
The weight graded pieces (or indeed the Betti numbers) of the cohomology of
$\mathscr{M}_{g,n}$
have only been fully determined for a few
$g,n$
, when
$g\gt 0$
. For results in
$g=2$
and
$n \leq 5$
see [Reference TommasiTom25], in
$g=3$
and
$n\leq 1$
see [Reference LooijengaLoo93], in
$g=3$
and
$n=2$
see [Reference TommasiTom07, Theorem 1.1], in
$g=4$
and
$n=0$
see [Reference TommasiTom05, Theorem 1.4] and finally for
$g=4$
and
$n=1$
see [Reference Wong and ZhengWZ25, Theorem 1.2]. As far as we know, for
$g=1$
there is a lack of published results. Combining the methods in [Reference PetersenPet14, Reference TotaroTot96, Reference GorinovGor13], Louis Hainaut has computed all results for
$g=1$
and
$n\leq 6$
(personal communication 2025). All these results (except for the case of
$g=2$
and
$n=5$
) have been verified using our implementation and are listed in Section 7.
By [Reference CanningCan24, Theorem 1.5], if
$3g+2n\lt 25$
(a range that covers all results mentioned above as well as in the following two theorems), the cohomology will be of Tate type. This means that the odd weight graded pieces vanish and that a
$2q$
-weight graded piece of a cohomology group will be a direct sum of
$q$
th tensor products of the Tate class
$\mathbb{L}=H^2(\mathbb P^1)$
, denoted by
$\mathbb{L}^q$
. The associated pure rational Hodge structure of
$\mathbb{L}$
has Hodge weight
$(1,1)$
and the associated
$\ell$
-adic Galois representation is the cyclotomic character.
In the following two theorems the weight filtration of each cohomology group is concentrated in a single weight except for
$H^9(\mathscr{M}_{3,3})$
.
Theorem 1.1.
The cohomology of
$\mathscr{M}_{5}$
is of Tate type and equals
Remark 1.2. The rational Chow ring of
$\mathscr{M}_{5}$
equals
$\mathbb Q[\kappa _1]/\kappa _1^4$
(see [Reference IzadiIza95]). The cycle class map from the rational Chow ring into rational cohomology is in this case injective, giving the contributions
$1$
,
$\mathbb{L}$
,
$\mathbb{L}^2$
and
$\mathbb{L}^3$
in degrees
$0$
,
$2$
,
$4$
and
$6$
in Theorem 1.1.
The moduli space
$\mathscr{M}_{5}$
can be stratified into the hyperelliptic locus
$\mathscr H_{5}$
, the trigonal locus
$\mathscr T_5$
and an affine open locus of general curves
$\mathscr O_5$
. The rational cohomology of
$\mathscr H_{5}$
equals that of a point. In [Reference ZhengZhe22], the rational cohomology of
$\mathscr T_5$
was determined. Orsola Tommasi and Angelina Zheng (private communication 2023) then conjectured (building upon earlier computations of Orsola Tommasi using the Gorinov–Vassiliev method applied to
$\mathscr O_5$
) that the rational cohomology of
$\mathscr O_5$
would consist of a class
$1$
in degree
$0$
and
$\mathbb{L}^3$
in degree
$5$
. Another way to prove Theorem 1.1 would be to prove this conjecture about the rational cohomology of
$\mathscr O_5$
.
Theorem 1.3.
The weight graded pieces of the cohomology of
$\mathscr{M}_{3,3}$
are of Tate type and equals
\begin{align*} &\quad H^0(\mathscr{M}_{3,3})=s_3, \quad H^2(\mathscr{M}_{3,3})=(2s_3+s_{2,1})\mathbb{L}, \quad H^4(\mathscr{M}_{3,3})=(s_3+s_{2,1})\mathbb{L}^2, \\[5pt]& H^5(\mathscr{M}_{3,3})=2(s_3+s_{2,1})\mathbb{L}^3,\quad H^6(\mathscr{M}_{3,3})=s_3\mathbb{L}^6, \quad H^8(\mathscr{M}_{3,3})=2(s_3+s_{2,1})\mathbb{L}^7, \\[5pt]& \qquad\qquad\qquad {\rm gr}_{16} H^9(\mathscr{M}_{3,3})=2s_3\mathbb{L}^8, \quad {\rm gr}_{18} H^9(\mathscr{M}_{3,3})=s_3 \mathbb{L}^9. \end{align*}
Remark 1.4. The
$\mathbb{S}_n$
-equivariant Euler characteristic of
$\mathscr{M}_{5}$
and
$\mathscr{M}_{3,3}$
in the Grothendieck group of mixed rational Hodge structures (or
$\ell$
-adic Galois representations) has already been computed and will appear in a forthcoming work by the first author together with Samir Canning, Dan Petersen and Johannes Schmitt (https://arxiv.org/abs/2610.09694).
Our program builds upon the SageMath module admcycles, see [Reference Delecroix, Schmitt and van ZelmDSZ22], and improves parts of it. Our code is available at [Reference WenninkWen26] and we plan to integrate it into the admcycles package.
Remark 1.5. Using admcycles (and checking that Pixton’s relations are all relations, see further details in Sections 4 and 5), one can show that in degrees
$0$
,
$2$
and
$4$
the cohomology of
$\mathscr{M}_{3,3}$
is tautological.
Whenever we compute the weight graded pieces of the cohomology of
$\mathscr{M}_{g,n}$
, we also compute the weight graded pieces of the cohomology of
$\mathscr{M}^{\,{\rm ct}}_{g,n}$
and
$\mathscr{M}^{\,{\rm rt}}_{g,n}$
, the moduli space of curves of compact type and the moduli spaces of curves with rational tails. This is included in our list of results at [Reference WenninkWen26]. The idea to apply Deligne’s weight spectral sequence to the moduli space of curves of compact type comes from a forthcoming work by Amy Bradford.
2. Deligne’s pushforward weight spectral sequence
We will follow [Reference Arbarello and CornalbaAC09, Section 7] and [Reference Payne and WillwacherPW24b, Section 2.3], but write the differential in a slightly more explicit way which better corresponds to our concrete computations.
To an
$n$
-pointed genus
$g$
stable graph
$\Gamma$
, with
$V_\Gamma$
and
$E_\Gamma$
denoting its set of vertices and edges respectively, we associate a product of moduli spaces and a gluing map
For any stable graph
$\Gamma$
, we have an action of
${\rm Aut}(\Gamma )$
on
$\overline {\mathscr{M}}_\Gamma$
, inducing an action on
$H^k(\overline {\mathscr{M}}_\Gamma )$
for each
$k$
.
Deligne’s pushforward weight spectral sequence [Reference DeligneDel71, Théorème (3.2.5)] gives, in the case of
$\mathscr{M}_{g,n} \subset \overline {\mathscr{M}}_{g,n}$
, an
$E_1$
-page of the form
where
${\rm Aut}(\Gamma )$
acts on
$E_\Gamma$
by permutations. This spectral sequence degenerates at the second page and abuts to the weight
$q$
graded piece,
For every isomorphism class of stable graphs we choose a representative
$\Gamma$
and we also fix an ordering of its edges
$\alpha _{\Gamma }:E_{\Gamma }\rightarrow \{1,\ldots ,|E_\Gamma |\}$
. For the stable graph
$\Gamma$
we let
$\Gamma _i$
denote the graph obtained by contracting its
$i$
-th edge. It inherits an ordering
$\beta _{\Gamma _i}:E_{\Gamma _i}\rightarrow \{1,\ldots ,$
$i-1,i+1,\ldots ,|E_\Gamma |\}$
. Let
$\Gamma'_i$
be the chosen representative of the isomorphism class of
$\Gamma _i$
. Fix an isomorphism
$\phi :\Gamma _i\rightarrow \Gamma'_i$
.
For each of the edge contractions we have a gluing map
and, for each
$k$
, we get the differential restricted to
$\Gamma$
,
\begin{align} \nonumber d_1:\bigl (H^r(\overline {\mathscr{M}}_\Gamma ) \otimes {\rm det}(E_\Gamma )\bigr )^{\textrm {Aut}(\Gamma )} & \rightarrow \bigoplus _{|E_{\Gamma'}|=|E_\Gamma |-1} \bigl (H^{r+2}(\overline {\mathscr{M}}_{\Gamma'}) \otimes {\rm det}(E_{\Gamma'})\bigr )^{\textrm {Aut}(\Gamma')}\\ x & \mapsto \sum _{i=1}^{|E_\Gamma |}\frac {1}{|{\rm Aut}(\Gamma'_i)|}\sum _{\psi \in {\rm Aut}(\Gamma'_i)}\textrm {sgn}(\sigma _{i,\psi })\cdot (\psi \circ \phi \circ \xi _{\Gamma ,\Gamma _i})_*(x), \end{align}
where
$\sigma _{i,\psi }:=\alpha _{\Gamma'_i}\circ \psi _E\circ \phi _E\circ \beta ^{-1}_{\Gamma _i}$
is the permutation of
$\{1,\ldots ,|E_\Gamma |\}$
that sends
$i$
to
$|E_\Gamma |$
and that acts by
$\alpha _{\Gamma'_i}\circ \psi _E\circ \phi _E\circ \beta ^{-1}_{\Gamma _i}$
elsewhere. Here
$\psi _E,\phi _E$
denote the induced maps on edges. The contribution of
$\textrm {sgn}(\sigma _{i,\psi })$
comes from the conversion of
${\rm det}(E_\Gamma )$
coefficients into
${\rm det}(E_{\Gamma'})$
coefficients.
Example 2.1. Consider the following stable graphs with ordered edges:

On
$\Gamma$
, the differential map can be restricted to a map
\begin{align*} & \bigl (H^*(\overline {\mathscr{M}}_\Gamma ) \otimes {\rm det}(E_\Gamma )\bigr )^{\textrm {Aut}(\Gamma )}\\& \rightarrow \bigl (H^*(\overline {\mathscr{M}}_{\Gamma'_1}) \otimes {\rm det}(E(\Gamma'_1))\bigr )^{\textrm {Aut}(\Gamma'_1)} \bigoplus \bigl (H^*(\overline {\mathscr{M}}_{\Gamma'_2}) \otimes {\rm det}(E(\Gamma'_2))\bigr )^{\textrm {Aut}(\Gamma'_2)} \end{align*}
such that

where
$1$
represents the fundamental class.
2.1 Compact type and rational tails
A stable curve is of compact type if its dual graph has no cycles. We say it is a curve with rational tails if it has one irreducible component of full genus, because then all other components are chains (tails) of rational curves.
We consider Deligne’s pushforward weight spectral sequence in the cases
$\mathscr{M}^{\,{\rm ct}}_{g,n}\subset \overline {\mathscr{M}}_{g,n}$
and
$\mathscr{M}^{\,{\rm rt}}_{g,n} \subset \overline {\mathscr{M}}_{g,n}$
. The first page of the spectral sequence is similar to the one for
$\mathscr{M}_{g,n} \subset \overline {\mathscr{M}}_{g,n}$
. The difference is that in the case of curves of compact type we sum over stable graphs without bridges and in the case of curves with rational tails we sum over stable graphs without any rational tails.
This can be proved by applying the description of how the boundary strata of the moduli space of stable curves meet, but restricted to the subset of boundary strata of the moduli space of curves of compact type (respectively rational tails); see for instance [Reference Arbarello, Cornalba and GriffithsACG11, Chapter XII, Section 10]. In the case of compact type, more details will be found in the forthcoming thesis of Amy Bradford.
3. Deligne’s pullback weight spectral sequence
When doing concrete computations, it is helpful to use both Deligne’s pushforward weight spectral sequence and its Poincaré dual version, which has an
$E_1$
-page of the form
see [Reference PetersenPet17, Example 3.5]. This spectral sequence also degenerates at the second page and abuts to the weight
$q$
graded piece,
Fixing
$q$
, the complex
$\tilde E_1^{p,q}$
can also be identified with the Getzler–Kapranov complex
${\rm GK}^q_{g,n}$
. For more details, see [Reference Payne and WillwacherPW24b, Section 2.3] and [Reference Getzler and KapranovGK98]. Similarly to Section 2, the differential
restricted to a graph
$\Gamma$
is given by
\begin{align} x \mapsto \sum _{v\in V_\Gamma }\sum _{\hat \Gamma }\frac {1}{|{\rm Aut}(\hat \Gamma')|}\sum _{\psi \in {\rm Aut}(\hat \Gamma')}\textrm {sgn}(\sigma _{\hat \Gamma ,\psi })\cdot (\xi _{\hat \Gamma ,\Gamma }\circ \phi \circ \psi )^*(x). \end{align}
Here the second sum is over all stable graphs
$\hat \Gamma$
obtained by either splitting the vertex
$v$
or adding a loop to the vertex
$v$
and lowering its genus by one. This operation is dual to contracting an edge in the sense that by contracting this new edge of
$\hat \Gamma$
, we obtain
$\Gamma$
again. From the ordering of
$\Gamma$
we inherit the ordering
$\gamma _{\hat {\Gamma }}: E_{\hat {\Gamma }}\rightarrow \{1,\ldots ,|E_\Gamma |+1\}$
obtained by sending the new edge to
$|E_\Gamma |+1$
. Let
$\hat \Gamma'$
be the chosen representative of the isomorphism class of
$\hat \Gamma$
and fix an isomorphism
$\phi :\hat \Gamma \rightarrow \hat \Gamma'$
. Now
$\sigma _{\hat \Gamma ,\psi }:=\alpha _{\hat \Gamma'}\circ \psi _E\circ \phi _E\circ \gamma ^{-1}_{\hat \Gamma }$
.
Example 3.1. Let
. Then the stable graphs
$\hat \Gamma$
obtained by splitting a vertex or adding a loop are
and
.
3.1 Compact type and rational tails
Just like in the pushforward case, we can calculate Deligne’s pullback spectral sequence for moduli spaces of curves of compact type (respectively with rational tails) by restricting the graphs we sum over. Unlike in the pushforward case, we now also need to restrict the differential map. This is done by not allowing the splitting of a vertex in a way that would result in a graph with a bridge (respectively rational tail).
4. Tautological cohomology
Our computations will be carried out using tautological cohomology, which we briefly describe here. For any stable graph
$\Gamma$
and monomial
$\theta$
in
$\kappa$
- and
$\psi$
-classes pulled back from the projection onto the factors of
$\overline {\mathscr{M}}_\Gamma$
, we get a class in the Chow ring
$A^*(\overline {\mathscr{M}}_{\Gamma })$
called a decorated stratum class. Let
$S_{g,n}^*$
denote the
$\mathbb{Q}$
-vector space with the decorated stratum classes as a basis. To any decorated stratum, corresponding to
$\Gamma ,\theta$
, we get an element
The image of
$S_{g,n}^*$
in
$A^{*}(\overline {\mathscr{M}}_{g,n})$
is the tautological ring
$R^*(\overline {\mathscr{M}}_{g,n})$
. See, for instance, [Reference Graber and PandharipandeGP03] for more details.
The image of
$R^*(\overline {\mathscr{M}}_{g,n})$
in cohomology
$H^{2*}(\overline {\mathscr{M}}_{g,n})$
, under the cycle class map, will be denoted by
$RH^*(\overline {\mathscr{M}}_{g,n})$
and will be called the tautological cohomology. If
$RH^r(\overline {\mathscr{M}}_{g,n})=H^{2r}(\overline {\mathscr{M}}_{g,n})$
, then we will say that the cohomology (group) is tautological. In [Reference PixtonPix12, Reference Pandharipande, Pixton and ZvonkinePPZ15], a set
$P_{g,n}^*$
of relations among the generators
$S_{g,n}^*$
mapped inside
$RH^*(\overline {\mathscr{M}}_{g,n})$
, called Pixton’s relations (and also called the generalized Faber–Zagier relations), were given and were conjectured to be all relations.
5. The computer implementation
We have implemented Deligne’s pushforward and pullback weight spectral sequences described in Sections 2 and 3 into a program that takes any pair
$(g,n)$
such that
$2g+n \leq 12$
and computes (under the assumption that Pixton’s relations are all relations, see below) the weight graded pieces of the rational cohomology of
$\mathscr{M}_{g,n}$
. The implementation is based upon knowledge of the tautological cohomology of moduli spaces of stable pointed curves and builds upon the SageMath module admcycles (see [Reference Delecroix, Schmitt and van ZelmDSZ22]).
Since our implementation is based upon computations in the tautological cohomology ring, we need to make sure that the
$E^1$
-page of the spectral sequences consists of tautological cohomology. But if
$2\tilde g+\tilde n \leq 12$
, then by [Reference Canning and LarsonCL26, Theorem 1.4] the cohomology of
$\overline {\mathscr{M}}_{\tilde g,\tilde n}$
is tautological, and hence, for all
$g,n,p,q$
such that
$2g+n \leq 12$
,
$E_1^{-p+i,q}$
and
$\tilde E_1^{p+i,q}$
will be tautological. Note that since tautological cohomology is of Tate type, it follows that the cohomology of
$\mathscr{M}_{g,n}$
will be of Tate type. Note also that the assumption that all of the cohomology of
$\overline {\mathscr{M}}_{g,n}$
is tautological implies that the tautological cohomology is Gorenstein, because of Poincaré duality.
In all cases where we use the Pixton relations, we have verified that these are all relations; see more on this in Section 5.3.
5.1 The algorithm
The general outline of our algorithm is as follows. Note that this does not include the refinements discussed in Section 5.2.
-
• As input to the algorithm, we decide which weights we compute using the pushforward spectral sequence and which weights we instead use the pullback spectral sequence.
-
• Then, for all
$\lambda \vdash n$
and all relevant graphs
$\Gamma$
, we compute a basis for each tautological cohomology group
$(S_{g',n'}^{r'}/P^{r'}_{g',n'})^{\mathbb{S}_{\lambda'}}$
that appears in the terms of
$((H^{q}(\overline {\mathscr{M}}_\Gamma ) \otimes {\rm det}(E_\Gamma ))^{{\rm Aut}(\Gamma )})^{\mathbb{S}_\lambda }$
. We also keep track of how to map any element of
$(S_{g',n'}^{r'})^{\mathbb{S}_{\lambda'}}$
to this basis. Here
$\mathbb{S}_\lambda :=\prod \mathbb{S}_{\lambda _i}$
is the subgroup of
$\mathbb{S}_n$
, permuting the marked points. -
• The group
$\mathbb{S}_\lambda$
also acts on the graphs appearing in the terms of the spectral sequences. We choose a representative
$\Gamma$
for each orbit. -
• Then for each such graph
$\Gamma$
we compute a basis for each
$((H^{q}(\overline {\mathscr{M}}_\Gamma ) \otimes {\rm det}(E_\Gamma ))^{{\rm Aut}(\Gamma )})^{\mathbb{S}_\lambda }$
that appears in the spectral sequence. This includes keeping track of how elements of
$(H^{q}(\overline {\mathscr{M}}_\Gamma ))^{\mathbb S_\lambda }$
map to this basis. -
• In the case where the
$\mathbb S_\lambda$
-action is trivial (i.e.
$\lambda = [1,\ldots ,1]$
), we now compute the image of the differential. For all other
$\lambda$
, we symmetrize this image. That is, we send every element of the image to a fixed representative of its
$\mathbb S_\lambda$
-orbit. -
• From the ranks of the images and of the
$((H^{q}(\overline {\mathscr{M}}_\Gamma ) \otimes {\rm det}(E_\Gamma ))^{{\rm Aut}(\Gamma )})^{\mathbb{S}_\lambda }$
, we compute the ranks of the groups on the second page of the spectral sequence up to
$\mathbb{S}_\lambda$
-action. -
• We express the
$\mathbb{S}_\lambda$
in terms of the irreducible representations of
$\mathbb S_n$
.
Remark 5.1. The order in which we do the steps is not exactly as described above. In particular, we first do all computations for
$\lambda = [1,\ldots ,1]$
, where the action is trivial. Then, for other
$\lambda$
, we can restrict our computations to those that contribute to parts of the second page that are non-zero for the trivial action.
During the computations we save partial results, such as the image of the page one differential restricted to a specific graph. Thus, computing the weight graded pieces of the cohomology of
$\mathscr{M}^{\,{\rm ct}}_{g,n}$
and
$\mathscr{M}^{\,{\rm rt}}_{g,n}$
simply becomes a matter of combining these partial results in a different manner. Note that this might require us to now compute partial results that we previously skipped due to Remark 5.1.
The SageMath module admcycles could already compute the generators, relations and bases for
$(S_{g,n}^r/P^r_{g,n})^{\mathbb{S}_\lambda }$
. But we added some optimizations to the original base computation code in order to reach the cases we need. Furthermore, admcycles can compute pushforwards and pullbacks of elements of
$S_{g,n}^r/P^r_{g,n}$
under gluing maps.
5.2 Computing the tautological ring of the moduli space of stable curves
The main bottleneck in our computations is that of
$RH^r(\overline {\mathscr{M}}_{g,n})$
appearing in the factors of
$RH^*(\overline {\mathscr{M}}_\Gamma )$
. We need a basis of
$RH^r(\overline {\mathscr{M}}_{g,n})$
and a way to convert any decorated stratum class to this basis. The numbers of generators and relations grow quickly with
$g, n, r$
, and so solving the system of equations demands large amounts of memory already for small values of
$g, n, r$
.
In particular, the number of relations obtained from Pixton’s formula grows similarly to the number of partitions of size at most
$3r - g - 1$
(see [Reference PixtonPix12]). Using [Reference PixtonPix12, Proposition 2], one can alternatively compute the relations using the recursive structure of the boundary. This was originally implemented by Pixton for the
$\mathbb S_n$
-invariant part of the cohomology. In [Reference WenninkWen22] it was optimized and extended to the
$\mathbb S_{n'}$
-invariant part of the cohomology for
$0\leq n' \leq n$
. It provides a significant improvement over directly using Pixton’s formula except for very small
$r$
. However, it has not been implemented for general
$\mathbb S_\lambda$
invariants.
Another way to deal with the large number of relations is that if
$2r \gt 3g-3+n$
, then we can use the pairing in cases when it is perfect (which holds if
$2g+n \leq 12$
) to compute
$RH^r(\overline {\mathscr{M}}_{g,n})$
from
$RH^{3g-3+n-r}(\overline {\mathscr{M}}_{g,n})$
. This requires computing the multiplication matrix for multiplying the elements of
$S_{g,n}^r$
with a basis of
$RH^{3g-3+n-r}(\overline {\mathscr{M}}_{g,n})$
. The number of elements in this basis is a lot smaller than the number of Pixton’s relations.
In some cases we can use the symmetry of
$\Gamma$
to lower the number of decorated stratum classes we need to consider. Let
$v\in V_\Gamma$
and let
$G_v\subset {\rm Aut}(\Gamma )$
be the subgroup generated by the automorphisms that swap the two half-edges of a self-edge of
$v$
and the automorphisms that swap two self-edges of
$v$
. We define
and
where
$E_\Gamma (v,v)\subset E_\Gamma$
is the set of self-edges at
$v$
. Because
\begin{align*}H^*(\overline {\mathscr{M}}_\Gamma ,{\rm det}(E_\Gamma ))^{{\rm Aut}(\Gamma )} \cong \Bigg(\Bigg(\prod _{v\in {V_\Gamma }}H^*(\Gamma , v)\Bigg)\otimes {\rm det}(E_\Gamma )\Bigg)^{{\rm Aut}(\Gamma )/(\bigoplus _v G_v)},\end{align*}
we can compute Pixton’s relations on
$S^r(\Gamma , v)$
, rather than on
$S^r_{g(v),n(v)}$
.
Let
$m$
be the number of self-edges at
$v$
and consider the subgroup
$\mathbb S_2^m\subset G_v$
that permutes the half-edges of each self-edge. Let
$x\in RH^r(\overline {\mathscr{M}}_{g,n})$
and
$y\in RH^{3g-3+n-r}(\overline {\mathscr{M}}_{g,n})$
, so then
Therefore, when we use the perfect pairing, we can calculate the multiplication matrix for multiplying with
$(S^r_{g(v),n(v)})^{\mathbb S_2^m}$
rather than with
$S^r_{g(v),n(v)}$
. Unfortunately, the same does not hold for the action by the whole of
$G_v$
, so we cannot use it in combination with the perfect pairing.
Let
$\Gamma _g$
be the graph consisting of a single vertex of genus
$g$
and
$5-g$
self-edges. Here are some data that illustrate how the number of decorated stratum classes grows.
\begin{align*}\begin{array}{l@{\quad}c@{\quad}c@{\quad}c@{\quad}c@{\quad}c@{\quad}c} g & 0 & 1 & 2 & 3 & 4 & 5 \\[3pt] \hline\\[-9pt] |S^1_{g,10-2g}| & 512 & 257 & 97 & 33 & 11 & 4 \\[4pt] |S^2_{g,10-2g}| & 29\,836 & 10\,353 & 2404 & 478 & 95 & 23 \\[4pt] |(S^2_{g,10-2g})^{\mathbb S_2^{5-g}}| & 3959 & 2210 & 750 & 229 & 68 & 23 \\[4pt] |(S^3_{g,10-2g})^{\mathbb S_2^{5-g}}| & 65\,380 & 29\,749 & 8398 & 1974 & 456 & 109 \\[4pt] |(S^4_{g,10-2g})^{\mathbb S_2^{5-g}}| & 651\,710 & 270\,478 & 66\,650 & 13\,475 & 2581 & 518 \\[4pt] |S^4(\Gamma _g, 1)| & 2677 & 6759 & 8151 & 5943 & 2581 & 518 \\ \end{array}\end{align*}
Note that the actions by
$\mathbb S_2^{5-g}$
and
$G_v$
provide a significant improvement. Because of this, computing the weight graded pieces of the cohomology of
$\mathscr{M}_{4,2}$
is in some respects harder than computing those of
$\mathscr{M}_5$
, despite the fact that the former space is of lower dimension.
5.3 Completeness of Pixton’s relations
In genus 0 and 1, the tautological cohomology of
$\overline {\mathscr{M}}_{g,n}$
is known and Pixton’s relations are all relations. For the other
$(S_{g,n}^r/P_{g,n}^r)^{\mathbb{S}_{\lambda }}$
we use, we check that
$\dim H^{2r}(\overline {\mathscr{M}}_{g,n})^{\mathbb{S}_{\lambda }} = \dim \;(S_{g,n}^r/P_{g,n}^r)^{\mathbb{S}_{\lambda }}$
. Since all cohomology is tautological, this implies that Pixton’s relations are all relations. All the Betti numbers necessary for the check were already known except the ones for
$\overline {\mathscr{M}}_{5}$
. The computation of the Betti numbers of
$\overline {\mathscr{M}}_{5}$
will be part of a forthcoming work by the first author together with Samir Canning, Dan Petersen and Johannes Schmitt (https://arxiv.org/abs/2610.09694).
In the cases where we use
$H^*(\Gamma , v)$
we work with invariant parts of cohomology under a wraith group action
$(S_{g,n}^r/P_{g,n}^r)^{\mathbb S_2 \wr \mathbb S_2^{k}}$
. In the cases where
$(S_{g,n}^r/P_{g,n}^r)^{\mathbb S_2^{k}}$
is computable we can check the Pixton conjecture there. This leaves the following cases: for
$(S_{2,6}^r/P_{2,6}^r)^{\mathbb S_2^{3}}$
, with
$r\leq 4$
and
$(S_{3,4}^5/P_{3,4}^5)^{\mathbb S_2^{2}}$
, the intersection matrix over a finite field was computed. The lower bound obtained from Pixton’s relations in this way was then compared against the corresponding known Betti number.
We sum up our checks in the following proposition.
Proposition 5.2.
For all
$g$
and
$n\leq N$
, where
$(g, N) \in \{(2,4),(3,3),(4,1),(5,0)\}$
, Pixton’s relations are all relations in
$RH^*(\overline {\mathscr{M}}_{g,n})$
. Furthermore, Pixton’s relations are all relations in
$RH^*(\overline {\mathscr{M}}_{2,5})^{\mathbb S_2}$
,
$RH^*(\overline {\mathscr{M}}_{2,6})^{\mathbb S_2^3}$
,
$RH^*(\overline {\mathscr{M}}_{3,4})^{\mathbb S_2^2}$
and
$RH^*(\overline {\mathscr{M}}_{4,2})^{\mathbb S_2}$
.
5.4 Bookkeeping challenges
Implementing a simple version of the program was relatively straightforward. The vast majority of the work went into refining it to a level where it can actually compute something that was not already known.
For the group actions we consider, whenever possible we want to work with a single representative of each orbit, rather than carrying out computations on the whole weighted sum of the elements of the orbit. This then results in a convention on how ordering relates to the group action. Consider for example the action by
$\mathbb{S}_2$
on
$S_{g,n}^r$
. If we have a representative of an orbit, that gives us enough information to reconstruct the weighted sum provided we know which two marked points are being permuted by the
$\mathbb{S}_2$
-action. We are only going to precompute a basis for
$(S_{g,n}^r/P^r_{g,n})^{\mathbb{S}_2}$
once, namely with the convention that the first two points are the ones being acted upon. Thus, whenever we permute the marked points, for example when applying the permutation induced by
$\phi$
from Section 2, we need to make sure that this convention is being respected.
Besides the action of
$\mathbb{S}_\lambda$
on
$H^*(\overline {\mathscr{M}}_\Gamma )$
, there are the actions by
${\rm Aut}(\Gamma )$
and its subgroups
$\mathbb S_{2}^k$
and
$G_v$
. Furthermore, there is the action of
$\mathbb S_\lambda$
on the collection of graphs. The bookkeeping required to make sure all the corresponding ordering conventions are respected and interact well with each other turned out to be one of the main challenges of the implementation.
While admcycles could already compute
$(S_{g,n}^r/P^r_{g,n})^{\mathbb{S}_\lambda }$
, the majority of admcycles is agnostic with respect to the
$\mathbb{S}_\lambda$
action. Similarly, while the data structure of a graph in admcycles naturally comes with an ordering of edges, as a whole admcycles is agnostic with respect to this ordering.
5.5 Computations
Using our implementation we computed the weight graded pieces of the cohomology of
$\mathscr{M}_{g,n}$
for
$n\leq N$
in the cases
$(g, N) \in \{(1,6),(2,4),(3,3),(4,1),(5,0)\}$
. We used a computer with a
$32$
-core
$64$
-thread CPU and half a terabyte of memory. The results can be found in Section 7.
In order to compute the weight graded pieces of the cohomology of
$\mathscr{M}_5$
, we used Deligne’s pushforward weight spectral sequence for
$q\leq 7$
and Deligne’s pullback weight spectral sequence for
$q\leq 4$
. We first computed bases for all the required
$RH^r(\overline {\mathscr{M}}_{g,n})$
. Here in many cases we only computed a basis for invariants under some group action as described in Section 5.2. Each case could be computed within two weeks and the largest cases used almost all of the memory. The rest of the computation was split into many smaller tasks. The dependency graph for these tasks is not a tree. We wrote a simple parallel programming task scheduler to deal with this. It also reschedules failed tasks (due to memory overload) and dynamically adjusts the number of allowed tasks when restarting the ones that failed. This is needed because the tasks vary a lot in terms of how much memory they require. Furthermore, running tasks in their own processes guarantees that the memory gets released afterwards, which is relevant because admcycles has memory leaks. Running all these tasks took roughly two weeks. Computing the weight graded pieces of the cohomology of
$\mathscr{M}_{3,3}$
took a similar amount of time.
After computing those of
$\mathscr{M}_{g,n}$
, computing the weight graded pieces of the cohomology of
$\mathscr{M}^{\,{\rm ct}}_{g,n}$
and
$\mathscr{M}^{\,{\rm rt}}_{g,n}$
required relatively limited extra computation time.
In principle our program can compute all the weight graded pieces of the cohomology of
$\mathscr{M}_{g,n}$
for all
$2g+n \leq 12$
(as usual, assuming that Pixton’s relations are all relations), but in practice we cannot due to memory constraints.
6. Future directions
In this section we will describe some cases for which one could apply (a generalization of) our program to compute weight graded pieces of the cohomology of
$\mathscr{M}_{g,n}$
.
By [Reference CanningCan24, Remark 3.7], for all
$g,n$
such that
$3g+2n\lt 25$
we can restrict to the tautological contributions to the
$\tilde E_1$
-page in Deligne’s pullback weight spectral sequence to get the correct
$\tilde E_2$
-page. This extends the range
$2g+n \leq 12$
, and it is conjectured in [Reference CanningCan24] to be the optimal range (this conjecture is also proven for
$g+n \leq 150$
).
Assuming that Pixton’s relations are all relations, we could also restrict to any single choices of
$g,n,p,q$
, such that all cohomology groups appearing in
$E_1^{-p+i,q}$
(or
$\tilde E_1^{p+i,q}$
), for
$i \in \{-1,0,1\}$
, are tautological. This holds, for instance, for
$\tilde E_1^{p+i,q}$
for any
$g,n,p$
and even
$q \leq 4$
, and also for
$q=6$
when we are assuming that
$g \geq 10$
(see [Reference Canning, Larson and PayneCLP24, Theorem 1.5]). See further details in [Reference CanningCan25, Theorem 8] for some other cases with
$q$
even and
$g \leq 8$
.
At present, the program only works with tautological cohomology, but it would in principle be generalizable if one knows how the non-tautological classes behave under gluing maps. An example would be
$H^{11}(\overline {\mathscr{M}}_{g,n})$
, which is non-zero only for
$g=1$
and
$n \geq 11$
(see [Reference Canning, Larson and PayneCLP23, Theorem 1.1]), and for the non-zero classes the pullback under gluing maps is described in [Reference Payne and WillwacherPW24a, Section 3]. Using this description a possible extension of our program would compute the weight
$11$
graded piece of the compactly supported cohomology of
$\mathscr{M}_{g,n}$
for any
$g,n$
(since all odd contributions up to weight
$9$
to the cohomology of
$\overline {\mathscr{M}}_{\tilde g,\tilde n}$
for any
$\tilde g,\tilde n$
vanish; see [Reference Bergström, Faber and PayneBFP24] and [Reference Payne and WillwacherPW24a]).
7. A list of
$\mathbb S_n$
-equivariant Hodge–Serre polynomials
Here we collect the results from our computations described in Section 5.5. This notation will be slightly different from that in Theorems1.1 and 1.3. For any
$g,n \geq 0$
, with
$2g-2+n \gt 0$
, define the polynomial
with the notation from Section 1. We will only compute this polynomial in cases for which all of the weight graded pieces of the cohomology of
$\mathscr{M}_{g,n}$
are Tate, which justifies the use of
$\mathbb{L}$
as variable and that only even weights are considered.
Theorem 7.1. We have that
\begin{align*} p_{1,1} & = s_{1},\\ p_{1,2} & = s_{2},\\ p_{1,4} & = t^{3} \mathbb{L}^{3} s_{2,1,1} + t^{4} \mathbb{L}^{4} s_{3,1} + (t^{3} \mathbb{L}^{2} + 1 ) s_{4} , \end{align*}
\begin{align*} p_{1,5} & = t^{5} \mathbb{L}^{5} s_{1,1,1,1,1} + t^{5} \mathbb{L}^{5} s_{2,2,1} + (t^{4} \mathbb{L}^{4} + t^{3} \mathbb{L}^{3} ) s_{3,1,1} + (t^{5} \mathbb{L}^{5} + t^{4} \mathbb{L}^{4} + t^{4} \mathbb{L}^{3} ) s_{3,2} \\ & \quad + (t^{4} \mathbb{L}^{4} + t^{3} \mathbb{L}^{2} ) s_{4,1} + (t^{5} \mathbb{L}^{5} + t^{3} \mathbb{L}^{2} + 1 ) s_{5} ,\\ p_{1,6} & = t^{5} \mathbb{L}^{5} s_{2,1,1,1,1} + t^{5} \mathbb{L}^{5} s_{2,2,1,1} + (t^{6} \mathbb{L}^{6} + t^{5} \mathbb{L}^{5} ) s_{2,2,2} + 2 t^{6} \mathbb{L}^{6} s_{3,1,1,1}\\ & \quad + (t^{6} \mathbb{L}^{6} + 2 t^{5} \mathbb{L}^{5} + t^{5} \mathbb{L}^{4} + t^{4} \mathbb{L}^{4} + t^{4} \mathbb{L}^{3} ) s_{3,2,1} \\ & \quad + (t^{5} \mathbb{L}^{5} + t^{4} \mathbb{L}^{4} + t^{4} \mathbb{L}^{3} ) s_{3,3} + (t^{6} \mathbb{L}^{6} + t^{5} \mathbb{L}^{4} + t^{4} \mathbb{L}^{4} + t^{3} \mathbb{L}^{3} ) s_{4,1,1}\\ &\quad + (t^{6} \mathbb{L}^{6} + 2 t^{5} \mathbb{L}^{5} + t^{4} \mathbb{L}^{4} + t^{4} \mathbb{L}^{3} + t^{3} \mathbb{L}^{2} ) s_{4,2} \\ & \quad + (t^{5} \mathbb{L}^{5} + t^{4} \mathbb{L}^{4} + t^{4} \mathbb{L}^{3} + t^{3} \mathbb{L}^{2} ) s_{5,1} + (t^{5} \mathbb{L}^{5} + t^{3} \mathbb{L}^{2} + 1 ) s_{6},\\ p_{2,0} & = 1 ,\\ p_{2,1} & = (t^{2} \mathbb{L} + 1 ) s_{1} ,\\ p_{2,2} & = t^{2} \mathbb{L} s_{1,1} + (t^{5} \mathbb{L}^{5} + t^{2} \mathbb{L} + 1 ) s_{2} ,\\ p_{2,3} & = (t^{5} \mathbb{L}^{5} + t^{2} \mathbb{L} ) s_{2,1} + (t^{5} \mathbb{L}^{5} + t^{3} \mathbb{L}^{2} + t^{2} \mathbb{L} + 1 ) s_{3} ,\\ p_{2,4} & = (t^{7} \mathbb{L}^{7} + t^{6} \mathbb{L}^{5} ) s_{2,1,1} + t^{5} \mathbb{L}^{5} s_{2,2} + (t^{5} \mathbb{L}^{5} + t^{3} \mathbb{L}^{2} + t^{2} \mathbb{L} ) s_{3,1}\\ &\quad + (t^{8} \mathbb{L}^{7} + t^{6} \mathbb{L}^{6} + t^{5} \mathbb{L}^{5} + t^{5} \mathbb{L}^{3} + t^{3} \mathbb{L}^{2} + t^{2} \mathbb{L} + 1 ) s_{4} ,\\ p_{3,0} & = t^{6} \mathbb{L}^{6} + t^{2} \mathbb{L} + 1 ,\\ p_{3,1} & = (t^{8} \mathbb{L}^{7} + t^{6} \mathbb{L}^{6} + t^{4} \mathbb{L}^{2} + 2 t^{2} \mathbb{L} + 1 ) s_{1} ,\\ p_{3,2} & = (t^{8} \mathbb{L}^{7} + t^{4} \mathbb{L}^{2} + t^{2} \mathbb{L} ) s_{1,1} + (t^{8} \mathbb{L}^{7} + t^{6} \mathbb{L}^{6} + t^{5} \mathbb{L}^{3} + t^{4} \mathbb{L}^{2} + 2 t^{2} \mathbb{L} + 1 ) s_{2} ,\\ p_{3,3} & = (2 t^{8} \mathbb{L}^{7} + 2 t^{5} \mathbb{L}^{3} + t^{4} \mathbb{L}^{2} + t^{2} \mathbb{L} ) s_{2,1}\\ & \quad + (t^{9} \mathbb{L}^{9} + 2 t^{9} \mathbb{L}^{8} + 2 t^{8} \mathbb{L}^{7} + t^{6} \mathbb{L}^{6} + 2 t^{5} \mathbb{L}^{3} + t^{4} \mathbb{L}^{2} + 2 t^{2} \mathbb{L} + 1 ) s_{3} ,\\ p_{4,0} & = t^{5} \mathbb{L}^{3} + t^{4} \mathbb{L}^{2} + t^{2} \mathbb{L} + 1 ,\\ p_{4,1} & = (t^{9} \mathbb{L}^{8} + t^{7} \mathbb{L}^{4} + t^{6} \mathbb{L}^{3} + 2 t^{5} \mathbb{L}^{3} + 2 t^{4} \mathbb{L}^{2} + 2 t^{2} \mathbb{L} + 1 ) s_{1} ,\\ p_{5,0} & = t^{14} \mathbb{L}^{12} + t^{7} \mathbb{L}^{4} + t^{6} \mathbb{L}^{3} + t^{5} \mathbb{L}^{3} + t^{4} \mathbb{L}^{2} + t^{2} \mathbb{L} + 1 . \end{align*}
Acknowledgements
We are most grateful to Amy Bradford, Samir Canning, Hannah Larson, Sam Payne, Dan Petersen, Johannes Schmitt, Orsola Tommasi, Thomas Willwacher and Angelina Zheng for valuable discussions and comments, and to Samir Canning for suggesting the implementation of Deligne’s weight spectral sequences. We thank the referees for their careful reading and helpful comments.
Financial Support
During this work, the second author was supported by a Sverker Lerheden fellowship for postdoctoral studies.
Conflicts of interest
None.
Journal information
Moduli is published as a joint venture of the Foundation Compositio Mathematica and the London Mathematical Society. As not-for-profit organisations, the Foundation and Society reinvest
$100\%$
of any surplus generated from their publications back into mathematics through their charitable activities.
Sn