betaFeedback

WorksComputer Science

Sea-Net: A Small and Inherently Interpretable Neural Network for Time Series Classification

Abstract

Traditional time-series classification methods often operate as black boxes, providing a class prediction without indicating which time point or time interval within the series led to that prediction. To improve temporal interpretability, MILLET (Multiple Instance Learning with Temporal Explanation), which combines an InceptionTime encoder with Conjunctive Pooling, provides both classification and temporal explanations. However, MILLET contains approximately 424 K parameters, making it unsuitable for deployment on resource-constrained micro-controllers, and it achieves an overall time-series accuracy of 0.888 and an explanation score of 0.681 NDCG@n. We therefore propose SEA-Net, a lightweight architecture using small multi-scale depthwise-separable convolutional TSC encoders and improved Multiple Instance Learning (MIL) pooling heads. Our SEA-Net bottleneck encoder with Top-k pooling achieves 0.931 accuracy and 0.765 NDCG@n with only 41 K parameters. Another variant, using a gated encoder with Top-k pooling, achieves 0.955 accuracy and 0.750 NDCG@n with 62 K parameters. These results demonstrate that lightweight architectures can maintain strong classification performance and temporal explanations while substantially reducing model size. The proposed variants address specific limitations of the pooling strategy used by MILLET, providing a practical direction for interpretable time-series classification on resource-constrained edge devices.

Introduction

Time Series Classification (TSC) assigns a label y∈{1,…,C}y \in\{1, \ldots, C\} to a univariate time series X=(x1,x2,…,xt)X = (x_1, x_2, \ldots, x_t), for example distinguishing a normal from an abnormal heartbeat recording, or a healthy from a faulty machine. Deep learning (DL) models solve this task well, and convolutional architectures in particular are its standard baselines. Accuracy alone is not enough in the applications that motivate this work, which impose three requirements at the same time. The first is accurate classification: the model must remain competitive with the strong convolutional baselines used in the TSC literature. The second is interpretable predictions: the model must show which time steps drove its decision, and this explanation must be part of the computation that produces the prediction itself, not a post-hoc approximation produced afterward by a separate tool. The third is a small parameter budget: the model must be small enough to be a realistic candidate for deployment on an edge device or a micro-controller unit (MCU), where memory is measured in hundreds of kilobytes.

We build on MILLET ([9, 7]), which performs TSC as a Multiple Instance Learning problem. In MIL a label is attached to a bag ([14]) of instances, not to each instance. The whole time series and each time step are treated as the bag and the instances respectively, and only the bag-level label yy is observed. This is exactly the structure of time series classification: the series as a whole is labeled, but only a few time steps carry the evidence; the abnormal beat in a long recording, the spike in a traffic trace. Treating the series as the bag and each time step as an instance turns interpretability into a MIL problem, recovering instance-level contributions from bag-level labels and so yielding interpretability alongside classification. MILLET provides both the time-series classification and a faithful built-in explanation.

But its InceptionTime [17] backbone needs about 423,707 parameters and 848 MFLOPs for one series of length 1008, so at 32-bit precision the weights alone take about 1.6 MB, which already exceeds the memory budget above, before activations, runtime or application code. Swapping MILLET’s interpretable head for ordinary global average pooling on the same backbone removes only 1,041 of those parameters (Section C.1): the ability to explain itself costs a quarter of a percent of the model, and almost all of the cost is the encoder. This paper builds on that observation.

Edge-oriented models fit micro-controllers [3, 18] but predict only a class label; to our knowledge no model meets all three requirements. Hence, we propose our Selective Evidence Aggregation Network (SEA-Net), an inherently interpretable architecture for time series classification. Both parts already exist — separable convolutions [5, 12], squeeze-and-expand bottlenecks [11, 13, 28] and kk-max selection in MIL [8], and we claim none as new; what is new is their combination inside an interpretable MIL classifier. Our model has 41,324 parameters and 76.7 MFLOPs, 10.3× and 11.1× below MILLET. On WebTraffic, the one dataset whose ground truth marks the time steps carrying the class label, it beats MILLET on both jobs: accuracy 0.931 against 0.888 and NDCG@‌n 0.765 against 0.681 (Figure 1). Across the 85 UCR datasets, our method stays within two accuracy points of MILLET (§ 4.1).2 The following are our key contributions: i) A MIL encoder small enough to be a candidate for small devices (§ 3.2): multi-scale depthwise separable dilated convolutions with a bottlenecked pointwise mix, keeping the length unchanged so that the per-time-step interpretation is not lost. ii) Per-class Top-kk conjunctive pooling (§ 3.3), which adds no parameters and becomes exactly the baseline head at κ=1\kappa= 1 (Property 2). This property is what makes the κ\kappa study of § 4.1 a controlled experiment rather than a comparison of two different models. iii) A warning about the AOPCR measure (§ 4.1): AOPCR has no fixed scale, and with the architecture and the code held fixed it changes by 4.9× when only the training budget changes, so we compare only against baselines we retrained ourselves.

Three model explanations for a WebTraffic series

Figure 1. The same WebTraffic series classified by three models. Each panel shows the predicted class and, its right side provides the explanation or interpretation of the prediction, given by the model. The red marks provide the evidence, supporting the predicted class at each time step. The “green shaded window” is the original ground truth of the time steps and was never used during training. MILLET (top) predicts the same class with 71 % confidence and does explain itself, but needs 424 K parameters. SEA-Net (bottom) is more confident, produces a sharper explanation, and uses 41 K parameters.

Related Work

Deep learning for time series classification: In Wang et al. [31], the “Fully Convolutional Network (FCN)” and the “Residual Network (ResNet)” are established as strong baselines for TSC. The InceptionTime (Ismail Fawaz et al. [17]) architecture extends this baseline by applying filters of several kernel sizes in parallel, capturing patterns of different durations. Temporal Convolutional Networks (TCNs) (Bai et al. [2]) have demonstrated their effectiveness for time-series analysis, and we take inspiration from them for our proposed model. TCNs use dilated convolutions, which enable the network to capture information over a wider temporal context. This enlarges the receptive field and allows the model to capture both short-term and long-term temporal dependencies without significantly increasing the number of model parameters. The comprehensive review by Ismail Fawaz et al. [16] shows that convolutional architectures are an effective family of approaches for TSC. Despite their architectural differences, these models typically conclude with a Global Average Pooling (GAP) layer, which removes the explicit temporal resolution of the learned representations.

Interpretability and multiple instance learning: Interpretability methods can be broadly divided into post-hoc approaches and models that incorporate explanations directly into the prediction process. Post-hoc attribution methods, such as LIME (Ribeiro et al. [24]), SHAP (Lundberg & Lee [23]), and Integrated Gradients (Sundararajan et al. [29]), explain a trained model after prediction, whereas Rudin [26] advocates incorporating interpretability directly into the model architecture. For time series, two main directions follow this principle. The first direction uses shapelets, i.e., short representative subsequences whose presence can explain a prediction. VQShape (Wen et al. [32]) learns a codebook of representative shapes, while InterpGN (Wen et al. [33]) combines a shapelet expert with a deep expert through a confidence gate. The second direction, which we follow, is based on MIL (Dietterich et al. [7]). Attention-based MIL (Ilse et al. [14]) introduced learnable instance-level pooling, later extended by models such as DSMIL (Li et al. [21]) for histopathology. MILLET (Early et al. [9]) adapted this idea to TSC.

Small architectures and deployment budgets: Depthwise separable convolutions (Chollet [5]; ); Howard et al. [12]) and squeeze-and-expand bottlenecks (He et al. [11]; ); Iandola et al. [13]; ); Sandler et al. [28]) are standard techniques for reducing the parameter count and computational cost. For time series, ATCN (Baharani & Tabbakhi [1]) combines residual connections with separable convolutions for efficient inference, while the method in Risso et al. [25] optimizes the dilation and channel structure of TCNs under edge-device constraints. However, these approaches focus on efficiency rather than interpretability: they produce a prediction without explicitly indicating which temporal regions contributed to it.

For deployment on resource-constrained devices, MCUNet (Lin et al. [22]), MicroNets (Banbury et al. [4]), and MLPerf Tiny (Banbury et al. [3]) provide benchmarks and design principles based on constraints such as flash memory, SRAM, and computational cost. These works demonstrate how neural networks can be made suitable for micro-controller-class hardware, but they do not address the additional challenge of maintaining interpretability under such resource constraints.

Method

Problem Setup and Notation

We propose the Selective Evidence Aggregation Network (SEA-Net), a MIL model for TSC that keeps MILLET’s two-part structure but replaces its InceptionTime backbone with a far smaller encoder (§ 3.2) and its Conjunctive head with three selective pooling variants (§ 3.3). SEA-Net has two components: an encoder ψenc−embed\psi_{\mathrm{enc-embed}}, which produces one embedding per time point, and a MIL pooling head ψpool\psi_{\mathrm{pool}}, which fuses those embeddings into a class prediction. A dataset holds nn univariate series Xi=(xi1,…,xit)X_i = (x_i^1,\ldots,x_i^t), i∈{1,…,n}i \in\{1,\ldots,n\}, of common length tt, each carrying a single label Yi∈{1,…,C}Y_i \in\{1,\ldots,C\}, where CC is the number of classes. We treat each series as a MIL bag and each time point as an instance, so the encoder maps XiX_i to Zi=[zi1,…,zit]∈Rt×dZ_i = [z_i^1,\ldots,z_i^t] \in\mathbb{R}^{t \times d}, one dd-dimensional embedding per instance. The instance labels {yi1,…,yit}\{y_i^1,\ldots,y_i^t\} are never annotated in TSC datasets and are never used for training; recovering them from the bag label alone is precisely what MIL techniques are capable of. Unlike classical MIL (Hashimoto et al. [10]; ); Li et al. [21]), our instances are ordered rather than i.i.d., and every layer of SEA-Net preserves that order.

Whether that per-instance evidence survives depends on ψpool\psi_{\mathrm{pool}}. Classical embedded pooling (Wang et al., [30]) applies global average pooling, Pi=1t∑j=1tzijP_i = \frac{1}{t}\sum_{j=1}^{t}z_i^j, then a classifier Y^i=ψclf(Pi)\hat{Y}_i = \psi_{\mathrm{clf}}(P_i) to classify: the time axis is collapsed before classification, so no per-time-point prediction exists and the model cannot report which time points drove the prediction for the series. Our pooling heads (§ 3.3) preserve this order: they score each time point first and aggregate afterward, which makes the interpretation I^i∈Rt×C\hat{I}_i \in\mathbb{R}^{t \times C} available. We keep MILLET’s two-part structure but replace InceptionTime with a smaller, cheaper encoder, and its Conjunctive pooling head with three pooling variants of our own: Class-wise Conjunctive, Soft-Max Conjunctive with Learnable Sharpness and Top-k Conjunctive pooling.

SEA-Net Encoder

Figure 2 gives an overview of the encoder and its interface with the MIL pooling head. The encoder module begins with a stem convolution layer, that extracts local temporal features from the input time series while simultaneously increasing its representation from a single input channel of a time point to dd feature channels. The stem convolution is followed by a stack of multi-scale separable residual blocks (§ 3.2). The output (Zi∈Rt×d)(Z_i \in\mathbb{R}^{t \times d}) of the encoder module is given as the input to the MIL pooling module, which in turn provides the prediction as the posterior probabilities Y^i∈R1×C\hat{Y}_i \in\mathbb{R}^{1 \times C} of CC output classes and the interpretation score of each time step I^i∈Rt×C\hat{I}_i \in\mathbb{R}^{t \times C}.

Figure 2. Overview of a complete SEA-Net model, read left to right, with the tensor shape under each stage. Left, the SEA-Net encoder: the series (B,1,t)(B,1,t) passes through a stem convolution to (B,d,t)(B,d,t) and then through six multi-scale separable residual blocks, whose dilation grows 1,2,4,81,2,4,8 and is then capped at 1616; the curved arrow inside each block is the residual connection, and tt is unchanged at every stage. Middle: one instance-level embedding ziz_i per time step. Right, the MIL pooling head (§ 3.3):

Multi-scale separable residual blocks: The encoder body is a stack of six identical blocks built from two established concepts. Dilated convolutions (Bai et al., [2]) insert gaps between the filter taps, widening the temporal window a filter sees without adding weights, and depthwise separable convolutions (Chollet, [5]; Howard et al., [12]) split a convolution into a depthwise part Dk(δ)D_k^{(\delta)}, filtering each channel independently along time, and a pointwise 1×11 \times1 part PP mixing channels at each time point. The smallest element is a unit. Three depthwise convolutions read the same input in parallel at kernel sizes K={5,11,23}\mathcal{K} = \{5,11,23\}, so short, medium and long patterns are examined at once and no single scale has to be chosen in advance; their outputs are summed and mixed by PP:

U(h)=Drop⁡(ReLU⁡(BN⁡(P(∑k∈KDk(δ)(h))))),K={5,11,23},(1)\mathcal{U}(\mathbf{h}) = \operatorname{Drop}\left(\operatorname{ReLU}\left(\operatorname{BN}\left(P\left(\sum_{k \in\mathcal{K}}D_k^{(\delta)}(\mathbf{h})\right)\right)\right)\right), \qquad\mathcal{K} = \{5,11,23\}, \tag*{(1)}

where h∈Rt×d\mathbf{h} \in\mathbb{R}^{t \times d} is the input and δ\delta the dilation. A block is two units in sequence with a residual connection, so it learns a correction to its input rather than replacing one representation with another:

Block⁡(h)=ReLU⁡(h+(U∘U)(h)).(2)\operatorname{Block}(\mathbf{h}) = \operatorname{ReLU}\left(\mathbf{h} + (\mathcal{U} \circ\mathcal{U})(\mathbf{h})\right). \tag*{(2)}

Six blocks are stacked, each feeding the next, with the dilation growing geometrically and then held: δi=min⁡(2i,δmax⁡)\delta_i = \min(2^i,\delta_{\max}), δmax⁡=16\delta_{\max} = 16. This operation has two properties. First, the receptive field widens quickly but stays bounded: the five taps of the k=5k=5 filter span five consecutive time points at δ=1\delta=1, whereas they span up to 65 time points at δ=16\delta=16, so each embedding summarizes a local, finite region at several scales. Second, every convolution uses “same” padding with a stride of one, and no pooling or temporal downsampling is applied; the length tt is therefore unchanged at every stage, which is what delivers one embedding per time point to the pooling head.

SEA-Net Bottleneck pointwise mixing: In the separable unit, the depthwise filters are cheap because each channel has one small kernel. Most of the parameters are in the pointwise mixing PP of Equation (1), which costs d2d^2 weights per unit. We therefore factorize PP into two smaller 1×11 \times1 convolutions: the first squeezes the dd channels to a width r<dr < d, and the second expands them back:

P(h)=Pexp(Psq(h)),Psq:Rd→Rr,Pexp:Rr→Rd,2drd2=2rd.(3)P(\mathbf{h}) = P_{\mathrm{exp}}(P_{\mathrm{sq}}(\mathbf{h})), \qquad P_{\mathrm{sq}} : \mathbb{R}^{d} \to\mathbb{R}^{r}, \qquad P_{\mathrm{exp}} : \mathbb{R}^{r} \to\mathbb{R}^{d}, \qquad\frac{2dr}{d^2} = \frac{2r}{d}. \tag*{(3)}

Because there is no non-linearity between the two convolutions, the pair is equivalent to a single mixing matrix of rank rr. This leaves the depth of the block unchanged and adds no extra layer. With r=d/4r = d/4, the pointwise cost drops from d2d^2 to 2dr=d2/22dr = d^2/2, a halving at any width. At d=64d = 64 this reduces the whole model from 57,580 to 41,324 parameters (−28%-28\%). The block still outputs a matrix of shape Rt×d\mathbb{R}^{t \times d}, so the pooling head needs no change.

SEA-Net Channel re-weighting variants: Both variants introduce a channel re-weighting layer after the last multi-scale separable residual block. The purpose of this layer is to adaptively adjust the contribution of the dd feature channels according to their relevance to the input time series, while leaving the encoder blocks and the MIL pooling head unchanged. In both variants, the output of the sixth block, Zi∈Rt×dZ_i \in\mathbb{R}^{t \times d}, is first passed through the channel re-weighting layer. Each time-step embedding zij\mathbf{z}_i^j, j=1,…,tj = 1,\ldots,t, is then re-weighted according to:

z~ij=zij⊙(1+gij),gij=σ(Wgsi)⏟Gated (mean),si=1t∑jzij,gij=σ(Wg∗Xi)j⏟Input Gated,gij∈[0,1]d.(4)\widetilde{\mathbf{z}}_i^j = \mathbf{z}_i^j \odot(1 + \mathbf{g}_i^j), \qquad\underbrace{\mathbf{g}_i^j = \sigma(W_g\mathbf{s}_i)}_{\text{Gated (mean)}}, \qquad\mathbf{s}_i = \frac{1}{t}\sum_j \mathbf{z}_i^j, \qquad\underbrace{\mathbf{g}_i^j = \sigma(W_g * X_i)^j}_{\text{Input Gated}}, \qquad\mathbf{g}_i^j \in[0,1]^d. \tag*{(4)}

where gij∈[0,1]d\mathbf{g}_i^j \in[0,1]^d contains one weight for each feature channel. The use of (1+gij)∈[1,2]d(1+\mathbf{g}_i^j) \in[1,2]^d, rather than gij\mathbf{g}_i^j alone, preserves the original features while allowing informative channels to be amplified. This also preserves the differences between time-step embeddings, which are used to compute the interpretation score I^i\hat{I}_i. Since the re-weighting is applied only along the channel dimension, the temporal structure of ZiZ_i remains unchanged. Consequently, both the following variants produce an output Z~i∈Rt×d\widetilde{Z}_i \in\mathbb{R}^{t \times d} that can be directly passed to the same MIL pooling head.

SEA-Net GATED (MEAN): In the first variant, a single set of channel weights is computed for the entire time series. The output ZiZ_i of the sixth encoder block is first averaged over its tt time points to obtain a series-level representation. This representation is passed through a linear transformation Wg∈Rd×dW_g \in\mathbb{R}^{d \times d} followed by a sigmoid function to obtain one weight for each channel. These weights are applied to every time-step embedding as in Equation (4). Thus, this variant determines which feature channels are generally more informative for the entire time series. However, the same weights are applied at every time point and therefore cannot account for changes in the importance of a channel over time. The mean-based version is used in the main experiments (others in Section B.3)

SEA-Net INPUT GATED: The second variant performs channel re-weighting at each time point. Instead of computing the weights from the deep representation ZiZ_i, they are obtained directly from the raw input time series XiX_i. A 1D convolution with kernel size 7 transforms the single input channel into dd channels, followed by a sigmoid function to produce a separate set of channel weights gij∈[0,1]d\mathbf{g}_i^j \in[0,1]^d for each time point; where Wg∗XiW_g * X_i denotes the 1D convolution. Unlike the previous variant, the channel weights can therefore vary both across channels and across time points. Because they are computed directly from the raw input, they can respond to local events, such as a sudden peak, before these patterns are potentially smoothed by the encoder’s receptive field. These two variants allow us to study the effect of coarse, series-level channel re-weighting versus fine-grained, time-dependent channel re-weighting while keeping the remainder of the architecture unchanged (Section B).

SEA-Net Spike/Trend: A stack of convolutions followed by batch normalization is biased toward smooth and sustained patterns, whereas in some datasets the evidence of a class is a single sharp discontinuity (i.e., a spike) in the time series. In this variant, we therefore run a second, high-pass-filter-like branch in parallel with the encoder blocks and merge the two branches before the pooling head. The output of the encoder is called the trend features, and the output of this new high-pass-filter-like branch is called the spike features. In Figure 2, the encoder path (the stem convolution and the six blocks) is untouched and gives the trend features Zi∈Rt×dZ_i \in\mathbb{R}^{t \times d}. The new spike branch takes the original time series XiX_i as input, applies a moving average avg⁡w(Xi)\operatorname{avg}_w(X_i) with window w=5w = 5, and then subtracts this smoothed signal from the original time series. This subtraction removes the smooth, slowly varying component of the signal, leaving a residual that is close to zero in smooth regions and becomes large around sudden changes or discontinuities. Then a convolution with kernel size 33, followed by BN and ReLU layers, is applied, which turns the output into dspike=16d_{\mathrm{spike}} = 16 channels. Finally, at each time point, the trend features and spike features are concatenated and projected back to dd channels using the pointwise convolution PP, as defined in Equation (1). The resulting representation is then aggregated using the mean operation described in Equation (4).

