← Latest papers
💻 computer science

CNN and ViT Efficiency Study on Tiny ImageNet and DermaMNIST Datasets

This study demonstrates that appropriately fine-tuned Vision Transformer variants can outperform or match a ResNet-18 baseline on TinyImageNet and DermaMNIST datasets while achieving faster inference and reduced model complexity, highlighting their suitability for resource-constrained environments.

Original authors: Aidar Amangeldi, Angsar Taigonyrov, Muhammad Huzaifa Jawad, Chinedu Emmanuel Mbonu

Published 2026-02-16
📖 5 min read🧠 Deep dive

Original authors: Aidar Amangeldi, Angsar Taigonyrov, Muhammad Huzaifa Jawad, Chinedu Emmanuel Mbonu

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to build a smart assistant that can look at pictures and tell you what's in them. You have two very specific jobs for this assistant:

  1. The Doctor: It needs to look at tiny, blurry photos of skin spots to diagnose diseases (like a dermatologist).
  2. The Drone Pilot: It needs to look at fast-moving photos of objects (like trees, cars, or buildings) to help a drone navigate a battlefield.

The problem? These assistants need to be fast and lightweight enough to run on a smartphone or a drone, not just on a giant supercomputer in a data center.

This paper is a report card on two different types of "brains" (AI architectures) trying to do these jobs: The Old Reliable (CNN/ResNet) and The New Star (Vision Transformer/ViT).

Here is the breakdown of their study using simple analogies.

1. The Contenders: The Local Detective vs. The Global Thinker

  • ResNet (The Local Detective):
    Think of this as a detective who looks at a crime scene one tiny clue at a time. They are great at spotting small details (like a fingerprint or a scratch) because they focus on local patterns. They are fast, efficient, and don't need a huge memory bank.

    • Pros: Fast, cheap, good at small details.
    • Cons: They sometimes miss the "big picture" or how different parts of the image relate to each other.
  • Vision Transformer (ViT) (The Global Thinker):
    Think of this as a detective who looks at the entire crime scene at once. They use a "self-attention" mechanism to instantly understand how the fingerprint connects to the shoe print and the broken window. They are amazing at understanding context.

    • Pros: Incredible at understanding the whole picture; very accurate on big datasets.
    • Cons: They are heavy, slow, and require a massive amount of memory (like a supercomputer). On small, blurry datasets (like the skin photos), they tend to "overthink" and get confused (overfit).

2. The Experiment: Finding the "Goldilocks" Model

The researchers wanted to find a model that wasn't too heavy (like the Global Thinker) but wasn't too simple (like the Local Detective). They tested different sizes of the "Global Thinker" (ViT) on two datasets:

  • Tiny ImageNet: A general test of recognizing 200 types of objects (like a drone seeing a tank vs. a tree).
  • DermaMNIST: A medical test of recognizing 7 types of skin lesions (tiny, low-resolution images).

They had three rules for a "winner":

  1. Accuracy: It can't be more than 5% worse than the best possible model.
  2. Speed: It needs to be fast enough for real-time decisions.
  3. Size: It needs to be small enough to fit on a phone or drone.

3. The Results: The "Sweet Spot" Discovery

Here is what they found, translated into everyday terms:

The "Oversized" Winner (ViT-Base with Patch 16):
This model was the smartest. It got the highest accuracy on both tests.

  • The Catch: It was like bringing a tank to a race. It was too slow, too heavy, and too expensive to run on a phone. It was accurate but impractical.

The "Too Simple" Loser (ViT-Base with Patch 32):
This model tried to be lighter by looking at bigger chunks of the image at once.

  • The Catch: It was like trying to read a book by looking at only one word per page. It missed too many details, especially on the tiny skin photos, and performed poorly.

The "Goldilocks" Winner (ViT-Small with Patch 16):
This was the hero of the study.

  • Accuracy: It was almost as smart as the "Tank" (ViT-Base). On the skin test, it was only slightly less accurate (within the 5% rule).
  • Speed: It was 3 to 4 times faster than the heavy model.
  • Size: It used 75% less memory (fewer parameters).

The Analogy:
Imagine you need to drive from New York to Boston.

  • ViT-Base (Patch 16) is a Formula 1 car. It's the fastest and most precise, but it's expensive, hard to maintain, and can't fit in a normal garage.
  • ViT-Small (Patch 16) is a high-end sports sedan. It's 95% as fast as the F1 car, but it fits in your garage, gets better gas mileage, and is much cheaper to run.
  • ResNet is a reliable minivan. It gets the job done and is very efficient, but it can't handle the complex curves of the road as well as the sports car.

4. Why This Matters

The study concludes that for real-world applications—like a doctor using a phone to diagnose a rash in a remote village, or a drone spotting a target in a war zone—you don't need the "Formula 1" brain. You need the "Sports Sedan."

ViT-Small (Patch 16) is the perfect balance. It is smart enough to be accurate but light enough to run on the devices we actually carry with us.

Summary of the Takeaway

  • Old Way (CNN): Good, but sometimes misses the big picture.
  • New Way (ViT): Great at the big picture, but usually too heavy and slow.
  • The Solution: A smaller version of the new way (ViT-Small) that keeps the "big picture" smarts but sheds the weight. It's the perfect tool for the job.

The researchers also admitted they didn't test every possible trick (like compressing the model further or testing on actual phone chips yet), but they proved that this "Goldilocks" model is a very strong candidate for the future of AI on our phones and drones.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →