SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2205.10536 · NeurIPS · 2022

Knowledge Distillation from A Stronger Teacher

Chang Xu, Shan You, Fei Wang, Chen Qian, Tao Huang

arXiv · PDF · Open in the Atlas

Code that ran

10 of 11 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (1 of them constructed an object rather than computing a result; 4 honoured the contract we drafted, 4 violated it and 2 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/2205.10536.json · badge: /api/ran/2205.10536.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
hunto/dist_kd canonical (classifier label)
classifier basis: classifier_2025
5 ran · 0 no recorded run
hunto/image_classification_sota community
Papers with Code archive
4 ran · 1 no recorded run
yoshitomo-matsubara/torchdistill community
Papers with Code archive
1 ran · 0 no recorded run
FunctionStatusWhere it lives
DIST Ran
ran on a synthesized input
hunto/dist_kd/segmentation/losses/dist_kd.py
code served (permissive licence) · get_code("18a915e624ecb904")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, 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 torch
import torch.nn as nn
from scipy.stats import pearsonr

INIT_ARGS = {
    'beta': 1.0,
    'gamma': 1.0
}

# Create small tensors for y_s and y_t with batch size 2, feature dim 4
y_s = torch.randn(2, 4)
y_t = torch.randn(2, 4)

ARGS = {
    'y_s': y_s,
    'y_t': y_t
}
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
scipy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 0, dtype family float — no output shape is stated: observe_signature.py observed this class with its constructor sizes canonicalised where it could, which the node does not record, so its shape is not stated as this setup block's
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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
DISTLoss Ran
ran on a synthesized input · constructed an object; no result was computed
yoshitomo-matsubara/torchdistill/torchdistill/losses/mid_level.py
code served (permissive licence) · get_code("0c2f8410b866e04e")
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 an instance of its own class, DISTLoss: the run constructed the object and did not call it, so no result was computed. 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
from torch.nn.functional import adaptive_avg_pool2d, adaptive_max_pool2d, normalize, cosine_similarity

torch.manual_seed(0)

# Define the DISTLoss class (from the function signature)
class DISTLoss(nn.Module):
    def __init__(self, student_module_path, student_module_io, teacher_module_path, teacher_module_io, beta=1.0, gamma=1.0, tau=1.0, eps=1e-08, **kwargs):
        super().__init__()
        self.student_module_path = student_module_path
        self.student_module_io = student_module_io
        self.teacher_module_path = teacher_module_path
        self.teacher_module_io = teacher_module_io
        self.beta = beta
        self.gamma = gamma
        self.tau = tau
        self.eps = eps

    @staticmethod
    def pearson_correlation(y_s, y_t, eps):
        return cosine_similarity(y_s - y_s.mean(1).unsqueeze(1), y_t - y_t.mean(1).unsqueeze(1), eps=eps)

    def inter_class_relation(self, y_s, y_t):
        return 1 - self.pearson_correlation(y_s, y_t, self.eps).mean()

    def intra_class_relation(self, y_s, y_t):
        return self.inter_class_relation(y_s.transpose(0, 1), y_t.transpose(0, 1))

    def forward(self, student_io_dict, teacher_io_dict, *args, **kwargs):
        student_logits = student_io_dict[self.student_module_path][self.student_module_io]
        teacher_logits = teacher_io_dict[self.teacher_module_path][self.teacher_module_io]
        y_s = (student_logits / self.tau)
        return y_s

ARGS = {
    'student_module_path': '.',
    'student_module_io': 'output',
    'teacher_module_path': '.',
    'teacher_module_io': 'output',
    'beta': 1.0,
    'gamma': 1.0,
    'tau': 1.0,
    'eps': 1e-08,
}
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 DISTLoss — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a DISTLoss 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
cosine_similarity Ran
ran, violated the contract we drafted
hunto/dist_kd/segmentation/losses/dist_kd.py
code served (permissive licence) · get_code("38ede58bd9091f21")
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 1, dtype family float, shape (2,) 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)

# The function computes cosine similarity between two tensors
# It expects:
# - x: tensor with shape (batch_size, dim) that supports .sum(1), .norm(dim=1), and element-wise multiplication
# - y: tensor with shape (batch_size, dim) that supports .sum(1), .norm(dim=1), and element-wise multiplication
# - eps: small float for numerical stability

x = torch.randn(2, 4)
y = torch.randn(2, 4)
eps = 1e-08

ARGS = {
    "x": x,
    "y": y,
    "eps": eps
}
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 1, dtype family float, shape (2,) — shape (2,) 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
cosine_similarity Ran
ran, violated the contract we drafted
hunto/image_classification_sota/lib/models/losses/dist_kd.py
code served (permissive licence) · get_code("b5f44526e6cc6a9d")
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 1, dtype family float, shape (2,) 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 two small tensors with shape (batch_size=2, dim=4)
a = torch.randn(2, 4)
b = torch.randn(2, 4)

