Adaptive Multiple Normal Action Representation (AMNAR)
- AMNAR is a framework for error detection that maintains adaptive, context-aware representations for all valid next actions in procedural videos.
- It employs a graph-based prediction module coupled with a reconstruction block using dilated convolutions and local attention to model action-branching effectively.
- Experimental results show AMNAR outperforms baselines like EgoPED, significantly improving error detection accuracy on assembly and cooking task benchmarks.
Adaptive Multiple Normal Action Representation (AMNAR) is a framework for error detection in procedural activity videos, addressing the non-determinism in valid next actions following a sequence of executed steps. By maintaining adaptive, context-aware representations for all valid next actions at each step, AMNAR overcomes the limitations of static action prototypes and enhances robustness to environment or label distribution shifts. Its architecture integrates a graph-based valid-action predictor and a learned reconstruction module, yielding state-of-the-art performance on established procedural task benchmarks (Huang et al., 28 Mar 2025).
1. Problem Formulation and Motivation
Procedural tasks, such as assembly and cooking, are characterized by action sequences with (action classes, possibly including a background class). The valid temporal structure of these actions is embodied in a task graph , a directed acyclic graph encoding permissible transitions. At inference time, given the sequence prefix , the challenge is to:
- Predict the set of all valid next actions according to and .
- For each , reconstruct a corresponding context-adaptive “normal” feature representation .
Error detection is performed by comparing the observed action embedding with all ; a large minimal distance flags an error. The rationale for maintaining multiple adaptive prototypes is to model legitimate action-branching (e.g., either “add sugar” or “add cream” can validly follow “pour coffee”). Static prototype approaches misclassify such permissible variations as errors or overlook true errors, especially under distribution shift.
The set is operationalized as:
where are one-step successors of in , and is the longest merged subsequence of conforming to .
2. Architecture: Potential Action Prediction and Representation Reconstruction
AMNAR’s architecture is divided into two causal modules executed at each action time step :
2.1 Potential Action Prediction Block (PAPB)
PAPB, given and , computes through dynamic programming and adjacency merging:
- Build adjacency list from .
- For each position in , compute the longest valid non-branching subsequences (arrays , ).
- Merge all maximal subsequences and neighbors to form .
- Compute .
PAPB is algorithmically guaranteed to recover all valid next actions consistent with the observed action prefix and task-graph constraints.
2.2 Representation Reconstruction Block (RRB)
RRB, provided with feature sequence (up to previous action boundary) and candidate class-embedding vectors , reconstructs for each a normal feature embedding :
- Temporal encoder: five 1D causal dilated Conv layers (kernel size 3, dilations ) produce key/value feature maps .
- Local cross-attention (window size 32, 2 heads): as query, attending to yields .
The class-embedding for class is precomputed as:
with the set of normal training samples of label .
3. Mathematical Formulation and Training Objectives
Training employs normal (error-free) sequences:
- Prediction loss (optional):
where is the classifier probability over and is the one-hot ground truth.
- Reconstruction loss:
where is the ground-truth next action index.
- Total loss:
with a tunable hyperparameter.
- Error detection (inference):
An error is flagged if , where is chosen to achieve a pre-specified true-negative rate on held-out data.
4. Training and Inference Procedures
The end-to-end AMNAR procedure is as follows:
- Training:
- For each epoch, iterate over normal videos.
- Use an action segmentation model to extract frame features , boundaries, ground-truth labels , and observed embeddings .
- For each action : obtain via PAPB, reconstruct via RRB, accumulate for the correct candidate, and optionally .
- Backpropagate total loss and update the RRB and, if present, the prediction head.
- Inference (error detection):
- For a new video, extract features, boundaries, and .
- For each : predict via PAPB, reconstruct all via RRB, compute , and flag errors if .
5. Experimental Evaluation and Benchmarks
AMNAR was evaluated on two large-scale video datasets:
| Dataset | Domain | Hours (train/val) | Tasks/labels | Notes |
|---|---|---|---|---|
| HoloAssist | Assembly | 166/20 | 19 tasks, 1 excl. held | Errors excluded from training |
| CaptainCook4D | Cooking | 94.5 | 24 recipes, 10K labels | Fine-grained labels and errors |
Task graph construction employed transition counts to greedily assemble acyclic DAGs per dataset.
Metrics:
- Frame-wise Error Detection Accuracy (EDA): percentage of correctly labeled (normal/error) frames
- F1 score: per-action error detection
Key results:
- HoloAssist EDA: Random baseline 72.1%, EgoPED 84.7%, AMNAR 88.9%
- Gain on most non-deterministic task (coffee): +6.3 points EDA over EgoPED
- CaptainCook4D: F1 increases from 65.4% (EgoPED) to 71.8% (AMNAR)
Ablation findings:
- Removing RRB (static prototype): –3.1 points EDA
- Only top-1 next-action: –2.4 points EDA
- Non-deterministic steps (coffee): +5.8 points over EgoPED
6. Insights, Limitations, and Future Directions
Modeling multiple adaptive prototypes enables AMNAR to accurately capture legitimate action-branching, minimizing false positives in non-deterministic procedural domains. The temporal encoder’s dilated convolutional structure and local attention allow integration of broad temporal context and fine-grained cues, improving reconstruction fidelity. Ablation studies confirm the necessity of both these elements, and of supporting multiple prototypes over a single static representation.
Limitations include the focus on step-level error detection: sequence-level anomalies such as missing actions or misordering are not directly addressed. AMNAR assumes precise action segmentation and boundary estimation, suggesting that end-to-end integration with segmentation modules is a promising avenue. Automatic threshold calibration for under domain shift or non-stationary environments is unresolved.
7. Significance and Comparative Perspective
AMNAR advances online error detection in procedural videos by explicitly representing all contextually valid action possibilities at each step and learning adaptive, context-sensitive normal features. This approach yields superior performance relative to state-of-the-art methods not accounting for action non-determinism, such as EgoPED, particularly in tasks with substantial branching. The two-stage design—graph-based next-action retrieval plus adaptive feature reconstruction—represents a principled generalization of prior approaches and is adaptable to a variety of procedural learning paradigms (Huang et al., 28 Mar 2025).