SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2203.10681 · 2022

Online Continual Learning for Embedded Devices

arXiv · PDF · Open in the Atlas

Code that ran

5 of 6 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; 0 honoured the contract we drafted, 0 violated it and 5 have no contract verdict; 0 failures of our instrument; 1 no recorded run), measured 2026-11-23; 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/2203.10681.json · badge: /api/ran/2203.10681.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
tyler-hayes/embedded-cl canonical (classifier label)
classifier basis not recorded on the link
5 ran · 1 no recorded run
FunctionStatusWhere it lives
average_openloris_instance_results Ran
ran on a synthesized input
tyler-hayes/embedded-cl/analyze_results_openloris.py
code served (permissive licence) · get_code("4ceda3400a870fb1")
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 defaultdict. The image it ran in was not recorded. If your copy returns the same type 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 os
import json
import tempfile
from collections import defaultdict

# Create a temporary directory structure with mock result files
temp_dir = tempfile.mkdtemp()

# Create mock result files that the function will read
def create_mock_results(base_dir, cl_model, lr, arch, order, seed, file):
    dir_path = os.path.join(base_dir, f"expt_{cl_model}_{lr}_{arch}_{order}_{seed}")
    os.makedirs(dir_path, exist_ok=True)
    file_path = os.path.join(dir_path, file)
    
    # Create a mock JSON result file with a 'top1' key containing accuracy values
    mock_data = {
        'top1': [0.5, 0.6, 0.7, 0.75, 0.80]  # Last value is final accuracy
    }
    with open(file_path, 'w') as f:
        json.dump(mock_data, f)
    return dir_path

# Set up parameters
results_dir = temp_dir
expt_folder = "expt_%s_%s_%s_%s_%s"  # Pattern: (cl_model, lr, arch, order, seed)
file = "results.json"
seeds = [42, 43]
cl_models = ["replay", "ewc"]
orders = ["order1", "order2"]
architectures = ["resnet18", "resnet50"]
lr = 0.001

# Pre-populate the directory with mock result files
for order in orders:
    for seed in seeds:
        for cl_model in cl_models:
            for arch in architectures:
                create_mock_results(
                    results_dir,
                    cl_model,
                    str(lr),
                    arch,
                    order,
                    seed,
                    file
                )

ARGS = {
    'results_dir': results_dir,
    'expt_folder': expt_folder,
    'file': file,
    'seeds': seeds,
    'cl_models': cl_models,
    'orders': orders,
    'architectures': architectures,
    'lr': lr,
    'print_results': True
}
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 defaultdict — a defaultdict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a defaultdict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
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
compute_memory_requirements Ran
ran on a synthesized input
tyler-hayes/embedded-cl/analyze_results_openloris.py
code served (permissive licence) · get_code("745c2916efeb4bbe")
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 int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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 as nn

torch.manual_seed(0)

ARGS = {
    'arch': 'resnet18',
    'model': 'fine_tune',
    'num_classes': 10,
    'include_bb': False
}
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 int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
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
compute_metric Ran
ran on a synthesized input
tyler-hayes/embedded-cl/analyze_results_openloris.py
code served (permissive licence) · get_code("b77c1e7de919038c")
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

# The function compute_metric takes numerical parameters:
# - acc: accuracy (scalar, should be > 0 for log to work)
# - params: number of parameters (scalar, should be > 0)
# - time: execution time (scalar, should be > 0)
# - alpha, beta, gamma, s: coefficients with defaults

# Build valid arguments
acc = 0.95  # accuracy value between 0 and 1
params = 1000  # number of model parameters
time = 5.2  # execution time in seconds
alpha = 2  # exponent for accuracy
beta = 0.25  # exponent for params
gamma = 0.25  # exponent for time
s = 20  # scaling factor

ARGS = {
    "acc": acc,
    "params": params,
    "time": time,
    "alpha": alpha,
    "beta": beta,
    "gamma": gamma,
    "s": s,
}
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
load_places_lt_full_image_dataset Ran
ran on a synthesized input
tyler-hayes/embedded-cl/dataset_utils.py
code served (permissive licence) · get_code("288e69e85b3c7935")
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 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 os
import tempfile
import torch
import torchvision.transforms as transforms
from PIL import Image
import io

torch.manual_seed(0)

# Create temporary directory structure with fake image data
temp_dir = tempfile.mkdtemp()
image_dir = os.path.join(temp_dir, "images")
os.makedirs(image_dir, exist_ok=True)

# Create a minimal valid image file (1x1 RGB)
img = Image.new('RGB', (1, 1), color='red')
img_path = os.path.join(image_dir, "test_image.jpg")
img.save(img_path)

# Create train and test txt files with minimal entries
train_txt_path = os.path.join(temp_dir, "train.txt")
with open(train_txt_path, 'w') as f:
    f.write("test_image.jpg 0\n")
    f.write("test_image.jpg 1\n")

test_txt_path = os.path.join(temp_dir, "test.txt")
with open(test_txt_path, 'w') as f:
    f.write("test_image.jpg 0\n")
    f.write("test_image.jpg 1\n")

# Create txt_file_root pattern that will be formatted with 'train' and 'test'
txt_file_root = os.path.join(temp_dir, "%s.txt")

ARGS = {
    'image_dir': image_dir,
    'txt_file_root': txt_file_root,
    'batch_size': 2,
    'test_batch_size': 2,
    'num_workers': 0,
    'return_item_ix': False,
    'shuffle': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, torch, torchvision — 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 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
make_features_dataloader Ran
ran on a synthesized input
tyler-hayes/embedded-cl/dataset_utils.py
code served (permissive licence) · get_code("8495bbb0be043e8e")
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 DataLoader. The image it ran in was not recorded. If your copy returns the same type 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 h5py
import numpy as np
import tempfile
import os

# Create a temporary HDF5 file with the required structure
temp_dir = tempfile.mkdtemp()
h5_file_path = os.path.join(temp_dir, 'test_features.h5')

# Create HDF5 file with features and labels
with h5py.File(h5_file_path, 'w') as h5:
    features_data = np.random.randn(10, 4).astype(np.float32)  # 10 samples, 4 features
    labels_data = np.array([0, 1, 0, 1, 0, 1, 0, 1, 0, 1], dtype=np.int64)
    h5.create_dataset('features', data=features_data)
    h5.create_dataset('labels', data=labels_data)

ARGS = {
    'h5_file_path': h5_file_path,
    'batch_size': 2,
    'num_workers': 0,
    'shuffle': False,
    'return_item_ix': False,
    'in_memory': True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
h5py, numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataLoader — a DataLoader output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataLoader output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
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
load_torchvision_full_image_dataset Not yet run
unverified (harvested, no recorded run)
tyler-hayes/embedded-cl/dataset_utils.py
code served (permissive licence) · get_code("57fc70a6c4c13d4e")
How it ran

no invocation recorded.

Also present in other papers' code

Of 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 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.

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-23.

Repositories linked to this paper

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

Abstract

Real-time on-device continual learning is needed for new applications such as home robots, user personalization on smartphones, and augmented/virtual reality headsets. However, this setting poses unique challenges: embedded devices have limited memory and compute capacity and conventional machine learning models suffer from catastrophic forgetting when updated on non-stationary data streams. While several online continual learning models have been developed, their effectiveness for embedded applications has not been rigorously studied. In this paper, we first identify criteria that online continual learners must meet to effectively perform real-time, on-device learning. We then study the efficacy of several online continual learning methods when used with mobile neural networks. We measure their performance, memory usage, compute requirements, and ability to generalize to out-of-domain inputs.

For agents

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

get_harvested_code_for_paper("2203.10681")
get_code_for_paper("2203.10681")
have("2203.10681")

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

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

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

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

Connect an agent — have() is free.