/ Модель

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

Лицензия
Своя лицензия
Библиотека
onnx
Опубликована
5 авг 2026

qsh-medical-breastmnist-ckks-student

Классификация изображенийИзображение → label3 профессии
0скачиваний за 30 дней0лайковвеса обновлены30 окт 2026

Описание модели

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

Компактная сверточная модель Daemons-Q классифицирует ультразвуковые изображения молочной железы BreastMNIST и служит студенческой моделью для демонстраций приватного инференса.

Daemons-Q разработала компактную сверточную нейросеть для классификации медицинских изображений BreastMNIST в демонстрационном сценарии медицинского федеративного обучения с оценкой инференса под CKKS. Архитектура включает один сверточный блок с входом 14×14, усредняющую подвыборку и полносвязную голову; в карточке она описана как дистиллированная студенческая модель, рассчитанная на малые вычислительные затраты. Метаданные указывают форматы ONNX и SafeTensors и библиотеку ONNX.

Модель принимает небольшие изображения УЗИ молочной железы и предсказывает класс. На офлайн-оценке в открытом виде согласие с учителем составило 0,827, AUC — 0,788; это существенно ниже приведенного в карточке ориентира ResNet-18 с AUC 0,901. README также отмечает риск дубликатов, утечки между обучающей и тестовой выборками и наличие в данных изображений подмышечной области. В браузерной демонстрации шифруется свертка, но промежуточные результаты расшифровываются, а ReLU и усредняющая подвыборка выполняются открыто, поэтому весь инференс не проходит под CKKS.

Для MedMNIST v2 BreastMNIST указана лицензия CC BY 4.0, однако авторы исходного набора BUSI не публиковали отдельную лицензию на данные. Метаданные репозитория указывают лицензию other, поэтому условия использования самой модели следует проверять отдельно.

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

  • классификация небольших УЗИ молочной железы
  • эксперименты с инференсом медицинской CNN под CKKS
  • сравнение студенческой модели с учителем на BreastMNIST

Ограничения

AUC модели составляет 0,788 и заметно уступает указанному ориентиру ResNet-18 с AUC 0,901; малый размер входа и архитектура ограничивают представление данных. В BreastMNIST отмечены дубликаты, возможная утечка между выборками и изображения подмышечной области; браузерная демонстрация не выполняет все слои под CKKS.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus, LLM Stats

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

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

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

Открыть на Hugging Face

FHE-feasible diagnostic CNN

1 conv block (1->4ch, 3x3), avg-pool, dense head, 14x14 input

Part of QSMPC-QKD-QHE-AI-Hybrid, a quantum-safe orchestration demo. This is the encrypted-tier model for the medical_fl use case: a distilled student small enough to evaluate under CKKS. Whether the public demo encrypts THIS model differs by use case; the notes below say what actually runs. It is not the plaintext teacher, and its numbers should be read against that teacher rather than against the published literature. Its agreement with the teacher was measured offline, in plaintext.

Measured performance

metricvalue
agreement0.826923
auc0.788221
disagreement_on_positives0.149123
majority_class_rate0.730769
metric_delta0.096154
metric_delta_pp9.6154
n_classes_predicted2
n_eval156
student_metric0.769231
student_params3226
teacher_metric0.865385
teacher_params11171266

Published baselines this is measured against

  • Target metric: AUC
  • Baseline to beat: 0.901 - ResNet-18 @28px, MedMNIST v2, Yang et al., Scientific Data 10:41 (2023) (AUC 0.901 / ACC 0.863)
  • Published ceiling: 0.919 - Google AutoML Vision, MedMNIST v2 (AUC 0.919)
  • Companion metric shown alongside: accuracy - reported together because the aggregate figure can look healthy while the class that matters is not.

Gap to the published baseline

This scores far below the 0.901 ResNet-18 baseline. The reason is representational rather than cryptographic: 3,226 parameters over a 14x14 input is a REPRESENTATION choice, not a feasibility limit - and this note said 'a CKKS-feasibility budget' until Round 32, which overstated how forced it was. Kim et al. (arXiv:2506.15258) do HE chest-X-ray inference on a VQGAN latent at downsampling factor 8 rather than on pixels, so the alternative to downsampling 28->14 is re-representing the input. The browser already runs onnxruntime-web, so such an encoder would run locally in plaintext with no privacy loss. Recorded as the sixth falsifiable trigger in the additional-model decision in docs/deliverable-verification.md, not acted on - and note that f=8 on a 28x28 input gives 3.5x3.5, so the transfer is the open measurement rather than a citation. This sentence claimed the trigger existed for two rounds while the table held five rows and none of them was this one; the trigger was written, and the decision moved to a tracked file so the claim can be checked. Round 24 found it had been WORSE than that - a constant predictor, emitting one class for all 156 test images, with accuracy 0.730769 exactly equal to the majority-class rate and AUC 0.354, below random. It was invisible because the registry declared auc while the record stored accuracy, and because this student had neither protection its teacher already had: class-weighted loss and AUC-based model selection. Both were added. Read n_classes_predicted and majority_class_rate beside the score - an accuracy equal to the majority rate is the signature of a model that learned nothing. Workings: references/medical-student-collapse-investigation.md.

