Models that label every frame of a long video ("action segmentation") flicker between labels at boundaries. The usual fix is a penalty that smooths all label changes equally. We argue this treats the wrong thing. Most flicker likely comes from a small number of class pairs that cannot be told apart from a short slice of video. Slicing and cutting look the same over half a second and only diverge over several seconds. Over a short window the honest answer is "one of these two, undecided." The smoothing penalty cannot say that, and plain cross-entropy actively discourages it.
We propose a concept-bottleneck segmenter that makes this explicit. A concept bottleneck is a model that first predicts human-readable intermediate concepts (objects, motions) and then predicts the label from them with a transparent linear layer. Our segmenter learns, for each confusable pair of actions, how much temporal context is needed to separate them and which concepts do the separating. Below that context length it is trained to stay calibrated at even odds between the two actions rather than guess. The result is a segmenter whose boundary uncertainty can be read off: "undecided between cut and slice until 3 seconds of evidence; knife angle decides it." Because only a sparse set of pairs is modeled, it avoids the quadratic cost of relating every class to every other at every frame.
Core Claim
Frame-level over-segmentation comes mostly from a sparse set of class pairs whose separation requires more temporal context than the frame-level classifier uses. Giving each such pair its own learned context length, and calibrating it with pairwise constraints, should reduce spurious boundary switches at least as well as uniform smoothing. It should also produce calibrated boundaries and a pair-level explanation that uniform smoothing cannot give.
This claim can fail cleanly. If spurious switches are spread uniformly over pairs, the idea offers nothing beyond smoothing.
Relation to Prior Work
Evidence that temporal resolution matters. MS-TCN showed that full-frame-rate segmentation beats downsampled inputs. It controls the resulting jitter with a truncated squared-error smoothing loss that improved F1 "by up to 5%" over cross-entropy alone. That loss penalizes every log-probability transition identically, regardless of which classes are involved. We keep full resolution and replace the uniform penalty with pair-specific structure.
The environmental literature supplies the general lesson that the right explanatory driver depends on timescale. Examples include dissolved oxygen in US rivers, where temperature dominates daily data but light and flow dominate sub-daily cycles, and boreal carbon flux, where daily means bias non-linear models. We borrow only that lesson: what separates two states is itself scale-dependent.
The interpretable temporal models we build on. Concepts in Motion (MoTIF) is a temporal concept bottleneck. It lets each concept channel attend only to its own history, and it beats global concept averaging by 11–18 points on Breakfast. It has two limits that matter here: it uses fixed window lengths, and it maps concepts to classes with a flat linear layer that has no pairwise class structure. We inherit its bottleneck and add multi-scale pooling with per-pair scale selection.
HIPE gets "graceful failure" from a hand-built three-tier action taxonomy in hyperbolic space. Its confusable groups are fixed in advance and independent of temporal context. Ours are discovered from data and indexed by context length.
The pairwise machinery we reuse. Calibrating Deep Neural Networks by Pairwise Constraints supplies the calibration method. It shows that multi-class calibration is equivalent to calibrating every pairwise binary problem, and it trains two kinds of constraint. Discrimination constraints separate the true class from each wrong class. Exclusion constraints push each pair of wrong classes toward 50/50. The same paper also constrains our design: over all $K(K-1)/2$ pairs the exclusion terms swamp the gradients as $K$ grows, so we restrict them to a sparse pair graph.
SoC shows that pushing all class pairs apart uniformly harms calibration when classes are genuinely related. Soft, capped repulsion (ECE 5.4%) beat strict orthogonality from O-TPT (ECE 7.7%). This supports our choice to let sibling pairs remain undecided at short scales rather than forcing them apart.
To our knowledge from the file, no prior work applies pairwise class constraints to temporal data or makes them depend on temporal scale.
Research Program
Concept extraction. We extract frame-level concept activations $c(t)\in\mathbb{R}^M$ with a MoTIF-style bottleneck, where $M$ is the number of concepts. We then pool them over a small bank of window widths $s\in\{0.25, 1, 4, 16\}$ seconds, giving $c^{(s)}(t)$. Each class $i$ has one transparent weight vector $w_i$ shared across scales. The score for class $i$ at scale $s$ is $z_i^{(s)}(t)=w_i^\top c^{(s)}(t)$.
Pairwise decisions. For a pair of classes $(i,j)$ we define a pairwise decision that mixes scales with learned weights $\alpha_{ij,s}$ (a softmax over scales):
$$d_{ij}(t)=\sum_s \alpha_{ij,s}\,\big(z_i^{(s)}(t)-z_j^{(s)}(t)\big).$$
The sparse pair graph. Pairs are restricted to a graph $\mathcal{P}$ with at most $k$ neighbours per class. The graph is built from a warm-up confusion matrix and refreshed each epoch. Cost therefore scales as $O(T\cdot S\cdot K\cdot k)$ instead of $O(T\cdot K^2)$, where $T$ is the number of frames and $S$ the number of scales. Pairs outside $\mathcal{P}$ use the finest scale.
Training. Training uses frame-wise cross-entropy plus pairwise terms on $\mathcal{P}$. For pairs involving the true class, a binary cross-entropy loss applies to $\sigma(d_{ij})$. For pairs of two wrong classes, an exclusion loss pulls $\sigma(d_{ij})$ toward 0.5. The exclusion terms are reweighted so they do not dominate the gradients.
The key ingredient. The pairwise discrimination loss is also computed separately at each scale. A pair is expected to be inseparable at scales shorter than its learned threshold. There, the per-scale pairwise target is 0.5 instead of 1, to within a small margin. The threshold $s^\*_{ij}$ is the smallest scale at which a held-out pairwise classifier reaches a fixed accuracy, re-estimated each epoch.
Inference and explanation. At inference, class probabilities come from standard pairwise coupling over $\mathcal{P}$. Each pair's explanation is two things: its threshold $s^\*_{ij}$, and the concepts with the largest weight in $w_i-w_j$. These can be edited at test time, as in MoTIF.
Baselines
Naive reference points. The first is MS-TCN trained with cross-entropy alone. The second is the same model with post-hoc temperature scaling. Both show how much jitter and miscalibration exists before any structure is added.
Strongest existing segmenter. This is MS-TCN with its smoothing loss. It is the method that directly targets over-segmentation at full resolution, and the file reports its smoothing loss adding up to 5% F1 over cross-entropy. No absolute F1 or edit score for MS-TCN on Breakfast, 50Salads or GTEA was reported on Lacuna, so we will reproduce it ourselves. We use the same pre-extracted features, the same splits, the same number of stages, and a hyperparameter budget matched to ours (the smoothing weight and truncation threshold are tuned with the same number of trials we spend on pairwise weights and $k$).
Strongest interpretable competitor. This is MoTIF's bottleneck with its flat linear head, re-run on the same concept bank. The file reports its 11–18 point gain over global concept models on Breakfast and 40.4% accuracy on SSv2; we have no frame-level segmentation numbers for it. We also add the MS-TCN smoothing loss to this bottleneck, so the interpretable baseline is not handicapped.
Criterion for beating the baselines. We claim a win only if the proposal matches the smoothed MS-TCN on segmental F1 within noise across three seeds, and in addition does both of the following:
- reduces spurious boundary switches between sibling pairs;
- lowers frame-level expected calibration error near boundaries.
Ablations that isolate the key ingredient. The first removes per-pair scale selection. It keeps all $S$ pooled scales but uses shared scale weights, isolating "multi-scale features" from "pair-specific context length." The second keeps pairwise constraints only at the finest scale, which is effectively the static pairwise-constraints method applied frame by frame. The third replaces the confusion-derived graph $\mathcal{P}$ with a random graph of the same size.
Why not just…?
Why not just keep uniform smoothing and add temperature scaling? This is the cheapest option and the most likely to be nearly as good on F1. Temperature scaling applies one scalar to all classes. The pairwise-constraints paper shows it cannot fix relationships among wrong classes, and it was outperformed by pairwise training on CIFAR in that work. But that is static-image evidence. The direct test is our first decisive check below. If switches are not concentrated in a few pairs, smoothing plus temperature scaling is sufficient and we will report that.
Why not just decode with a learned transition matrix or a conditional random field? This is the real threat. A $K\times K$ transition prior over consecutive frames is itself pairwise label structure, and it suppresses implausible switches. It differs in what it models. It encodes which action tends to follow which, not which actions are indistinguishable at a given amount of context. It also sits outside the concept layer, so it gives no concept-level reason for an uncertain boundary. We will run Viterbi decoding with a learned transition matrix on top of both the baseline and our model. If it closes the gap on F1 and calibration, our remaining contribution is the explanation alone, and we will say so.
Why not just give the model multiple window sizes? MS-TCN's dilated convolutions already see long context. The first ablation (all scales pooled, no per-pair selection) is exactly this alternative applied inside the bottleneck. If it matches the full model, pair-specific scale selection is unnecessary.
Why not a hand-built hierarchy as in HIPE? A fixed taxonomy cannot express that two actions are siblings at 0.5 seconds but distinct at 4 seconds. We will nonetheless compare against HIPE-style hierarchical cross-entropy, using a taxonomy derived from Breakfast's activity-to-action structure.
Proposed Experiments and Decisive Checks
Benchmarks. We use Breakfast (48 actions), 50Salads (17) and GTEA (11), all frame-level segmentation benchmarks used by MS-TCN. We report frame accuracy, segmental F1 at standard overlap thresholds, and edit score. We add a boundary-restricted calibration error: ECE computed on frames within a fixed window of true boundaries. We also report a count of spurious switches broken down by class pair.
Controlled granularity test. We re-render inputs at 15, 5 and 1 frames per second. If the model has learned something real, each pair's threshold $s^\*_{ij}$ should stay roughly fixed in seconds rather than in frames. Accuracy should also degrade first for pairs with short thresholds, whose separating evidence is lost to downsampling.
Decisive checks. There are four:
- Concentration. On the smoothed baseline, the top 10% of class pairs should account for most spurious switches. If not, the premise fails.
- Threshold validity. Learned thresholds should correlate with thresholds measured by independent pairwise classifiers trained at each window length.
- Intervention locality. Editing the top discriminating concept for a pair should mainly change decisions within that pair.
- Scaling. A larger-vocabulary run on HAA-500 should show that the sparse pair graph keeps memory near linear in $K$ while the full $K^2$ version runs out of memory.
References
- MS-TCN: Multi-Stage Temporal Convolutional Network for Action Segmentation
- Temperature outweighs light and flow as the predominant driver of dissolved oxygen in US rivers
- Autumn temperature and carbon balance of a boreal Scots pine forest in Southern Finland
- Concepts in Motion: Temporal Concept Bottleneck Model for Interpretable Video Classification
- Hierarchical Explanations for Video Action Recognition
- Calibrating Deep Neural Networks by Pairwise Constraints
- SoC: Semantic Orthogonal Calibration for Test-Time Prompt Tuning
- O-TPT: Orthogonality Constraints for Calibrating Test-time Prompt Tuning in Vision-Language Models