spike⁡ij=ReLU⁡(BN⁡(Conv⁡3(Xi−avg⁡w(Xi))))j∈Rdspike(5)\operatorname{spike}_i^j = \operatorname{ReLU}\left(\operatorname{BN}\left(\operatorname{Conv}_3\left(X_i - \operatorname{avg}_w(X_i)\right)\right)\right)^j \in\mathbb{R}^{d_{\mathrm{spike}}} \tag*{(5)}
z~ij=P([zij ; spike⁡ij])⊙(1+gi)(6)\widetilde{z}_i^j = P\left([z_i^j \,;\, \operatorname{spike}_i^j]\right) \odot(1 + g_i) \tag*{(6)}

where [ ⋅ ; ⋅ ][\,\cdot\,;\,\cdot\,] is the concatenation along the channel axis, giving d+dspiked+d_{\mathrm{spike}} channels, and gig_i is computed as in Equation (4) on the mixed features. With this branch, the pooling head directly receives features which mark the discontinuities of the series. Hence, we expect an advantage on datasets where the class evidence has impulsive patterns.

MIL Pooling Head

With the encoder complete, we now describe the second component of SEA-Net, the MIL pooling head ψpool\psi_{\mathrm{pool}}, shown on the right side of Figure 2. Given the instance-level embeddings Zi∈Rt×d=[zi1,…,zit]Z_i \in\mathbb{R}^{t \times d} = [z_i^1,\ldots,z_i^t], the pooling head has two branches: an attention branch that determines the importance of each time point, and a classifier branch that determines the class evidence provided by each time point. Their product defines the evidence eij,ke_i^{j,k} of time point jj for class kk. Aggregating this evidence over time produces the class prediction Y^i∈R1×C\widehat{Y}_i \in\mathbb{R}^{1 \times C}, while retaining the evidence at each time point gives the interpretation score I^i∈Rt×C\widehat{I}_i \in\mathbb{R}^{t \times C}. Our pooling head is based on the Conjunctive pooling of MILLET (Equation (7)) [9], which uses a single attention weight aija_i^j for each time point and a class-wise classifier output y^ij\widehat{y}_i^j:

aij=σ(waTtanh⁡(Wazij))∈[0,1]y^ij=Wczij+bc∈RCY^ik=1t∑j=1taijy^ij,k,I^ij,k=aijy^ij,k(7)\begin{aligned} a_i^j &= \sigma\left(\mathbf{w}_a^{\mathsf{T}}\tanh\left(W_a z_i^j\right)\right) \in[0,1] \\ \widehat{y}_i^j &= W_c z_i^j + b_c \in\mathbb{R}^{C} \\ \widehat{Y}_i^k &= \frac{1}{t}\sum_{j=1}^{t} a_i^j \widehat{y}_i^{j,k}, \qquad\widehat{I}_i^{j,k} = a_i^j \widehat{y}_i^{j,k} \tag*{(7)} \end{aligned}
aij=σ(W2tanh⁡(W1zij))∈[0,1]Ceij,k=aij,ky^ij,k,I^ij,k=eij,kY^ik=1t∑j=1teij,k(8)\begin{aligned} a_i^j &= \sigma\left(W_2\tanh\left(W_1 z_i^j\right)\right) \in[0,1]^C \\ e_i^{j,k} &= a_i^{j,k}\widehat{y}_i^{j,k}, \qquad\widehat{I}_i^{j,k} = e_i^{j,k} \\ \widehat{Y}_i^k &= \frac{1}{t}\sum_{j=1}^{t} e_i^{j,k} \tag*{(8)} \end{aligned}

where Wa∈Rda×dW_a \in\mathbb{R}^{d_a \times d} and wa∈Rda\mathbf{w}_a \in\mathbb{R}^{d_a} define the attention branch, while Wc∈RC×dW_c \in\mathbb{R}^{C \times d} and bc∈RCb_c \in\mathbb{R}^{C} define the classifier branch; W1∈Rda×dW_1 \in\mathbb{R}^{d_a \times d} and W2∈RC×daW_2 \in\mathbb{R}^{C \times d_a} are its class-wise counterparts below.

Conjunctive pooling has three limitations that motivate our pooling variants. First, the scalar attention weight aija_i^j is shared across all CC classes and therefore cannot represent class-specific importance. Second, the sigmoid weights are not normalized over time: although aij∈[0,1]a_i^j \in[0,1], their sum depends on the series length tt, while the aggregation divides by tt. Consequently, the magnitude of Y^ik\widehat{Y}_i^k can depend on the series length, which is particularly relevant for the UCR archive, where series lengths range from 15 to 2,844. Third, averaging all tt evidence values can dilute a small number of highly informative time points when most of the series contains background information. We developed seven pooling variants; here we describe the three that directly address the limitations above, while the remaining four are presented in Section C. All three variants retain the two-branch structure and the classifier output y^ij\widehat{y}_i^j of Equation (7). They differ only in how the attention weights are computed and/or how the resulting evidence is aggregated. In every case, the interpretation I^i\widehat{I}_i is obtained from the same evidence used to compute Y^i\widehat{Y}_i, ensuring consistency between prediction and interpretation.

Class-wise / Soft-Max / Top-kk conjunctive pooling: The Class-wise variant (Equation (8)) addresses the first limitation by replacing the single scalar attention weight with a class-specific vector: Each time point can therefore have a different importance for different classes. The modification only widens the final attention layer, adding (C−1)(da+1)(C-1)(d_a+1) parameters compared with the original attention branch. If aij,k=aija_i^{j,k}=a_i^j for all kk, the formulation reduces exactly to the original Conjunctive pooling. The Soft-Max variant addresses the second limitation by normalizing the attention weights across time. For each class, the attention scores are converted into a probability distribution using a Soft-Max with learnable temperature τ>0\tau> 0 (Equation (9)):

sij,k=(W2tanh⁡(W1zij))ks_i^{j,k} = \left(W_2 \tanh(W_1 z_i^j)\right)_k
αij,k=exp⁡(sij,k/τ)∑l=1texp⁡(sil,k/τ)(9)\alpha_i^{j,k} = \frac{\exp(s_i^{j,k}/\tau)}{\sum_{l=1}^{t} \exp(s_i^{l,k}/\tau)} \tag*{(9)}
Y^ik=∑j=1tαij,ky^ij,k,I^ik=αij,ky^ij,k\widehat{Y}_i^k = \sum_{j=1}^{t} \alpha_i^{j,k}\widehat{y}_i^{j,k}, \qquad\widehat{I}_i^k = \alpha_i^{j,k}\widehat{y}_i^{j,k}
m=max⁡(1,⌈κt⌉)m = \max(1,\lceil\kappa t\rceil)
Sik=top⁡m(ei1,k,…,eit,k)S_i^k = \operatorname{top}_m(e_i^{1,k},\ldots,e_i^{t,k})
Y^ik=1m∑j∈Sikeij,k,I^ik=eij,k(10)\widehat{Y}_i^k = \frac{1}{m}\sum_{j\in S_i^k}e_i^{j,k}, \qquad\widehat{I}_i^k = e_i^{j,k} \tag*{(10)}

Because ∑jαij,k=1\sum_j \alpha_i^{j,k}=1, the prediction is no longer directly affected by the series length, making series of different lengths more comparable. The temperature controls the concentration of the attention: large τ\tau produces a more uniform distribution approaching 1/t1/t, whereas small τ\tau concentrates the weight on the highest-scoring time points. We parameterize τ=exp⁡(ρ)\tau=\exp(\rho) with learnable ρ\rho, ensuring τ>0\tau>0 while introducing only one additional parameter.

The Top-kk conjunctive variant addresses the third limitation by aggregating only the most informative time points rather than averaging the evidence over the entire series. It uses the class-wise attention of Equation (8) and retains only the mm largest evidence values for each class (Equation (10)): Here, κ∈[0,1]\kappa\in[0,1] controls the fraction of time points retained and introduces no additional learnable parameters. When κ=1\kappa=1, this formulation reduces to the class-wise pooling of Equation (8); for κ<1\kappa<1, the aggregation focuses on the most informative time points, reducing the influence of background regions. Consequently, the prediction is based on an explicit subset of time points, which also makes the resulting interpretation more focused. This is the pooling head used in our best-performing models.

Every encoder and head above shares the same input and output shapes, so any pair combines from configuration alone. § 4 evaluates these combinations, taking the bottleneck encoder with Top-kk pooling as our main model.

Experimental Setup and Results

Research questions and datasets: We ask whether the small model retains classification accuracy, retains a useful interpretation, and how much cost it actually removes; two further questions, RQ4 what the bottleneck contributes and RQ5 what Top-kk pooling contributes, are answered by the ablation of § 4.1. We answer them on two datasets (Table 15).

SettingValue
Encoder size (every SEA-Net model)width d=64d = 64, 4 blocks; 41,324–69,768 parameters
OptimizerAdam (Kingma & Ba, [20]), lr =1.25×10−3= 1.25 \times10^{-3}, weight decay =1.2×10−4= 1.2 \times10^{-4}
Epochs / early stoppingmax 400 epochs; stop after 60 epochs with no improvement
Batch sizemin⁡(⌊ntrain/10⌋,16)\min(\lfloor n_{\mathrm{train}}/10 \rfloor, 16), floor of 2
Validation splitstratified 80/20 when ntrain≥100n_{\mathrm{train}} \ge100; else train-loss early stopping
Label smoothing0.13
Dropout0.2
Attention width dad_a8
Top-kk fraction κ\kappa0.1 (Equation (10))
Head initial valuesτ0=1.0\tau_0 = 1.0, β0=0.3\beta_0 = 0.3, λ0=0.5\lambda_0 = 0.5 (attention-max) or 0.05 (dual-stream)
Focus penalty λfocus\lambda_{\mathrm{focus}}0.01; 0 for the MILLET baselines, since the term is ours
Seeds3 for the models of Table 28; 1 for the rest
HardwareGPU nodes of a shared academic computing cluster

Table 15. Training configuration, identical for every model of this study. The complete hyperparameter list, including the head-specific initial values, is given in Table 16.

We use the same WebTraffic dataset as MILLET (Early et al., [9]): a synthetic set of 1,000 series of length 1,008 over 10 classes, split 500/500, in which each class signature is injected inside a known window (Figure 14). It is the only dataset with a ground truth per time point, hence the interpretation can be scored rather than merely inspected. For wider coverage we use the UCR archive (Dau et al., [6]), reporting the 85-dataset subset used by MILLET so that the numbers are comparable; we also report the performance on the full 128-dataset archive in Section E.5. Class signatures are not annotated there, so on UCR the interpretation can only be evaluated with AOPCR.

Examples of each class of the WebTraffic dataset

Figure 14. One example of each class of the WebTraffic dataset. Each series is a daily seasonal signal with a weekly trend and noise, and the signature that defines the class is injected inside a single window, shown shaded; the exception is class 0 (None), which has no signature. These windows are the per-time-point ground truth against which NDCG@nn is scored, and they are never used during training.

We use the test accuracy for the classification, and AOPCR (Samek et al., [27]) together with *NDCG@n (Järvelin & Kekäläinen, [19]) for the interpretation; both metrics are defined in Section D.4. AOPCR progressively removes time points according to their estimated importance and accumulates the resulting decrease in the score of the predicted class. Computing AOPCR does not require ground truth, so we can report this metric on both datasets. *NDCG@n ranks the time points by the importance the model assigns them and compares that ranking with the ground truth.

Classification and Interpretation Results

WebTraffic: Table 1 gives one complete model per row, written as encoder + pooling head. Our SEA-Net model exceeds MILLET’s accuracy and achieves a better NDCG@nn, while being about ten times smaller: 0.931±0.0320.931 \pm0.032 accuracy and 0.765±0.0130.765 \pm0.013 NDCG@nn with 41,324 parameters, against 0.888±0.0070.888 \pm0.007 and 0.681±0.0130.681 \pm0.013 with 423,707 parameters for MILLET under the same budget (Table 1). The gated (mean) + Top-kk variant is more accurate and far more stable (0.955±0.0020.955 \pm0.002), but needs 61,740 parameters and a lower NDCG@nn (0.750±0.0180.750 \pm0.018), so the bottleneck model stays our headline. Two further columns point the same way. Our negative log-likelihood is 0.312±0.0630.312 \pm0.063 against 0.513±0.0190.513 \pm0.019 for the matched-budget baseline, a 39 % reduction, and it stays below MILLET’s own 1,500-epoch recipe (0.392±0.0210.392 \pm0.021) and its published figure (0.3790.379); AUROC moves the same way, 0.996±0.0020.996 \pm0.002 against 0.988±0.0020.988 \pm0.002. The 41 K model is therefore better calibrated than the baseline even when the baseline is given nearly four times the training budget. UCR archive: On UCR, the comparison depends on the size budget. Our 41 K model reaches 0.810 mean accuracy, 1.8 points below the matched-budget MILLET baseline (0.827) and 3.5 points below MILLET’s published accuracy (0.845), at a tenth of the parameters and with mean rank 15.40 against 12.60. Counted per dataset against MILLET’s published accuracies, it wins on 20, ties on 15 and loses on 50 of the 85, where the ten-times-larger matched-budget baseline scores 13/25/46: more outright wins than the baseline, but also more losses (Table 29). The gap comes from size, not from design. Re-running the same architecture, with the same blocks and head, in a wide configuration (d from 64 to 128, blocks from 4 to 6) reaches 0.829 accuracy and mean rank 11.53, the best rank in Table 29: ahead of the matched-budget MILLET baseline on accuracy (0.827), on rank (12.60) and on wins (26 against 13), with 36 % fewer parameters. At a comparable size and the same training budget, replacing the MILLET backbone by ours is worth about 1.1 rank places. The SEA-Net design is therefore not what loses accuracy on UCR; the smaller parameter budget is.

Model (encoder + pooling head)RunsAccuracyAUROCNLLAOPCRNDCG@nn
SEA-Net (ours): encoder + Top-kk conjunctive head
gated (mean) + Top-kk conj.*30.955±0.0020.955 \pm0.0020.998±0.0000.998 \pm0.0000.254±0.0100.254 \pm0.0102.225±0.1072.225 \pm0.1070.750±0.0180.750 \pm0.018
bottleneck + Top-kk conj. (λfocus=0\lambda_{\mathrm{focus}} = 0)10.9500.9500.9980.9980.2630.2632.3032.3030.7650.765
spike/trend + Top-kk conj.10.9500.9500.9970.9970.2880.2882.3162.3160.7560.756
input-gated + Top-kk conj.10.9460.9460.9970.9970.2610.2612.8032.8030.7480.748
bottleneck + Top-kk conj.10.9420.9420.9960.9960.2940.2942.9512.9510.7860.786
bottleneck + Top-kk conj.*30.931±0.0320.931 \pm0.0320.996±0.0020.996 \pm0.0020.312±0.0630.312 \pm0.0632.498±0.1492.498 \pm0.1490.765±0.0130.765 \pm0.013
Baselines re-trained here under the same recipe
MILLET (InceptionTime + conjunctive)*40.888±0.0070.888 \pm0.0070.988±0.0020.988 \pm0.0020.513±0.0190.513 \pm0.0192.457±0.6552.457 \pm0.6550.681±0.0130.681 \pm0.013
ResNet + conjunctive10.7720.7720.9570.9570.8240.8242.9522.9520.5540.554
FCN + conjunctive10.7420.7420.9550.9550.9100.9103.8263.8260.5330.533
MILLET under its own recipe
MILLET, re-trained here with their recipe*20.918±0.0020.918 \pm0.0020.994±0.0010.994 \pm0.0010.392±0.0210.392 \pm0.02112.060±1.208†12.060 \pm1.208^{\dagger}0.643±0.0190.643 \pm0.019
MILLET, published (mean of 5 seeds)50.9240.9240.9940.9940.3790.37912.768†12.768^{\dagger}0.6740.674
MILLET, published 5-model ensemble10.9400.9400.9960.9960.2770.27711.100†11.100^{\dagger}0.6940.694

Table 1. Classification and explanation quality on WebTraffic, each model written as encoder + pooling head. Rows marked * are mean ±\pm s.d. over the Runs column. Higher is better except for NLL. AOPCR is unnormalised, so it compares only models trained under the same recipe; rows marked †\dagger use MILLET’s recipe (1500 epochs) and are never marked best. Run conventions in Appendix § 12.§ 3, parameter counts in Table 22.

ModelParamsAcc.Mean rankW/T/L
MILLET, published (Early et al. [9])423,7070.8445——
SEA-Net wide + class-wise conjunctive269,1640.829211.5326/19/39
SEA-Net wide + MILLET additive269,0830.829811.9823/19/42
SEA-Net wide + MILLET conjunctive269,0830.823812.4322/20/42
MILLET, matched budget423,7070.8274‡12.6013/25/46
ResNet + conjunctive506,3310.814613.5425/11/49
FCN + conjunctive267,0350.814114.4820/12/52
SEA-Net gated + Top-kk61,7400.808315.2919/13/53
SEA-Net bottleneck + Top-kk41,3240.809715.4020/15/50

Table 29. UCR-85 accuracy and mean rank. Mean rank is over the 84 datasets finished by all 28 models we ran on the archive; lower is better. Win/tie/loss is counted per dataset against MILLET’s published accuracies. ‡84 of 85 datasets finished.

RQ4, the bottleneck: Table 21, one seed per row, isolates the encoder: the two rows of each pair share the same pooling head and differ only in whether the bottleneck is used. Replacing the plain encoder by the bottleneck encoder removes 16,256 parameters, that is 28 % of the 57,580 of the plain model. Accuracy then changes by −0.014-0.014 with the class-wise head and by −0.001-0.001 with the Top-kk head, and NDCG@nn by +0.014+0.014 and −0.013-0.013 respectively. The accuracy changes are well inside the three-run spread of ±0.032\pm0.032 and the NDCG@nn changes sit at its ±0.013\pm0.013 spread (Table 1), so none can be resolved from these single-seed runs. We therefore claim only that the bottleneck delivers the size reduction at no measurable cost in accuracy or interpretation.

RQ5, Top-kk pooling: Read the other way, the same table isolates the head: the two rows of each pair share the same encoder and differ only in the pooling head. Replacing the class-wise head by Top-kk raises NDCG@nn from 0.719 to 0.778 on the plain encoder (+0.059) and from 0.733 to 0.765 on the bottleneck encoder (+0.032), two to five times the ±0.013\pm0.013 seed spread. This gain in interpretation ranking is the claim we make for the head. Accuracy moves the same way, by +0.016 and +0.029, but both sit inside the ±0.032\pm0.032 accuracy spread, so we do not present Top-kk as an accuracy gain.

Table 26 varies only the selection fraction κ\kappa, with the architecture and the training recipe unchanged. By Property 2, the κ=1\kappa= 1 row is the class-wise baseline head, so the difference between its NDCG@nn of 0.722 and the 0.755 reached at κ=0.10\kappa= 0.10 comes from the selection alone and not from a change of model. Two caveats follow. First, κ\kappa has a best value rather than a monotone trend: κ=0.05\kappa= 0.05 is worse than κ=0.10\kappa= 0.10 on AOPCR and NDCG@nn and no better on accuracy, so keeping too few time points hurts as much as keeping too many. Second, AOPCR does not track κ\kappa the way NDCG@nn does, peaking at κ=0.50\kappa= 0.50 (3.114) where NDCG@nn is among its lowest (0.732), which is one more reason to read AOPCR with caution (§ 4.1). Table 27 switches off the attention-entropy penalty λfocus\lambda_{\mathrm{focus}} (§ 4), a control independent of κ\kappa: removing it raises accuracy from 0.888 to 0.950 and NDCG@nn from 0.755 to 0.765, while AOPCR falls from 2.409 to 2.303. On this single seed the penalty does not pay for itself. As every cell here is one seed, we read these rows as a pattern rather than as exact values. Re-trained under MILLET’s own 1,500-epoch recipe, MILLET scores AOPCR 12.060 ±\pm 1.208 on WebTraffic, against 2.457 ±\pm 0.655 for the same model under our matched budget (Table 1). The architecture, code, metric and data are identical; only the recipe differs. A 4.9× higher AOPCR would normally mean a far better explanation, but it does not here. AOPCR averages the drop in the predicted-class logit as the top-ranked time points are removed (Section D.4), and logits have no fixed scale: a model trained longer is more confident, so every removal drops the logit further, whether or not its ranking improved. NDCG@nn, which scores the ranking itself and is normalized to [0, 1], confirms this: over the same pair it falls from 0.681 ±\pm 0.013 to 0.643 ±\pm 0.019, a drop of twice its own spread. AOPCR is therefore comparable only within a fixed training budget, hence not across papers: we retrain every baseline under our own budget rather than copying published numbers, never compare against MILLET’s published AOPCR, and base every interpretation claim on NDCG@nn.

Table 26: Top-kk fraction ablation on WebTraffic: the bottleneck + Top-kk model trained five times with only κ\kappa changed (seed 0 everywhere, so the κ=0.10\kappa= 0.10 row is the seed-0 run of that model, and the last row is its mean over every run). k=⌈κt⌉k = \lceil\kappa t \rceil is the number of time points that the series logit averages; κ=1\kappa= 1 recovers class-wise conjunctive pooling exactly. The best single-seed value of each column is in bold.

#κ\kappakk at t=1008t = 1008AccuracyNLLAOPCRNDCG@nn
10.05510.8880.4012.2880.715
20.10 (default)1010.8880.3912.4090.755
30.252520.9400.2772.6480.733
40.505040.8820.4183.1140.732
51.00 (= class-wise conjunctive)10080.9080.3952.4360.722
0.10, mean ± std over 3 runs1010.931 ± 0.0320.312 ± 0.0632.498 ± 0.1490.765 ± 0.013

Table 26.

Table 27: The attention-entropy term of the loss, switched on and off, on WebTraffic (seed 0): the bottleneck + Top-kk model with only λfocus\lambda_{\mathrm{focus}} changed. This is one matched pair on one seed, so it indicates a direction rather than an effect size.

λfocus\lambda_{\mathrm{focus}}AccuracyNLLAOPCRNDCG@nn
0.01 (on, the default)0.8880.3912.4090.755
0.00 (off)0.9500.2632.3030.765

Table 27.

Discussion and Conclusion

Our trade-off depends on where the model runs: saving 10.3× in parameters for 1.8 accuracy points on UCR buys nothing on a workstation, but for the micro-controller class of MCUNet (Lin et al., [22]) and MicroNets (Banbury et al., [4]) a 41 K model is a candidate where a 424 K one is not, and the per-time-step interpretation is kept. The price is paid for the size and not the design, since widening the same encoder recovers the UCR gap (§ 4.1). Our costs are parameter counts, analytic FLOPs and GPU timings; nothing was quantized or run on a micro-controller (Table 22), so deployment fitness is argued from size rather than shown. Activation memory does not shrink, because the encoder preserves length: peak memory exceeds the baseline’s, and where SRAM rather than flash binds, streaming or strided variants are the next step. Interpretation is scored only on WebTraffic, which is also our design set, and its backup metric AOPCR is budget-sensitive (§ 4.1). Seeds are uneven: three models use three seeds, each ablation one, read against those spreads (§ 4). Training is slower, since GPU kernels favor dense over depthwise convolutions; the saving is at inference only. In summary, the cost of MIL lies in the encoder and not in the interpretability: our model keeps the per-time-step explanation and beats the equally-trained MILLET baseline on WebTraffic at a tenth of the parameters. Built-in interpretability is therefore not what makes these models large, and need not be given up to make them small.

Reproducibility Statement

Everything needed to reproduce the results is either in the paper or in the anonymous code release. The models are defined in § 3 and, for the encoder and pooling variants not used in the main text, in Sections B and C. The single training setting used for every model and every dataset is listed in § 4 and repeated with all the remaining hyperparameters in Section D.3. The two evaluation metrics are defined in § 4, and the perturbation procedure behind AOPCR, which § 4.1 shows depends on the training recipe, is given in Section D.4. WebTraffic is produced by the released generator of Early et al. [9] at the settings in Section D.3; the UCR archive (Dau et al. [6]) is public and used with its published train/test splits and no preprocessing other than standardizing each series. Seed counts are given per row in Table 2 and the per-seed values are in Section E.4. Cost figures come from the measurement procedure in § 4; the script that produces them is in the code release. All 72 model combinations are listed row by row in Section E.1. Anonymous code, configurations and result tables: https://anonymous.4open.science/r/seanet-ANON.

ModelAccuracyBal. accuracyAUROCNLL
SEA-Net (ours), our recipe
gated (mean) + Top-kk conj.0.806 / 9.17 / 110.778 / 9.38 / 110.916 / 9.39 / 110.561 / 7.28 / 3
base (wide, d=128d = 128) + (MILLET)0.822 / 7.75 / 130.797 / 7.64 / 130.927 / 7.60 / 150.522 / 6.35 / 7
gated (max) + Top-kk conj.0.809 / 8.73 / 110.783 / 8.61 / 100.916 / 8.38 / 130.551 / 6.92 / 6
spike/trend + Top-kk conj.0.807 / 8.44 / 90.781 / 8.32 / 90.913 / 8.57 / 120.551 / 7.06 / 6
reconstruction-residual + adaptive class-wise0.812 / 8.96 / 110.784 / 8.84 / 100.922 / 8.74 / 120.555 / 7.95 / 4
base (wide, d=128d = 128) + class-wise0.827 / 7.32 / 160.802 / 7.10 / 150.925 / 7.96 / 160.516 / 6.60 / 8
input-gated + Top-kk conj.0.811 / 8.29 / 120.786 / 8.27 / 110.922 / 8.02 / 160.541 / 6.29 / 4
bottleneck + Top-kk conj.0.808 / 9.10 / 70.781 / 9.31 / 70.917 / 9.47 / 70.556 / 7.29 / 2
Baselines re-trained here
MILLET (InceptionTime + conjunctive), our recipe0.827 / 8.08 / 50.800 / 8.14 / 50.927 / 7.96 / 90.530 / 7.45 / 4
ResNet + conjunctive0.813 / 8.23 / 150.782 / 8.76 / 120.923 / 8.03 / 140.575 / 8.44 / 3
FCN + conjunctive0.812 / 8.92 / 100.782 / 9.43 / 110.921 / 8.90 / 100.578 / 8.73 / 6
MILLET, published (Early et al., [9])
Conjunctive FCN, published (mean of 5 seeds)0.828 / 8.12 / 100.803 / 8.02 / 90.928 / 7.70 / 131.059 / 9.31 / 9
Conjunctive ResNet, published (mean of 5 seeds)0.834 / 7.29 / 100.811 / 7.15 / 90.930 / 7.35 / 91.186 / 10.79 / 2
Conjunctive InceptionTime, published (mean of 5 seeds)0.843 / 5.79 / 120.822 / 5.45 / 130.932 / 6.44 / 131.232 / 10.12 / 5

Table 2. Performance on the 84 UCR datasets shared by every row, as mean / average rank / number of wins. Higher is better except for NLL. Our models and the re-trained baselines share one training recipe; the published MILLET rows use their own (1500 epochs) and are ranked with the rest. Ranking rules, the full protocol and parameter counts are in Appendix D.3 and Table 22.

Ethics Statement

This work collects no new data and involves no human subjects. It uses the public UCR archive (Dau et al. [6]) under its original terms and a synthetic benchmark produced by released code; some UCR datasets come from human physiological recordings, but they are distributed in anonymized form by their maintainers and we did not try to re-identify them or add to them. The one risk worth naming is specific to this topic: a model that shows an explanation makes people trust it more than one that does not, and § 4.1 shows that a common faithfulness score can be raised by training longer rather than by explaining better. Interpretations from models of this kind should therefore be checked on the target domain before they are used to support decisions about people. The code we build on is released under the Apache 2.0 license and its attribution notice is kept in our release.

AI Use Statement

In this work, we used generative AI tools for writing and editing the text of this paper, for literature search assistance while preparing § 2, and for producing supporting experiment-management and plotting code. We have not used generative AI tools to generate, select, filter or interpret experimental results, to design the models or the experimental protocol, or to produce any of the numbers reported in this paper. We have reviewed all AI-assisted work. Every numeric value in the paper was traced by the authors to the specific result file and column it came from before it was written down, and the tables were checked against those files a second time after the paper was complete; AI-assisted code was read and tested by the authors, and all reported measurements come from runs the authors executed themselves. Every reference was checked against the original publication, and claims of novelty were checked against a manual literature survey rather than against tool output. We take responsibility for the final content of this work, including text, claims or artifacts produced with the aid of generative AI.

Why MIL Makes SEA-Net Interpretable

§ 1 and § 3.1 treat time series classification as a Multiple Instance Learning (MIL) problem [7, 9]: the series XiX_i is the bag, each time point xijx_i^j is an instance, and only the bag label YiY_i is observed. MIL has one main role in SEA-Net. The instance labels yijy_i^j are never annotated, yet the model must still say which time points carry the evidence for its prediction. MIL recovers this from the bag label alone: the pooling head first gives every time point its own class evidence and only then aggregates it into one prediction, so the same per-time-point evidence that forms the prediction is also the interpretation I^i∈Rt×C\hat{I}_i \in\mathbb{R}^{t \times C}. The interpretation is therefore part of the forward pass and not a post-hoc approximation.

The main text states this view in words. This appendix adds two details: Figure 3 draws the full pipeline from the bag to the prediction and the interpretation, and Equation (11) writes out the embedded pooling that this view replaces, so that the order of its two steps can be compared with the order of our heads.

MIL view of a time series and its interpretable pooling pipeline

Figure 3. The MIL view of a time series, read from left to right. The series XiX_i is the bag and each time point is one instance. The encoder gives one embedding zijz_i^j per instance; the pooling head weights those embeddings and combines them into the prediction Y^i\hat{Y}_i (right). The same weighted contributions, kept instead of discarded, are the interpretation I^i\hat{I}_i drawn on the series below, where red pushes towards the predicted class and blue pushes away from it. The two grey boxes are interchangeable, which is what lets any encoder of Section B be paired with any head of Section C.

The alternative is worth writing down once, because the rest of the design follows from it. Embedded pooling [30] first averages the embeddings and then classifies the average:

Pi=1t∑j=1tzij∈Rd,Y^i=ψclf(Pi).(11)P_i = \frac{1}{t}\sum_{j=1}^{t} z_i^j \in\mathbb{R}^{d}, \qquad\hat{Y}_i = \psi_{\mathrm{clf}}(P_i). \tag*{(11)}

Once PiP_i is formed, the time index is gone, so there is no per-time-point prediction left to report. Every head of Section C, starting with the conjunctive pooling of MILLET (Equation (7)), runs the two steps in the opposite order: it classifies each time point first and aggregates afterwards, which is why it can report the interpretation.

How the Encoder Stays Small

§ 3.2 describes the SEA-Net encoder: a stem convolution followed by a stack of multi-scale separable residual blocks (Equation (1) and Equation (2)), which keeps the length tt unchanged, so that one embedding per time point reaches the pooling head, as the MIL view of Section A requires. It also gives four variants of this encoder: the bottleneck pointwise mixing (Equation (3)), the two channel re-weighting variants, Gated (mean) and Input Gated (Equation (4)), and the Spike/Trend encoder (Equation (6)). Every variant returns the same output Zi∈RT×dZ_i \in\mathbb{R}^{T \times d}, so any encoder can be paired with any pooling head.

This appendix gives the details that the main text leaves out. Section B.1 draws one block and the effect of the dilation, Section B.2 works out where the saving of the bottleneck comes from, and Section B.3 and Section B.4 write out the gated and the Spike/Trend variants step by step. Section B.5 to Section B.7 then describe one more encoder and two wrappers that the main text does not cover, and Section B.8 lists the two main encoders layer by layer.

Multi-scale Separable Blocks

Figure 4 draws one block of § 3.2 as a data path, i.e. Equation (1) and Equation (2). Two terms of Equation (1) need a short explanation. In a depthwise convolution Dk(δ)D_k^{(\delta)}, each input channel is filtered with its own kernel, and the channels are not mixed. It is a grouped convolution with as many groups as channels, so it needs dd times fewer parameters and FLOPs than a full convolution; the same idea is the basis of efficient architectures such as those of Howard et al. [12] and Xie et al. [34]. The pointwise 1×11 \times1 convolution PP is therefore the only place where the channels are mixed, and it also holds most of the parameters; this is why the bottleneck of Equation (3) factorizes PP and nothing else. Batch normalization (Ioffe & Szegedy, [15]) stabilizes the activations and dropout regularizes the model; neither of them changes the shape.

Diagram of a multi-scale separable block

Figure 4. One multi-scale separable block. The three depth-wise convolutions read the same input at the kernel sizes 5, 11 and 23, their outputs are summed, and the point-wise 1×11 \times1 convolution PP mixes the channels; BatchNorm, ReLU and dropout close the unit UU of Equation (1). The dashed box is what is applied twice, and the arrow over the top is the residual connection of Equation (2).

Figure 5 shows what the dilation of § 3.2 gives. A kernel of size 5 always holds five weights. At δ=1\delta= 1 they read five neighbouring time points; at δ=16\delta= 16 the same five weights read time points that are 16 apart and together cover 65. The number of parameters does not change, so the receptive field grows at no cost in weights, and the cap δmax⁡=16\delta_{\max} = 16 keeps it bounded, so that each embedding still describes a local region of the series.

Effect of dilation with five filter taps

Figure 5. The effect of the dilation, drawn with the same five taps of the k=5k = 5 filter in both rows. Widening the region that the filter sees costs no extra weight, which is why the receptive field of the encoder can be grown without paying for it in parameters.

Where the Bottleneck Saving Comes From

Equation (3) gives the ratio 2r/d2r/d; here is the arithmetic behind the 28% saving. At d=64d = 64 the pointwise step costs d2=4,096d^2 = 4{,}096 weights per unit, and with r=d/4=16r = d/4 = 16 it costs 2dr=2,0482dr = 2{,}048, so each unit saves 2,048 weights. A block holds two units and the new model holds four blocks, which gives 8×2,048=16,3848 \times2{,}048 = 16{,}384; the bias terms of the factorized layers bring the measured saving to 16,256, i.e. from 57,580 to 41,324 parameters (Table 3 and Table 4). The depthwise filters are left unchanged, because with the kernel sizes {5,11,23}\{5,11,23\} they hold only 39d39d weights per unit and are not where the cost is.

Table 3: The SEA-Net bottleneck encoder (d=64d = 64, 4 blocks, kernels 5/11/23, dilations 1/2/4/8), layer by layer, with the output shape and the number of parameters, built from top/top_bottleneck_topk for WebTraffic (c=10c = 10). The point-wise convolution of every unit is factorised as d→d/4→dd \to d/4 \to d, which is where the parameter saving comes from. Every layer keeps the series length tt, so the head sees one embedding per time point. Depthwise = one filter per channel (groups = dd).

StageLayerOutputParams
Inputz-normalised seriesb×1×tb \times1 \times t–
StemConv1d 1→641 \to64, kernel 7b×64×tb \times64 \times t512
Block 1 (dilation 1), 2× unit:depthwise Conv1d ×3 (kernels 5, 11, 23), summedb×64×tb \times64 \times t2,688
pointwise Conv1d 64→1664 \to16 (reduce)b×16×tb \times16 \times t1,040
pointwise Conv1d 16→6416 \to64 (expand)b×64×tb \times64 \times t1,088
BatchNorm + ReLU + dropoutb×64×tb \times64 \times t128
after both units: residual add + ReLUb×64×tb \times64 \times tblock total 9,888
Block 2 (dilation 2), 2× unit:depthwise Conv1d ×3 (kernels 5, 11, 23), summedb×64×tb \times64 \times t2,688
pointwise Conv1d 64→1664 \to16 (reduce)b×16×tb \times16 \times t1,040
pointwise Conv1d 16→6416 \to64 (expand)b×64×tb \times64 \times t1,088
BatchNorm + ReLU + dropoutb×64×tb \times64 \times t128
after both units: residual add + ReLUb×64×tb \times64 \times tblock total 9,888
Block 3 (dilation 4), 2× unit:depthwise Conv1d ×3 (kernels 5, 11, 23), summedb×64×tb \times64 \times t2,688
pointwise Conv1d 64→1664 \to16 (reduce)b×16×tb \times16 \times t1,040
pointwise Conv1d 16→6416 \to64 (expand)b×64×tb \times64 \times t1,088
BatchNorm + ReLU + dropoutb×64×tb \times64 \times t128
after both units: residual add + ReLUb×64×tb \times64 \times tblock total 9,888
Block 4 (dilation 8), 2× unit:depthwise Conv1d ×3 (kernels 5, 11, 23), summedb×64×tb \times64 \times t2,688
pointwise Conv1d 64→1664 \to16 (reduce)b×16×tb \times16 \times t1,040
pointwise Conv1d 16→6416 \to64 (expand)b×64×tb \times64 \times t1,088
BatchNorm + ReLU + dropoutb×64×tb \times64 \times t128
after both units: residual add + ReLUb×64×tb \times64 \times tblock total 9,888
Encoder totalb×64×tb \times64 \times t (time-point embs.)40,064
Pooling headTop-kk conjunctive (a=8a = 8, c=10c = 10)b×10b \times101,260
Model total41,324

Table 3.

StageLayerOutputParams
Inputz-normalised seriesb×1×tb \times1 \times t–
StemConv1d 1 →\to 64, kernel 7b×64×tb \times64 \times t512
Block 1 (dilation 1), 2× unit:depthwise Conv1d ×3 (kernels 5, 11, 23), summedb×64×tb \times64 \times t2,688
pointwise Conv1d 64 →\to 64b×64×tb \times64 \times t4,160
BatchNorm + ReLU + dropoutb×64×tb \times64 \times t128
after both units: residual add + ReLUb×64×tb \times64 \times tblock total 13,952
Block 2 (dilation 2), 2× unit:depthwise Conv1d ×3 (kernels 5, 11, 23), summedb×64×tb \times64 \times t2,688
pointwise Conv1d 64 →\to 64b×64×tb \times64 \times t4,160
BatchNorm + ReLU + dropoutb×64×tb \times64 \times t128
after both units: residual add + ReLUb×64×tb \times64 \times tblock total 13,952
Block 3 (dilation 4), 2× unit:depthwise Conv1d ×3 (kernels 5, 11, 23), summedb×64×tb \times64 \times t2,688
pointwise Conv1d 64 →\to 64b×64×tb \times64 \times t4,160
BatchNorm + ReLU + dropoutb×64×tb \times64 \times t128
after both units: residual add + ReLUb×64×tb \times64 \times tblock total 13,952
Block 4 (dilation 8), 2× unit:depthwise Conv1d ×3 (kernels 5, 11, 23), summedb×64×tb \times64 \times t2,688
pointwise Conv1d 64 →\to 64b×64×tb \times64 \times t4,160
BatchNorm + ReLU + dropoutb×64×tb \times64 \times t128
after both units: residual add + ReLUb×64×tb \times64 \times tblock total 13,952
Encoder totalb×64×tb \times64 \times t (time-point embs.)56,320
Pooling headTop-kk conjunctive (a=8a = 8, c=10c = 10)b×10b \times101,260
Model total57,580

Table 4. The SEA-Net base encoder (d=64d = 64, 4 blocks, kernels 5/11/23, dilations 1/2/4/8), layer by layer, with the output shape and the number of parameters, built from seanet/seanet_slim_topk for WebTraffic (c=10c = 10). It has the same skeleton with the plain d→dd \to d point-wise convolution, for comparison. Every layer keeps the series length tt, so the head sees one embedding per time point. Depthwise = one filter per channel (groups = dd).

The Two Gated Variants, Written Out

Equation (4) writes both channel re-weighting variants in one line. Written separately, Gated (mean) first averages the embeddings over time and computes one weight vector from that summary,

si=1t∑j=1tzij∈Rd,gi=σ(Wgsi)∈[0,1]d,Wg∈Rd×d,(12)s_i = \frac{1}{t}\sum_{j=1}^{t} z_i^j \in\mathbb{R}^d,\qquad g_i = \sigma(W_g s_i) \in[0,1]^d,\qquad W_g \in\mathbb{R}^{d \times d}, \tag*{(12)}

and the same gig_i is then applied at every time point, i.e. gij=gig_i^j = g_i for all jj. The mean is one of three ways to summarize the time axis; the other two are the maximum and the last time point. The mean is used in the main experiments, and the other two appear in Table 21. The cost is one d×dd \times d matrix.

Input Gated keeps the index jj: the gate gijg_i^j is computed from the raw series by a convolution with kernel size 7 and “same” padding, so the gate has exactly tt entries, one per time point. Its cost is 7d7d weights, i.e. less than the mean gate, and its gradient reaches the input directly instead of passing through the encoder blocks.

SEA-Net Spike/Trend Encoder

Equation (6) writes the spike branch as one expression. In the implementation it is four steps in this order: a moving average with window w=5w = 5, its subtraction from the input, and then Conv3, BatchNorm and ReLU, all with “same” padding, so the length tt is kept. The mixed features are gated by Equation (12) before they reach the head. We expected an advantage on datasets where the class evidence is a sharp spike, but Table 25 shows that this was the weakest of the five encoders, so the expectation was not met.

Table 25: Effect of the encoder: WebTraffic accuracy, AOPCR and NDCG@nn averaged over every pooling head that each encoder was paired with (nn = number of pairings, with the same exclusions as in Table 24). The gated encoder has the largest nn because it was paired with the most heads, which pulls its mean towards the weak heads; the last column shows what each encoder reaches with its best head.

#EncoderMean acc.Mean AOPCRMean NDCG@nnnnBest pairing (acc.)
1SEA-Net encoders (†\dagger = a wrapper around another encoder)
1SEA-Net multi-scale channels†^\dagger0.9362.3850.74740.948 (seanet_inputgate_mschan)
2SEA-Net reconstruction-residual0.9242.3150.71950.946 (seanet_recon_adaptive)
3SEA-Net input-gated0.9032.3450.71850.946 (seanet_inputgate_topk)
4SEA-Net gated0.9022.0560.710190.955 (seanet_gated_mean_topk)
5SEA-Net base0.8981.9330.693120.954 (seanet_conjunctive)
6SEA-Net bottleneck0.8822.1930.69380.940 (seanet_bottleneck_softmax)
7SEA-Net spike/trend0.8581.8140.67770.950 (seanet_spiketrend_topk)
8SEA-Net multi-scale pyramid†^\dagger0.7711.3940.60430.832 (seanet_gated_pyramid)
Baseline encoders (each paired with conjunctive pooling only)
9InceptionTime0.8872.5690.67710.887 (millet)
10ResNet0.7722.9520.55410.772 (resnet)
11FCN0.7423.8260.53310.742 (fcn)

Table 25.

SEA-Net Reconstruction-residual Encoder

The spike branch decides in advance what the encoder misses, namely the sharp changes. This variant learns it instead, by asking which part of the input the encoder features cannot rebuild. A 1×11 \times1 convolution reconstructs the raw series from the features, the reconstruction is subtracted from the real input, and the remainder becomes dres=16d_{\mathrm{res}} = 16 extra channels:

X^i=Prec(Zi),z~i=P([z~ij; ϕ(Xi−X^i)j]),(13)\widehat{X}_i = P_{\mathrm{rec}}(Z_i),\qquad\widetilde{z}_i = P\left([\widetilde{z}_i^j;\,\phi(X_i-\widehat{X}_i)^j]\right), \tag*{(13)}

where ϕ\phi is the same small convolution, BatchNorm and ReLU used by the spike branch. There is no separate reconstruction loss: the branch is trained end to end with the classifier, so this is a learned residual feature and not an auto-encoder. It was the second strongest encoder in Table 25.

SEA-Net Multi-scale Channels (wrapper)

A wrapper changes the input or the output of an encoder but leaves the encoder itself unchanged. The stem receives a single raw channel, so any local statistic that it needs must be learned from scratch. This wrapper adds the rolling maximum, minimum and standard deviation over several windows, together with the sign of the first difference, as extra input channels:

Xi+=[Xi; (roll_max⁡w(Xi))w∈W; (roll_min⁡w(Xi))w∈W; (roll_std⁡w(Xi))w∈W; sign⁡(ΔXi)],(14)X_i^{+} = \left[X_i;\,(\operatorname{roll\_max}_w(X_i))_{w\in\mathcal{W}};\,(\operatorname{roll\_min}_w(X_i))_{w\in\mathcal{W}};\,(\operatorname{roll\_std}_w(X_i))_{w\in\mathcal{W}};\,\operatorname{sign}(\Delta X_i)\right], \tag*{(14)}

with W={3,7,15,31}\mathcal{W}=\{3,7,15,31\}, all odd so that each window stays centred. The input grows from 1 to 1+4⋅3+1=141+4\cdot3+1=14 channels before the stem, and the rest is one of the encoders above. A rolling mean is not used on purpose: it is linear, so the stem convolution can learn it on its own, whereas the other three statistics are not linear. A BatchNorm first normalizes the 14 channels, because they do not share the scale of the raw series; removing it reduced the accuracy.

SEA-Net Multi-scale Pyramid (wrapper)

The dilation cap bounds the receptive field, so evidence that is visible only over a long span cannot be seen. This wrapper runs the same encoder on the series downsampled by 1, 2, 4 and 8, stretches the outputs back to length tt, and combines them with an attention over the scales:

z~ij=∑s∈Sαij,szij,(s),αij,s=softmax⁡s(score⁡(zij,(s))),S={1,2,4,8}.(15)\tilde{z}_i^j=\sum_{s\in\mathcal{S}}\alpha_i^{j,s}z_i^{j,(s)},\qquad\alpha_i^{j,s}=\operatorname{softmax}_s\left(\operatorname{score}(z_i^{j,(s)})\right),\qquad\mathcal{S}=\{1,2,4,8\}. \tag*{(15)}

The softmax normalizes over the scales and never over time, so the per-time-point signal on which the two interpretation metrics depend is kept. One set of encoder weights is shared by all scales, so the number of parameters barely changes and the extra cost is compute, about 1.9×1.9\times. This is the one-dimensional analogue of the multi-magnification MIL of Hashimoto et al. [10], and it was the weakest variant we built (Table 25). It also has a constraint: the wrapped encoder must be shallow enough that its receptive field does not exceed t/max⁡(S)t/\max(\mathcal{S}), otherwise the coarsest scales collapse to a nearly constant signal. The pyramid therefore uses a two-block base, and the pipeline checks this automatically.

Alternatives we rejected. A Transformer encoder costs O(t2)O(t^2) in time and memory, which is too expensive for series of 1,000–1,500 points on the target hardware. Its unrestricted attention also lets any output position read any input position, which removes the bounded receptive field that the interpretation relies on. Pruning or quantizing InceptionTime would reduce its size, but would not change where the cost is, i.e. in the encoder, which is the point of this paper.

The Two Encoders, Layer by Layer

Table 3 and Table 4 give one row per operation, with its output shape and its number of parameters. Read side by side, they show that the saving of Section B.2 comes only from the pointwise layers.

Pooling Heads Compared

Section 3.3 describes the MIL pooling head ψpool\psi_{\mathrm{pool}}. It has two branches: an attention branch, which decides how much each time point counts, and a classifier branch, which decides which class each time point argues for. Their product is the evidence eij,ke_i^{j,k} of time point jj for class kk; aggregating it over time gives the prediction Y^i\hat{Y}_i, and keeping it per time point gives the interpretation I^i\hat{I}_i. The main text starts from the conjunctive pooling of MILLET (Equation (7)), states its three limitations, and gives the three heads that remove them: class-wise (Equation (8)), Soft-Max (Equation (9)) and Top-kk (Equation (10)) conjunctive pooling.

This appendix adds three things. First, it draws every head in the same way, one full-width figure per head (Figure 6 to Figure 13). All seven of our heads keep the classifier branch y^ij=Wczij+bc\hat{y}_i^j = W_{\mathrm{c}}z_i^j + b_{\mathrm{c}} unchanged and differ from the baseline only in two places, the attention head and the aggregation over time; these two places are drawn in blue, so two heads can be compared by looking at the blue boxes only. Second, Section C.5 to Section C.8 describe the four heads that the main text does not cover, with their equations and the reason why each was built. Third, Section C.9 summarizes the eight heads and gives each of them layer by layer.

Conjunctive pooling, the MILLET baseline

Figure 6. Conjunctive pooling, the MILLET baseline of Equation (7). Read from left to right: the time point embeddings feed an attention head and a classifier, their product is the evidence at each time point, which is also the interpretation, and aggregating that evidence over time gives the prediction for the series. The classifier is the same in every head; only the two blue boxes, the attention head and the aggregation, change from one head to the next, so Figure 7 to Figure 13 are best read against this figure.

Dual-stream conjunctive pooling

Figure 13. Dual-stream conjunctive pooling (Equation (20) and Equation (21)). A second stream, built around the most supporting time point of each class, is blended into the class-wise stream of Figure 7 by one learned scalar.

Conjunctive Pooling

Figure 6 draws the baseline of Equation (7). The head itself is almost free: replacing it by global average pooling on the same InceptionTime backbone removes only 1,041 of the 423,707 parameters, so it is the encoder, and not the interpretability, that makes the baseline large. Section 3.3 states the three limitations of this head. We call them L1 (one gate is shared by all classes), L2 (the weights are not normalized over time) and L3 (the fixed mean dilutes a few decisive time points in a long series), and use these names below and in Table 5.

#HeadAttentionReduction over timeReduces atTargets
1Conjunctive (baseline)shared gatemean——
2Class-wise conjunctiveper-class gatemeanaij,k=aija_i^{j,k}=a_i^jL1
3Soft-Max conjunctiveper-class scoresoftmax, learnable τ\tauτ→∞\tau\to\inftyL2
4Top-kk conjunctiveper-class gatemean of the mm largestκ=1\kappa=1L3
5Adaptive class-wiseper-class gatesoft-argmax, learnable βk\beta_kβk→0\beta_k \to0L3
6Attention-maxper-class gateblend of mean and maxλk→0\lambda_k \to0L3
7Per-class gated attentiongated tanh⁡⊙σ\tanh\odot\sigmasoftmaxnoneL1, L3
8Dual-stream conjunctivegate + critical queryblend of two streamsλ→0\lambda\to0L3

Table 5. The eight heads as two separate choices. Reduces at gives the setting at which the head becomes conjunctive pooling exactly, and Targets gives the limitations of Section C.1 that it addresses.

Class-wise Conjunctive Pooling

Compared with Equation (7), Equation (8) changes only the attention head (Figure 7). The gate becomes a vector of length CC, so the evidence is formed class by class, and a time point can support one class while arguing against another. This head targets L1.

Class-wise conjunctive pooling diagram

Figure 7. Class-wise conjunctive pooling. Against Figure 6, only the attention head changes: widening its last layer to CC outputs costs (C−1)(da+1)(C-1)(d_a+1) weights and makes the evidence, and therefore the interpretation, class-specific.

Soft-Max Conjunctive Pooling

Here the aggregation changes as well, as Figure 8 shows: the sigmoid gate becomes a Soft-Max over time, and the mean becomes a weighted sum. This head targets L2.

Soft-Max conjunctive pooling diagram

Figure 8. Soft-Max conjunctive pooling. Both blue boxes change compared with Figure 6: the attention is normalized over time, and the aggregation is a weighted sum rather than a mean. The single extra weight is the sharpness τ=exp⁡(ρ)\tau=\exp(\rho).

Property 1 (Length invariance). Since the weights of Equation (9) sum to one over jj, Y^ik\hat{Y}_i^k does not depend on tt. As τ→∞\tau\to\infty they flatten to 1/t1/t and the head becomes a plain mean over time; as τ→0\tau\to0 it keeps the single highest-scoring time point.

Top-k Conjunctive Pooling

The attention head is the class-wise one, and only the aggregation changes, as shown in Figure 9. This head targets L3.

Top-k conjunctive pooling diagram

Figure 9. Top-kk conjunctive pooling. The attention head is the one of Figure 7, and only the aggregation moves: the mean runs over the mm largest evidence values of the class instead of over all tt. It adds no weight, because κ\kappa is a hyperparameter.

Property 2 (Strict generalisation). At κ=1\kappa=1, Equation (10) is exactly Equation (8). For κ<1\kappa<1 the gradient reaches only the selected time points.

Property 2 makes the κ\kappa study of Table 26 a controlled experiment: the κ=1\kappa=1 row is the class-wise head, so any difference from it comes from the selection alone and not from a change of model.

The remaining four heads are not described in the main text. Each of them keeps the class-wise classifier and changes the attention head, the aggregation or both, and each targets one or two of the limitations above.

Adaptive Class-wise Pooling

This head also targets L3, but from another side. A fixed mean suits evidence that is spread over the series, and a maximum suits a single short event; no fixed operator is right for both. The head Top-kk conjunctive pooling

Adaptive class-wise pooling

therefore keeps the class-wise gate and aggregates with a learnable sharpness βk≥0\beta_k \ge0 per class, written as a numerically stable soft-argmax (Figure 10):

Adaptive class-wise pooling diagram

Figure 10. Adaptive class-wise pooling (Equation (16)). The attention head is the one of Figure 7; the aggregation slides between the mean and the maximum according to one learned number per class.

βk=softplus⁡(θk),wij,k=softmax⁡j(βkeij,k),Y^ik=∑j=1twij,keij,k.(16)\beta_k = \operatorname{softplus}(\theta_k), \qquad w_i^{j,k} = \operatorname{softmax}_j\left(\beta_k e_i^{j,k}\right), \qquad\hat{Y}_i^k = \sum_{j=1}^{t} w_i^{j,k}e_i^{j,k}. \tag*{(16)}

It adds CC weights.

Property 3 (Learned mean–max aggregator). βk→0\beta_k \to0 gives wij,k→1/tw_i^{j,k} \to1/t, i.e. class-wise pooling; βk→∞\beta_k \to\infty gives Y^ik→max⁡jeij,k\hat{Y}_i^k \to\max_j e_i^{j,k}. As Y^ik\hat{Y}_i^k is always a convex combination of the eij,ke_i^{j,k}, it stays inside their range, which keeps training stable.

We initialize βk\beta_k at 0.3, so that training starts close to the class-wise mean and becomes sharper only where this lowers the loss.

Attention-max Pooling

This is the simplest hard alternative to the previous head, and it serves as a control: the soft-argmax still gives every time point some weight, and this head tests whether that is useful. The aggregation is a learnable per-class blend of the mean and the maximum (Figure 11), again with CC extra weights:

Attention-max pooling

Figure 11. Attention-max pooling (Equation (17)), the hard counterpart of Figure 10: one learned number per class blends the mean with the maximum directly.

Y^ik=(1−λk)1t∑j=1teij,k+λkmax⁡jeij,k,λk=σ(θk)∈[0,1].(17)\hat{Y}_i^k = (1-\lambda_k)\frac{1}{t}\sum_{j=1}^{t}e_i^{j,k}+\lambda_k\max_j e_i^{j,k}, \qquad\lambda_k=\sigma(\theta_k)\in[0,1]. \tag*{(17)}

λk→0\lambda_k \to0 recovers class-wise pooling and λk→1\lambda_k \to1 gives max pooling, so each class learns on its own whether its evidence is sustained or a short event. Equation (17) and Equation (16) use the same gate and differ only in how they aggregate it, so comparing them isolates soft selection from hard selection.

Per-class Gated Attention

Gated attention was proposed by Ilse et al. [14] and is also used by Hashimoto et al. [10], where a bag is a whole-slide image and an instance is a patch. It targets L1 and L3 together with a stronger attention head, because the baseline gate is a single tanh layer, which limits how selective it can be. We apply it to time series and make it per class, which the original is not (Figure 12):

Per-class gated attention pooling

Figure 12. Per-class gated attention (Equation (18) and Equation (19)). The attention head has two layers instead of one, and the second of them decides which attention features are admitted.

Aij=tanh⁡(Vzij)⊙σ(Uzij)∈Rda,V,U∈Rda×d,(18)A_i^j = \tanh(Vz_i^j) \odot\sigma(Uz_i^j) \in\mathbb{R}^{d_a}, \qquad V,U \in\mathbb{R}^{d_a \times d}, \tag*{(18)}
αij,k=softmax⁡j((WAij)k),Y^ik=∑j=1tαij,ky^ij,k.(19)\alpha_i^{j,k} = \operatorname{softmax}_j\left((WA_i^j)_k\right), \qquad\hat{Y}_i^k = \sum_{j=1}^{t}\alpha_i^{j,k}\hat{y}_i^{j,k}. \tag*{(19)}

The tanh branch proposes attention features and the σ branch decides which of them to let through, so a feature is used only where the second branch judges it reliable. The cost is a second d→dad \to d_a layer, which makes this the most expensive head here. Unlike the other heads, it has no blend parameter that recovers conjunctive pooling, so no setting of its weights returns the baseline.

Dual-stream Conjunctive Pooling

The two-stream mechanism was proposed by Li et al. [21], again for whole-slide images: one stream aggregates all the instances, and a second one focuses on the most critical instance and on the instances similar to it. It targets L3 when the evidence is scattered, i.e. one decisive time point should be able to dominate without the rest being discarded. We removed the contrastive pre-training of Li et al. [21], made the critical instance and the query per class, and blended the two streams with a learnable scalar that starts close to the baseline. Stream A is the class-wise mean of Equation (8); stream B finds the most supporting time point of each class and re-weights the time points by their similarity to its query (Figure 13):

mk=arg⁡max⁡jeij,k,qij=Wqzij∈Rda,Uij,k=softmax⁡j(⟨qij,qimk⟩),(20)m_k = \arg\max_j e_i^{j,k}, \qquad q_i^j = W_q z_i^j \in\mathbb{R}^{d_a}, \qquad U_i^{j,k} = \operatorname{softmax}_j\left(\langle q_i^j, q_i^{m_k}\rangle\right), \tag*{(20)}
Y^ik=(1−λ)1t∑j=1teij,k+λ∑j=1tUij,ky^ij,k,λ=σ(θ),λ0=0.05.(21)\hat{Y}_i^k = (1-\lambda)\frac{1}{t}\sum_{j=1}^{t}e_i^{j,k}+\lambda\sum_{j=1}^{t}U_i^{j,k}\hat{y}_i^{j,k}, \qquad\lambda=\sigma(\theta), \quad\lambda_0=0.05. \tag*{(21)}

This head is also the clearest negative result of the study: being able to return to the baseline is not a safety guarantee. Five of the seven heads contain conjunctive pooling as a special case, and this is one of them, yet it is the worst head we tested; its four pairings score 0.860, 0.824, 0.736 and 0.556 (Table 24). The training runs show why: λ\lambda starts at 0.05 and nothing in the loss pushes it back towards the baseline, so being able to return there does not mean that training will go there. This is why the main text argues for Top-kk from the measured NDCG@nn and not from Property 2 alone.

Table 24: Effect of the pooling head: WebTraffic accuracy, AOPCR and NDCG@nn averaged over every encoder that each head was paired with in the 71-model sweep (nn = number of pairings; the κ\kappa / λ\lambda ablation copies are excluded, so that no pairing is counted twice). The last column is the best single pairing of that head. A head paired once (n=1n = 1) is not comparable with one averaged over ten.

#Pooling headMean acc.Mean AOPCRMean NDCG@nnnnBest pairing (acc.)
1class-wise conjunctive0.9212.3220.692100.946 (seanet_classwise)
2gated attention0.9181.8690.73340.930 (seanet_bottleneck_gatedattn)
3adaptive class-wise0.9122.2100.73290.946 (seanet_recon_adaptive)
4softmax conjunctive0.9071.6900.71290.940 (seanet_bottleneck_softmax)
5Top-kk conjunctive0.9032.2600.712160.955 (seanet_gated_mean_topk)
6attention-max0.8381.7580.64580.892 (seanet_recon_attnmax)
7dual-stream conjunctive0.7442.0070.63640.860 (seanet_slim_dualstream)
MILLET heads (reference; n=1n = 1 rows are one pairing only)
8additive0.9421.5790.72910.942 (seanet)
9attention0.8882.4030.71010.888 (seanet_slim_gatedattn)
10conjunctive0.8392.7120.61540.954 (seanet_conjunctive)

Table 24.

The Eight Heads Together

Table 5 lists the eight heads by the two choices that define them, the attention head and the aggregation over time. Table 6 to Table 13 then give the eight heads layer by layer, one table per head, with the input and the output shape of each operation. In these tables, bb is the batch size, tt the series length, dd the embedding size (64 for SEA-Net, 128 for MILLET), a=8a=8 the attention width and cc the number of classes.

ProcessLayerInputOutput
InputPositional encoding + dropoutb×t×db \times t \times db×t×db \times t \times d (time-point embs.)
AttentionLinear + tanhb×t×db \times t \times db×t×ab \times t \times a
Linear + sigmoidb×t×ab \times t \times ab×t×1b \times t \times1 (attention scores)
ClassifierLinearb×t×db \times t \times db×t×cb \times t \times c (time-point logits)
PoolingAttention weightingb×t×cb \times t \times cb×t×cb \times t \times c (interpretation)
Mean over ttb×t×cb \times t \times cb×cb \times c (series logits)

Table 6. Conjunctive pooling, the MILLET baseline head (their Table A.5; d=128d=128). One scalar gate per time point, shared by every class. Registered as mil_conjunctive.

Table 13: Dual-stream conjunctive pooling (DSMIL, Li et al. [21], wrapped around class-wise conjunctive pooling): stream A is the plain mean, and stream B re-weights the time points by their similarity to the most supporting one (the critical time point) of each class; a learned scalar λ=σ(θ)\lambda= \sigma(\theta) blends the two and starts near stream A. Registered as sea_dualstream_conjunctive.

ProcessLayerInputOutput
InputPositional encoding + dropoutb×t×db \times t \times db×t×db \times t \times d (time-point embs.)
AttentionLinear + tanhb×t×db \times t \times db×t×ab \times t \times a
Linear + sigmoidb×t×ab \times t \times ab×t×cb \times t \times c (one gate per class)
ClassifierLinearb×t×db \times t \times db×t×cb \times t \times c (time-point logits)
EvidenceGate ×\times logit (element-wise)b×t×cb \times t \times cb×t×cb \times t \times c (interpretation)
Stream AMean over ttb×t×cb \times t \times cb×cb \times c
Stream BLinear (query)b×t×db \times t \times db×t×ab \times t \times a
argmax over tt of the evidenceb×t×cb \times t \times cb×cb \times c (critical index)
Gather the critical queryb×t×ab \times t \times ab×c×ab \times c \times a
Dot product with every query, softmax over ttb×t×ab \times t \times ab×t×cb \times t \times c (weights)
Weight ×\times logit, sum over ttb×t×cb \times t \times cb×cb \times c
Blend(1−λ)A+λB(1-\lambda) A + \lambda Bb×cb \times cb×cb \times c (series logits)

