Downloads · 30 days
19
13% of all-time downloads
samerzaher80/AetherMind-KD-Student
AetherMind-KD-Student is a text classification model from samerzaher80. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as mit.
A Robust and Efficient Knowledge-Distilled Model for Natural Language Inference (NLI)
Downloads · 30 days
19
13% of all-time downloads
All-time downloads
142
Public
Parameters
184M
742 MB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors738 MB · 98%
From the Hugging Face model README
A Robust and Efficient Knowledge-Distilled Model for Natural Language Inference (NLI)
Repository: samerzaher80/AetherMind-KD-Student
License: MIT
AetherMind-KD-Student is a 184M-parameter Natural Language Inference (NLI) model distilled from a DeBERTa-v3 teacher using a multi-stage, adversarial-aware knowledge distillation pipeline.
The model is designed to provide:
This makes it suitable for research and practical applications that require fast and reliable sentence-level reasoning.
Teacher supervision was applied over a curriculum of NLI datasets:
| Dataset | Role |
|---|---|
| SNLI | Base NLI training (entailment, neutral, contradiction) |
| MNLI | Multi-genre generalization (matched + mismatched) |
| ANLI (R1–R3) | Adversarial robustness and hard examples |
The following datasets were not used during training or distillation. All results on them are pure zero-shot:
| Dataset | Type | Notes |
|---|---|---|
| RTE (GLUE) | Textual entailment | Zero-shot generalization |
| HANS | Heuristic / syntactic bias test | Zero-shot |
| SciTail | Science-domain entailment | Evaluated in binary setting |
| XNLI (English) | Cross-lingual NLI test | Zero-shot on English split |
The model follows a compact transformer architecture:
Total parameters: 184,424,451
The design target is to match or exceed the performance of larger teacher models while remaining efficient enough for real-time inference on a single consumer GPU.
The total loss is a weighted combination:
Formally:
L_total = 0.7 · L_KD + 0.3 · L_CE
where L_KD uses temperature-scaled teacher logits.
| Dataset | Split | Accuracy | Macro-F1 |
|---|---|---|---|
| MNLI (matched) | validation | 90.47% | 90.42% |
| MNLI (mismatched) | validation | 90.12% | 90.07% |
| SNLI | test | ~88–89% | ~88–89% |
| Dataset | Split | Accuracy | Macro-F1 |
|---|---|---|---|
| ANLI R1 | test_r1 | 73.60% | 73.61% |
| ANLI R2 | test_r2 | 57.70% | 57.60% |
| ANLI R3 | test_r3 | 53.67% | 53.68% |
These scores indicate strong robustness, especially considering the model’s size.
These datasets were never seen during training. All scores are zero-shot.
The strong performance on HANS suggests reduced dependence on shallow lexical heuristics.
SciTail originally has entailment vs neutral classes. For evaluation, the model’s 3-way logits are mapped to:
| Split | Accuracy | Macro-F1 |
|---|---|---|
| Train | 82.37% | 80.99% |
| Dev | 78.83% | 78.81% |
This demonstrates strong cross-domain and cross-benchmark generalization, even without explicit multilingual or XNLI-specific training.
| Task | Dataset | Split | Accuracy | Macro-F1 |
|---|---|---|---|---|
| Natural Language Inference | MNLI (matched) | validation | 90.47% | 90.42% |
| Natural Language Inference | MNLI (mismatched) | validation | 90.12% | 90.07% |
| Natural Language Inference | SNLI | test | ~88–89% | ~88–89% |
| Adversarial NLI | ANLI R1 | test_r1 | 73.60% | 73.61% |
| Adversarial NLI | ANLI R2 | test_r2 | 57.70% | 57.60% |
| Adversarial NLI | ANLI R3 | test_r3 | 53.67% | 53.68% |
| Zero-shot | RTE (GLUE) | validation | 86.28% | 86.20% |
| Zero-shot | HANS | validation | 77.74% | 76.60% |
| Zero-shot (binary) | SciTail | dev | 78.83% | 78.81% |
| Zero-shot | XNLI (English) | test | 90.92% | 90.94% |
| Metric | Value |
|---|---|
| Total parameters | 184,424,451 |
| Inference speed | ≈ 308.51 samples/second |
| Hardware | RTX 3050 (8 GB), CUDA 11.8 |
These numbers make the model a good choice for production environments and large-scale batch inference.
Planned and possible future enhancements include:
config.json – model configurationmodel.safetensors – model weightstokenizer.json – tokenizer modeltokenizer_config.json – tokenizer configurationspecial_tokens_map.json – special tokens metadataspm.model – SentencePiece model (if applicable)added_tokens.json – additional tokens (if any)training_args.bin – training arguments (optional, for reproducibility)trainer_state.json – trainer state (optional, for reproducibility)from transformers import AutoTokenizer, AutoModelForSequenceClassification
model_name = "samerzaher80/AetherMind-KD-Student"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSequenceClassification.from_pretrained(model_name)
premise = "A cat is sleeping on the sofa."
hypothesis = "An animal is resting indoors."
inputs = tokenizer(premise, hypothesis, return_tensors="pt")
outputs = model(**inputs)
logits = outputs.logits
pred = logits.argmax(dim=-1).item()
id2label = {0: "entailment", 1: "neutral", 2: "contradiction"}
print(id2label[pred])
If you use this model in your research, please cite:
@misc{aethermind2025kdstudent,
title = {AetherMind-KD-Student: A Robust and Efficient Knowledge-Distilled NLI Model},
author = {Sameer S. Najm},
year = {2025},
howpublished = {Hugging Face model repository},
note = {\url{https://huggingface.co/samerzaher80/AetherMind-KD-Student}}
}
Sameer S. Najm
AI Researcher & Founder, Sam IT Solutions – Iraq
This model is released under the MIT License.