Willianto Sulaiman
    • 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
    ###### tags: `PaperReview` # Variational Information Bottleneck for Effective Low-Resource Fine-Tuning > ICLR 2021 ## Introduction - **Transfer learning** has emerged as the standard technique in natural language processing (NLP), where large-scale language models are **pretrained on an immense amount of text** to learn a **general-purpose** representation, which is then **transferred to the target domain** with fine-tuning on target task data - However, such **pretrained models have a huge number of parameters**, potentially making **fine-tuning susceptible to overfitting**. - In particular, if the amount of **target task data is small**, it can be hard for fine-tuning to **distinguish relevant from irrelevant information**, leading to overfitting between the irrelevant information and target labels - This paper propose a **fine-tuning method that uses Variational Information Bottleneck(VIB)** to improve transfer learning in low-resource scenarios. ## Fine-Tuning in Low-Resource Dataset ![image](https://hackmd.io/_uploads/HyF178Zy0.png) ### Information Bottleneck - The objective of IB is to **find a maximally compressed representation** $Z$ **of the input representation** $X$ (compression loss) that **maximally preserves information about the output** $Y$ (prediction loss), by minimizing: $$ \mathcal{L}_{IB} = \beta I(X, Z) - I(Z, Y) $$ in which $\beta \geq 0$ is a hyper-parameter that **controls the balance between compresion and prediciton**,$I(X, Z)$ and $I(Z, Y)$ are **Compression Loss** and **Prediction Loss** respectively, and $I(\cdot, \cdot)$ is **mutual information**. ### Variational Information Bottleneck - The loss for VIB can be derived as: $$ \mathcal{L}_{\mathrm{VIB}}=\beta \underset{x}{\mathbb{E}}\left[\mathrm{KL}\left[p_\theta(z \mid x), r(z)\right]\right]+\underset{z \sim p_\theta(z \mid x)}{\mathbb{E}}\left[-\log q_\phi(y \mid z)\right] $$ - $\operatorname{KL}\left(\mathcal{N}\left(\mu_0, \Sigma_0\right) \| \mathcal{N}\left(\mu_1, \Sigma_1\right)\right)=\frac{1}{2}\left(\operatorname{tr}\left(\Sigma_1^{-1} \Sigma_0\right)+\left(\mu_1-\mu_0\right)^T \Sigma_1^{-1}\left(\mu_1-\mu_0\right)-K+\log \left(\frac{\operatorname{det}\left(\Sigma_1\right)}{\operatorname{det}\left(\Sigma_0\right)}\right)\right)$ - During training, the compressed sentence representation $z$ is **sampled from the distribution** $p_\theta(z|x)$, meaning that a **specific pattern of noise is added** to the input of the output classifier $q_\phi(y|z)$. - During testing, the **expected value of** $z$ is used for predicting labels with $q_\phi(y|z)$. - Considering **parametric Gaussian Distribution** for prior $r(z)$ and $p_\theta(z|x)$ to allow an **analytic computation for their KL divergence**. ## Experiments - Evaluated on **text classifications, natural language inference, similarity, and paraphrase detection**. - **BERT~Base~ and BERT~Large~** is utilized as the base model ### Varying Resource Result ![image](https://hackmd.io/_uploads/HyoXL-beR.png) ### OOD generalization ![image](https://hackmd.io/_uploads/rkyarZ-e0.png) ### Impact of VIB on Overfitting - Analyze the effect of $\beta$ parameter on training and validation error ![image](https://hackmd.io/_uploads/HyznIZWxA.png) - For **small values of** $\beta$, where VIB has little effect, the **validation loss is substantially higher than the training loss**, indicating **overfitting**. - As $\beta$ becomes **too large**, both the **training and validation losses shoot up** because the amount of **preserved information is insufficient** to differentiate between the classes # Task-specific Fine-tuning via Variational Information Bottleneck for Weakly-supervised Pathology Whole Slide Image Classification > CVPR 2023 ## Introduction - The reading of Whole Slide Images (WSIs) with **gigapixel resolution** is **time-consuming** which poses an urgent need for **automatic computer-assisted diagnosis**. - Though computers can boost the speed of the diagnosis process, the **enormous size of resolution, over 100M, makes it infeasible to acquire precise and exhaustive annotations for model training**, let alone the current hardware can hardly support the parallel training on all patches of a WSI. - Propose a solution based on **Variational IB** to tackle the dilemma of fine-tuning and computational limitation ![image](https://hackmd.io/_uploads/rkgyObbeA.png) ## Method - Given a WSI $X$, the goal is to make slide-level prediction $Y$ by learning a classifier $f(X ; \theta)$. - Due to its extremely high resolution, $\mathrm{X}$ is patched into a huge bag of small instances $X=\left\{x_1, \ldots, x_N\right\}$, where $\mathrm{N}$ is the number of instance. - The slide-level supervision $\hat{Y}$ is given by a Max-pooling operation of the latent label $\hat{y}_i$ for each instance $x_i$, which can be defined as: $$ \hat{Y}=\max \left\{\hat{y}_1, \ldots, \hat{y}_N\right\} $$ ![image](https://hackmd.io/_uploads/BJaCFb-gA.png) - Define the IB module as: $$ z = m \odot x $$ where $m$ is a Bernoulli($\pi$) distributed binary mask. - The KL can be decomposed as: $$ K L\left[p_\theta\left(m_i \mid x\right), r\left(m_i\right)\right]+\pi H(X) $$ ![image](https://hackmd.io/_uploads/HJs7AW-eA.png) Where $H(X)$ is the entropy of X, which can be **omitted during the minimization** due to its constant value ## Result ![image](https://hackmd.io/_uploads/HkPGJGZxR.png)

    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