SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2109.00150 · 2021

Federated Reconnaissance: Efficient, Distributed, Class-Incremental Learning

arXiv · PDF · Open in the Atlas

Code that ran

7 of 9 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; 2 failures of our instrument; 2 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/2109.00150.json · badge: /api/ran/2109.00150.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
ml4ai/fed-recon canonical (classifier label)
classifier basis: census
7 ran · 2 no recorded run
FunctionStatusWhere it lives
build_4conv_protonet_encoder Ran
ran on a synthesized input
ml4ai/fed-recon/fed_recon/models/protonet/model.py
code served (permissive licence) · get_code("9e06022d199018b2")
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 Sequential. 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 torch
import torch.nn as nn

torch.manual_seed(0)

ARGS = {
    "in_channels": 3,
    "hidden_size": 64,
    "out_channels": 128,
    "drop_rate": 0.5
}
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 Sequential — a Sequential output has no array shape of its own; none is 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
build_resnet18_encoder Ran
ran on a synthesized input
ml4ai/fed-recon/fed_recon/models/protonet/model.py
code served (permissive licence) · get_code("2691562526fe1504")
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 Sequential. 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 torch
import torch.nn as nn
import torchvision

torch.manual_seed(0)

ARGS = {
    "drop_rate": 0.5
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Sequential — a Sequential output has no array shape of its own; none is 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
conv3x3 Ran
ran; our contract draft was wrong, not the code
ml4ai/fed-recon/fed_recon/models/gradient_based/protonet_cnn.py
code served (permissive licence) · get_code("db298d586485a5d5")
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 Sequential. 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 torch
import torch.nn as nn

torch.manual_seed(0)

# Define arguments for conv3x3
in_channels = 3
out_channels = 16

ARGS = {
    "in_channels": in_channels,
    "out_channels": out_channels,
}
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 Sequential — a Sequential output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Sequential output the recorded ndim 1 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
cov Ran
ran; our contract draft was wrong, not the code
ml4ai/fed-recon/fed_recon/models/protonet/jsd.py
code served (permissive licence) · get_code("6e4be2f636908c33")
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, shape (4, 4) 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

torch.manual_seed(0)

# Create a small 2D tensor (2 samples, 4 features)
x = torch.randn(2, 4)

# rowvar: whether each row is a variable (False means each column is a variable)
rowvar = False

# bias: if False (0), use Bessel's correction (ddof=1)
bias = False

# ddof: delta degrees of freedom (None lets the function decide based on bias)
ddof = None

# aweights: optional weights for observations (None or a tensor/list)
aweights = None

ARGS = {
    'x': x,
    'rowvar': rowvar,
    'bias': bias,
    'ddof': ddof,
    'aweights': aweights
}
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, shape (4, 4) — shape (4, 4) 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
cov_batch Ran
ran on a synthesized input
ml4ai/fed-recon/fed_recon/models/protonet/jsd.py
code served (permissive licence) · get_code("779b3f44d1f8df3e")
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 4, dtype family float, shape (2, 3, 5, 5) 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

torch.manual_seed(0)

# Parameters for cov_batch:
# - embeddings: tensor of shape [batch_size, n_classes * k_shots_per_class, embedding_size]
# - n_classes: int, number of classes
# - k_shots_per_class: int, number of shots per class

batch_size = 2
n_classes = 3
k_shots_per_class = 4
embedding_size = 5

# Create embeddings tensor
# Shape: [batch_size, n_classes * k_shots_per_class, embedding_size]
embeddings = torch.randn(batch_size, n_classes * k_shots_per_class, embedding_size)

ARGS = {
    "embeddings": embeddings,
    "n_classes": n_classes,
    "k_shots_per_class": k_shots_per_class,
}
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 4, dtype family float, shape (2, 3, 5, 5) — shape (2, 3, 5, 5) 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
get_base_field_splits Ran
ran on a synthesized input
ml4ai/fed-recon/fed_recon/benchmark/mini_imagenet.py
code served (permissive licence) · get_code("9dfd1475a3cd632d")
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. 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 torch
import numpy as np
from typing import Dict, List, Optional

# Create sample dataset with image names for each class
dataset = {
    'base_class_1': [f'img_base1_{i}.jpg' for i in range(600)],
    'base_class_2': [f'img_base2_{i}.jpg' for i in range(600)],
    'field_class_1': [f'img_field1_{i}.jpg' for i in range(600)],
    'field_class_2': [f'img_field2_{i}.jpg' for i in range(600)],
    'hold_out_class_1': [f'img_holdout1_{i}.jpg' for i in range(600)],
}

base_classes = ['base_class_1', 'base_class_2']
field_classes = ['field_class_1', 'field_class_2']
hold_out_classes = ['hold_out_class_1']
class_ids = ['base_class_1', 'base_class_2', 'field_class_1', 'field_class_2', 'hold_out_class_1']

ARGS = {
    'dataset': dataset,
    'base_classes': base_classes,
    'field_classes': field_classes,
    'class_ids': class_ids,
    'training_examples_per_class_train': 450,
    'training_examples_per_class_field': 500,
    'hold_out_classes': hold_out_classes,
    'base_val_bool': True,
}
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 — a tuple output has no array shape of its own; none is 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
get_class_id_images_map Ran
ran on a synthesized input
ml4ai/fed-recon/fed_recon/benchmark/mini_imagenet.py
code served (permissive licence) · get_code("5aed8f64d6f3307f")
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 dict. 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 tempfile
import shutil

# Create a temporary directory with test JPG files
temp_dir = tempfile.mkdtemp()

# Create some test image files with names that start with a 9-character class_id
test_files = [
    "class001_a_001.jpg",
    "class001_a_002.jpg",
    "class001_b_001.jpg",
    "class002_x_001.jpg",
    "class002_y_001.jpg",
    "class003_z_001.jpg",
]

for filename in test_files:
    filepath = os.path.join(temp_dir, filename)
    with open(filepath, 'w') as f:
        f.write("fake image data")

# Define ARGS
ARGS = {
    "images_path": temp_dir
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
conv3x3 Not yet run
unverified (harvested, no recorded run)
ml4ai/fed-recon/fed_recon/models/protonet/model.py
pointer only (licence: MIT); the stored copy get_code serves, from joey-wang123/Semi-meta, is pointer only (licence: NONE) · get_code("a96935ee89a7588f")
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 joey-wang123/Semi-meta, 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. No invocation recorded.

get_base_field_classes Not yet run
unverified (harvested, no recorded run)
ml4ai/fed-recon/fed_recon/benchmark/mini_imagenet.py
code served (permissive licence) · get_code("424225d86345c889")
How it ran

no invocation recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 2 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 1 the same month, 2 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
conv3x3 3 other papers
1 the same month, 2 later
2109.14120 (2021-09)
Meta Learning on a Sequence of Imbalanced Domains with Difficulty Awareness
2209.01501 (2022-09)
Meta-Learning with Less Forgetting on Large-Scale Non-Stationary Task Distributions
cov 2 other papers
2 later
2410.01022 (2024-10)
Learning grid cells by predictive coding
2606.20666 (2026-06)
Robust Auto-associative Memory via Convolutional Restricted Hopfield Networks

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

We describe federated reconnaissance, a class of learning problems in which distributed clients learn new concepts independently and communicate that knowledge efficiently. In particular, we propose an evaluation framework and methodological baseline for a system in which each client is expected to learn a growing set of classes and communicate knowledge of those classes efficiently with other clients, such that, after knowledge merging, the clients should be able to accurately discriminate between classes in the superset of classes observed by the set of clients. We compare a range of learning algorithms for this problem and find that prototypical networks are a strong approach in that they are robust to catastrophic forgetting while incorporating new information efficiently. Furthermore, we show that the online averaging of prototype vectors is effective for client model merging and requires only a small amount of communication overhead, memory, and update time per class with no gradient-based learning or hyperparameter tuning. Additionally, to put our results in context, we find that a simple, prototypical network with four convolutional layers significantly outperforms complex, state of the art continual learning algorithms, increasing the accuracy by over 22% after learning 600 Omniglot classes and over 33% after learning 20 mini-ImageNet classes incrementally. These results have important implications for federated reconnaissance and continual learning more generally by demonstrating that communicating feature vectors is an efficient, robust, and effective means for distributed, continual learning.

For agents

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

get_harvested_code_for_paper("2109.00150")
get_code_for_paper("2109.00150")
have("2109.00150")

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

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

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

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

Connect an agent — have() is free.