ARGS = {
    'a': a,
    'b': b,
    'eps': 1e-08
}
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 1, dtype family float, shape (2,) — shape (2,) 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
inter_class_relation Ran
ran, honoured the contract we drafted
hunto/dist_kd/segmentation/losses/dist_kd.py
code served (permissive licence) · get_code("b45038694ef6bb75")
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 0, dtype family float, 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

torch.manual_seed(0)

# The function inter_class_relation takes two parameters: y_s and y_t
# Both are used in pearson_correlation, which calls cosine_similarity
# cosine_similarity expects tensors where:
#   - (x * y).sum(1) sums along dimension 1
#   - x.norm(dim=1) computes norm along dimension 1
#   - x.mean(1).unsqueeze(1) computes mean along dimension 1 and adds a dimension
# This means x and y should be 2D tensors (batch_size, feature_dim)

# Create small tensors: batch_size=2, feature_dim=4
y_s = torch.randn(2, 4)
y_t = torch.randn(2, 4)

ARGS = {
    "y_s": y_s,
    "y_t": y_t,
}
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 0, dtype family float, 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
inter_class_relation Ran
ran, honoured the contract we drafted
hunto/image_classification_sota/lib/models/losses/dist_kd.py
code served (permissive licence) · get_code("f26d395fbb7834a6")
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 0, dtype family float, 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)

# Create two small tensors for y_s and y_t
# The function expects tensors where:
# - .mean(1) is called (mean over dimension 1)
# - .unsqueeze(1) is called (add dimension at index 1)
# - .norm(dim=1) is called (norm over dimension 1)
# - .sum(1) is called (sum over dimension 1)
# - .mean() is called (global mean)
# So we need 2D tensors with shape (batch_size, feature_dim)

batch_size = 2
feature_dim = 4

y_s = torch.randn(batch_size, feature_dim)
y_t = torch.randn(batch_size, feature_dim)

ARGS = {
    "y_s": y_s,
    "y_t": y_t,
}
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 0, dtype family float, 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
intra_class_relation Ran
ran, honoured the contract we drafted
hunto/dist_kd/segmentation/losses/dist_kd.py
code served (permissive licence) · get_code("962968b3b922d520")
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 0, dtype family float, 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

torch.manual_seed(0)

# y_s and y_t are used in intra_class_relation, which:
# 1. transposes them (0, 1)
# 2. passes them to inter_class_relation
# 3. inter_class_relation passes them to pearson_correlation
# 4. pearson_correlation does:
#    - x.mean(1).unsqueeze(1) - computes mean along dim 1, unsqueezes
#    - y.mean(1).unsqueeze(1) - same for y
#    - calls cosine_similarity which does:
#      - (x * y).sum(1) - element-wise mult, sum along dim 1
#      - x.norm(dim=1) - norm along dim 1
#      - y.norm(dim=1) - norm along dim 1
#    - .mean() on result

# So y_s and y_t need to be 2D tensors where:
# - dim 0 is classes/samples
# - dim 1 is features/logits

# After transpose in intra_class_relation, they become (features, samples)
# Then in inter_class_relation they go to pearson_correlation
# pearson_correlation expects x and y to support:
# - .mean(1), .unsqueeze(1), .norm(dim=1), element-wise ops, .sum(1), .mean()

# Make batch_size=2, num_classes=4
y_s = torch.randn(2, 4)
y_t = torch.randn(2, 4)

ARGS = {
    "y_s": y_s,
    "y_t": y_t,
}
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 0, dtype family float, 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
intra_class_relation Ran
ran, honoured the contract we drafted
hunto/image_classification_sota/lib/models/losses/dist_kd.py
code served (permissive licence) · get_code("9837c466938259ff")
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 0, dtype family float, 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)

# Analyze the function:
# intra_class_relation(y_s, y_t) calls:
#   - inter_class_relation(y_s.transpose(0, 1), y_t.transpose(0, 1))
# inter_class_relation(y_s, y_t) calls:
#   - pearson_correlation(y_s, y_t)
#   - .mean() on the result
# pearson_correlation(a, b, eps=1e-08) calls:
#   - a.mean(1).unsqueeze(1) - compute mean across dimension 1, then add dimension
#   - b.mean(1).unsqueeze(1)
#   - cosine_similarity() which calls:
#     - (a * b).sum(1)
#     - a.norm(dim=1)
#     - b.norm(dim=1)

# So y_s and y_t need to be 2D tensors that support:
# - .transpose(0, 1)
# - .mean(1), .unsqueeze(1)
# - .norm(dim=1)
# - element-wise multiplication and sum

# Create small distinct-sized tensors: batch_size=2, num_classes=4
# After transpose they'll be 4x2
y_s = torch.randn(2, 4)
y_t = torch.randn(2, 4)

ARGS = {
    "y_s": y_s,
    "y_t": y_t,
}
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 0, dtype family float, 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
pearson_correlation Ran
ran, violated the contract we drafted
hunto/dist_kd/segmentation/losses/dist_kd.py
code served (permissive licence) · get_code("d00eea76cc523c64")
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 1, dtype family float, shape (2,) 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 small tensors for x and y
# The function uses:
# - x.mean(1) and y.mean(1) - mean along dimension 1
# - x.norm(dim=1) and y.norm(dim=1) - norm along dimension 1
# - (x * y).sum(1) - element-wise multiply and sum along dimension 1
# - unsqueeze(1) - add dimension
# So we need 2D tensors with batch size and feature dimension

x = torch.randn(2, 4)  # batch_size=2, features=4
y = torch.randn(2, 4)  # batch_size=2, features=4

ARGS = {
    "x": x,
    "y": y,
    "eps": 1e-08,
}
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 1, dtype family float, shape (2,) — shape (2,) 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
pearson_correlation Ran
ran, violated the contract we drafted
hunto/image_classification_sota/lib/models/losses/dist_kd.py
code served (permissive licence) · get_code("8eb964c14770de5c")
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 1, dtype family float, shape (2,) 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 small tensors for testing
# Shape: (batch_size=2, feature_dim=4)
a = torch.randn(2, 4)
b = torch.randn(2, 4)

# Optional eps parameter with default value
eps = 1e-08

ARGS = {
    "a": a,
    "b": b,
    "eps": eps,
}
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 1, dtype family float, shape (2,) — shape (2,) 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
DIST Not yet run
unverified (harvested, no recorded run)
hunto/image_classification_sota/lib/models/losses/dist_kd.py
code served (permissive licence) · get_code("1def32553f080f5d")
How it ran

no invocation recorded.

Also present in other papers' code

Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 5 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 5 later) and 4 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
inter_class_relation
brick of this paper's assembly: helper, loss
5 other papers
1 dated earlier, 4 later
2204.02557 (2022-04)
MixFormer: Mixing Features across Windows and Dimensions
2305.15032 (2023-05)
How to Distill your BERT: An Empirical Study on the Impact of Weight Initialisation and Distillation Objectives
2406.01512 (2024-06)
MAD: Multi-Alignment MEG-to-Text Decoding
and 2 more not named here
pearson_correlation
brick of this paper's assembly: helper
3 other papers
1 dated earlier, 2 later
2204.02557 (2022-04)
MixFormer: Mixing Features across Windows and Dimensions
2405.14124 (2024-05)
Mixture of Experts Meets Prompt-Based Continual Learning
2509.23871 (2025-09)
Taught Well Learned Ill: Towards Distillation-conditional Backdoor Attack
cosine_similarity
brick of this paper's assembly: helper
2 other papers
2 later
2405.14124 (2024-05)
Mixture of Experts Meets Prompt-Based Continual Learning
2509.23871 (2025-09)
Taught Well Learned Ill: Towards Distillation-conditional Backdoor Attack
cosine_similarity
brick of this paper's assembly: helper
1 other paper
1 later
2406.01512 (2024-06)
MAD: Multi-Alignment MEG-to-Text Decoding
pearson_correlation
brick of this paper's assembly: helper
1 other paper
1 later
2406.01512 (2024-06)
MAD: Multi-Alignment MEG-to-Text Decoding

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

Unlike existing knowledge distillation methods focus on the baseline settings, where the teacher models and training strategies are not that strong and competing as state-of-the-art approaches, this paper presents a method dubbed DIST to distill better from a stronger teacher. We empirically find that the discrepancy of predictions between the student and a stronger teacher may tend to be fairly severer. As a result, the exact match of predictions in KL divergence would disturb the training and make existing methods perform poorly. In this paper, we show that simply preserving the relations between the predictions of teacher and student would suffice, and propose a correlation-based loss to capture the intrinsic inter-class relations from the teacher explicitly. Besides, considering that different instances have different semantic similarities to each class, we also extend this relational match to the intra-class level. Our method is simple yet practical, and extensive experiments demonstrate that it adapts well to various architectures, model sizes and training strategies, and can achieve state-of-the-art performance consistently on image classification, object detection, and semantic segmentation tasks. Code is available at: https://github.com/hunto/DIST_KD.

For agents

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

get_harvested_code_for_paper("2205.10536")
get_code_for_paper("2205.10536")
have("2205.10536")

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

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

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

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

Connect an agent — have() is free.