Mohammed Hamdy's picture
Open to Collab

Mohammed Hamdy

mmhamdy
hugging-science

AI & ML interests

AI4Sci | NLP | Reinforcement Learning

Recent Activity

reacted to theirpost with 🚀 about 3 hours ago
What if you could train a model on just 10 images instead of 60,000 and still get close to the same performance? Traditional machine learning requires thousands, even millions, of data points to achieve high accuracy. But what if we could "distill" the entire dataset into just a few synthetic samples? This is what Dataset Distillation offers. Unlike traditional knowledge distillation, we keep the model fixed and distill the knowledge contained in a massive training set into a tiny set of synthetic distilled images. The goal is to train a model on this ultra-small set and achieve performance that almost matches what the same model would get when trained on the massive original dataset. For example, training on only 10 distilled MNIST images (this is equivalent to a single image per class) yields 94% accuracy, compared to 99% when training on the full 60,000 images. Interestingly, these distilled images look significantly different (as you can see in the image below) from natural images because they are optimized for model training rather than for matching the correct data distribution. But that's not all. Most importantly, this same method opens the door to a potent form of data poisoning. Because distilled images are specifically optimized for rapid learning, an attacker can create a tiny set of adversarial distilled images to cause a well-trained model to forget or misclassify a specific category. What I find fascinating about dataset distillation is this: it mimics human-like learning by letting a model grasp a concept from a single example, but it does so using alien synthetic images that mean absolutely nothing to a human eye! What about you? What are your thoughts on it?
repliedto their post about 16 hours ago
What if you could train a model on just 10 images instead of 60,000 and still get close to the same performance? Traditional machine learning requires thousands, even millions, of data points to achieve high accuracy. But what if we could "distill" the entire dataset into just a few synthetic samples? This is what Dataset Distillation offers. Unlike traditional knowledge distillation, we keep the model fixed and distill the knowledge contained in a massive training set into a tiny set of synthetic distilled images. The goal is to train a model on this ultra-small set and achieve performance that almost matches what the same model would get when trained on the massive original dataset. For example, training on only 10 distilled MNIST images (this is equivalent to a single image per class) yields 94% accuracy, compared to 99% when training on the full 60,000 images. Interestingly, these distilled images look significantly different (as you can see in the image below) from natural images because they are optimized for model training rather than for matching the correct data distribution. But that's not all. Most importantly, this same method opens the door to a potent form of data poisoning. Because distilled images are specifically optimized for rapid learning, an attacker can create a tiny set of adversarial distilled images to cause a well-trained model to forget or misclassify a specific category. What I find fascinating about dataset distillation is this: it mimics human-like learning by letting a model grasp a concept from a single example, but it does so using alien synthetic images that mean absolutely nothing to a human eye! What about you? What are your thoughts on it?
posted an update about 16 hours ago
What if you could train a model on just 10 images instead of 60,000 and still get close to the same performance? Traditional machine learning requires thousands, even millions, of data points to achieve high accuracy. But what if we could "distill" the entire dataset into just a few synthetic samples? This is what Dataset Distillation offers. Unlike traditional knowledge distillation, we keep the model fixed and distill the knowledge contained in a massive training set into a tiny set of synthetic distilled images. The goal is to train a model on this ultra-small set and achieve performance that almost matches what the same model would get when trained on the massive original dataset. For example, training on only 10 distilled MNIST images (this is equivalent to a single image per class) yields 94% accuracy, compared to 99% when training on the full 60,000 images. Interestingly, these distilled images look significantly different (as you can see in the image below) from natural images because they are optimized for model training rather than for matching the correct data distribution. But that's not all. Most importantly, this same method opens the door to a potent form of data poisoning. Because distilled images are specifically optimized for rapid learning, an attacker can create a tiny set of adversarial distilled images to cause a well-trained model to forget or misclassify a specific category. What I find fascinating about dataset distillation is this: it mimics human-like learning by letting a model grasp a concept from a single example, but it does so using alien synthetic images that mean absolutely nothing to a human eye! What about you? What are your thoughts on it?
View all activity

Organizations

BigScience Biomedical Datasets's profile picture fast.ai community's profile picture Massive Text Embedding Benchmark's profile picture Blog-explorers's profile picture Hugging Face for Computer Vision's profile picture ASAS AI's profile picture ZeroGPU Explorers's profile picture Social Post Explorers's profile picture Cohere Labs Community's profile picture M4-ai's profile picture LLMem's profile picture Hugging Face Discord Community's profile picture llmc's profile picture open/ acc's profile picture Data Is Better Together Contributor's profile picture LiteRT Community (FKA TFLite)'s profile picture MOTH Lab's profile picture Bitsandbytes Community's profile picture LeRobot Worldwide Hackathon's profile picture Hugging Face Context Course's profile picture Agents-MCP-Hackathon's profile picture Robotics Course's profile picture Hugging Science's profile picture Bioscope's profile picture MCP-1st-Birthday's profile picture nanochat students's profile picture Hugging Face Skills's profile picture Humanity's Last Hackathon's profile picture Build Small Hackathon's profile picture