Papers
Topics
Authors
Recent
Search
2000 character limit reached

Consensus-Oriented Masked Distillation (CoMAD)

Updated 8 July 2026
  • The paper demonstrates that CoMAD distills knowledge from three strong ViT-Base teachers (MAE, MoCo v3, iBOT) into a lightweight ViT-Tiny student using dual-level KL-based objectives.
  • It introduces asymmetric masking for student and teachers, enabling complementary representations to be selectively fused via a non-parametric token-wise consensus gating mechanism.
  • Empirical results on ImageNet-1K, ADE20K, and MS-COCO show enhanced performance over single-teacher methods by effectively integrating heterogeneous SSL priors.

Searching arXiv for the CoMAD paper and key related works to ground citations. arxiv.search 3query3 "3ti:CoMAD: A Multiple-Teacher Self-Supervised Distillation Framework3" arxiv.search({"3query3 A Multiple-Teacher Self-Supervised Distillation Framework\"","max_results":5}) Consensus-oriented Masked Distillation (CoMAD) is a multiple-teacher self-supervised distillation framework for compressing several large self-supervised Vision Transformers into a compact student while preserving complementary representational priors. Introduced in "CoMAD: A Multiple-Teacher Self-Supervised Distillation Framework" (&&&3ti:CoMAD: A Multiple-Teacher Self-Supervised Distillation Framework3&&&), the method distills from three pretrained ViT-Base teachers—MAE, MoCo v3, and iBOT—into a small student such as ViT-Tiny by combining asymmetric masking, lightweight feature alignment, token-wise consensus gating, and dual-level KL-based distillation. The framework is positioned at the intersection of masked image modeling, multi-teacher knowledge distillation, and compact SSL transfer, and is evaluated primarily on ImageNet-3query3K, ADE3ti:\3ti:CoMAD: A Multiple-Teacher Self-Supervised Distillation Framework3K, and MS-COCO; the teacher families themselves derive from masked image modeling, contrastive or EMA-based SSL, and hybrid masked-token plus clustering paradigms (&&&3query3&&&, &&&3ti:\3&&&, Zhou et al., 2021).

3query3. Motivation and problem formulation

The framework addresses two properties of contemporary visual self-supervised learning. First, major SSL paradigms such as contrastive learning, masked image modeling, and clustering-based methods are typically pretrained in isolation, so several strong but different ViT-Base models emerge, each capturing complementary structure. Second, ViT-Base and ViT-Large encoders remain expensive at inference, which is problematic for deployment in edge or mobile scenarios (&&&3ti:CoMAD: A Multiple-Teacher Self-Supervised Distillation Framework3&&&).

Within this setting, CoMAD is defined by three design goals. It seeks to unify the knowledge of multiple heterogeneous SSL teachers—specifically MAE, MoCo v3, and iBOT—into one compact student; it aims to exploit complementary priors from different SSL paradigms rather than relying on a single teacher or static fusion; and it aims to retain a lightweight distillation mechanism, with a token-wise gating module that has no learnable parameters. The compact target model emphasized in the experiments is a ViT-Tiny with approximately 5.4M parameters.

A central premise of the method is that naive multi-teacher fusion is suboptimal. The paper explicitly contrasts CoMAD with single-teacher distillation, uniform averaging, static weights, and symmetric masking. This suggests that the method treats disagreement among heterogeneous SSL teachers as a primary optimization problem rather than as noise to be averaged away. In the paper’s formulation, CoMAD is conceptually “masked reconstruction + multi-teacher KD” with a non-parametric, token-wise consensus mechanism (&&&3ti:CoMAD: A Multiple-Teacher Self-Supervised Distillation Framework3&&&).

3ti:\3. Architectural configuration and teacher–student roles

The default student is a ViT-Tiny with patch size PRESERVED_PLACEHOLDER_3ti:CoMAD: A Multiple-Teacher Self-Supervised Distillation Framework3, depth PRESERVED_PLACEHOLDER_3query3, embedding dimension PRESERVED_PLACEHOLDER_3ti:\3, and approximately 5.4M parameters. The teachers are three frozen ViT-Base encoders with patch size $16$, depth LT=12L_T=12, and embedding dimension DT=768D_T=768. Each teacher is pretrained on ImageNet-3query3K for 33ti:CoMAD: A Multiple-Teacher Self-Supervised Distillation Framework3ti:CoMAD: A Multiple-Teacher Self-Supervised Distillation Framework3^ epochs with a distinct SSL objective: MAE emphasizes masked-image reconstruction and contextual modeling from partial views; MoCo v3 emphasizes contrastive or EMA-style discriminative semantics and invariances; iBOT emphasizes hybrid masked-token learning with clustering or online tokenization and is described as strong in patch-level semantics and token grouping (&&&3ti:CoMAD: A Multiple-Teacher Self-Supervised Distillation Framework3&&&).

