shenty1028
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # Topic Presentation 1 - Meta Learning for AutoML **Group 9** **0811326 沈琮育**、**311554046 林愉修** Video: [Meta Learning Tutorial AAAI 2021 Part3 AutoML Video][1] ## least square error ![](https://i.imgur.com/i24IXz6.jpg) ![](https://i.imgur.com/cv2qewF.jpg) ![](https://i.imgur.com/sav5jRb.jpg) ## newton's method ![](https://i.imgur.com/wu8Q4oy.jpg) ![](https://i.imgur.com/Jn8Gw7v.jpg) ![](https://i.imgur.com/3Nww3yp.jpg) ## entropy ![](https://i.imgur.com/pqxIzDg.jpg) ![](https://i.imgur.com/YFhB5QN.jpg) ![](https://i.imgur.com/QoBldmj.jpg) ![](https://i.imgur.com/I4iuNYC.jpg) ![](https://i.imgur.com/6OC73Dd.jpg) ![](https://i.imgur.com/KXPTfwj.jpg) ## 自動調整hyperparameter ![](https://i.imgur.com/S4QtD4v.jpg) ![](https://i.imgur.com/ZQnYRPs.jpg) ## bayesian optimization ![](https://i.imgur.com/4ZksFQg.jpg) ![](https://i.imgur.com/UQBc1Cn.jpg) ![](https://i.imgur.com/Vwqp7dN.jpg) ![](https://i.imgur.com/KoAcSbZ.jpg) ![](https://i.imgur.com/YMYefW9.jpg) ## AutoML ![AutoML](https://i.imgur.com/oG2dsLV.png) ## Warm Starting ![Warm starting](https://i.imgur.com/Iz1XmCb.png) * **Idea** Instead of starting randomly, let it starts from the configurations that were successful on similar tasks, which are able to remarkably minimize the number of evaluations. In order to do this, we need a way to measure task similarity. * **How to measure task similarity?** ![task similarity](https://i.imgur.com/ia5tixY.png) * [Hand-designed (statical) meta-features that describe (tabular) datasets][2] * [Task2Vec: task embedding for image data][3] * [Optimal transport: similarity measure based on comparing probabiltiy distributions][4] * [Metadata embedding based on textual dataset description][5] * [Dataset2Vec: compares batches of datasets][6] * [Distribution-based invariant deep networks][7] * **Warm-starting with kNN** ![warm-starting with knn](https://i.imgur.com/VzOko0R.png) One thing we can do is called kNN approach, which has been successful for a very long time. Given a new task, we select the prior similar tasks and start the search from the pipeline or the architecture that work well on that prior similar task for the new task. * **Probabilistic Matrix Factorization** ![PMF](https://i.imgur.com/V2DYLuX.png) Another thing we can do is probabilistic matrix factorization (PMF), which combines the idea of collaborative filtering (Recommender systems) and Bayesian optimization. Predicting the performance of configurations on a new task can be view as a collaborative filtering problem. We can use PMF to embed different configurations in a latent space based on their performance across different tasks. Given $N$ configurations and $T$ tasks, the performace of each combination can be represented in a matrix $P\in \Bbb R^{N\times T}$, and we learn latent representation using matrix composition (the information about how configurations compare to each others) and reuse it to build a new search space that is easier to model, we then use PMF to predict the missing value in $P$. We can combine with acquisition function like EI (Expected Improvement) to guide the exploration in configuration search space. * **[DARTS: Differentiable NAS][9]** ![DARTS](https://i.imgur.com/1jzRf2Q.png) > NAS is the abbreviation for "Neural Architecture Search". The optimization algorithm that is often used in neural architecture search is "Gradient descent" and "Reinforcement learning". DARTS uses the gradient-based optimization, it searchs over a continous and differentiable search space by softmax function to relax the discrete space. It starts with fixed structure, which the user has to provide, states (tensors) with links in between, and the links can be refer to many different option of layer, giving these links a weight $\alpha_i$, this creates the space of the possible neural networks, thus we can use bilevel optimization to find the optimized network architecture. * [Warm-started DARTS][10] ![Warm-started DARTS](https://i.imgur.com/cYuSa4J.png) Instead of starting from user-defined architecture, we can learn a good model to start from, which means we can train a initial model on one dataset and trasfer to other datasets, so the finding of the architecture would be more efficient. ## Meta-models ![Meta-models](https://i.imgur.com/nPYRfHy.png) These are models that are trained to build entire new models or to learn good model components (eg. activation function). * **Algorithm selection models** ![Algorithm selection models](https://i.imgur.com/yFB4HPK.png) * **[Learning model components][15]** ![Learning models components](https://i.imgur.com/G9nxH2X.png) * **[Monte Carlo Tree Search + reinforcement learning][14]** ![MCTS+RL](https://i.imgur.com/wNwPjoH.png) * **[Neural Architecture Transfer learning][13]** ![Neural Architecture Transfer learning](https://i.imgur.com/iD1YlXI.png) * **[Meta-Reinforcement Learning for NAS][12]** ![Meta-RL for NAS 1](https://i.imgur.com/HmefoK3.png) ![Meta-RL for NAS 2](https://i.imgur.com/UCwAp6F.png) Instead of training a neraul architecture for a specific task from scratch, we want to transfer some of the prior tasks information, which is useful, to train the neural architecture for the new task. * **[MetaNAS: MAML + Neural Architecture Search][11]** ![MetaNAS](https://i.imgur.com/bgS3kQe.png) Rememeber in DARTS, we have to learn $\alpha_i$, here we learn these $\alpha$ using a meta-learning algorithm called MAML (Model-Agnostic Meta Learning), optimize these $\alpha$ along with the meta-parameters $\Theta$ (initial weights) and after we learn this over a number of tasks, we can warm-start DARTS. ## Survey Topic ### Hardware-Aware Efficient NAS * **Motivation** Designing Convolutional Neural Networks for mobile devices is challenging since the models have to be small and fast, yet still accurate while the design space is very large and computationally expensive. * **Papers** * [MnasNet: Platform-Aware Neural Architecture Search for Mobile][16] * [FBNet: Hardware-Aware Efficient ConvNet Design via Differentiable Neural Architecture Search][17] * [Single-Path NAS: Design Hardware-Efficient ConvNets in less than 4 Hours][18] * [EfficientNet: Rethinking Model Scaling for Convolutional Neural Networks][19] * [Searching for Efficient Neural Architectures for On-Device ML on Edge TPUs][20] [1]: https://drive.google.com/file/d/1ZAIt8X1c7VA9CDC_JxwxuB0j3972CuSi/view "Google Drive" [2]: https://arxiv.org/abs/1810.03548 "Arxiv" [3]: https://arxiv.org/abs/1902.03545 "Arxiv" [4]: https://www.microsoft.com/en-us/research/publication/geometric-dataset-distances-via-optimal-transport/ "Microsoft" [5]: https://arxiv.org/abs/1910.03698 "Arxiv" [6]: https://www.ismll.uni-hildesheim.de/pub/pdfs/jomaa2019c-nips.pdf "ismll" [7]: https://arxiv.org/abs/2006.13708 "Arxiv" [9]: https://arxiv.org/pdf/1806.09055.pdf "Arxiv" [10]: https://arxiv.org/abs/2205.06355 "Arxiv" [11]: https://arxiv.org/abs/1911.11090 "Arxiv" [12]: https://arxiv.org/abs/1911.03769 "Arxiv" [13]: https://proceedings.neurips.cc/paper/2018/file/bdb3c278f45e6734c35733d24299d3f4-Paper.pdf "Neurips" [14]: https://arxiv.org/pdf/1905.10345.pdf "Arxiv" [15]: https://arxiv.org/pdf/1710.05941.pdf "Arxiv" [16]: https://openaccess.thecvf.com/content_CVPR_2019/papers/Tan_MnasNet_Platform-Aware_Neural_Architecture_Search_for_Mobile_CVPR_2019_paper.pdf "CVF" [17]: https://openaccess.thecvf.com/content_CVPR_2019/papers/Wu_FBNet_Hardware-Aware_Efficient_ConvNet_Design_via_Differentiable_Neural_Architecture_Search_CVPR_2019_paper.pdf "CVF" [18]: https://arxiv.org/abs/1904.02877 " Arxic" [19]: https://arxiv.org/abs/1905.11946 "Arxiv" [20]: https://openaccess.thecvf.com/content/CVPR2022W/ECV/papers/Akin_Searching_for_Efficient_Neural_Architectures_for_On-Device_ML_on_Edge_CVPRW_2022_paper.pdf "CVF" # Topic Presentation 3 - Hardware-Aware Neural Architectures Search **Group 9** **0811326 沈琮育**、**311554046 林愉修** **survey topic** 1. FBNet: Hardware-Aware Efficient ConvNet Design via Differentiable Neural Architecture Search 2. MnasNet: Platform-Aware Neural Architecture Search for Mobile 3. Once-for-All: Train One Network and Specialize it for Efficient Deployment **content structure** * Introduction * Why this is important * Background knowledge * Existed works * Possible future direction ## FBNet: Hardware-Aware Efficient ConvNet Design via Differentiable Neural Architecture Search ### prior knowledge 1. FLOPS: 每秒浮點運算次數,亦稱每秒峰值速度(英語:Floating-point operations per second;縮寫:FLOPS)。 2. SGD: 準確梯度下降法,(stochastic gradient decent)。 SGD 是最單純的gradient decent 方法,利用微分的方法找出參數的梯度,往梯度的方向去更新參數(weight),即: ![](https://miro.medium.com/max/424/1*C8PAvTAXukHZ2mZPItwIrg.webp) W 為權重(weight)參數 L 為損失函數(loss function) η 是學習率(learning rate) ∂L/∂W 是損失函數對參數的梯度(微分) 3. NAS (Neural Architecture Search): * goal NAS 的目的就是希望可以有一套演算法或是一個框架能夠自動的根據我們的需求找到最好的 neural architecture,而我們的搜索目標有可能會是根據 performance,或是根據硬體資源限制 (hardware constraints) 來進行搜索。 * Searching contain three parts (1) Search Space (2) Search Strategy (3) Performance Estimation ![](https://i.imgur.com/vlZLjrV.png) * Illustration of manual ConvNet design. ![](https://i.imgur.com/d6el0gP.png) * Reinforcement Learning based neural architecture search. ![](https://i.imgur.com/tgzzNTM.png) * Disvantages 4. DNAS (Differential Neural Architecture Search) ### introduction ![](https://i.imgur.com/xBxdhsX.png) In the past, many works use reinforcement learning (RL) to guide the search and a typical flow. ## MNASNET: Platform-Aware Neural Architecture Search for Mobile ## Once-for-All: Train One Network and Specialize it for Efficient Deployment

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully