SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2606.27527 · ICML · 2026

Large Language Model Teaches Visual Students: Cross-Modality Transfer of Fine-Grained Conceptual Knowledge

Yong Lee, Liang, Zhuoran Yu, Thomas Shih-Chao

arXiv · PDF · Open in the Atlas

Code that ran

2 of 14 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 1 has no contract verdict; 1 failure of our instrument; 12 no recorded run), measured 2026-11-24; 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/2606.27527.json · badge: /api/ran/2606.27527.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
lliangthomas/lavid community
Papers with Code archive
2 ran · 12 no recorded run
FunctionStatusWhere it lives
MobileNetV2 Ran
ran on a synthesized input
lliangthomas/lavid/lavid/models/distill_models.py
code served (permissive licence) · get_code("c7f6bd1ad2fcc73d")
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 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 as nn
import numpy as np

INIT_ARGS = {
    'num_classes': 4,
    'width_mult': 0.5,
    'inverted_residual_setting': [
        [1, 8, 1, 1],
        [6, 12, 2, 2],
        [6, 16, 1, 1]
    ],
    'round_nearest': 4,
    'block': None,
    'norm_layer': None
}

# Create a small input tensor: batch_size=2, channels=3, height=8, width=6
input_tensor = torch.randn(2, 3, 8, 6)

ARGS = {
    'x': input_tensor
}
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
numpy, 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 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)
vit_extractor Ran
ran; our contract draft was wrong, not the code
lliangthomas/lavid/lavid/models/distill_models.py
code served (permissive licence) · get_code("bfd4a9504f4a09c3")
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 torch.nn as nn

torch.manual_seed(0)

class MockEncoder(nn.Module):
    def __init__(self, embed_dim, num_patches):
        super().__init__()
        self.embed_dim = embed_dim
        self.num_patches = num_patches
    
    def forward(self, x):
        # x shape: (batch_size, num_patches + 1, embed_dim)
        # Return features of same shape
        return x

class MockHeads(nn.Module):
    def __init__(self, embed_dim, num_classes=10):
        super().__init__()
        self.linear = nn.Linear(embed_dim, num_classes)
    
    def forward(self, x):
        # x shape: (batch_size, embed_dim)
        return self.linear(x)

class MockViT(nn.Module):
    def __init__(self):
        super().__init__()
        self.embed_dim = 4
        self.num_patches = 3
        self.class_token = nn.Parameter(torch.randn(1, 1, self.embed_dim))
        self.encoder = MockEncoder(self.embed_dim, self.num_patches)
        self.heads = MockHeads(self.embed_dim, num_classes=10)
    
    def _process_input(self, x):
        # x shape: (batch_size, channels, height, width) or similar
        # Return: (batch_size, num_patches, embed_dim)
        batch_size = x.shape[0]
        return torch.randn(batch_size, self.num_patches, self.embed_dim)

model = MockViT()
x = torch.randn(2, 3, 8, 8)

ARGS = {
    "model": model,
    "x": x
}
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 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
BaselineModel Not yet run
unverified (harvested, no recorded run)
lliangthomas/lavid/lavid/models/distill_models.py
code served (permissive licence) · get_code("52bfbe3134b33241")
How it ran

no invocation recorded.

DatasetSpec Not yet run
unverified (harvested, no recorded run)
lliangthomas/lavid/lavid/models/distill_models.py
code served (permissive licence) · get_code("6c22a861c8badc04")
How it ran

no invocation recorded.

KDLaViDModel Not yet run
unverified (harvested, no recorded run)
lliangthomas/lavid/lavid/models/distill_models.py
code served (permissive licence) · get_code("36f82a220c001cf4")
How it ran

no invocation recorded.

ResNet Not yet run
unverified (harvested, no recorded run)
lliangthomas/lavid/lavid/models/distill_models.py
code served (permissive licence) · get_code("70bff687c75fed95")
How it ran

no invocation recorded.

ShuffleNetV2 Not yet run
unverified (harvested, no recorded run)
lliangthomas/lavid/lavid/models/distill_models.py
code served (permissive licence) · get_code("a534d1c7f3108cfa")
How it ran

no invocation recorded.

TrainConfig Not yet run
unverified (harvested, no recorded run)
lliangthomas/lavid/lavid/models/distill_models.py
code served (permissive licence) · get_code("cfdbd9ea95785470")
How it ran

no invocation recorded.

_resnet Not yet run
unverified (harvested, no recorded run)
lliangthomas/lavid/lavid/models/distill_models.py
code served (permissive licence) · get_code("de3c723519b3f8d5")
How it ran

no invocation recorded.

_shufflenetv2 Not yet run
unverified (harvested, no recorded run)
lliangthomas/lavid/lavid/models/distill_models.py
code served (permissive licence) · get_code("11c036905648a071")
How it ran

