Code Monkey home page Code Monkey logo

miro's Introduction

Miro

Official Pytorch implementation of Cost-effective On-device Continual Learning over Memory Hierarchy with Miro, accepted at ACM MobiCom 2023

Paper | Slide

This code is built atop CarM (DAC '22).

Abstract

Continual learning (CL) trains NN models incrementally from a continuous stream of tasks. To remember previously learned knowledge, prior studies store old samples over a memory hierarchy and replay them when new tasks arrive. Edge devices that adopt CL to preserve data privacy are typically energy-sensitive and thus require high model accuracy while not compromising energy efficiency, i.e., cost-effectiveness. Our work is the first to explore the design space of hierarchical memory replay-based CL to gain insights into achieving cost-effectiveness on edge devices. We present Miro, a novel system runtime that carefully integrates our insights into the CL framework by enabling it to dynamically configure the CL system based on resource states for the best cost-effectiveness. To reach this goal, Miro also performs online profiling on parameters with clear accuracy-energy trade-offs and adapts to optimal values with low overhead. Extensive evaluations show that Miro significantly outperforms baseline systems we build for comparison, consistently achieving higher cost-effectiveness.

Installation

Requirements for Anaconda is provided. We recommend to run Miro with conda env.

conda install --name miro --file environment.yml

Run Experiments

# CIFAR-100 
python main.py --config=./config/cifar/er_cifar100_with_miro.yml

# Tiny-ImageNet
python main.py --config=./config/tiny/er_tiny_with_miro.yml

# Daily Sports and Activities
python main.py --config=./config/dsads/er_dsads_with_miro.yml

# UrbanSound8K (mel spectrogram)
python main.py --config=./config/us8k/er_us8k_with_miro.yml

# ImageNet-1k (50 Tasks)
python main.py --config=./config/imagenet1k/50tasks/er_img1k_with_miro.yml

miro's People

Contributors

xinyuema0847 avatar

Stargazers

KaixuanZhang avatar  avatar Chanyoung Jung avatar Xu Liang avatar  avatar Sungho Jeon avatar  avatar Dreamy Qian avatar  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.