/ Модель

Характеристики

Лицензия
Apache 2.0
Опубликована
16 июл 2026

Encoding_Mismatch

Классификация изображенийИзображение → label

Lift и WideLast — производные от DeiT-Tiny модели для классификации изображений ImageNet-1K и исследований дистилляции признаков в Vision Transformer.

0скачиваний за 30 дней2лайкавеса обновлены31 июл 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

Репозиторий содержит контрольные точки Lift и WideLast — производные от DeiT-Tiny модели классификации изображений, выпущенные Huiyuan Tian, Bonan Xu и Shijian Li вместе с исследованием для ICML 2026. Они предназначены для классификации ImageNet-1K и изучения дистилляции признаков между Vision Transformer с разной шириной представлений. В Lift сохраняется проекция выходного представления с 192 до 384 каналов, а WideLast расширяет до 384 каналов последний блок трансформера. Обе модели обучались с учителем CaiT-S24; в README указаны точности top-1 на ImageNet-1K 77,53% для Lift и 78,23% для WideLast.

Модели принимают изображения разрешением 224×224 и реализованы для PyTorch. Контрольные точки используют собственные определения архитектуры и код загрузки из сопровождающего репозитория: они не совместимы напрямую с универсальной точкой входа timm для Hugging Face и не предназначены для запуска через виджет инференса Hugging Face. Лицензия репозитория — Apache-2.0.

Сценарии применения

  • классификация изображений ImageNet-1K
  • оценка точности компактных Vision Transformer
  • сравнение дистилляции признаков между учителем и учеником
  • анализ различий представлений Vision Transformer
  • исследование спектральной структуры признаков изображений

Ограничения

Для загрузки контрольных точек нужны определения архитектуры и код из сопровождающего репозитория; напрямую через AutoModel и виджет инференса Hugging Face они не запускаются. Оценки точности приведены для ImageNet-1K и экспериментального протокола статьи.

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

From Per-Image Low-Rank to Encoding Mismatch

This repository releases the Lift and WideLast checkpoints from the ICML 2026 paper:

From Per-Image Low-Rank to Encoding Mismatch: Rethinking Feature Distillation in Vision Transformers
Huiyuan Tian, Bonan Xu, and Shijian Li

The paper studies why feature distillation between heterogeneous Vision Transformers can remain difficult even when individual feature maps are strongly low-rank. Its analysis distinguishes:

  • Per-image low-rank structure, measured by sample-wise singular value decomposition (SVD).
  • Dataset-level representational structure, measured by PCA over features from many images.
  • Spectral Energy Patterns (SEP), which characterize how feature energy is distributed across channels.

The central finding is an encoding mismatch: compact students and wider teachers can encode dataset-level information using substantially different channel-space geometries. Two simple architecture modifications reduce this mismatch:

  • Lift retains a linear endpoint projector that lifts the student's final representation from 192 to 384 channels.
  • WideLast widens only the last transformer block from 192 to 384 channels.

Links

Released Checkpoints

CheckpointFileArchitectureDistillation recipeImageNet-1K top-1
Liftmodels/Lift/pytorch_model.pthDeiT-Tiny-derived student with a retained 192→384 endpoint projectorSoftKD + SpectralKD, CaiT-S24 teacher77.53%
WideLastmodels/WideLast/pytorch_model.pthDeiT-Tiny-derived student with blocks 1–11 at 192 dimensions and block 12 at 384 dimensionsSoftKD + MSE, CaiT-S24 teacher78.23%

The reported baseline distilled DeiT-Tiny accuracy is 74.86% under the paper's experimental protocol.

Download Individual Checkpoints

Lift and WideLast use the custom architecture definitions and checkpoint-loading code in the GitHub repository. They cannot be loaded through timm's generic Hugging Face Hub entry point. Download each checkpoint directly as follows, then use the evaluation commands below with the matching architecture implementation:

from huggingface_hub import hf_hub_download

lift_checkpoint = hf_hub_download(
    repo_id="Huiyuancs/Encoding_Mismatch",
    filename="models/Lift/pytorch_model.pth",
)

widelast_checkpoint = hf_hub_download(
    repo_id="Huiyuancs/Encoding_Mismatch",
    filename="models/WideLast/pytorch_model.pth",
)

print("Lift:", lift_checkpoint)
print("WideLast:", widelast_checkpoint)

Model Details

Shared setting

  • Task: ImageNet-1K image classification
  • Input resolution: 224 × 224
  • Student family: DeiT-Tiny-derived Vision Transformer
  • Teacher: CaiT-S24
  • Framework: PyTorch and timm
  • Training duration: 300 epochs
  • Primary metric: ImageNet-1K validation top-1 accuracy

These models use custom architectures and checkpoint-loading code from the accompanying GitHub repository. They are not packaged as transformers.AutoModel checkpoints and are not expected to run directly through the Hugging Face hosted inference widget.

Lift

Lift preserves the standard 192-dimensional DeiT-Tiny transformer blocks and adds a learned linear projection at the student endpoint:

$$ \mathbb{R}^{192} \rightarrow \mathbb{R}^{384}. $$

