                 HyperIMTS: Hypergraph Neural Network for Irregular Multivariate Time Series Forecasting

                                                                         4. Methodology
                                                                         We first detail the efficient hypergraph representation for
                                                                         IMTS samples in Section 4.1. Subsequently, we explain how
                                                                         to leverage it for the IMTS forecasting task in Section 4.2.

                                                                         4.1. Efficient Hypergraph Representation for IMTS
                                                                         Instead of using padding or patching, we convert original
                                                                         observations into node embeddings within the hypergraph,
                                                                         thereby improving efficiency in both data preprocessing
Figure 2. Illustration of the proposed efficient hypergraph repre-       and model training. As shown in Figure 2, the hyper-
sentation for IMTS. (a) Original IMTS sample, where V1 , V2 , and        graph is defined as G := {V, E}. The observation node
V3 represent three different variables. (b) The corresponding hy-        embeddings are expressed as V := {vj |j = 1, ..., M },
pergraph representation. From top to bottom, variable hyperedges,        and two types of hyperedge embeddings E := ET ∩ EU
observation nodes, and temporal hyperedges are displayed. Each           are defined, including temporal hyperedge embeddings
observation node connects to the associated variable hyperedge           Etime := {et |t = 1, ..., T } and variable hyperedge embed-
above and the temporal hyperedge below. Gradient color lines             dings Evar := {eu |u = 1, ..., U }. The topology of a hy-
between hyperedges indicate hyperedge-to-hyperedge message               pergraph can be represented using two incidence matrices:
passing.
                                                                         HT ∈ RM ×T for temporal hyperedges, and HU ∈ RM ×U
                                                                         for variable hyperedges. Entries Hjt in HT are defined as:
                                                                                                     (
                                                                                                       1, vj ∈ et
                                                                                            Hjt =                   .            (2)
hyperedges can connect multiple nodes, facilitating more                                               0, vj ∈ / et
types of message passing. Its ability to represent data at
different granularities and model their complex interactions             And entries Hju in HU are defined in the same way as
has attracted researchers in various fields (Zhou et al., 2006;          Eq. (2). Unlike the edge in traditional graph structures
Yan et al., 2020; Gao et al., 2023; Yu et al., 2012). Hyper-             which can only connect two nodes, a hyperedge can connect
graph neural networks are still in their early stages for time           an arbitrary number of nodes, enabling hypergraphs to cap-
series analysis (Shang et al., 2024; Luo et al., 2022; Li et al.,        ture more complex relationships among nodes. Using the
2022; Sawhney et al., 2021). They usually assume inputs                  above notations, the IMTS forecasting problem is framed
to be fully observed, which makes them not well-suited for               as the node prediction task in hypergraphs, where nodes
IMTS.                                                                    representing forecast targets are the ones to predict.
                                                                         We initialize node embeddings by encoding the observed
3. Problem Definition                                                    values Zi of the i-th sample through a non-linear mapping
                                                                         ReLU(FFobs (·)) into Pobs -dimensional embedding V ∈
We consider an IMTS dataset D := {Si |i = 1, ..., n} con-                RM ×Pobs :
sisting of n samples, where Si is the i-th sample. With a                                  V = ReLU(FFobs (Zi )),               (3)
total of T timestamps and U variables, each IMTS sample
                                                                         where the values of forecast targets are initialized to 0. For
can be denoted as a set containing M observation tuples
                                                                         temporal hyperedge embeddings from timestamp set Ti ,
Si := {(tj , zj , uj )|j = 1, ..., M }, where tj ∈ {1, ..., T },
                                                                         we initialize them using sinusoidal encoding after linear
zj ∈ R, and uj ∈ {1, ..., U } represents the timestamp,
                                                                         mapping FFtime (·) to obtain the Ptime -dimensional temporal
observed value, and variable indicator respectively. For
                                                                         embedding Etime ∈ RT ×Ptime :
the IMTS forecasting task, given a split timestamp tS , an
IMTS sample is divided into a lookback window Xi :=                                        Etime = sin(FFtime (Ti )).              (4)
{(tj , zj , uj )|j = 1, ..., M, tj ≤ tS } and a forecast window          For variable hyperedge embeddings from variable set Ui ,
Yi := {[(tj , uj ), zj ]|j = 1, ..., M, tj > tS }. The forecast          we use learnable parameters Wvar of shape U × Pvar for
query qj ∈ Qi is derived by combining (tj , uj ) of the j-th             initializations, where Pvar denotes the variable embedding
observation tuple within the forecast window. We aim to                  dimension:
learn a forecasting model F(·), such that given the lookback
window Xi and forecast query Qi as input, it accurately                                     Evar = ReLU(Wvar ).                    (5)
predicts the corresponding observed values Zi :
                                                                         4.2. Forecasting with HyperIMTS
                                                                         The overview of our proposed model, HyperIMTS, is il-
                      F(Xi , Qi ) → Zi .                      (1)        lustrated in Figure 3. It leverages the hypergraph represen-

                                                                     3