Training data

  • Dataset: MedMNIST v2 BreastMNIST
  • Licence: CC-BY-4.0 asserted by MedMNIST; the BUSI authors publish no licence
  • Source: https://medmnist.com/ (licence read 2026-10-26)
  • Attribution (CC-BY-4.0 asserted by MedMNIST; the BUSI authors publish no licence): Yang, Shi, Wei, Liu, Zhao, Ke, Pfister & Ni, 'MedMNIST v2 - A large-scale lightweight benchmark for 2D and 3D biomedical image classification', Scientific Data 10:41 (2023), and Yang, Shi & Ni, 'MedMNIST Classification Decathlon: A Lightweight AutoML Benchmark for Medical Image Analysis', IEEE ISBI 2021; CC BY 4.0. BreastMNIST is derived from Al-Dhabyani, Gomaa, Khaled & Fahmy, 'Dataset of breast ultrasound images', Data in Brief 28:104863 (2020).

780 images at 28x28. The tiny tier; also the source of the FHE-feasible T1 student. TWO problems, both upstream of MedMNIST, both checked 2026-08-10. LICENCE: MedMNIST licenses ITSELF CC BY 4.0, but BreastMNIST is a resize of BUSI (Al-Dhabyani et al., Data in Brief 28:104863, 2020) and the CC BY there attaches to the ARTICLE - PMC carries 'This is an open access article under the CC BY license' and states no separate licence for the data, while the dataset host (scholar.cu.edu.eg) asks only 'If you use this dataset, please cite'. A citation request is not a grant. CHECKED AGAIN 2026-10-26 at every source the authors publish: the host page asks the same in every capture from 2021 to 2026; the article's supplements hold the Baheya Hospital ethics committee's approval to publish the dataset publicly and the waiver of consent, and no licence; the authors made no repository deposit; and every Kaggle mirror carries a licence its uploader chose, none of them an author. So the BUSI authors publish no licence: the data was released publicly with no terms, and the only licence anyone states is MedMNIST's CC BY 4.0 for its derived dataset. The three HF repos stay public on that basis, by decision (2026-10-26). That differs from CIC-IDS2017, declined, and ImageNet, dropped: their providers state conflicting or restrictive terms, and BUSI's state none. CONTAMINATION: Pawlowska, Karwat & Zolek (Letter to the Editor, Data in Brief 48:109247, 2023-05-19) found 235 duplicates (~19% of 780), >=8 images in BOTH benign and malignant, 70 axilla images that are not breast tissue, and warn of train/test leakage. MEASURED HERE on the actual npz rather than assumed: at 28x28 exactly ONE pair survives as a pixel-exact duplicate - train[115] label=0 (MALIGNANT) and test[76] label=1 (BENIGN). The same image, trained as malignant and scored as benign. That is 1 of 156 test images, 0.64%, which the model cannot get right and which no amount of training fixes. Loosening to RMSE<=0.05 finds 216 near-duplicate pairs, 120 crossing a split boundary and 6 both crossing AND contradicting - but those are threshold-dependent and the exact pair is the only hard number. So the letter's 19% does NOT wholesale survive downsampling; a real floor on this benchmark does.

Notes and limitations

Genuine encrypted convolution (im2col + CKKS dot_plain), but not end to end under CKKS. In the browser each layer's output is decrypted, ReLU and average pooling run in plaintext in the client, and the class is the argmax of decrypted logits; the page's MPC argmax runs on the WDBC logistic regression, not on this CNN. The full deployment's hybrid path, which runs a federated CNN of this shape rather than these weights, keeps ReLU on secret shares (MPyC) and pools each share locally; its masked conversion protects only CKKS slot 0 (see qsh.mpc.secret_inference).

Honest scope

This model is published as part of a research proof of concept, not as a production system. Numbers above are what this repository measured on the split described, with the code in scripts/train/. Where a figure is carried from the literature rather than measured here, it is labelled as such.

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

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

GPU в ailist

Универсальный рантайм · onnx · image-classification

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

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

Ревизия весов
d8a1d54

0 моделей