The pipeline begins from an input image xRH×W×3x\in\mathbb{R}^{H\times W\times 3}, for example 224×224224\times224, which is split into N=HWP2N=\frac{HW}{P^2} patches. For P=16P=16, this yields a PRESERVED_PLACEHOLDER_3query3ti:CoMAD: A Multiple-Teacher Self-Supervised Distillation Framework3^ grid of tokens. Student and teacher token sequences are then masked independently, forwarded through their respective encoders, projected into a common student-dimensional space, fused token-wise, and matched through two KL objectives. Only the student and small teacher-side adapters are trained; all teacher encoders remain frozen.

Feature alignment is handled by a simple linear adapter followed by LayerNorm, shared across token positions for each teacher branch:

PRESERVED_PLACEHOLDER_3query3query3^

with PRESERVED_PLACEHOLDER_3query3ti:\3^ and PRESERVED_PLACEHOLDER_3query33. This alignment stage is the only trainable component on the teacher side. The description of CoMAD as “lightweight” and “essentially parameter-free” therefore refers specifically to the fusion or gating mechanism, not to the complete absence of auxiliary trainable components.

3. Asymmetric masking and consensus-oriented fusion

CoMAD’s masking policy is asymmetric. The student uses mask ratio PRESERVED_PLACEHOLDER_3query34, so it keeps only PRESERVED_PLACEHOLDER_3query35 of image patches. The three teachers use lighter masks with ratios

PRESERVED_PLACEHOLDER_3query36

so they keep PRESERVED_PLACEHOLDER_3query37, PRESERVED_PLACEHOLDER_3query38, and PRESERVED_PLACEHOLDER_3query39 of patches respectively (&&&3ti:CoMAD: A Multiple-Teacher Self-Supervised Distillation Framework3&&&). Masking is applied after patch embedding and is independent across teachers; the class token is always retained:

PRESERVED_PLACEHOLDER_3ti:\3ti:CoMAD: A Multiple-Teacher Self-Supervised Distillation Framework3^

The stated rationale is that the teachers operate with richer context than the student and that different teachers observe different subsets of patches. Because the student sees only one quarter of the image tokens, it must interpolate missing features from the fused teacher signals. The paper reports that this asymmetry is important empirically: a student mask ratio of PRESERVED_PLACEHOLDER_3ti:\3query3^ degrades performance because the student is starved of input, whereas PRESERVED_PLACEHOLDER_3ti:\3ti:\3^ reduces the challenge of distillation and also lowers gains.

Fusion is performed per sample and per token, including both patch and class tokens. For each token, CoMAD computes a student–teacher cosine affinity

PRESERVED_PLACEHOLDER_3ti:\33^

and an inter-teacher consensus score

PRESERVED_PLACEHOLDER_3ti:\34

These are added,

PRESERVED_PLACEHOLDER_3ti:\35

and normalized over teachers by a softmax with temperature PRESERVED_PLACEHOLDER_3ti:\36:

PRESERVED_PLACEHOLDER_3ti:\37

The fused target token is then

PRESERVED_PLACEHOLDER_3ti:\38

This mechanism is adaptive, token-wise, and non-parametric. In the paper’s interpretation, a teacher is up-weighted when it aligns both with the student’s current token representation and with the other teachers; a teacher that disagrees with both receives a smaller weight. Ablation results reported in the paper show that uniform averaging is weaker, affinity-only or consensus-only gating is stronger than uniform weighting, and combining both signals gives the best performance (&&&3ti:CoMAD: A Multiple-Teacher Self-Supervised Distillation Framework3&&&).

4. Distillation objective and optimization protocol

The student is trained against the fused teacher representation at two levels. The first is token-level KL divergence over visible student tokens. The second is spatial feature-map KL divergence over reshaped patch-token grids. The total objective is

PRESERVED_PLACEHOLDER_3ti:\39

