SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2503.22405 · CVPR · 2025

Modeling Multiple Normal Action Representations for Error Detection in Procedural Tasks

Kun-Yu Lin, Wei-Shi Zheng, Jian-Fang Hu, Yu-Ming Tang, Yuan-Ming Li, Wei-Jin Huang, Zhi-Wei Xia

arXiv · PDF · Open in the Atlas

Code that ran

13 of 16 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 0 violated it and 4 have no contract verdict; 7 failures of our instrument; 3 no recorded run), measured 2026-11-24; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2503.22405.json · badge: /api/ran/2503.22405.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
iSEE-Laboratory/AMNAR canonical (classifier label)
classifier basis not recorded on the link
13 ran · 3 no recorded run
FunctionStatusWhere it lives
acc_precision_recall_f1 Ran
ran on a synthesized input
iSEE-Laboratory/AMNAR/metric_vis_multiprocess.py
code served (permissive licence) · get_code("9dc97196363b645b")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np
from sklearn.metrics import f1_score, recall_score, precision_score, accuracy_score

torch.manual_seed(0)

# Create sample predictions and ground truths
# all_preds and all_gts should be array-like with integer class labels
all_preds = np.array([0, 1, 2, 0, 1, 2, 0, 1])
all_gts = np.array([0, 1, 2, 0, 1, 1, 0, 2])

# set_labels: list of unique class labels
set_labels = [0, 1, 2]

# each_class: boolean flag
each_class = True

ARGS = {
    "all_preds": all_preds,
    "all_gts": all_gts,
    "set_labels": set_labels,
    "each_class": each_class,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 2, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
ctr_diou_loss_1d Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
iSEE-Laboratory/AMNAR/libs/modeling/losses.py
pointer only (licence: MIT); the stored copy get_code serves, from ring-zl/Speech-Forensics, is pointer only (licence: NONE) · get_code("12d8ba65aabcb2b4")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from ring-zl/Speech-Forensics, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

ctr_giou_loss_1d Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
iSEE-Laboratory/AMNAR/libs/modeling/losses.py
pointer only (licence: MIT); the stored copy get_code serves, from ring-zl/Speech-Forensics, is pointer only (licence: NONE) · get_code("66693d03280664b1")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from ring-zl/Speech-Forensics, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

drop_path Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
iSEE-Laboratory/AMNAR/libs/modeling/blocks.py
pointer only (licence: MIT); the stored copy get_code serves, from f3set/f3set, is pointer only (licence: NONE) · get_code("a34c005ba2203f35")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from f3set/f3set, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

error_acc Ran
ran on a synthesized input
iSEE-Laboratory/AMNAR/metric_vis_multiprocess.py
code served (permissive licence) · get_code("aa71c46542c9f663")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# Analyzing the function:
# - pred: list/array that is indexed with integers, contains integers or -1
# - gt: list/array that is indexed with integers, contains integers
# - gt_error: list/array that is indexed with integers, contains integers (-1 or other values)

# The function processes sequences and compares predictions against ground truth
# with error indicators. It iterates through indices and compares values.

# Create sample data
pred = [1, 1, -1, 2, 2, 2]  # predictions, -1 indicates error
gt = [1, 1, 1, 2, 2, 2]      # ground truth labels
gt_error = [0, 0, -1, 0, 0, 0]  # -1 indicates error in gt

ARGS = {
    "pred": pred,
    "gt": gt,
    "gt_error": gt_error
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family int — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_labels_start_end_time Ran
ran; our contract draft was wrong, not the code
iSEE-Laboratory/AMNAR/eval_utils.py
pointer only (licence: MIT); the stored copy get_code serves, from jinglinglingling/x4d, is pointer only (licence: NONE) · get_code("256e0c401be2a266")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from jinglinglingling/x4d, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_sinusoid_encoding Ran
ran, honoured the contract we drafted
iSEE-Laboratory/AMNAR/libs/modeling/blocks.py
pointer only (licence: MIT); the stored copy get_code serves, from f3set/f3set, is pointer only (licence: NONE) · get_code("3531df7b0c9b0791")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from f3set/f3set, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

levenstein Ran
ran, honoured the contract we drafted
iSEE-Laboratory/AMNAR/eval_utils.py
pointer only (licence: MIT); the stored copy get_code serves, from jinglinglingling/x4d, is pointer only (licence: NONE) · get_code("b3c5c209fda2be1d")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from jinglinglingling/x4d, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

mstcn_edit_score Ran
ran on a synthesized input
iSEE-Laboratory/AMNAR/eval_utils.py
code served (permissive licence) · get_code("170940905c04f542")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float64, ndim 0, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Analyze the function signature:
# mstcn_edit_score(pred, gt, norm=True, bg_class=['background'])
# 
# The function uses:
# - pred: passed to get_labels_start_end_time, which expects a list/array of labels (strings)
# - gt: passed to get_labels_start_end_time, which expects a list/array of labels (strings)
# - norm: boolean flag passed to levenstein
# - bg_class: list of strings representing background classes

# Create small valid arguments
pred = ['action1', 'action1', 'background', 'action2', 'action2', 'action2', 'background', 'action1']
gt = ['action1', 'action1', 'action1', 'background', 'action2', 'action2', 'background', 'background']

ARGS = {
    'pred': pred,
    'gt': gt,
    'norm': True,
    'bg_class': ['background']
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
register_backbone Ran
ran; our contract draft was wrong, not the code
iSEE-Laboratory/AMNAR/libs/modeling/models.py
pointer only (licence: MIT); the stored copy get_code serves, from ring-zl/Speech-Forensics, is pointer only (licence: NONE) · get_code("cee845f405ecf37e")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from ring-zl/Speech-Forensics, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

register_generator Ran
ran; our contract draft was wrong, not the code
iSEE-Laboratory/AMNAR/libs/modeling/models.py
pointer only (licence: MIT); the stored copy get_code serves, from zzhhfut/ccnet-aaai2025, is pointer only (licence: NONE) · get_code("3db1c5ab5f3f0198")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from zzhhfut/ccnet-aaai2025, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

register_neck Ran
ran; our contract draft was wrong, not the code
iSEE-Laboratory/AMNAR/libs/modeling/models.py
pointer only (licence: MIT); the stored copy get_code serves, from ring-zl/Speech-Forensics, is pointer only (licence: NONE) · get_code("e5ef13b176081594")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from ring-zl/Speech-Forensics, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

sigmoid_focal_loss Ran
ran on a synthesized input
iSEE-Laboratory/AMNAR/libs/modeling/losses.py
code served (permissive licence) · get_code("a617c27dff1d8aec")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn.functional as F

torch.manual_seed(0)

# Create small tensors for inputs and targets
# inputs: predictions (logits)
# targets: binary classification labels (0 or 1)
batch_size = 2
num_elements = 4

inputs = torch.randn(batch_size, num_elements)
targets = torch.randint(0, 2, (batch_size, num_elements)).float()

# Define all parameters
ARGS = {
    'inputs': inputs,
    'targets': targets,
    'alpha': 0.25,
    'gamma': 2.0,
    'reduction': 'none'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float — no output shape is stated: observe_signature.py could not observe it (import:OSError)
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
acc_tpr_fpr Not yet run
unverified (harvested, no recorded run)
iSEE-Laboratory/AMNAR/metric_vis_multiprocess.py
code served (permissive licence) · get_code("54142e08e5e7b123")
How it ran

no invocation recorded.

load_config Not yet run
unverified (harvested, no recorded run)
iSEE-Laboratory/AMNAR/libs/core/config.py
code served (permissive licence) · get_code("fd5970b4bd634bdc")
How it ran

no invocation recorded.

process_threshold Not yet run
unverified (harvested, no recorded run)
iSEE-Laboratory/AMNAR/metric_action_multiplicity.py
code served (permissive licence) · get_code("37aec3cd29c8d0b4")
How it ran

no invocation recorded.

Also present in other papers' code

Of 16 samples lifted from this paper's linked repositories, 16 carry a function identity and 0 do not. Of the 16 distinct functions with an identity, 10 are also present in other papers whose code we hold (10 with at least one paper dated earlier, 0 the same month, 7 later) and 6 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
drop_path 11 other papers
9 dated earlier, 2 later
2104.14222 (2021-04)
Privacy-Preserving Portrait Matting
2303.07347 (2023-03)
TriDet: Temporal Action Detection with Relative Boundary Modeling
2303.12930 (2023-03)
Dense-Localizing Audio-Visual Events in Untrimmed Videos: A Large-Scale Benchmark and Baseline
and 8 more not named here
get_sinusoid_encoding 11 other papers
9 dated earlier, 2 later
2104.14222 (2021-04)
Privacy-Preserving Portrait Matting
2303.07347 (2023-03)
TriDet: Temporal Action Detection with Relative Boundary Modeling
2303.12930 (2023-03)
Dense-Localizing Audio-Visual Events in Untrimmed Videos: A Large-Scale Benchmark and Baseline
and 8 more not named here
load_config 8 other papers
7 dated earlier, 1 later
2303.07347 (2023-03)
TriDet: Temporal Action Detection with Relative Boundary Modeling
2303.12930 (2023-03)
Dense-Localizing Audio-Visual Events in Untrimmed Videos: A Large-Scale Benchmark and Baseline
2404.02257 (2024-04)
SnAG: Scalable and Accurate Video Grounding
and 5 more not named here
register_generator 8 other papers
7 dated earlier, 1 later
2303.07347 (2023-03)
TriDet: Temporal Action Detection with Relative Boundary Modeling
2303.12930 (2023-03)
Dense-Localizing Audio-Visual Events in Untrimmed Videos: A Large-Scale Benchmark and Baseline
2404.02257 (2024-04)
SnAG: Scalable and Accurate Video Grounding
and 5 more not named here
ctr_diou_loss_1d 5 other papers
5 dated earlier
2303.07347 (2023-03)
TriDet: Temporal Action Detection with Relative Boundary Modeling
2312.06505 (2023-12)
Grounded Question-Answering in Long Egocentric Videos
2404.02257 (2024-04)
SnAG: Scalable and Accurate Video Grounding
and 2 more not named here
ctr_giou_loss_1d 5 other papers
4 dated earlier, 1 later
2303.07347 (2023-03)
TriDet: Temporal Action Detection with Relative Boundary Modeling
2404.02257 (2024-04)
SnAG: Scalable and Accurate Video Grounding
2407.03197 (2024-07)
DyFADet: Dynamic Feature Aggregation for Temporal Action Detection
and 2 more not named here
register_backbone 5 other papers
4 dated earlier, 1 later
2303.07347 (2023-03)
TriDet: Temporal Action Detection with Relative Boundary Modeling
2404.02257 (2024-04)
SnAG: Scalable and Accurate Video Grounding
2407.03197 (2024-07)
DyFADet: Dynamic Feature Aggregation for Temporal Action Detection
and 2 more not named here
register_neck 5 other papers
4 dated earlier, 1 later
2303.07347 (2023-03)
TriDet: Temporal Action Detection with Relative Boundary Modeling
2404.02257 (2024-04)
SnAG: Scalable and Accurate Video Grounding
2407.03197 (2024-07)
DyFADet: Dynamic Feature Aggregation for Temporal Action Detection
and 2 more not named here
levenstein 2 other papers
2 dated earlier
2312.07378 (2023-12)
X4D-SceneFormer: Enhanced Scene Understanding on 4D Point Cloud Videos through Cross-modal Knowledge Transfer
Lu_FACT_Frame-Action_Cross-Attention_Temporal_Modeling_for_Efficient_Action_Segmentation_CVPR_2024_paper (2024 (year only))
FACT: Frame-Action Cross-Attention Temporal Modeling for Efficient Action Segmentation
get_labels_start_end_time 1 other paper
1 dated earlier
2312.07378 (2023-12)
X4D-SceneFormer: Enhanced Scene Understanding on 4D Point Cloud Videos through Cross-modal Knowledge Transfer

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Error detection in procedural activities is essential for consistent and correct outcomes in AR-assisted and robotic systems. Existing methods often focus on temporal ordering errors or rely on static prototypes to represent normal actions. However, these approaches typically overlook the common scenario where multiple, distinct actions are valid following a given sequence of executed actions. This leads to two issues: (1) the model cannot effectively detect errors using static prototypes when the inference environment or action execution distribution differs from training; and (2) the model may also use the wrong prototypes to detect errors if the ongoing action label is not the same as the predicted one. To address this problem, we propose an Adaptive Multiple Normal Action Representation (AM-NAR) framework. AMNAR predicts all valid next actions and reconstructs their corresponding normal action representations, which are compared against the ongoing action to detect errors. Extensive experiments demonstrate that AMNAR achieves state-of-the-art performance, highlighting the effectiveness of AMNAR and the importance of modeling multiple valid next actions in error detection. The code is available at https://github.com/iSEE-Laboratory/AMNAR.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2503.22405")
get_code_for_paper("2503.22405")
have("2503.22405")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2503.22405.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2503.22405.svg)](https://syntology.ai/paper/2503.22405)

Connect an agent — have() is free.