Table 13.

ProcessLayerInputOutput
InputPositional encoding + dropoutb×t×db \times t \times db×t×db \times t \times d (time-point embs.)
AttentionLinear + tanhb×t×db \times t \times db×t×ab \times t \times a
Linear + sigmoidb×t×ab \times t \times ab×t×cb \times t \times c (one gate per class)
ClassifierLinearb×t×db \times t \times db×t×cb \times t \times c (time-point logits)
EvidenceGate ×\times logit (element-wise)b×t×cb \times t \times cb×t×cb \times t \times c (interpretation)
PoolingMean over ttb×t×cb \times t \times cb×cb \times c (series logits)

Table 7. Class-wise conjunctive pooling: conjunctive pooling with one gate per class instead of one shared gate. Registered as sea_classwise_conjunctive.

ProcessLayerInputOutput
InputPositional encoding + dropoutb×t×db \times t \times db×t×db \times t \times d (time-point embs.)
AttentionLinear + tanhb×t×db \times t \times db×t×ab \times t \times a
Linear + sigmoidb×t×ab \times t \times ab×t×cb \times t \times c (one gate per class)
ClassifierLinearb×t×db \times t \times db×t×cb \times t \times c (time-point logits)
EvidenceGate ×\times logit (element-wise)b×t×cb \times t \times cb×t×cb \times t \times c (interpretation)
PoolingTop-kk over tt (per class)b×t×cb \times t \times cb×k×cb \times k \times c
Mean over kkb×k×cb \times k \times cb×cb \times c (series logits)

Table 8. Top-kk conjunctive pooling, the head of every short-listed model: class-wise conjunctive pooling, but the series logit averages only the k=⌈κt⌉k=\lceil\kappa t\rceil largest evidence values of each class (κ=0.1\kappa=0.1). The interpretation is the full evidence map, so it is exactly zero wherever no evidence was used. Registered as sea_topk_conjunctive.

ProcessLayerInputOutput
InputPositional encoding + dropoutb×t×db \times t \times db×t×db \times t \times d (time-point embs.)
AttentionLinear + tanhb×t×db \times t \times db×t×ab \times t \times a
Linear (raw scores)b×t×ab \times t \times ab×t×cb \times t \times c
÷τ\div\tau, softmax over ttb×t×cb \times t \times cb×t×cb \times t \times c (weights, sum to 1)
ClassifierLinearb×t×db \times t \times db×t×cb \times t \times c (time-point logits)
PoolingWeight ×\times logit (element-wise)b×t×cb \times t \times cb×t×cb \times t \times c (interpretation)
Sum over ttb×t×cb \times t \times cb×cb \times c (series logits)

Table 9. Soft-Max conjunctive pooling: the attention is a distribution over time (a softmax with one learned temperature τ\tau), so the series logit is a true weighted average and long and short series are on one scale. Registered as sea_softmax_conjunctive.

ProcessLayerInputOutput
InputPositional encoding + dropoutb×t×db \times t \times db×t×db \times t \times d (time-point embs.)
AttentionLinear + tanhb×t×db \times t \times db×t×ab \times t \times a
Linear + sigmoidb×t×ab \times t \times ab×t×cb \times t \times c (one gate per class)
ClassifierLinearb×t×db \times t \times db×t×cb \times t \times c (time-point logits)
EvidenceGate ×\times logit (element-wise)b×t×cb \times t \times cb×t×cb \times t \times c (interpretation)
Poolingsoftmax over tt of βk⋅\beta_k \cdot evidenceb×t×cb \times t \times cb×t×cb \times t \times c (weights)
Weighted sum over ttb×t×cb \times t \times cb×cb \times c (series logits)

Table 10. Adaptive class-wise pooling: class-wise conjunctive pooling with a learned mean-to-max aggregator, i.e. a soft-argmax with one sharpness βk=softplus⁡(θk)≥0\beta_k = \operatorname{softplus}(\theta_k) \ge0 per class (cc extra parameters; β→0\beta\to0 gives the mean and β→∞\beta\to\infty the max). Registered as sea_adaptive_classwise.

ProcessLayerInputOutput
InputPositional encoding + dropoutb×t×db \times t \times db×t×db \times t \times d (time-point embs.)
AttentionLinear + tanhb×t×db \times t \times db×t×ab \times t \times a
Linear + sigmoidb×t×ab \times t \times ab×t×cb \times t \times c (one gate per class)
ClassifierLinearb×t×db \times t \times db×t×cb \times t \times c (time-point logits)
EvidenceGate ×\times logit (element-wise)b×t×cb \times t \times cb×t×cb \times t \times c (interpretation)
PoolingMean over ttb×t×cb \times t \times cb×cb \times c
Max over ttb×t×cb \times t \times cb×cb \times c
(1−λk)(1 - \lambda_k) mean +λk+\lambda_k maxb×cb \times cb×cb \times c (series logits)

Table 11. Attention-max pooling: class-wise conjunctive pooling with a learned per-class blend λk=σ(θk)\lambda_k = \sigma(\theta_k) of the mean and the max over time (cc extra parameters). Registered as sea_attention_max.

ProcessLayerInputOutput
InputPositional encoding + dropoutb×t×db \times t \times db×t×db \times t \times d (time-point embs.)
AttentionLinear + tanh (VV)b×t×db \times t \times db×t×ab \times t \times a
Linear + sigmoid (UU)b×t×db \times t \times db×t×ab \times t \times a
Element-wise productb×t×ab \times t \times ab×t×ab \times t \times a (gated features)
Linear (scores), softmax over ttb×t×ab \times t \times ab×t×cb \times t \times c (weights, sum to 1)
ClassifierLinearb×t×db \times t \times db×t×cb \times t \times c (time-point logits)
PoolingWeight ×\times logit (element-wise)b×t×cb \times t \times cb×t×cb \times t \times c (interpretation)
Sum over ttb×t×cb \times t \times cb×cb \times c (series logits)

Table 12. Per-class gated attention pooling ([14], made class-specific): a tanh branch multiplied by a sigmoid branch scores every time point, and a softmax over time turns the scores into weights. Registered as sea_gated_attention.

Reproducing the Experiments

§ 4 gives the experimental setup in short: the two datasets, WebTraffic and the 85 UCR datasets used by MILLET, the metrics, i.e. the test accuracy for the classification and AOPCR and NDCG@nn for the interpretation, and the MILLET baseline. This appendix gives the details needed to reproduce the experiments. Section D.1 shows the WebTraffic classes and lists every dataset, Section D.2 describes the baselines and how they were trained, Section D.3 gives the training configuration shared by all models, Section D.4 defines the two interpretation metrics, and Section D.5 lists every hyperparameter and the size of every trained model.

Datasets

WebTraffic is the only dataset in this work with a ground truth for each time point, so it is the only one on which the interpretation can be scored with NDCG@nn. Figure 14 shows one example of each of its classes. Table 14 lists WebTraffic and the 85 UCR datasets with their train and test sizes, lengths, numbers of classes and class imbalance.

Table 14: The datasets: WebTraffic (the only one with per-time-point labels, hence the only one with NDCG@nn) and the 85 UCR datasets that MILLET publishes, in the order of MILLET. Imbalance is the largest training-class share divided by the smallest (1.00 = balanced). The sizes are the original train / test splits; our training holds out 20 % of the training set for validation when it has at least 100 series.

#DatasetTrainTestLengthClassesImbalance
WebTraffic5005001,008101.00
1Adiac390391176373.75
2ArrowHead3617525131.00
3Beef303047051.00
4BeetleFly202051221.00
5BirdChicken202051221.00
6Car606057741.55
7CBF3090012831.50
8ChlorineConcentration4673,84016632.88
9CinCECGTorso401,3801,63942.60
10Coffee282828621.00
11Computers25025072021.00
12CricketX390390300121.56
13CricketY390390300121.29
14CricketZ390390300121.64
15DiatomSizeReduction1630634546.00
16DistalPhalanxOutlineAgeGroup4001398038.57
17DistalPhalanxOutlineCorrect6002768021.70
18DistalPhalanxTW40013980611.83
19Earthquakes32213951224.55
20ECG2001001009622.23
21ECG50005004,5001405146.00
22ECGFiveDays2386113621.56
23ElectricDevices8,9267,7119674.73
24FaceAll5601,690131141.00
25FaceFour248835042.67
26FacesUCR2002,050131148.25
27FiftyWords4504552705052.00
28Fish17517546371.33
29FordA3,6011,32050021.05
30FordB3,63681050021.05
31GunPoint5015015021.08
32Ham10910543121.10
33HandOutlines1,0003702,70921.76
34Haptics1553081,09252.00
35Herring646451221.56
36InlineSkate1005501,88272.00
37InsectWingbeatSound2201,980256111.00
38ItalyPowerDemand671,0292421.03
39LargeKitchenAppliances37537572031.00
40Lightning2606163722.00
41Lightning7707331973.80
42Mallat552,3451,02485.50
43Meat606044831.00
44MedicalImages381760991033.83
45MiddlePhalanxOutlineAgeGroup4001548034.31
46MiddlePhalanxOutlineCorrect6002918021.83
47MiddlePhalanxTW3991548066.40
48MoteStrain201,2528421.00
49NonInvasiveFetalECGThorax11,8001,965750421.60
#DatasetTrainTestLengthClassesImbalance
50NonInvasiveFetalECGThorax21,8001,965750421.60
51OliveOil303057043.25
52OSULeaf20024242763.53
53PhalangesOutlinesCorrect1,8008588021.87
54Phoneme2141,8961,0243924.00
55Plane10510514472.22
56ProximalPhalanxOutlineAgeGroup4002058032.62
57ProximalPhalanxOutlineCorrect6002918022.09
58ProximalPhalanxTW40020580611.25
59RefrigerationDevices37537572031.00
60ScreenType37537572031.00
61ShapeletSim2018050021.00
62ShapesAll600600512601.00
63SmallKitchenAppliances37537572031.00
64SonyAIBORobotSurface1206017022.33
65SonyAIBORobotSurface2279536521.45
66StarLightCurves1,0008,2361,02433.77
67Strawberry61337023521.80
68SwedishLeaf500625128151.62
69Symbols2599539862.67
70SyntheticControl3003006061.00
71ToeSegmentation14022827721.00
72ToeSegmentation23613034321.00
73Trace10010027541.48
74TwoLeadECG231,1398221.09
75TwoPatterns1,0004,00012841.14
76UWaveGestureLibraryAll8963,58294581.27
77UWaveGestureLibraryX8963,58231581.27
78UWaveGestureLibraryY8963,58231581.27
79UWaveGestureLibraryZ8963,58231581.27
80Wafer1,0006,16415229.31
81Wine575423421.11
82WordSynonyms2676382702530.00
83Worms1817790054.47
84WormsTwoClass1817790021.38
85Yoga3003,00042621.19
UCR-85: min / median / max16 / 267 / 892620 / 375 / 823624 / 300 / 27092 / 3 / 601.00 / 1.60 / 146.00

Table 14. Table 14 (continued)

Baselines

MILLET (InceptionTime encoder + Conjunctive pooling) is the baseline of this work. We also train FCN and ResNet [31] with the same pooling head, to have two more reference points. The faithfulness numbers of two different training recipes cannot be compared (§ 4.1), so we retrain every baseline ourselves with our own training budget, which is the only fair comparison. We also list the published numbers of MILLET [9] for reference (Table 34).

#How the number was obtainedRunsAcc.AOPCRNDCG@nnAcc.AOPCR
1Published, mean of 5 seeds50.92412.768†0.6740.84454.553†
2Published, 5-model ensemble10.94011.100†0.694––
3Re-trained here, our recipe (400 epochs, label smoothing, early stopping): the baseline of every comparison40.888 ±0.0072.457 ±0.6550.681 ±0.0130.8274 (84)0.812

Table 34. The MILLET baseline (InceptionTime + conjunctive pooling): the published numbers of Early et al. [9] and our retrained baseline. The WebTraffic columns are means (± std) over the runs in both results folders, and the UCR columns are means over the 85 published datasets (the number in brackets if fewer were finished). Only the last row is used in the main comparisons. †: the published AOPCR comes from MILLET’s own recipe and is on another scale, so AOPCR must only be compared within one recipe.

Two things differ between the recipe behind the published numbers and ours. First, they keep no validation split and use no early stopping, so over-fitting cannot be observed during training. Second, they train with hard targets, i.e. the whole probability mass is put on one class, whereas we add label smoothing.

Training Configuration

We use Optuna to search for the hyperparameters, and the values it selects are then used for every model of this work. Hence, a difference between two rows of a result table is a difference between two models, and not between two training setups. Table 15 gives the shared setting, and Table 16 gives the remaining hyperparameters, with one column per model.

ParameterSEA-Net bottleneck + Top-kk (the paper’s model)SEA-Net gated (mean) + Top-kkMILLET, our recipe
Training
max epochs400400400
early-stopping patience606060
batch size (max)161616
learning rate0.001250.001250.00125
weight decay0.000120.000120.00012
label smoothing0.130.130.13
λfocus\lambda_{\mathrm{focus}} (attention entropy)0.010.010.0
min. train size for a val. split100100100
validation fraction0.20.20.2
optimizeradamadamadam
Encoder
type (registry name)sea_mstcn_sep_bottlenecksea_mstcn_sep_gatedmil_inceptiontime
width dd6464–
blocks44–
dropout0.20.2–
dilation cap1616–
kernel sizes{5,11,23}\{5, 11, 23\}{5,11,23}\{5, 11, 23\}–
bottleneck ratio (d/rd/r)4––
gate summary statistic–mean–
Pooling head
type (registry name)sea_topk_conjunctivesea_topk_conjunctivemil_conjunctive
attention width aa888
dropout0.20.20.1
positional encodingTrueTrueTrue
Top-kk fraction κ\kappa0.10.1–

Table 16. Every hyperparameter, read from the configuration files under configs/models/. The two SEA-Net columns and MILLET (our recipe) share one training block, so any difference between them is the architecture. – = not applicable (the InceptionTime backbone is the code of MILLET with its published defaults, so it has no settings here).

The wide encoder uses the same setting, with d=128d = 128 and 6 blocks. WebTraffic is generated with the released default settings, and each series is standardized on its own; nothing else is done to the data.

Interpretation Metrics

§ 4 describes the two interpretation metrics in words: AOPCR removes the time points in the order of their estimated importance and measures how much the score of the predicted class drops, and NDCG@nn compares the ranking of the time points with the ground truth. Here we give their exact definitions.

AOPCR. Let Y^ic(Xi)\hat{Y}^{c}_{i}(X_i) be the logit of the predicted class cc on the unchanged time series, and let Xi(m)X_i^{(m)} be the same series in which the mm time points that the model itself ranks as the most important for class cc are replaced by the mean of that series. AOPCR adds up the drop of the logit along this order,

AOPCR⁡=1M+1∑m=0M(Y^ic(Xi)−Y^ic(Xi(m))),(22)\operatorname{AOPCR} = \frac{1}{M+1}\sum_{m=0}^{M}\left(\hat{Y}^{c}_{i}(X_i)-\hat{Y}^{c}_{i}\left(X_i^{(m)}\right)\right), \tag*{(22)}

following Samek et al. [27] as adapted to time series by Early et al. [9], with MM set to 10 % of the series length in steps of 1 %. A higher value is better. Note that Equation (22) is a difference of logits, and logits have no fixed scale. This causes the comparison problem of § 4.1: two models whose logits lie on different scales give AOPCR values on different scales, however good or bad their ranking of the time points is.

NDCG@nn. When the ground truth of each time point is available, as in WebTraffic, we rank the tt time points of the series by the importance I^ij,c\hat{I}^{j,c}_{i} that the model gives them for the predicted class cc, and score this ranking with the normalized discounted cumulative gain (Järvelin & Kekäläinen, [19]) at the cut-off nn, where nn is the number of time points that the generator marked as carrying the class signature,

DCG⁡@n=∑p=1nrplog⁡2(p+1),NDCG⁡@n=DCG⁡@nIDCG⁡@n∈[0,1],(23)\operatorname{DCG}@n = \sum_{p=1}^{n}\frac{r_p}{\log_{2}(p+1)}, \qquad\operatorname{NDCG}@n = \frac{\operatorname{DCG}@n}{\operatorname{IDCG}@n} \in[0,1], \tag*{(23)}

where rp∈{0,1}r_p \in\{0,1\} tells whether the time point placed at rank pp by the model belongs to the true signature window, and IDCG@nn is the same sum for the best possible ranking of the same series. Since the score is divided by the best possible score, NDCG@nn lies in [0,1][0,1] and can be compared between models, datasets and papers. This is why the interpretation claims of this paper rest on NDCG@nn and not on AOPCR.

Full Hyperparameters

Table 16 lists every hyperparameter, with one row per hyperparameter and one column per model, read directly from the configuration files. The two SEA-Net columns and the MILLET column with our recipe share the same training block, so any difference between them is in the architecture. Preprint Table 17, set on landscape pages, then gives the number of parameters of every encoder × pooling head pair that was trained, measured on WebTraffic with its 10 classes, together with the change relative to the same encoder with the class-wise conjunctive head.

#Encoder \ headclass-wise conj.Top-kk conj.softmax conj.adaptive cw.attn-maxgated attn.dual-streamconj.M^{\mathrm{M}}additiveM^{\mathrm{M}}attentionM^{\mathrm{M}}
1bottleneck (shallow)–21,548–––––––
2multi-scale pyramid (bottleneck base, over channels)–28,441–––––––
3bottleneck41,32441,324 (+0.00%)41,325 (+0.00%)41,334 (+0.02%)41,334 (+0.02%)41,844 (+1.26%)41,845 (+1.26%)–––
4multi-scale pyramid (bottleneck base)–42,365–––––––
5multi-scale channels (bottleneck base, lean)–43,576–––––––
6multi-scale channels (bottleneck base)–47,176–––––––
7base57,58057,580 (+0.00%)57,581 (+0.00%)57,590 (+0.02%)57,590 (+0.02%)58,100 (+0.90%)58,101 (+0.90%)–––
8input-gated58,09258,092 (+0.00%)58,093 (+0.00%)58,102 (+0.02%)58,102 (+0.02%)–––––
9gated61,740––––––––58,100 (-5.90%)
10gated (mean)61,74061,740 (+0.00%)61,741 (+0.00%)61,750 (+0.02%)61,750 (+0.02%)–––––
11gated (max)61,74061,740 (+0.00%)61,741 (+0.00%)61,750 (+0.02%)61,750 (+0.02%)–––––
12gated (last)61,74061,740 (+0.00%)61,741 (+0.00%)61,750 (+0.02%)61,750 (+0.02%)62,260 (+0.84%)62,261 (+0.84%)–––
13multi-scale pyramid (gated base)–62,781–––––––
14reconstruction-residual62,92562,925 (+0.00%)62,926 (+0.00%)62,935 (+0.02%)62,935 (+0.02%)–––––
15spike/trend67,02067,020 (+0.00%)67,021 (+0.00%)67,030 (+0.01%)67,030 (+0.01%)67,540 (+0.78%)67,541 (+0.78%)–––
#Encoder \ headclass-wise conj.Top-kk conj.softmax conj.adaptive cw.attn-maxgated attn.dual-streamconj.M^{\mathrm{M}}additiveM^{\mathrm{M}}attentionM^{\mathrm{M}}
16multi-scale channels (gated base)–67,592––––––––
17multi-scale channels (input-gated base)–69,768––––––––
18base (wide, d=128d = 128)269,164–269,165 (+0.00%)269,174 (+0.00%)–––269,083 (-0.03%)269,083 (-0.03%)–
19InceptionTime (MILLET)–––––––423,707––
20ResNet–––––––506,331––
21FCN–––––––267,035––

Preprint Table 17. Number of parameters of every encoder ×\times pooling head pair that was trained, measured on WebTraffic (10 classes; the size of a head grows with the number of classes). The percentages give the change relative to the same encoder with class-wise conjunctive pooling, in the manner of Table A.13 of MILLET: every attention head costs well under 1 % of the encoder, so the size of a model is set by its encoder. The bottom rows are the baseline encoders with the conjunctive head of MILLET.

Complete Results

Section 4.1 reports the main results in short. On WebTraffic, our SEA-Net bottleneck + Top-kk model is more accurate than MILLET and gives a better NDCG@n with about ten times fewer parameters. On the 85 UCR datasets it stays slightly behind, and this gap comes from the reduced capacity and not from the design. The main text also answers RQ4 (the bottleneck) and RQ5 (Top-kk pooling), and shows that AOPCR can only be compared within one training recipe.

This appendix gives the complete results behind these statements, in the same order as the main text. Section E.1 gives every model trained on WebTraffic, Section E.2 the cost of the models, Section E.3 the ablation studies, Section E.4 the results of every seed, Section E.5 the complete UCR results, and Section E.6 compares our MILLET baseline with the published numbers of MILLET (Early et al. [9]).

Complete WebTraffic Results

Figure 15 first compares the explanations of MILLET and of our model on four WebTraffic classes. It shows, on single series, the difference between the two interpretation metrics: MILLET wins AOPCR on three of the four classes, while our heatmaps are the more concentrated.

Head-to-head comparison of the explanations of MILLET and SEA-Net bottleneck + Top-k on four WebTraffic classes

Figure 15. Head-to-head comparison of the explanations of MILLET (published recipe) and of our SEA-Net bottleneck + Top-kk model on four WebTraffic classes. The panels show, left to right, the series with its true signature window, the interpretation heatmap for the true class, and the perturbation curves under each model’s own deletion order (solid) against a random one (dotted). The vertical axis is the change as a fraction of the original logit, because the two models produce logits on very different scales (Section E.6). The AOPCR of each panel is the area between the two curves; MILLET wins it on three of the four classes while our heatmaps are the more concentrated — the difference between the two metrics is analysed in Section 4.1.

The tables below give every trained model. Table 21 is the complete WebTraffic leaderboard of the 71-model sweep, ranked by accuracy, where one row is one encoder + pooling head pair; the rows are grouped into five accuracy bands, so that the table can be read one band at a time. Preprint Table 18 is a later round in which every new head was trained on the bottleneck encoder, so the row of our model is the one to beat there. Preprint Table 19 and Table 20 give the same sweep as a grid, with one encoder per row and one pooling head per column, for the accuracy and for AOPCR / NDCG@n respectively; a dash means that the pair was not trained. These three tables are wide and are set on landscape pages.

#EncoderPooling headAcc.AUROCNLLAOPCRNDCG@nnParamsEpochs run / bestTrain (s)
1bottleneckTop-kk conjunctive (paper model, re-run)0.9420.9960.2942.9510.78641,324180 / 12054
2bottleneckTop-kk conjunctive, thresholded0.9300.9960.3302.6030.74441,324172 / 11252
3bottlenecksoftmax conjunctive, per-class τ\tau0.9140.9910.3772.0760.73241,334151 / 9165
4bottleneckdeviation-max (MLP form)0.9120.9900.3692.3940.74242,544164 / 104276
5bottleneckDSMIL (batched rewrite)0.9000.9910.4771.4620.66771,956379 / 319611
6InceptionTimeconjunctive (MILLET, our recipe)0.8900.9850.5312.1200.692423,707184 / 124443
7bottleneckDSMIL (original code)0.8880.9910.4881.2420.53671,956319 / 2592152
8bottleneckTop-kk voting, thresholded0.8860.9870.4682.1950.60441,325247 / 18771
9bottleneckdeviation-max (dual form)0.8780.9880.4512.3560.72341,944176 / 11669
10bottleneckTop-kk voting0.8700.9830.5162.2120.60141,325218 / 15861
11bottleneckadaptive class-wise + MLP0.8360.9820.6531.5280.61841,375195 / 13578
12bottleneckDSMIL (batched rewrite, no pos.)0.8320.9760.6321.3120.63971,956205 / 145318
13gated (mean)DSMIL (original code)0.8100.9710.6920.9960.34192,372126 / 661043
14bottleneckTop-kk voting, hard0.6720.9021.1731.7700.69741,325168 / 10850
15bottlenecksimple voting0.1000.5314.5110.1500.22241,32473 / 1322

Preprint Table 18. The 2026-09 pooling-head round on WebTraffic (results/top_results, one seed each): every new head is trained on the bottleneck encoder (one on the gated encoder), so row 1 (the model of the paper, trained again) is the number to beat. The MILLET row is the baseline retrained with our recipe. Epochs run / best gives the epoch at which early stopping fired and the epoch whose weights were kept; the voting heads that fail to fit are visible in their NLL.

#Encoder \ headclass-wise conj.Top-kk conj.softmax conj.adaptive cw.attn-maxgated attn.dual-streamconj.M^{\mathrm{M}}additiveM^{\mathrm{M}}attentionM^{\mathrm{M}}
1gated (mean)0.9020.9550.9120.8600.832–––––
2base (wide, d=128d = 128)0.946–0.8800.918–––0.9540.942–
3gated (max)0.9440.9520.9140.9060.886–––––
4spike/trend0.9040.9500.8780.9340.8540.9300.556–––
5multi-scale channels (input-gated base)–0.948––––––––
6multi-scale channels (gated base)–0.948––––––––
7reconstruction-residual0.9100.9400.9320.9460.892–––––
8input-gated0.9140.9460.8940.9050.858–––––
9gated (last)0.9420.9420.9200.9380.8540.9180.736–––
10bottleneck0.9020.9310.9400.8680.8160.9300.824–––
11base0.9160.9320.8900.9300.7140.8940.860–––
12gated0.930––––––––0.888
13multi-scale channels (bottleneck base)–0.926––––––––
14multi-scale channels (bottleneck base, lean)–0.924––––––––
15InceptionTime–––––––0.887––
16bottleneck (shallow)–0.846––––––––
17multi-scale pyramid (gated base)–0.832––––––––
18multi-scale pyramid (bottleneck base)–0.786––––––––
19ResNet–––––––0.772––
20FCN–––––––0.742––
21multi-scale pyramid (bottleneck base, over channels)–0.696––––––––

Preprint Table 19. WebTraffic accuracy for every encoder ×\times pooling head pair that was trained (71-model sweep; the κ\kappa / λ\lambda ablation copies are left out). – = pair not trained; a superscript count means that several configurations share the cell and the most accurate one is shown. M^{\mathrm{M}} = a MILLET head. The best value of each column is in bold.

#Encoder \ headclass-wise conj.Top-kk conj.softmax conj.adaptive cw.attn-maxgated attn.dual-streamconj.M^{\mathrm{M}}additiveM^{\mathrm{M}}attentionM^{\mathrm{M}}
1gated (mean)2.49 / 0.7142.23 / 0.7502.09 / 0.7652.24 / 0.7311.67 / 0.704–––––
2base (wide, d=128d = 128)1.72 / 0.686–1.02 / 0.6051.61 / 0.619–––1.50 / 0.6981.58 / 0.729–
3gated (max)1.89 / 0.5922.27 / 0.7191.88 / 0.7762.07 / 0.7291.12 / 0.575–––––
4spike/trend2.15 / 0.6992.32 / 0.7561.43 / 0.6651.91 / 0.7471.65 / 0.6441.59 / 0.7211.64 / 0.510–––
5multi-scale channels (input-gated base)–2.32 / 0.757––––––––
6multi-scale channels (gated base)–2.22 / 0.717––––––––
7reconstruction-residual2.50 / 0.6802.51 / 0.6981.64 / 0.7232.60 / 0.7682.32 / 0.725–––––
8input-gated2.48 / 0.7152.80 / 0.7481.64 / 0.6962.65 / 0.7322.15 / 0.700–––––
9gated (last)2.52 / 0.7422.31 / 0.7481.99 / 0.7382.39 / 0.7931.78 / 0.6681.35 / 0.7571.95 / 0.637–––
10bottleneck2.57 / 0.7332.50 / 0.7651.68 / 0.7401.97 / 0.6801.74 / 0.6102.23 / 0.7412.04 / 0.652–––
11base2.48 / 0.7192.69 / 0.7781.83 / 0.7052.45 / 0.7931.63 / 0.5322.30 / 0.7142.40 / 0.745–––
12gated2.41 / 0.637––––––––2.40 / 0.710
13multi-scale channels (bottleneck base)–2.24 / 0.777––––––––
14multi-scale channels (bottleneck base, lean)–2.76 / 0.735––––––––
15InceptionTime–––––––2.57 / 0.677––
16bottleneck (shallow)–2.82 / 0.624––––––––
17multi-scale pyramid (gated base)–0.98 / 0.591––––––––
18multi-scale pyramid (bottleneck base)–1.03 / 0.569––––––––
19ResNet–––––––2.95 / 0.554––
20FCN–––––––3.83 / 0.533––
21multi-scale pyramid (bottleneck base, over channels)–2.17 / 0.653––––––––

Table 20. WebTraffic AOPCR / NDCG@nn for every encoder ×\times pooling head pair that was trained (71-model sweep; the κ\kappa / λ\lambda ablation copies are left out). – = pair not trained; a superscript count means that several configurations share the cell and the most accurate one is shown. M^{\mathrm{M}} = a MILLET head. AOPCR is unnormalised (the same recipe is used everywhere here).

The complete WebTraffic leaderboard of the 71-model sweep (results/old_results), ranked by accuracy and grouped into accuracy bands. * marks the mean over three seeds (seeds 0–2, the runs of Table 28); every other row is a single run with seed 0, so a comparison between a * row and an unmarked row sets a three-run mean against one run. UCR-85 acc. is the mean accuracy over the 85 UCR datasets for the models that completed the archive, and – for the models that were only screened on WebTraffic. Encoder drops the SEA-Net prefix (MS = multi-scale); wide is the d=128d = 128 encoder; M is a MILLET head. AUROC is given in the csv file next to this table.

#EncoderPooling headAcc.NLLAOPCRNDCG@nnParamsUCR-85 acc.
Accuracy ≥0.94\ge0.94
1gated (mean)Top-kk conj.∗^{*}0.9550.2542.2250.75061,7400.8083
2base (wide, d=128d = 128)conj.M^{\mathrm{M}}0.9540.2621.5020.698269,0830.8238
3gated (max)Top-kk conj.0.9520.3082.2680.71961,7400.8108
4bottleneckTop-kk conj. (λfocus=0\lambda_{\mathrm{focus}}=0)0.9500.2632.3030.76541,324–
5spike/trendTop-kk conj.0.9500.2882.3160.75667,0200.8089
6MS channels (input-gated base)Top-kk conj.0.9480.3182.3160.75769,768–
7MS channels (gated base)Top-kk conj.0.9480.2892.2230.71767,592–
8base (wide, d=128d = 128)class-wise conj.0.9460.2921.7220.686269,1640.8292
9input-gatedTop-kk conj.0.9460.2612.8030.74858,0920.8131
10reconstruction-residualadaptive cw.0.9460.2962.6010.76862,9350.8140
11gated (max)class-wise conj.0.9440.3061.8890.59261,7400.8237
12gated (last)class-wise conj.0.9420.3272.5200.74261,7400.7888
13gated (last)Top-kk conj.0.9420.3282.3120.74861,7400.8015
14base (wide, d=128d = 128)additiveM^{\mathrm{M}}0.9420.2601.5790.729269,0830.8298
15bottleneckTop-kk conj. (κ=0.25\kappa=0.25)0.9400.2772.6480.73341,324–
16reconstruction-residualTop-kk conj.0.9400.3212.5050.69862,9250.8063
17bottlenecksoftmax conj.0.9400.3451.6850.74041,3250.8106
Accuracy in [0.92, 0.94)
18gated (last)adaptive cw.0.9380.2892.3870.79361,7500.8029
19spike/trendadaptive cw.0.9340.3011.9130.74767,0300.8010
20baseTop-kk conj.0.9320.3062.6910.77857,5800.8093
21reconstruction-residualsoftmax conj.0.9320.3411.6420.72362,926–
22bottleneckTop-kk conj.∗^{*}0.9310.3122.4980.76541,3240.8097
23gatedclass-wise conj.0.9300.3592.4080.63761,7400.7900
24baseadaptive cw.0.9300.3362.4480.79357,590–
25bottleneckgated attn.0.9300.3132.2320.74141,8440.8146
26spike/trendgated attn.0.9300.3501.5930.72167,5400.8039
27MS channels (bottleneck base)Top-kk conj.0.9260.3572.2380.77747,176–
28MS channels (bottleneck base, lean)Top-kk conj.0.9240.3892.7620.73543,576–
29gated (last)softmax conj.0.9200.3811.9900.73861,741–
Accuracy in [0.90, 0.92)
#EncoderPooling headAcc.NLLAOPCRNDCG@nnParamsUCR-85 acc.
30base (wide, d=128d = 128)adaptive cw.0.9180.3601.6080.619269,1740.8134
31gated (last)gated attn.0.9180.3651.3540.75762,2600.8048
32baseclass-wise conj.0.9160.3832.4780.71957,580–
33gated (max)softmax conj.0.9140.3721.8840.77661,741–
34input-gatedclass-wise conj.0.9140.3982.4810.71558,092–
35gated (mean)softmax conj.0.9120.3682.0930.76561,741–
36reconstruction-residualclass-wise conj.0.9100.4172.5040.68062,925–
37bottleneckTop-kk conj. (κ=1.00\kappa=1.00)0.9080.3952.4360.72241,324–
38gated (max)adaptive cw.0.9060.4442.0710.72961,750–
39input-gatedadaptive cw.*0.9050.3902.6510.73258,1020.8153
40spike/trendclass-wise conj.0.9040.3952.1550.69967,020–
41bottleneckclass-wise conj.0.9020.3952.5720.73341,324–
42gated (mean)class-wise conj.0.9020.3932.4930.71461,740–
Accuracy in [0.85, 0.90)
43input-gatedsoftmax conj.0.8940.4541.6360.69658,093–
44basegated attn.0.8940.4032.2960.71458,100–
45reconstruction-residualattn-max0.8920.4992.3240.72562,935–
46basesoftmax conj.0.8900.4191.8320.70557,581–
47gatedattentionM^{\mathrm{M}}0.8880.4262.4030.71058,100–
48bottleneckTop-kk conj. (κ=0.05\kappa=0.05)0.8880.4012.2880.71541,324–
49InceptionTimeconj.M∗^{\mathrm{M}*}0.8870.5072.5690.677423,7070.8274
50gated (max)attn-max0.8860.5881.1240.57561,750–
51bottleneckTop-kk conj. (κ=0.50\kappa=0.50)0.8820.4183.1140.73241,324–
52base (wide, d=128d = 128)softmax conj.0.8800.4551.0150.605269,1650.8131
53spike/trendsoftmax conj.0.8780.4881.4350.66567,021–
54bottleneckadaptive cw.0.8680.5591.9690.68041,334–
55basedual-stream0.8600.4982.3990.74558,101–
56gated (mean)adaptive cw.0.8600.5492.2380.73161,750–
57input-gatedattn-max0.8580.6252.1530.70058,102–
58spike/trendattn-max0.8540.6371.6460.64467,030–
59gated (last)attn-max0.8540.5981.7790.66861,750–
Accuracy < 0.85
60bottleneck (shallow)Top-kk conj.0.8460.5792.8170.62421,548–
61gated (mean)attn-max0.8320.6651.6720.70461,750–
62MS pyramid (gated base)Top-kk conj.0.8320.6020.9800.59162,781–
63bottleneckdual-stream0.8240.6382.0370.65241,845–
64bottleneckattn-max0.8160.7321.7370.61041,334–
65MS pyramid (bottleneck base)Top-kk conj.0.7860.7591.0350.56942,365–
66ResNetconj.M^{\mathrm{M}}0.7720.8242.9520.554506,3310.8146
67FCNconj.M^{\mathrm{M}}0.7420.9103.8260.533267,0350.8141
ModelParamsSizeFLOPsLatencyParams×FLOPs×
SEA-Net (ours)
bottleneck + Top-kk conj.41,3241.4376.70.1310.10×0.09×
bottleneck + Top-kk conj. (λfocus=0\lambda_{\text{focus}} = 0)41,3241.4376.70.1300.10×0.09×
input-gated + Top-kk conj.58,0921.49110.60.1300.14×0.13×
gated (mean) + Top-kk conj.61,7401.50109.70.1280.15×0.13×
spike/trend + Top-kk conj.67,0201.53120.10.1320.16×0.14×
bottleneck + Top-kk conj., 2026-09 re-run41,3241.4376.70.1310.10×0.09×
Baselines
MILLET (InceptionTime + conjunctive), our recipe423,7074.11847.60.2031.00×1.00×
ResNet + conjunctive506,3314.421013.20.1391.20×1.20×
FCN + conjunctive267,0353.47535.20.0680.63×0.63×

Table 21. Table 21 (continued)

#EncoderPooling headAcc.NLLAOPCRNDCG@nnParamsUCR-85 acc.
68gated (last)dual-stream0.7360.8041.9470.63762,261–
69baseattn-max0.7140.8551.6300.53257,590–
70MS pyramid (bottleneck base, over channels)Top-kk conj.0.6960.9922.1670.65328,441–
71spike/trenddual-stream0.5561.2601.6430.51067,541–

Table 21 (continued).

Model Cost

The main text states that our model is 10.3× smaller and needs 11.1× less computation than MILLET. Table 22 gives the full cost and separates what improved from what did not. At 32-bit precision the weights go from about 1.6 MB to 161 KB, which moves the model from above to well below the roughly 1 MB flash budget of the micro-controller class described by Lin et al. [22] and Banbury et al. [4], and standard int8 quantization (Jacob et al. [18]) would reduce it to about 40 KB. In this sense, the model becomes a candidate for such a device. The other two columns do not improve. Latency improves by only 1.6× even though the FLOPs fall 11.1×, because depthwise convolutions are limited by memory speed, and a GPU at batch 32 is the wrong tool for a claim about small hardware; the 269 K wide model is in fact the slowest row. Peak memory is 179.0 MB against 112.3 MB for the baseline, which is worse, and this comes from the design: the encoder keeps the length unchanged, so the activations have the shape (d,t)(d, t) at every stage, however few weights produce them, and Equation (3) reduces the weights, not the activations. On micro-controllers, the SRAM needed for the activations is the limit at least as often as the flash needed for the weights, so this is a real limitation of the design and not a measurement error (§ 5).

Figure 16 draws the compute column of Table 22 as a function of the size of the problem. The left panel varies the length of the series at 10 classes, and the right panel varies the number of classes at length 463, and the two dashed lines mark the mean length and the mean number of classes over the 85 UCR datasets. The cost of both models grows linearly with the length and hardly depends on the number of classes, and our model needs about ten times fewer operations at every length.

Compute cost of one prediction for SEA-Net and MILLET

Figure 16. Compute cost of one prediction, in millions of floating point operations, for our SEA-Net bottleneck + Top-kk model and for the MILLET baseline (InceptionTime + Conjunctive). Left: as the length of the series grows, at 10 classes. Right: as the number of classes grows, at length 463. The dashed lines mark the mean series length and the mean number of classes over the 85 UCR datasets.

Table 23 completes the picture on the pooling side, by counting the real multiplications of each head as a function of tt, CC and dd. No head adds a term that grows faster than those of Conjunctive pooling, so the saving of Table 22 comes from the encoder and is not lost again in the head.

#Pooling headReal multiplicationsScale w.r.t. ttScale w.r.t. ccAt WebTraffic (M)
1conjunctiveM^{\mathrm{M}}dtc+dta+(a+2c)tdtc + dta + (a + 2c)tdc+da+a+2cdc + da + a + 2cdt+2tdt + 2t2.351 (d=128d = 128)
2class-wise conjunctivedtc+dta+(ac+2c)tdtc + dta + (ac + 2c)tdc+da+ac+2cdc + da + ac + 2cdt+at+2tdt + at + 2t1.262 (d=64d = 64)
3Top-kk conjunctivedtc+dta+(ac+c)t+ckdtc + dta + (ac + c)t + ckdc+da+ac+c+cκdc + da + ac + c + c\kappadt+at+t+kdt + at + t + k1.253 (d=64d = 64)
4softmax conjunctivedtc+dta+(ac+3c)tdtc + dta + (ac + 3c)tdc+da+ac+3cdc + da + ac + 3cdt+at+3tdt + at + 3t1.272 (d=64d = 64)
5adaptive class-wisedtc+dta+(ac+4c)tdtc + dta + (ac + 4c)tdc+da+ac+4cdc + da + ac + 4cdt+at+4tdt + at + 4t1.282 (d=64d = 64)
6attention-maxdtc+dta+(ac+2c)t+2cdtc + dta + (ac + 2c)t + 2cdc+da+ac+2cdc + da + ac + 2cdt+at+2t+2dt + at + 2t + 21.262 (d=64d = 64)
7gated attentiondtc+2dta+(ac+a+2c)tdtc + 2dta + (ac + a + 2c)tdc+2da+ac+a+2cdc + 2da + ac + a + 2cdt+at+2tdt + at + 2t1.786 (d=64d = 64)
8dual-stream conjunctivedtc+2dta+(2ac+4c)t+2cdtc + 2dta + (2ac + 4c)t + 2cdc+2da+2ac+4cdc + 2da + 2ac + 4cdt+2at+4t+2dt + 2at + 4t + 21.879 (d=64d = 64)

