Coder Social home page Coder Social logo

adu3010 / machine-unlearning Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 22 KB

This project demonstrates the concept of machine unlearning using the MNIST handwritten digits dataset. The goal is to train a neural network to recognize digits, then selectively "unlearn" a specific digit, and finally retrain the model to recover its performance.

Jupyter Notebook 100.00%

machine-unlearning's Introduction

Machine-Unlearning

This project demonstrates the concept of machine unlearning using the MNIST handwritten digits dataset. The goal is to train a neural network to recognize digits, then selectively "unlearn" a specific digit, and finally retrain the model to recover its performance.

Key Features

Utilizes PyTorch for building and training the neural network Implements a simple feedforward neural network for digit classification Demonstrates the process of unlearning specific data (digit '5') Visualizes the model's accuracy throughout the learning, unlearning, and relearning processes

Methodology

Initial Training: The model is trained on the full MNIST dataset. Unlearning: The model is then made to "forget" the digit '5' using a novel unlearning technique. Relearning: Finally, the model is retrained on the full dataset to recover its performance.

Technical Details

Dataset: MNIST handwritten digits Model Architecture: 3-layer feedforward neural network Unlearning Technique: Using a uniform distribution as the target for the digit to be unlearned Performance Metric: Classification accuracy on the test set

Results The project demonstrates:

High initial accuracy on digit classification Significant drop in accuracy after unlearning digit '5' Recovery and slight improvement in accuracy after relearning

Future Work

Experiment with unlearning multiple digits Implement more sophisticated unlearning techniques Explore the impact of unlearning on model interpretability

Conclusion This project provides a practical demonstration of machine unlearning, a crucial concept in AI ethics and data privacy. It showcases how models can be made to selectively forget certain data while maintaining overall performance.

machine-unlearning's People

Contributors

adu3010 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.