no invocation recorded.

mobilenet_v2 Not yet run
unverified (harvested, no recorded run)
lliangthomas/lavid/lavid/models/distill_models.py
code served (permissive licence) · get_code("651da65a78a6815e")
How it ran

no invocation recorded.

resnet18 Not yet run
unverified (harvested, no recorded run)
lliangthomas/lavid/lavid/models/distill_models.py
code served (permissive licence) · get_code("3ff312624b74ee8b")
How it ran

no invocation recorded.

resnet50 Not yet run
unverified (harvested, no recorded run)
lliangthomas/lavid/lavid/models/distill_models.py
code served (permissive licence) · get_code("f8005d9f88b4feb9")
How it ran

no invocation recorded.

shufflenet_v2_x1_0 Not yet run
unverified (harvested, no recorded run)
lliangthomas/lavid/lavid/models/distill_models.py
code served (permissive licence) · get_code("4bb7b90e8f9e95cf")
How it ran

no invocation recorded.

Also present in other papers' code

Of 14 samples lifted from this paper's linked repositories, 14 carry a function identity and 0 do not. Of the 14 distinct functions with an identity, 5 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 0 the same month, 1 later) and 9 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
resnet18
brick of this paper's assembly: helper
95 other papers
93 dated earlier, 1 later, 1 undated
1805.00907 (2018-05)
Glow: Graph Lowering Compiler Techniques for Neural Networks
1902.08153 (2019-02)
Learned Step Size Quantization
1904.01355 (2019-04)
FCOS: Fully Convolutional One-Stage Object Detection
and 92 more not named here
_resnet
brick of this paper's assembly: helper
8 other papers
8 dated earlier
2103.10211 (2021-03)
Space-Time Crop & Attend: Improving Cross-modal Video Representation Learning
2105.03245 (2021-05)
Adaptive Focus for Efficient Video Recognition
2107.02156 (2021-07)
Do Different Tracking Tasks Require Different Appearance Models?
and 5 more not named here
mobilenet_v2
brick of this paper's assembly: helper
5 other papers
5 dated earlier
2105.03245 (2021-05)
Adaptive Focus for Efficient Video Recognition
2211.16231 (2022-11)
Curriculum Temperature for Knowledge Distillation
2310.04918 (2023-10)
SWAP: Sparse Entropic Wasserstein Regression for Robust Network Pruning
and 2 more not named here
resnet50
brick of this paper's assembly: helper
3 other papers
3 dated earlier
2105.03245 (2021-05)
Adaptive Focus for Efficient Video Recognition
2402.01887 (2024-02)
On f -Divergence Principled Domain Adaptation: An Improved Framework
2603.08426 (2026-03)
Grow, Assess, Compress: Adaptive Backbone Scaling for Memory-Efficient Class Incremental Learning
shufflenet_v2_x1_0
brick of this paper's assembly: helper
1 other paper
1 dated earlier
2211.16231 (2022-11)
Curriculum Temperature for Knowledge Distillation

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

Large Language Models (LLMs) possess broad conceptual knowledge acquired through largescale text pretraining, yet their potential to supervise models in other modalities remains underexplored. In this work, we propose LaViD-Language-to-Visual Knowledge Distillation-a simple and effective framework for transferring high-level semantic knowledge from a language-only teacher to a vision-only student model. Instead of relying on paired multimodal data, LaViD elicits conceptual signals from an LLM by prompting it to generate multiplechoice questions (MCQs) that probe semantic distinctions between visual classes. Each class is mapped to a soft label distribution over these MCQs, forming a rich conceptual signature that guides the student through an auxiliary distillation loss. Notably, despite using a languageonly teacher without access to image data, LaViD consistently outperforms recent methods like MaKD that distill from vision-language models across multiple fine-grained benchmarks. It also achieves competitive or superior performance compared to state-of-the-art visual distillation methods such as DKD and MLKD, with further gains when combined with logit standardization. On the Waterbirds dataset, LaViD substantially improves worst-group accuracy, demonstrating enhanced robustness to spurious correlations with distillation. Code is available at https: //github.com/lliangthomas/lavid. In this work, we introduce Language-to-Visual Knowledge Distillation (LaViD), a simple yet effective approach that distills general knowledge from text-only large language models (LLMs) into visual student models. Rather than relying on paired multimodal data or task-specific supervision, LaViD uses the broad world knowledge encoded in LLMs to provide conceptual guidance. It does so by eliciting structured and interpretable signals through multiple-choice questions that probe semantic distinctions between classes. This allows visual models to learn not just from labeled data,

For agents

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

get_harvested_code_for_paper("2606.27527")
get_code_for_paper("2606.27527")
have("2606.27527")

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

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

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

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

Connect an agent — have() is free.