For token-level matching, the method applies a lightweight projection $16$3ti:CoMAD: A Multiple-Teacher Self-Supervised Distillation Framework3^ that converts each token embedding into a probability distribution. If $16$3query3^ indicates that a token is visible to the student, then the loss is

$16$3ti:\3^

The second term reshapes patch tokens into spatial maps $16$3 and applies another projection $16$4 to obtain channel-wise distributions at each spatial location, which are then matched by KL divergence over the $16$5 grid.

The training configuration reported for distillation uses unlabeled ImageNet-3query3K for 33ti:CoMAD: A Multiple-Teacher Self-Supervised Distillation Framework3ti:CoMAD: A Multiple-Teacher Self-Supervised Distillation Framework3^ epochs, AdamW, an initial learning rate of $16$6, weight decay $16$7, batch size $16$8, 3query35 epochs of linear warmup, cosine decay, and mixed-precision training on $16$9 V3query3ti:CoMAD: A Multiple-Teacher Self-Supervised Distillation Framework3ti:CoMAD: A Multiple-Teacher Self-Supervised Distillation Framework3^ GPUs. Inputs use resolution LT=12L_T=123ti:CoMAD: A Multiple-Teacher Self-Supervised Distillation Framework3^ and patch size LT=12L_T=123query3. The data augmentation listed for student and teachers is random resized crop and horizontal flip, with additional color jitter for the student. After distillation, the student is fine-tuned on labeled ImageNet-3query3K for 3query3ti:CoMAD: A Multiple-Teacher Self-Supervised Distillation Framework3ti:CoMAD: A Multiple-Teacher Self-Supervised Distillation Framework3^ epochs with learning rate LT=12L_T=123ti:\3^ and weight decay LT=12L_T=123 (&&&3ti:CoMAD: A Multiple-Teacher Self-Supervised Distillation Framework3&&&).

Ablation results reported in the paper state that dual-level KL is superior to using only token-level fusion distillation or only spatial fusion distillation, and that replacing KL with MSE weakens performance. This suggests that the method depends not just on multi-scale alignment but specifically on distributional matching.

5. Empirical results and ablation findings

The reported quantitative results cover ImageNet-3query3K classification and dense prediction transfers to ADE3ti:\3ti:CoMAD: A Multiple-Teacher Self-Supervised Distillation Framework3K and MS-COCO. On ImageNet-3query3K, CoMAD with a ViT-Tiny student achieves LT=12L_T=124 Top-3query3^ accuracy, compared with LT=12L_T=125 for DMT and LT=12L_T=126, LT=12L_T=127, and LT=12L_T=128 for TinyMIM distilled respectively from MAE, iBOT, and MoCo v3 teachers. For larger students, the paper reports LT=12L_T=129 for ViT-Small and DT=768D_T=7683ti:CoMAD: A Multiple-Teacher Self-Supervised Distillation Framework3^ for ViT-Base under CoMAD, exceeding DMT by DT=768D_T=7683query3^ and DT=768D_T=7683ti:\3^ percentage points respectively (&&&3ti:CoMAD: A Multiple-Teacher Self-Supervised Distillation Framework3&&&).

On dense prediction, distilled backbones are evaluated with UPerNet on ADE3ti:\3ti:CoMAD: A Multiple-Teacher Self-Supervised Distillation Framework3K and with Cascade R-CNN plus FPN on MS-COCO. The reported best compact-distillation results are DT=768D_T=7683 mIoU and DT=768D_T=7684 aAcc on ADE3ti:\3ti:CoMAD: A Multiple-Teacher Self-Supervised Distillation Framework3K, and DT=768D_T=7685 and DT=768D_T=7686 on COCO. These values are reported as improvements over DMT, which reaches DT=768D_T=7687 mIoU and DT=768D_T=7688 aAcc on ADE3ti:\3ti:CoMAD: A Multiple-Teacher Self-Supervised Distillation Framework3K and DT=768D_T=7689 box AP and xRH×W×3x\in\mathbb{R}^{H\times W\times 3}3ti:CoMAD: A Multiple-Teacher Self-Supervised Distillation Framework3^ mask AP on COCO.

Evaluation Baseline reported in the paper CoMAD
ImageNet-3query3K, ViT-Tiny Top-3query3^ DMT: 75.3ti:CoMAD: A Multiple-Teacher Self-Supervised Distillation Framework3% 75.4%
ADE3ti:\3ti:CoMAD: A Multiple-Teacher Self-Supervised Distillation Framework3K mIoU DMT: 46.9% 47.3%
COCO box AP DMT: 44.3% 44.5%
COCO mask AP DMT: 43ti:CoMAD: A Multiple-Teacher Self-Supervised Distillation Framework3.3% 43ti:CoMAD: A Multiple-Teacher Self-Supervised Distillation Framework3.5%

The ablations isolate three key mechanisms. First, teacher composition matters: single teachers yield approximately xRH×W×3x\in\mathbb{R}^{H\times W\times 3}3query3^ mIoU for MAE only, xRH×W×3x\in\mathbb{R}^{H\times W\times 3}3ti:\3^ for MoCo v3 only, and xRH×W×3x\in\mathbb{R}^{H\times W\times 3}3 for iBOT only, while combining all three teachers yields xRH×W×3x\in\mathbb{R}^{H\times W\times 3}4. Second, mask ratios matter: the configuration xRH×W×3x\in\mathbb{R}^{H\times W\times 3}5 and xRH×W×3x\in\mathbb{R}^{H\times W\times 3}6 gives the best reported combination at Top-3query3^ xRH×W×3x\in\mathbb{R}^{H\times W\times 3}7 and mIoU xRH×W×3x\in\mathbb{R}^{H\times W\times 3}8, outperforming both heavier and lighter student masking. Third, the gating mechanism matters: uniform weighting gives Top-3query3^ xRH×W×3x\in\mathbb{R}^{H\times W\times 3}9 and mIoU 224×224224\times2243ti:CoMAD: A Multiple-Teacher Self-Supervised Distillation Framework3, affinity-only gives 224×224224\times2243query3, consensus-only gives 224×224224\times2243ti:\3, and combined affinity plus consensus gives 224×224224\times2243. The paper’s conclusion from these experiments is that the gains arise from the interaction of heterogeneous teachers, asymmetric masking, and joint consensus gating rather than from multi-teacher aggregation alone.

6. Relation to prior SSL distillation, limitations, and extensions

CoMAD is explicitly positioned relative to three lines of work. The first is SSL pretraining, represented in the paper by MAE, MoCo v3, and iBOT. The second is single-teacher SSL distillation, represented by TinyMIM. The third is multi-teacher distillation, represented in the comparisons by DMT and by prior approaches that use fixed or parametric teacher weighting. In this landscape, CoMAD differs by simultaneously using multiple SSL teachers, applying asymmetric masking so that teachers have richer context than the student, and performing token-wise parameter-free gating based on both student–teacher affinity and inter-teacher consensus (&&&3ti:CoMAD: A Multiple-Teacher Self-Supervised Distillation Framework3&&&).

The paper also distinguishes CoMAD from masking-based distillation methods that use the same masking pattern for teacher and student or that operate in supervised rather than self-supervised settings. A plausible implication is that CoMAD treats masking not merely as a regularizer or FLOP-reduction device but as a mechanism for creating an informational asymmetry that teachers can exploit during distillation.

Several limitations and assumptions are stated directly. All teachers and students are ViTs with the same patch size 224×224224\times2244; heterogeneous architectures such as CNNs or Swin are not explored. The method relies on strong off-the-shelf SSL ViT-Base teachers, and the benefit may diminish if the teachers are weak or not complementary. Distillation is computationally expensive because each iteration runs three ViT-Base teachers plus the student, even though the teachers are frozen. The mask ratios are fixed rather than adaptive, and experiments are limited to standard vision benchmarks rather than video, multimodal data, or explicit domain-shift settings.

The paper identifies several extensions. These include adaptive masking schedules, more or different teachers such as CLIP-like multimodal teachers or larger ViTs, heterogeneous teacher ensembles such as CNN-plus-ViT mixtures, and applications beyond standard image benchmarks to video SSL, multimodal learning, medical imaging, robotics, few-shot transfer, long-tailed settings, and domain adaptation. These are presented as future directions rather than validated properties of the reported system.

In summary, CoMAD defines a compact SSL distillation regime in which a heavily masked student learns from multiple lightly and differently masked teachers through non-parametric consensus fusion and dual-level KL matching. Within the experimental scope reported in the paper, its principal contribution is to show that complementary SSL priors from heterogeneous teachers can be integrated at token level into a small ViT while improving both classification and dense-prediction transfer performance (&&&3ti:CoMAD: A Multiple-Teacher Self-Supervised Distillation Framework3&&&).

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Consensus-oriented Masked Distillation (CoMAD).