Table 23. Time complexity of the pooling heads as the number of real multiplications, counted from the code (matrix products only, as in Table A.15 of MILLET; additions, comparisons, the exponential of a softmax and the gather of the critical time point are not counted). tt = series length, cc = classes, dd = embedding size, aa = attention width, k=⌈κt⌉k = \lceil\kappa t \rceil. The last column evaluates the formula for WebTraffic (t=1008t = 1008, c=10c = 10, a=8a = 8, κ=0.1\kappa= 0.1, so k=101k = 101) with the own dd of each head: the SEA-Net heads read d=64d = 64 embeddings and the MILLET head d=128d = 128, so every SEA-Net head is cheaper than the baseline head in absolute terms, although its formula has more terms. M = MILLET.

Ablation Studies

The main text answers RQ4 and RQ5 with matched pairs of models, i.e. two models that differ in one part only. The ablations below give the wider view: the effect of the pooling head and of the encoder averaged over the whole sweep (A and B), the effect of the Top-kk fraction κ\kappa (C), and the effect of the attention entropy term (D). A short look at the wrong predictions of the two models closes the subsection.

A. Effect of the pooling head, averaged over the encoders. In Table 24, one row is one pooling head, and the columns are the accuracy, AOPCR and NDCG@nn averaged over every encoder that the head was paired with, where nn is the number of pairings. Averaged this way, the pooling head alone changes the WebTraffic accuracy by almost 18 points, which is why we treat the choice of the head as a design decision and not as a detail.

B. Effect of the encoder, averaged over the pooling heads. Table 25 is the same table for the encoders, i.e. one row is one encoder, and the values are averaged over every head that it was paired with. Its spread, from 0.937 down to 0.771, is close to the spread of the pooling table above, so the two choices are about equally important. Two cautions apply to both tables. First, several groups contain very few models and not every pair was trained, so the grid of Preprint Table 19 is the more reliable view. Second, the mean of the bottleneck encoder (0.884) is lower than its best pairing suggests, because it was also paired with the weak heads.

C. Effect of the Top-kk fraction κ\kappa. Table 26 is the same model trained five times with only the κ\kappa of Equation (10) changed, all of them on seed 0, and the column kk gives how many time points are actually kept at each fraction. The selection is what helps: κ=1\kappa= 1, which by Property 2 is exactly the class-wise conjunctive pooling of Equation (8), scores 0.908, clearly below the 0.938–0.940 obtained at κ=0.1\kappa= 0.1 and κ=0.25\kappa= 0.25.

D. Effect of the attention entropy term. Table 27 is one matched pair, i.e. the same model with only λfocus\lambda_{\mathrm{focus}} switched on and off, on seed 0. Switching the term off raises the accuracy from 0.888 to 0.950 and NDCG@nn from 0.755 to 0.765, and lowers AOPCR from 2.409 to 2.303. Seed 0 is, however, the weakest of the three runs of the default model (0.888, 0.938 and 0.966; Table 28): against its three-run mean (0.931 ± 0.032 accuracy, 0.765 ± 0.013 NDCG@nn), the run without the term lies within one standard deviation in accuracy and matches it exactly in NDCG@nn. We therefore keep the value selected by the hyperparameter search and read this pair as showing no measurable effect of the term in either direction.

#ModelMetricRun 1Run 2Run 3Run 4Mean ±\pm std
1SEA-Net gated (mean) + Top-kk conjunctiveaccuracy0.9540.9580.952–0.955 ±\pm 0.002
1SEA-Net gated (mean) + Top-kk conjunctiveAOPCR2.2932.0742.308–2.225 ±\pm 0.107
1SEA-Net gated (mean) + Top-kk conjunctiveNDCG@nn0.7720.7490.728–0.750 ±\pm 0.018
1SEA-Net gated (mean) + Top-kk conjunctiverunarchive, seed 0archive, seed 1archive, seed 2
2SEA-Net bottleneck + Top-kk conjunctiveaccuracy0.8880.9380.966–0.931 ±\pm 0.032
2SEA-Net bottleneck + Top-kk conjunctiveAOPCR2.4092.7082.378–2.498 ±\pm 0.149
2SEA-Net bottleneck + Top-kk conjunctiveNDCG@nn0.7550.7830.758–0.765 ±\pm 0.013
2SEA-Net bottleneck + Top-kk conjunctiverunarchive, seed 0archive, seed 1archive, seed 2
3SEA-Net input-gated + adaptive class-wiseaccuracy0.9380.8800.898–0.905 ±\pm 0.024
3SEA-Net input-gated + adaptive class-wiseAOPCR3.1262.2662.560–2.651 ±\pm 0.357
3SEA-Net input-gated + adaptive class-wiseNDCG@nn0.7770.6920.728–0.732 ±\pm 0.035
3SEA-Net input-gated + adaptive class-wiserunarchive, seed 0archive, seed 1archive, seed 2
4MILLET (InceptionTime + conjunctive), our recipeaccuracy0.8940.8760.8920.8900.888 ±\pm 0.007
4MILLET (InceptionTime + conjunctive), our recipeAOPCR1.5942.7953.3192.1202.457 ±\pm 0.655
4MILLET (InceptionTime + conjunctive), our recipeNDCG@nn0.6710.6950.6650.6920.681 ±\pm 0.013
4MILLET (InceptionTime + conjunctive), our reciperunarchive, seed 0archive, seed 1archive, seed 22026-09, seed 0

Table 28. Every WebTraffic run of the models that were trained more than once, run by run (archive = the 71-model sweep in results/old_results, 2026-09 = results/top_results; a seed run in both folders is two different trainings). These are the numbers behind every ±\pm in the main tables. The spread on AOPCR is far larger than on accuracy for every model, which is why AOPCR differences of a few tenths are not read as wins.

Wrong predictions. Finally, Figure 17 and Figure 18 look at the wrong predictions of the two models on their hardest WebTraffic class, i.e. the class with the lowest accuracy. The errors are of two kinds: in the first, the model still points at the right window but names the wrong class, so the NDCG@nn stays high; in the second, the signature is too weak or too close to the seasonal pattern, and the model never finds it.

SEA-Net bottleneck + Top-$k$ predictions and interpretations for WebTraffic class 7

Figure 17. SEA-Net bottleneck + Top-kk (ours). Wrong predictions on the hardest WebTraffic class, i.e. the class with the lowest accuracy. Top: the series with its true signature window in yellow. Middle: the interpretation for the class that the model predicted. Bottom: the interpretation for the true class, with its NDCG@nn.

MILLET predictions and interpretations for WebTraffic class 2

Figure 18. MILLET (published recipe). Wrong predictions on the hardest WebTraffic class, i.e. the class with the lowest accuracy. Top: the series with its true signature window in yellow. Middle: the interpretation for the class that the model predicted. Bottom: the interpretation for the true class, with its NDCG@nn.

Per-seed Results

The main text compares every difference with the seed-to-seed spread measured on WebTraffic, ±0.016 for the accuracy and ±0.013 for NDCG@nn. Table 28 gives the runs behind these numbers:

every WebTraffic run of the models that were trained more than once, with one row per model and per metric, one column per run, and the mean ±\pm the standard deviation in the last column. These are the numbers behind every ±\pm of the main tables and the noise level used throughout the paper: we never report a difference smaller than this spread as a result. For every model, the spread of AOPCR is far larger than that of the accuracy, which is why we never read an AOPCR difference of a few tenths as a win. Figure 19 asks the same question on the 85 UCR datasets.

Model variance over the 85 UCR datasets

Figure 19. Model variance over the 85 UCR datasets, in the style of Early et al. [9]. For each dataset and each seed, the balanced accuracy minus the median balanced accuracy of that model on that dataset, pooled over the datasets; the models are ordered from left to right by their total variance, which is printed under each of them. Our SEA-Net model is the least stable of the four and has a long lower tail, i.e. on a few datasets one seed falls far below the other two, which is the same effect that Table 28 shows on WebTraffic.

Complete UCR Results

On the UCR archive, the main text reports that our model reaches 0.810 mean accuracy, behind MILLET with the matched budget (0.827) and behind the published MILLET accuracy (0.8445, [9]), and that the wide variant of the same design closes this gap. Table 29 is the evidence behind these statements (§ 4.1). With the training budget fixed, changing the backbone at a similar size moves the mean rank from 12.60 to 11.53, about 1.1 places, so our design is not what loses accuracy; the reduced capacity is.

The remaining tables give the full detail. Table 30 lists every model that completed the archive, sorted by mean accuracy, where nn is the number of datasets it finished out of the 85, and Table 31 counts the wins, ties and losses of the same models against the published per-dataset numbers of MILLET. Table 32 and Table 33 then give one row per dataset and one column per model, for the accuracy and for AOPCR respectively, so that a single dataset can be looked up instead of a mean.

#ModelnnAcc.Bal. acc.AUROCNLLAOPCRParams
1SEA-Net base (wide, d=128d = 128) + additive (MILLET)850.82980.80770.92950.50880.551269,083
2SEA-Net base (wide, d=128d = 128) + class-wise conjunctive850.82920.80390.92550.51130.564269,164
3MILLET (InceptionTime + conjunctive), our recipe840.82740.79970.92750.52970.812423,707
4SEA-Net base (wide, d=128d = 128) + conjunctive (MILLET)850.82380.79930.92810.51800.626269,083
5SEA-Net gated (max) + class-wise conjunctive850.82370.79790.92880.52140.61961,740
6SEA-Net input-gated + adaptive class-wise850.81530.79050.92080.55450.96458,102
7SEA-Net bottleneck + gated attention850.81460.78790.92540.53300.68841,844
8ResNet + conjunctive850.81460.78390.92320.57091.330506,331
9FCN + conjunctive850.81410.78460.92160.57271.378267,035
10SEA-Net reconstruction-residual + adaptive class-wise850.81400.78590.92320.55021.09162,935
11SEA-Net base (wide, d=128d = 128) + adaptive class-wise850.81340.78490.91990.53540.891269,174
12SEA-Net base (wide, d=128d = 128) + softmax conjunctive850.81310.78580.92120.54361.247269,165
13SEA-Net input-gated + Top-kk conjunctive850.81310.78770.92230.53650.96458,092
14SEA-Net gated (max) + Top-kk conjunctive850.81080.78500.91720.54640.93661,740
15SEA-Net bottleneck + softmax conjunctive850.81060.78560.91670.55090.75941,325
#ModelnnAcc.Bal. acc.AUROCNLLAOPCRParams
16SEA-Net bottleneck + Top-kk conjunctive850.80970.78270.91790.55061.09141,324
17SEA-Net base + Top-kk conjunctive850.80930.78330.91820.55251.01857,580
18SEA-Net spike/trend + Top-kk conjunctive850.80890.78320.91370.54601.10867,020
19SEA-Net gated (mean) + Top-kk conjunctive850.80830.78030.91680.55601.06461,740
20SEA-Net reconstruction-residual + Top-kk conjunctive850.80630.77930.91560.55301.22262,925
21SEA-Net gated (last) + gated attention850.80480.78040.91570.55640.50062,260
22SEA-Net spike/trend + gated attention850.80390.77930.91120.55370.68267,540
23SEA-Net gated (last) + adaptive class-wise850.80290.77970.91390.56330.79661,750
24SEA-Net gated (last) + Top-kk conjunctive850.80150.77490.91310.55310.96761,740
25SEA-Net spike/trend + adaptive class-wise850.80100.77660.91350.56410.67767,030
26SEA-Net gated + class-wise conjunctive850.79000.76570.90550.58480.48661,740
27SEA-Net gated (last) + class-wise conjunctive850.78880.76580.90270.59220.53561,740
28MILLET conjunctive InceptionTime, published (mean of 5 seeds)850.84450.82350.93291.22414.553†423,300

Table 30. The 85 UCR datasets: every model that completed the archive, sorted by mean accuracy (nn = number of datasets finished, out of the 85 that MILLET publishes). The means are over the datasets that each model finished; the win / tie / loss counts of the same rows are given in Table 31. AOPCR is unnormalised: the rows trained with our recipe can be compared with each other, whereas the †^{\dagger} row (the published numbers of MILLET) is on another scale. The best value of each column is in bold (the †^{\dagger} row is excluded for AOPCR).

#ModelW/T/L acc.W/T/L NLLW/T/L AOPCR
1SEA-Net base (wide, d=128d = 128) + additive (MILLET)24/19/4260/2/233/0/82
2SEA-Net base (wide, d=128d = 128) + class-wise conjunctive27/19/3960/1/243/0/82
3MILLET (InceptionTime + conjunctive), our recipe13/25/4656/2/263/0/81
4SEA-Net base (wide, d=128d = 128) + conjunctive (MILLET)23/20/4257/5/234/0/81
5SEA-Net gated (max) + class-wise conjunctive20/17/4861/0/244/0/81
6SEA-Net input-gated + adaptive class-wise20/15/5060/0/254/0/81
7SEA-Net bottleneck + gated attention23/14/4859/1/255/0/80
8ResNet + conjunctive25/11/4955/0/308/0/77
9FCN + conjunctive21/12/5255/1/295/3/77
10SEA-Net reconstruction-residual + adaptive class-wise19/18/4858/1/264/0/81
11SEA-Net base (wide, d=128d = 128) + adaptive class-wise25/17/4357/1/274/1/80
12SEA-Net base (wide, d=128d = 128) + softmax conjunctive17/13/5560/7/184/0/81
#ModelW/T/L acc.W/T/L NLLW/T/L AOPCR
13SEA-Net input-gated + Top-kk conjunctive23/16/4660/1/243/1/81
14SEA-Net gated (max) + Top-kk conjunctive22/16/4759/0/265/1/79
15SEA-Net bottleneck + softmax conjunctive22/17/4658/1/263/0/82
16SEA-Net bottleneck + Top-kk conjunctive20/15/5058/1/264/0/81
17SEA-Net base + Top-kk conjunctive20/11/5460/1/245/0/80
18SEA-Net spike/trend + Top-kk conjunctive19/23/4356/1/286/0/79
19SEA-Net gated (mean) + Top-kk conjunctive19/13/5358/1/264/0/81
20SEA-Net reconstruction-residual + Top-kk conjunctive19/19/4759/0/265/0/80
21SEA-Net gated (last) + gated attention17/15/5358/0/273/0/82
22SEA-Net spike/trend + gated attention15/14/5658/1/264/0/81
23SEA-Net gated (last) + adaptive class-wise18/18/4957/0/284/1/80
24SEA-Net gated (last) + Top-kk conjunctive17/17/5159/0/263/1/81
25SEA-Net spike/trend + adaptive class-wise24/12/4957/0/284/0/81
26SEA-Net gated + class-wise conjunctive16/15/5455/1/293/0/82
27SEA-Net gated (last) + class-wise conjunctive17/12/5655/0/303/0/82
28MILLET conjunctive InceptionTime, published (mean of 5 seeds)–––

Table 31.

A Wilcoxon–Holm test over the same datasets finds that most of the differences in the middle of Table 30 are not significant at α=0.05\alpha= 0.05. This is one more reason why the main text argues from WebTraffic and from the cost rather than from the UCR rank, and why we give the win / tie / loss counts instead of relying on the rank order alone.

Figure 20 shows the accuracy comparison with one point per dataset, our model against the published MILLET accuracy (Early et al. [9]). Figure 21 then checks, on the UCR datasets whose normalized class entropy is below one, whether an imbalanced training set hurts the smaller model more, and Figure 22 checks the same for the length of the series and for the number of training series. In all three cases the answer is the same: the ranking of the models is stable, so our model does not fall further behind on the imbalanced, the long or the small datasets.

Scatter plot comparing SEA-Net bottleneck Top-k model and published MILLET balanced accuracies across 85 UCR datasets

Figure 20. Direct comparison of our SEA-Net bottleneck + Top-kk model against the published MILLET accuracies on the 85 UCR datasets, one point per dataset. The points above the diagonal are the datasets where our model is the more accurate one. The title gives the number of wins / ties / losses (15 / 17 / 52, where a tie is a difference below 0.005), and the datasets with the largest positive and negative differences are named.

Comparison of balanced accuracy and accuracy differences for SEA-Net and MILLET on imbalanced UCR datasets

Figure 21. The effect of the class imbalance, on the UCR datasets whose training set is imbalanced (normalized class entropy below one). Top: the balanced accuracy of our model and of MILLET measured three ways, i.e. published, re-trained with the published recipe, and re-trained with the configuration of Table 15. Bottom: the difference, ours minus MILLET, where green means that our model is the better one. Each title gives the wins / ties / losses and the mean gain. The imbalance does not hurt the smaller model more than the baseline: the differences are small on both sides, and they do not grow with the imbalance.

Average accuracy rank of our model and the three MILLET measurements

Figure 22. Average accuracy rank (1 = best, lower is better) of our model and of the three MILLET measurements, binned by two properties of the dataset: the length of the series (left) and the number of training series (right). The bin edges are chosen to give bins of roughly equal size, and nn is the number of datasets in each bin. The ranking is stable across the bins, i.e. our SEA-Net model does not fall further behind on the long series or on the small training sets.

Table 31: Wins / ties / losses (W/T/L) of the models of Table 30, with the same rows and the same numbering, against the published per-dataset numbers of MILLET, with tie bands of 0.005 (accuracy), 0.01 (NLL) and 0.1 (AOPCR). The published AOPCR values come from MILLET’s recipe and are on another scale, which is why every model “loses” the AOPCR W/T/L against them.

Table 32: Per-dataset accuracy on the 85 UCR datasets that MILLET publishes. MILLET pub. is the published mean of 5 seeds of MILLET; the next four columns are SEA-Net encoders with the Top-kk conjunctive head (the model of the paper is bottleneck); MILLET (ours), ResNet and FCN are the baselines re-trained under our recipe, each with conjunctive pooling. The best value of each row is in bold (the published column included).

#DatasetMILLET pub.bottleneckgated (mean)input-gatedspike/trendMILLET (ours)ResNetFCN
1Adiac0.8320.7330.7880.7490.7720.8120.7850.788
2ArrowHead0.8380.8510.8290.8400.8690.8270.8860.840
3Beef0.8470.8220.8670.8330.7670.8000.8000.733
4BeetleFly0.9200.8670.7500.8500.9000.8830.8500.700
5BirdChicken0.9400.8500.8000.9500.8500.9831.0000.900
6Car0.9200.8670.8830.9170.8830.9110.9330.883
7CBF1.0000.9930.9470.9991.0000.9970.9890.997
8ChlorineConcentration0.8580.6810.7000.5980.6160.8030.5900.780
9CinCECGTorso0.8240.7320.7490.7040.7680.8440.8600.897
10Coffee1.0001.0001.0001.0001.0001.0001.0001.000
11Computers0.7690.7210.6400.6880.5960.7410.7320.828
12CricketX0.8270.8110.8330.8180.8360.8080.7180.710
13CricketY0.8230.8050.7720.8360.8130.8180.6790.715
14CricketZ0.8570.8160.8000.8360.8230.8170.7740.764
15DiatomSizeReduction0.9720.9660.9350.9540.9710.9480.9510.922
16DistalPhalanxOutlineAgeGroup0.7150.7550.7700.7700.7700.7340.7840.734
17DistalPhalanxOutlineCorrect0.7700.7750.7680.7500.7720.7770.7680.732
18DistalPhalanxTW0.6600.7030.6980.6980.7120.7000.6980.705
19Earthquakes0.7250.7480.7480.7480.7770.7550.7410.748
20ECG2000.8960.8870.8900.9000.8500.8300.8300.890
21ECG50000.9420.9440.9330.9450.9420.9400.9410.942
22ECGFiveDays1.0001.0001.0001.0001.0001.0000.9570.978

Table 32.

continued on the next page

#DatasetMILLET pub.bottleneckgated (mean)input-gatedspike/trendMILLET (ours)ResNetFCN
23ElectricDevices0.7120.7190.6960.7400.7120.7080.7500.729
24FaceAll0.9530.8050.8220.8070.8340.9250.9220.919
25FaceFour0.9590.9620.9770.9200.9550.9580.9200.932
26FacesUCR0.9600.9460.9600.9610.9610.9550.9490.910
27FiftyWords0.8350.7840.8090.8110.7890.8070.6920.637
28Fish0.9810.9520.9540.9710.9540.9770.9600.971
29FordA0.9540.9620.9670.9630.9610.9570.9680.921
30FordB0.8500.8450.8370.8260.8580.8400.8360.785
31GunPoint0.9850.9870.9870.9930.9930.9871.0001.000
32Ham0.7090.7210.7330.6570.6860.7110.6860.752
33HandOutlines0.9480.9430.9510.9380.8970.9390.9160.889
34Haptics0.5240.4640.3930.4480.4320.4970.4420.471
35Herring0.5780.6410.6410.6560.5940.5830.6720.672
36InlineSkate0.4910.2760.2930.3040.3090.4180.3640.293
37InsectWingbeatSound0.6150.6250.6100.6070.6160.5970.4440.337
38ItalyPowerDemand0.9510.9650.9690.9660.967–0.9320.962
39LargeKitchenAppliances0.9010.8980.9040.9200.9010.9040.9120.893
40Lightning20.8560.8030.8850.7700.8530.8030.7380.672
41Lightning70.8270.7720.8220.8360.7810.8040.8220.794
42Mallat0.9690.7650.6830.7680.9630.9600.9340.969
43Meat0.9870.8560.9330.8170.8830.9830.8170.800
44MedicalImages0.8020.7410.7120.7300.7200.7540.7620.746
45MiddlePhalanxOutlineAgeGroup0.5220.5740.6100.5910.6230.6060.6560.649
46MiddlePhalanxOutlineCorrect0.8100.8170.7900.8280.8280.8010.8040.808
47MiddlePhalanxTW0.5100.5740.5580.5060.5710.5890.5710.591
48MoteStrain0.9020.8640.8810.8650.8910.9040.9060.893
49NonInvasiveFetalECGThorax10.9510.8690.9080.8820.9220.9430.9390.945
50NonInvasiveFetalECGThorax20.9530.8400.9300.9030.9280.9380.9270.951
51OliveOil0.8470.4000.4000.4000.4000.5560.4000.800
52OSULeaf0.9470.8430.8720.8760.8350.9500.9750.955
53PhalangesOutlinesCorrect0.8300.8090.8140.8230.8220.8230.8030.780
54Phoneme0.3010.2220.2080.1960.2070.2680.2400.260
55Plane1.0001.0001.0001.0001.0001.0001.0001.000
56ProximalPhalanxOutlineAgeGroup0.8540.8420.8290.8200.8590.8390.8680.844
57ProximalPhalanxOutlineCorrect0.9230.8840.9000.8800.8730.9010.8830.869
58ProximalPhalanxTW0.7600.7800.8000.7850.7950.7680.7950.795
59RefrigerationDevices0.5100.5060.4690.5170.5170.5060.4910.501
60ScreenType0.5760.4840.4910.5390.4240.5410.5600.637
61ShapeletSim0.9091.0001.0001.0000.4830.9981.0001.000
62ShapesAll0.9280.8540.8550.8570.8750.9070.8550.870
63SmallKitchenAppliances0.7820.8080.8030.8000.7730.7720.7970.800
64SonyAIBORobotSurface10.9340.8360.7870.8870.8090.9460.9770.987
65SonyAIBORobotSurface20.8270.8710.8540.8640.8770.8160.9590.932
66StarLightCurves0.9770.9700.9700.9740.9720.9750.9750.969
67Strawberry0.9750.9640.9600.9540.9460.9600.9410.965
68SwedishLeaf0.9670.9490.9330.9470.9410.9670.9730.971
69Symbols0.9580.9480.9440.9570.9590.9260.9220.931
70SyntheticControl0.9970.9960.9930.9970.9930.9991.0000.983
71ToeSegmentation10.9630.9360.9340.9520.9080.9580.9520.952
#DatasetMILLET pub.bottleneckgated (mean)input-gatedspike/trendMILLET (ours)ResNetFCN
72ToeSegmentation20.9090.9440.9540.9230.9460.8790.9620.939
73Trace1.0001.0001.0001.0001.0001.0001.0001.000
74TwoLeadECG0.9990.9950.9720.9900.9720.9990.9981.000
75TwoPatterns1.0001.0001.0001.0001.0001.0001.0000.995
76UWaveGestureLibraryAll0.9450.9540.9650.9590.9580.9450.8950.913
77UWaveGestureLibraryX0.8100.8040.8050.7890.8060.7880.7860.792
78UWaveGestureLibraryY0.7530.7280.7310.7190.7510.7280.7230.702
79UWaveGestureLibraryZ0.7430.7330.7110.7630.7380.7320.7530.709
80Wafer0.9980.9970.9980.9990.9960.9970.9980.997
81Wine0.8190.5000.5000.5000.5930.5000.5000.500
82WordSynonyms0.7420.7060.7450.7180.7300.7250.5380.578
83Worms0.7660.6970.6100.7010.7140.6970.7400.727
84WormsTwoClass0.7060.6970.7010.7660.7400.7140.7530.714
85Yoga0.9030.8720.8840.8930.8730.8480.7200.749
Mean0.8450.8100.8080.8130.8090.8270.8150.814

Table 32 (continued).

Table 33: Per-dataset AOPCR on the 85 UCR datasets that MILLET publishes. MILLET pub. is the published mean of 5 seeds of MILLET; the next four columns are SEA-Net encoders with the Top-k conjunctive head (the model of the paper is bottleneck); MILLET (ours), ResNet and FCN are the baselines re-trained under our recipe, each with conjunctive pooling. The best value of each row is in bold among the columns trained with our recipe; the published column (†) was trained with MILLET’s recipe and its AOPCR is on another scale, so it is shown but not compared.

#DatasetMILLET pub.†bottleneckgated (mean)input-gatedspike/trendMILLET (ours)ResNetFCN
1Adiac15.89-0.83-0.02-0.27-0.641.60-2.051.73
2ArrowHead3.200.240.451.370.670.600.841.31
3Beef5.491.331.950.80-0.301.342.071.63
4BeetleFly1.240.582.351.181.590.242.291.35
5BirdChicken3.371.962.771.301.580.961.151.36
6Car6.620.401.81-0.032.801.022.553.66
7CBF3.581.971.580.921.710.870.970.85
8ChlorineConcentration2.140.490.310.801.790.260.201.13
9CinCECGTorso4.772.312.432.500.011.481.801.97
10Coffee3.490.600.221.191.690.891.050.64
11Computers3.440.890.650.530.450.530.740.47
12CricketX4.512.031.401.361.341.271.781.87
13CricketY4.891.751.801.451.211.221.951.94
14CricketZ4.771.831.141.281.711.362.131.93
15DiatomSizeReduction1.032.41-0.020.922.44-0.150.670.99
16DistalPhalanxOutlineAgeGroup2.430.440.170.480.020.660.880.81
17DistalPhalanxOutlineCorrect0.640.520.540.27-0.290.300.860.73
18DistalPhalanxTW3.121.050.921.61-0.710.710.710.85
19Earthquakes3.490.200.110.150.480.730.350.13
20ECG2002.860.380.740.101.020.440.490.45
#DatasetMILLET pub.†bottleneckgated (mean)input-gatedspike/trendMILLET (ours)ResNetFCN
21ECG50006.701.011.320.491.211.221.261.46
22ECGFiveDays4.760.68-0.51-0.010.310.190.271.31
23ElectricDevices4.640.871.060.751.190.721.221.39
24FaceAll4.000.780.940.250.410.201.231.41
25FaceFour6.471.230.621.131.590.471.210.97
26FacesUCR3.181.071.201.060.900.030.950.93
27FiftyWords3.312.191.781.731.770.842.392.38
28Fish5.480.711.091.001.841.512.333.45
29FordA2.710.870.73-0.110.700.28-0.310.75
30FordB1.640.510.030.510.930.370.180.25
31GunPoint4.011.050.490.700.700.910.480.74
32Ham3.931.111.511.101.820.751.591.62
33HandOutlines12.711.482.902.025.521.851.343.51
34Haptics5.991.631.372.131.441.252.012.47
35Herring4.611.441.800.955.242.703.182.34
36InlineSkate8.161.521.882.700.802.051.981.75
37InsectWingbeatSound2.731.181.430.691.020.610.820.97
38ItalyPowerDemand4.160.430.920.420.30–0.540.49
39LargeKitchenAppliances9.512.201.221.701.631.681.801.57
40Lightning25.380.981.091.621.000.961.671.45
41Lightning74.251.861.161.381.161.301.481.36
42Mallat6.741.872.282.561.541.762.992.52
43Meat6.191.621.590.680.952.081.742.01
44MedicalImages2.890.910.960.520.690.920.991.07
45MiddlePhalanxOutlineAgeGroup0.990.350.350.250.410.861.250.78
46MiddlePhalanxOutlineCorrect2.450.720.58-0.18-0.360.132.692.84
47MiddlePhalanxTW3.400.660.620.660.050.571.040.47
48MoteStrain3.560.521.390.752.120.550.460.58
49NonInvasiveFetalECGThorax1-2.261.731.461.291.230.308.515.18
50NonInvasiveFetalECGThorax22.991.731.411.231.000.503.772.93
51OliveOil-3.630.120.080.120.373.790.37-1.05
52OSULeaf6.531.260.731.160.580.842.561.90
53PhalangesOutlinesCorrect2.040.040.450.360.310.33-0.320.48
54Phoneme4.781.711.161.161.260.500.640.53
55Plane3.391.131.051.071.070.310.260.46
56ProximalPhalanxOutlineAgeGroup5.650.07-0.250.561.051.040.920.11
57ProximalPhalanxOutlineCorrect-3.540.080.31-1.67-0.120.69-1.350.68
58ProximalPhalanxTW5.70-0.10-0.88-1.460.57-2.17-0.64-0.86
59RefrigerationDevices4.250.320.281.410.280.630.860.71
60ScreenType4.220.830.370.530.560.691.071.15
61ShapeletSim3.431.922.461.150.230.741.180.85
62ShapesAll9.562.362.232.281.441.643.823.15
63SmallKitchenAppliances3.930.901.090.500.320.500.901.04
64SonyAIBORobotSurface13.260.58-0.480.070.220.310.630.50
65SonyAIBORobotSurface22.960.10-0.130.400.450.170.350.15
66StarLightCurves8.422.651.691.893.221.012.831.86
67Strawberry6.220.610.160.780.750.511.252.58
68SwedishLeaf4.161.321.170.980.840.470.890.94
69Symbols2.561.291.171.872.041.201.311.71

Table 33. continued on the next page

continued on the next page

#DatasetMILLET pub.†bottleneckgated (mean)input-gatedspike/trendMILLET (ours)ResNetFCN
70SyntheticControl3.300.950.400.570.740.660.750.54
71ToeSegmentation12.180.530.240.650.630.330.640.86
72ToeSegmentation23.210.910.420.830.310.411.140.62
73Trace4.922.051.401.822.461.762.242.21
74TwoLeadECG4.761.490.941.020.12-0.220.830.29
75TwoPatterns12.162.423.072.221.891.352.881.29
76UWaveGestureLibraryAll8.081.952.032.431.461.272.452.96
77UWaveGestureLibraryX4.301.211.701.090.810.851.781.99
78UWaveGestureLibraryY4.101.231.551.120.930.871.661.61
79UWaveGestureLibraryZ4.651.441.621.131.220.921.701.57
80Wafer1.140.370.500.840.27-0.270.750.77
81Wine26.960.612.271.123.310.030.050.03
82WordSynonyms3.041.491.281.330.940.692.092.20
83Worms3.111.221.461.891.590.891.632.15
84WormsTwoClass4.300.951.191.011.130.901.291.74
85Yoga6.621.281.721.803.220.641.142.62
Mean4.551.091.060.961.110.811.331.38

Table 33 (continued).

Relation to the Published MILLET Results

The main comparisons of the paper use MILLET retrained with our own budget, and not its published numbers. Table 34 sets our retrained baseline next to the published numbers of MILLET [9], with one row per way of obtaining the number; the WebTraffic columns are means over the runs and the UCR columns are means over the 85 published datasets. Early et al. [9] report 0.924 over five seeds on WebTraffic, and our retrained baseline reaches 0.888 with the same architecture. The two differ in the training recipe (Section D.2).

The same table also shows the problem of § 4.1. The published WebTraffic AOPCR of MILLET is 12.768, against 2.457 for our retrained baseline, although the two have a similar NDCG@nn (0.674 and 0.681). A factor of about five on a metric that is supposed to measure the quality of an explanation therefore does not reflect a better ranking of the time points. This is why the AOPCR column of Table 1 is only read across its own rows, and never against an AOPCR reported in another paper, including the published 4.55 of MILLET.

References

  1. [1]Mohammadreza Baharani and Hamed Tabkhi. ATCN: Resource-efficient processing of time series on edge. ACM Transactions on Embedded Computing Systems, 21(5):1–21, 2022.DOI
  2. [2]Shaojie Bai, J. Zico Kolter, and Vladlen Koltun. An empirical evaluation of generic convolutional and recurrent networks for sequence modeling. arXiv preprint arXiv:1803.01271, 2018.arxiv.org/abs/1803.01271
  3. [3]Colby Banbury, Vijay Janapa Reddi, Peter Torelli, Jeremy Holleman, Nat Jeffries, Csaba Kiraly, Pietro Montino, David Kanter, Sebastian Ahmed, Danilo Pau, Urmish Thakker, Antonio Torrini, Peter Warden, Jay Cordaro, Giuseppe Di Guglielmo, Javier Duarte, Stephen Gibellini, Videet Parekh, Honson Tran, Nhan Tran, Niu Wenxu, and Xu Xuesong. MLPerf tiny benchmark. In Advances in Neural Information Processing Systems (NeurIPS), Datasets and Benchmarks Track, 2021a.arxiv.org/abs/2106.07597
  4. [4]Colby Banbury, Chuteng Zhou, Igor Fedorov, Ramon Matas, Urmish Thakker, Dibakar Gope, Vijay Janapa Reddi, Matthew Mattina, and Paul Whatmough. MicroNets: Neural network architectures for deploying TinyML applications on commodity microcontrollers. In Proceedings of Machine Learning and Systems (MLSys), 2021b.arxiv.org/abs/2010.11267
  5. [5]François Chollet. Exception: Deep learning with depthwise separable convolutions. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 1251–1258, 2017.arxiv.org/abs/1610.02357
  6. [6]Hoang Anh Dau, Anthony Bagnall, Kaveh Kamgar, Chin-Chia Michael Yeh, Yan Zhu, Shaghayegh Gharghabi, Chotirat Ann Ratanamahatana, and Eamonn Keogh. The UCR time series archive. IEEE/CAA Journal of Automatica Sinica, 6(6):1293–1305, 2019.arxiv.org/abs/1810.07758
  7. [7]Thomas G. Dietterich, Richard H. Lathrop, and Tomás Lozano-Pérez. Solving the multiple instance problem with axis-parallel rectangles. Artificial Intelligence, 89(1-2):31–71, 1997.DOI
  8. [8]Thibaut Durand, Nicolas Thome, and Matthieu Cord. WELDON: Weakly supervised learning of deep convolutional neural networks. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 4743–4752, 2016.DOI
  9. [9]Joseph Early, Gavin K. C. Cheung, Kurt Cutajar, Hanting Xie, Jasmina Kandola, and Niall Twomey. Inherently interpretable time series classification via multiple instance learning. In International Conference on Learning Representations (ICLR), 2024.arxiv.org/abs/2311.10049
  10. [10]Noriaki Hashimoto, Daisuke Fukushima, Ryoichi Koga, Yusuke Takagi, Kaho Ko, Kei Kohno, Masato Nakaguro, Shigeo Nakamura, Hidekata Hontani, and Ichiro Takeuchi. Multi-scale domain-adversarial multiple-instance CNN for cancer subtype classification with unannotated histopathological images. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 3852–3861, 2020.
  11. [11]Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 770–778, 2016.arxiv.org/abs/1512.03385
  12. [12]Andrew G. Howard, Menglong Zhu, Bo Chen, Dmitry Kalenichenko, Weijun Wang, Tobias Weyand, Marco Andreetto, and Hartwig Adam. Mobilenets: Efficient convolutional neural networks for mobile vision applications. arXiv preprint arXiv:1704.04861, 2017.
  13. [13]Forrest N. Iandola, Song Han, Matthew W. Moskewicz, Khalid Ashraf, William J. Dally, and Kurt Keutzer. SqueezeNet: AlexNet-level accuracy with 50x fewer parameters and <0.5MB model size. arXiv preprint arXiv:1602.07360, 2016.
  14. [14]Maximilian Ilse, Jakub M. Tomczak, and Max Welling. Attention-based deep multiple instance learning. In International Conference on Machine Learning (ICML), pp. 2127–2136, 2018.
  15. [15]Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In International Conference on Machine Learning (ICML), pp. 448–456, 2015.
  16. [16]Hassan Ismail Fawaz, Germain Forestier, Jonathan Weber, Lhassane Idoumghar, and Pierre-Alain Muller. Deep learning for time series classification: A review. Data Mining and Knowledge Discovery, 33(4):917–963, 2019.
  17. [17]Hassan Ismail Fawaz, Benjamin Lucas, Germain Forestier, Charlotte Pelletier, Daniel F. Schmidt, Jonathan Weber, Geoffrey I. Webb, Lhassane Idoumghar, Pierre-Alain Muller, and François Petitjean. Inceptiontime: Finding AlexNet for time series classification. Data Mining and Knowledge Discovery, 34(6):1936–1962, 2020.
  18. [18]Benoit Jacob, Skirmantas Kligys, Bo Chen, Menglong Zhu, Matthew Tang, Andrew Howard, Hartwig Adam, and Dmitry Kalenichenko. Quantization and training of neural networks for efficient integer-arithmetic-only inference. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 2704–2713, 2018.
  19. [19]Kalervo Järvelin and Jaana Kekäläinen. Cumulated gain-based evaluation of IR techniques. ACM Transactions on Information Systems, 20(4):422–446, 2002.
  20. [20]Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In International Conference on Learning Representations (ICLR), 2015.
  21. [21]Bin Li, Yin Li, and Kevin W. Eliceiri. Dual-stream multiple instance learning network for whole slide image classification with self-supervised contrastive learning. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 14318–14328, 2021.DOI
  22. [22]Ji Lin, Wei-Ming Chen, Yujun Lin, John Cohn, Chuang Gan, and Song Han. MCUNet: Tiny deep learning on IoT devices. In Advances in Neural Information Processing Systems (NeurIPS), 2020.arxiv.org/abs/2007.10319
  23. [23]Scott M. Lundberg and Su-In Lee. A unified approach to interpreting model predictions. In Advances in Neural Information Processing Systems (NeurIPS), pp. 4765–4774, 2017.arxiv.org/abs/1705.07874
  24. [24]Marco Tulio Ribeiro, Sameer Singh, and Carlos Guestrin. “why should I trust you?”: Explaining the predictions of any classifier. In ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pp. 1135–1144, 2016.arxiv.org/abs/1602.04938
  25. [25]Matteo Risso, Alessio Burrello, Francesco Conti, Lorenzo Lamberti, Yukai Chen, Luca Benini, Enrico Macii, Massimo Poncino, and Daniele Jahier Pagliari. Lightweight neural architecture search for temporal convolutional networks at the edge. IEEE Transactions on Computers, 72(3): 744–758, 2023.DOI
  26. [26]Cynthia Rudin. Stop explaining black box machine learning models for high stakes decisions and use interpretable models instead. Nature Machine Intelligence, 1(5):206–215, 2019.DOI
  27. [27]Wojciech Samek, Alexander Binder, Grégoire Montavon, Sebastian Lapuschkin, and Klaus-Robert Müller. Evaluating the visualization of what a deep neural network has learned. IEEE Transactions on Neural Networks and Learning Systems, 28(11):2660–2673, 2017.DOI
  28. [28]Mark Sandler, Andrew Howard, Menglong Zhu, Andrey Zhmoginov, and Liang-Chieh Chen. MobileNetV2: Inverted residuals and linear bottlenecks. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 4510–4520, 2018.arxiv.org/abs/1801.04381
  29. [29]Mukund Sundararajan, Ankur Taly, and Qiqi Yan. Axiomatic attribution for deep networks. In International Conference on Machine Learning (ICML), pp. 3319–3328, 2017.arxiv.org/abs/1703.01365
  30. [30]Xinggang Wang, Yongluan Yan, Peng Tang, Xiang Bai, and Wenyu Liu. Revisiting multiple instance neural networks. Pattern Recognition, 74:15–24, 2018. doi: 10.1016/j.patcog.2017.08.026.DOI
  31. [31]Zhiguang Wang, Weizhong Yan, and Tim Oates. Time series classification from scratch with deep neural networks: A strong baseline. In International Joint Conference on Neural Networks (IJCNN), pp. 1578–1585, 2017.arxiv.org/abs/1611.06455
  32. [32]Yunshi Wen, Tengfei Ma, Tsui-Wei Weng, Lam M. Nguyen, and Anak Agung Julius. Abstracted shapes as tokens – a generalizable and interpretable model for time-series classification. In Advances in Neural Information Processing Systems (NeurIPS), 2024. URL https://openreview.net/forum?id=pWKkNSuEs.arxiv.org/abs/2411.01006
  33. [33]Yunshi Wen, Tengfei Ma, Ronny Luss, Debarun Bhattacharjya, Achille Fokoue, and Anak Agung Julius. Shedding light on time series classification using interpretability gated networks. In International Conference on Learning Representations (ICLR), 2025. URL https://openreview.net/forum?id=n34taxF0TC.
  34. [34]Saining Xie, Ross Girshick, Piotr Dollár, Zhuowen Tu, and Kaiming He. Aggregated residual transformations for deep neural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 1492–1500, 2017.arxiv.org/abs/1611.05431

Paper details

vlnc:W_kprxbzey
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

generative AI tools

View statement
Looking for related papers…
Contents