SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2204.02136 · CVPR · 2022

Overcoming Catastrophic Forgetting in Incremental Object Detection via Elastic Response Distillation

Hangjie Yuan, Tao Feng, Mang Wang

arXiv · PDF · Open in the Atlas

Code that ran

4 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 0 have no contract verdict; 4 failures of our instrument; 2 no recorded run), measured 2026-11-22; 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/2204.02136.json · badge: /api/ran/2204.02136.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
Hi-FT/ERD canonical (classifier label)
classifier basis not recorded on the link
4 ran · 2 no recorded run
FunctionStatusWhere it lives
check_link Ran
ran; our contract draft was wrong, not the code
Hi-FT/ERD/.dev_scripts/check_links.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from opendatalab/MLS-BRN, is pointer only (licence: NONE) · get_code("4e2dcdfe578946a0")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from opendatalab/MLS-BRN, 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.

check_url Ran
ran; our contract draft was wrong, not the code
Hi-FT/ERD/.dev_scripts/check_links.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from opendatalab/MLS-BRN, is pointer only (licence: NONE) · get_code("cc93fdc812eca8f7")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from opendatalab/MLS-BRN, 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.

process_checkpoint Ran
ran; our contract draft was wrong, not the code
Hi-FT/ERD/.dev_scripts/gather_models.py
code served (permissive licence) · get_code("138e112e22b0314e")
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 str. 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 tempfile
import os

torch.manual_seed(0)

# Create a temporary directory for test files
tmpdir = tempfile.mkdtemp()

# Create a valid checkpoint file
in_file = os.path.join(tmpdir, 'checkpoint.pth')
out_file = os.path.join(tmpdir, 'processed.pth')

# Build a checkpoint with state_dict, optimizer, and ema_ keys
checkpoint = {
    'state_dict': {
        'layer1.weight': torch.randn(4, 3),
        'layer1.bias': torch.randn(4),
        'ema_layer1.weight': torch.randn(4, 3),
        'ema_layer1.bias': torch.randn(4),
    },
    'optimizer': {
        'state': {},
        'param_groups': []
    },
    'epoch': 10
}

# Save the checkpoint to disk
torch.save(checkpoint, in_file)

ARGS = {
    'in_file': in_file,
    'out_file': out_file
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
process_model_info Ran
ran; our contract draft was wrong, not the code
Hi-FT/ERD/.dev_scripts/convert_test_benchmark_script.py
code served (permissive licence) · get_code("3175ca3b1ec8c7b9")
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.path as osp

# Analyze what process_model_info needs:
# - model_info: dict with 'config' and 'checkpoint' keys (both strings with .strip() called)
# - work_dir: string parameter (though it's overwritten in the function)

model_info = {
    'config': '  /path/to/config_file.py  ',  # Has whitespace to test .strip()
    'checkpoint': '  /path/to/checkpoint.pth  '  # Has whitespace to test .strip()
}

work_dir = '/some/work/directory'

ARGS = {
    'model_info': model_info,
    'work_dir': work_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
check_path Not yet run
unverified (harvested, no recorded run)
Hi-FT/ERD/.dev_scripts/check_links.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from opendatalab/MLS-BRN, is pointer only (licence: NONE) · get_code("fd08138d4bde9cfa")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from opendatalab/MLS-BRN, 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.

ordered_yaml_dump Not yet run
unverified (harvested, no recorded run)
Hi-FT/ERD/.dev_scripts/gather_models.py
code served (permissive licence) · get_code("8ff99a6bd2ebf598")
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, 6 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 2 the same month, 6 later) and 0 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
ordered_yaml_dump 31 other papers
10 dated earlier, 1 the same month, 20 later
1611.02644 (2016-11)
Multispectral Deep Neural Networks for Pedestrian Detection
1906.07155 (2019-06)
MMDetection: Open MMLab Detection Toolbox and Benchmark
2105.01928 (2021-05)
Instances as Queries
and 28 more not named here
process_checkpoint 22 other papers
8 dated earlier, 1 the same month, 13 later
1611.02644 (2016-11)
Multispectral Deep Neural Networks for Pedestrian Detection
1906.07155 (2019-06)
MMDetection: Open MMLab Detection Toolbox and Benchmark
2105.01928 (2021-05)
Instances as Queries
and 19 more not named here
check_link 9 other papers
1 dated earlier, 8 later
1906.07155 (2019-06)
MMDetection: Open MMLab Detection Toolbox and Benchmark
2209.09841 (2022-09)
Exploring Inconsistent Knowledge Distillation for Object Detection with Data Augmentation
2212.07784 (2022-12)
RTMDet: An Empirical Study of Designing Real-Time Object Detectors
and 6 more not named here
check_path 9 other papers
1 dated earlier, 8 later
1906.07155 (2019-06)
MMDetection: Open MMLab Detection Toolbox and Benchmark
2209.09841 (2022-09)
Exploring Inconsistent Knowledge Distillation for Object Detection with Data Augmentation
2212.07784 (2022-12)
RTMDet: An Empirical Study of Designing Real-Time Object Detectors
and 6 more not named here
check_url 9 other papers
1 dated earlier, 8 later
1906.07155 (2019-06)
MMDetection: Open MMLab Detection Toolbox and Benchmark
2209.09841 (2022-09)
Exploring Inconsistent Knowledge Distillation for Object Detection with Data Augmentation
2212.07784 (2022-12)
RTMDet: An Empirical Study of Designing Real-Time Object Detectors
and 6 more not named here
process_model_info 3 other papers
3 later
2212.07784 (2022-12)
RTMDet: An Empirical Study of Designing Real-Time Object Detectors
2401.02361 (2024-01)
An Open and Comprehensive Pipeline for Unified Object Grounding and Detection
2505.19028 (2025-05)
InfoChartQA: A Benchmark for Multimodal Question Answering on Infographic Charts

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

Repositories linked to this paper

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

Abstract

Traditional object detectors are ill-equipped for incremental learning. However, fine-tuning directly on a welltrained detection model with only new data will lead to catastrophic forgetting. Knowledge distillation is a flexible way to mitigate catastrophic forgetting. In Incremental Object Detection (IOD), previous work mainly focuses on distilling for the combination of features and responses. However, they under-explore the information that contains in responses. In this paper, we propose a response-based incremental distillation method, dubbed Elastic Response Distillation (ERD), which focuses on elastically learning responses from the classification head and the regression head. Firstly, our method transfers category knowledge while equipping student detector with the ability to retain localization information during incremental learning. In addition, we further evaluate the quality of all locations and provide valuable responses by the Elastic Response Selection (ERS) strategy. Finally, we elucidate that the knowledge from different responses should be assigned with different importance during incremental distillation. Extensive experiments conducted on MS COCO demonstrate our method achieves state-of-the-art result, which substantially narrows the performance gap towards full training. Code is available at https://github.com/Hi-FT/ERD.

For agents

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

get_harvested_code_for_paper("2204.02136")
get_code_for_paper("2204.02136")
have("2204.02136")

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

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

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

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

Connect an agent — have() is free.