                   HyperIMTS: Hypergraph Neural Network for Irregular Multivariate Time Series Forecasting

4.2.2. I NTER -VARIABLE M ESSAGE PASSING                                            where δ is initialized to 0.5. The logic behind α is to pri-
                                                                                    oritize Sobs over Svar if there are more aligned observa-
In this section, we introduce the irregularity-aware
                                                                                    tions than unaligned ones, and the variables are similar. If
hyperedge-to-hyperedge message passing among variables,
                                                                                    Sobs = 0, it indicates that all observations among the vari-
as illustrated in Figure 3 (b). It begins by determining cor-
                                                                                    ables are unaligned, such as V2 and V3 in Figure 3. In this
relations among variables, which are realized through the
                                                                                    case, we maintain their connection for message passing
calculation of variable similarities. We first calculate the
                                                                                    using the overall variable similarity Svar .
overall variable similarities among all connected observa-
tions. For two different variables ua and ub taken from                             By gathering all the similarities SIMTS for each pair of vari-
u = 1, ..., U , the dot-product similarity between their corre-                     ables as entries in the attention map Avar , hyperedge-to-
sponding variable hyperedge embeddings eua and eub can                              hyperedge message passing is implemented using scaled
be expressed as:                                                                    dot-product attention:
                 Svar = FFq (eua ) · FFk (eub )⊺ ,                        (8)                                        Avar
                                                                                                    E′′var = Softmax( √ )FFv (E′var ),        (12)
where FFq and FFk are feed-forward layers for queries and                                                              d
keys. However, overall variable similarity is a series-level
comparison, which does not leverage temporal information                            where E′′var represents the updated variable hyperedge em-
within the series, and may not perform optimally across all                         beddings after message passing, and d denotes the embed-
alignment scenarios. For example, similar variables V1 and                          ding dimension.
V2 in Figure 3 (b) have 3 shared timestamps and 2 unaligned                         Through irregularity-aware message passing among variable
timestamps, which can lead to a positive but relatively small                       hyperedges, correlated messages are exchanged adaptive to
overall variable similarity due to the unbalanced number                            the time alignment across variables. We discuss their further
of observations. Based on the fact that if two time-aligned                         propagation to nodes in the next section.
series are identical, then their time-aligned subseries are
also identical, we can compare only the time-aligned ob-                            4.2.3. N ODE U PDATE
servations, leading to higher similarity scores that better
promote message passing. Therefore, we refine the similar-                          In this section, we introduce hyperedge-to-node message
ity calculation by calculating time-aware similarities using                        passing for node updates, as illustrated in Figure 3 (c). For
time-aligned observations. Specifically, they Sobs are calcu-                       the total L residual layers, we use variable hyperedge em-
lated using the dot products of connected observation nodes                         beddings E′var without inter-variable message passing in
and can be expressed as:                                                            the first L − 1 layers, which helps in learning temporal
                                                                                    dependencies, also known as intra-variable dependencies.
         Sobs = [v1ua , ..., vTushared
                                a
                                       ] · [v1ub , ..., vTushared
                                                           b
                                                                  ]⊺ ,    (9)       Variable hyperedge embeddings E′var propagate messages
        ua           ub                                                             back to connected nodes, along with timestamp information
where v and v denote observation nodes for two dif-
ferent variables, and only Tshared number of observations                           from temporal hyperedge embeddings:
with shared timestamps across variables are selected for
comparison. It should be noted that while our method and                                  V′ = SelfAtten(V),                                  (13)
                                                                                             ′′
padding-based methods shown in Figure 1 (a) and (b) all                                  V                                 ′
                                                                                                  = ReLU(V + FFnode (V ||E′time ||E′var )),   (14)
leverages alignment information, we employ distinct ap-
proaches for better efficiency. Padding-based methods align                         where SelfAtten(V) performs a self-attention update on
IMTS by padding them before feeding them into neural net-                           nodes V, and FFnode is the linear mapping layer for nodes.
works, leading to larger data volumes to be processed across                        At the last layer of the residual structure, we use variable
all network modules. In contrast, our method only selects                           hyperedge embeddings E′′var after inter-variable message
time-aligned observations during hyperedge-to-hyperedge                             passing during calculation, which helps in learning variable
message passing, thereby eliminating the need to handle                             dependencies. It is implemented by replacing E′var with E′′var
large padded data in other network modules.                                         in Eq. (14).
We then combine two similarities based on Tshared , the total                       Through the node update process, observations receive cor-
number of timestamps Ttotal in two variables, and a learnable                       related messages via temporal and variable dependencies,
threshold parameter δ to obtain the irregular-aware variable                        which also update the nodes to be predicted.
similarity SIMTS :
                                                                                    4.2.4. T RAINING OF H YPER IMTS
    SIMTS = αSobs + (1 − α)Svar ,                                        (10)
                                                                                    In this section, we introduce the process of obtaining fore-
            (
              Tshared
                      , for Svar > δ and Sobs ̸= 0
        α = Ttotal                                 ,                     (11)       cast values and training HyperIMTS. For the i-th sample
             0,         otherwise                                                   where i ∈ n, we convert its updated node embeddings back

                                                                                5