Unlike a training-only projector, this layer is retained at inference. The released Lift checkpoint corresponds to the SoftKD + SpectralKD result reported in Table 2 of the paper.

WideLast

WideLast keeps the first eleven transformer blocks at 192 channels and widens only the final block to 384 channels. The final block uses six attention heads, while the preceding 192-dimensional blocks use three heads. The released WideLast checkpoint corresponds to the SoftKD + MSE result reported in Table 2.

Evaluation Results

Main ImageNet-1K results

StudentDistillation objectiveTop-1 accuracy
Distilled DeiT-Tiny baselineOriginal baseline74.86%
LiftSoftKD77.23%
LiftSoftKD + MSE77.50%
LiftSoftKD + SpectralKD77.53%
WideLastSoftKD77.88%
WideLastSoftKD + SpectralKD78.16%
WideLastSoftKD + MSE78.23%

Inference cost

ModelParametersChange vs. baselineFLOPsChange vs. baseline
Distilled DeiT-Tiny baseline5,717,416—2.507G—
Lift5,983,528+4.65%2.536G+1.17%
WideLast7,239,016+26.61%3.089G+23.20%

Results are taken from the paper. Reproduction can vary with software versions, distributed-training configuration, data access, and numerical nondeterminism.

Installation

Clone the implementation repository and install its dependencies:

git clone https://github.com/thy960112/From-Per-Image-Low-Rank-to-Encoding-Mismatch.git
cd From-Per-Image-Low-Rank-to-Encoding-Mismatch

conda create -n encoding-mismatch python=3.10 -y
conda activate encoding-mismatch
pip install -r requirements.txt
pip install huggingface_hub

Download this Hugging Face repository:

from huggingface_hub import snapshot_download

snapshot_download(
    repo_id="Huiyuancs/Encoding_Mismatch",
    local_dir="./Encoding_Mismatch",
)

Expected checkpoint paths:

Encoding_Mismatch/
└── models/
    ├── Lift/
    │   └── pytorch_model.pth
    └── WideLast/
        └── pytorch_model.pth

Data Preparation

The evaluation and training scripts expect ImageNet-1K in the standard ImageFolder layout:

/path/to/ILSVRC/
├── train/
└── val/

ImageNet is not redistributed with this repository. Users must obtain it under the dataset's applicable terms.

Evaluate the Released Checkpoints

Run these commands from the cloned GitHub repository.

Lift

cd training/lift

python main.py \
  --eval \
  --resume /absolute/path/to/Encoding_Mismatch/models/Lift/pytorch_model.pth \
  --data-path /path/to/ILSVRC \
  --model deit_tiny_patch16_224 \
  --batch-size 256 \
  --num_workers 8 \
  --use-modified-student \
  --expansion-start-layer 11 \
  --expansion-type step \
  --expansion-use-ln \
  --expansion-target-dim 384

WideLast

cd training/widelast

python main.py \
  --eval \
  --resume /absolute/path/to/Encoding_Mismatch/models/WideLast/pytorch_model.pth \
  --data-path /path/to/ILSVRC \
  --model deit_tiny_patch16_224 \
  --batch-size 256 \
  --num_workers 8 \
  --custom-arch \
  --arch-schedule heads_step

The repository's evaluation code expects a PyTorch checkpoint dictionary containing a model state dictionary.

Reproduce Training

Set the dataset and distributed-training configuration:

export DATA_PATH=/path/to/ILSVRC
export GPUS=0,1,2,3
export NPROC=4

Train the released Lift recipe:

cd training/lift
bash scripts/run_cait_softkd_spectralkd.sh

Train the released WideLast recipe:

cd training/widelast
bash scripts/run_cait_softkd_mse.sh

Additional ablation recipes are available in the training/lift/scripts/ and training/widelast/scripts/ directories.

Analysis Artifacts and Raw Data

The official GitHub repository includes:

  • sample-wise SVD analysis;
  • dataset-level PCA analysis;
  • Spectral Energy Pattern analysis;
  • SEP permutation-robustness analysis;
  • scripts for regenerating figures and tables;
  • prepared .npz and .csv numeric results in Raw data.

See the ICML 2026 poster for a compact visual overview.

Intended Use

The checkpoints are intended for:

  • research on feature and knowledge distillation in Vision Transformers;
  • analysis of teacher–student representation mismatch;
  • controlled ImageNet-1K evaluation of Lift and WideLast;
  • studies of low-rank structure, dataset-level subspaces, and spectral channel statistics;
  • reproduction and extension of the ICML 2026 paper.

Citation

@inproceedings{tian2026encodingmismatch,
  title     = {From Per-Image Low-Rank to Encoding Mismatch:
               Rethinking Feature Distillation in Vision Transformers},
  author    = {Tian, Huiyuan and Xu, Bonan and Li, Shijian},
  booktitle = {Proceedings of the 43rd International Conference on Machine Learning},
  year      = {2026}
}

License

This Hugging Face repository is marked as Apache-2.0. Users are responsible for complying with the licenses and terms of the code dependencies, ImageNet-1K, and any upstream assets.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм

Нельзя запустить

В репозитории нет config.json: не понять архитектуру модели.

Ревизия весов
9c812f1

0 моделей