Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Your Dissimilarities Define You: Complementary Learning Exploiting Class Diversities (CVPR 2026)

This repository contains the official implementation of our paper:

"Your Dissimilarities Define You: Complementary Learning Exploiting Class Diversities" (CVPR 2026).

Overview

Deep neural networks are typically trained using cross-entropy with one-hot targets, which only supervises "what class a sample belongs to". Our work introduces a complementary learning paradigm that explicitly models class dissimilarities, supervising the model with "what classes a sample does NOT belong to". By exploiting complementary information, CDL provides informative gradients even when samples are already correctly classified and improves the geometry of learned representations.


Training

We provide example scripts to train a ResNetV2-50 (timm) on ImageNet-1K on a single GPU (Table 3 of the paper).

Baseline (CE)

# Train ResNetV2-50 with standard cross-entropy
python train.py \
    --model resnetv2_50 \
    --data /path/to/imagenet \
    --w_cdl 0.0 \
    --batch_size 512 \
    --epochs 250
    --seed 0

Proposed Method (CE + Complementary Dissimilarity Loss)

# Train ResNetV2-50 with uniform CDL
python train.py \
    --model resnetv2_50 \
    --data /path/to/imagenet \
    --w_cdl 1.0 \
    --batch_size 512 \
    --epochs 250
    --seed 0

Evaluation Results

Training for 250 epochs on ImageNet produces the following validation accuracy curves for different $$\gamma$$ values, that control the strength of the proposed objective.

The proposed method consistently improves both Top-1 and Top-5 validation accuracy compared to the baseline training objective.


Acknowledgements

The work presented here is supported by the RoboSAPIENS project funded by the European Commission’s Horizon Europe programme under grant agreement number 101133807. This publication reflects the authors’ views only. The European Commission is not responsible for any use that may be made of the information it contains.

GCP resources were provided by the National Infrastructures for Research and Technology GRNET and funded by the EU Recovery and Resiliency Facility.


About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages