Med VQA
      • 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
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners 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
    • Transfer ownership
    • Delete this note
    • 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 Help
Menu
Options
Engagement control 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
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners 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
    # Baseline 2: Multimodal Compact Bilinear Pooling for Visual Question Answering and Visual Grounding: > Source: https://arxiv.org/abs/1606.01847 - Argument/hypothesis: The multimodal pooling methods used in previous works (concatenation, elementwise product, sum, etc.) aren't as expressive a souter product of visual and textual vectors. - Problem : outer product is computationally infeasible due to high dimensionality. - This paper is trying to solve this problem using Multimodal Bilinear Pooling (MCB). - Inspiration: - Bilinear pooling have shown to be benificial for fine-grained classification for vision only tasks.([Lin, et. al.](https://arxiv.org/abs/1504.07889v4)). - [This](https://openaccess.thecvf.com/content_cvpr_2016/papers/Gao_Compact_Bilinear_Pooling_CVPR_2016_paper.pdf) shows how to efficiently compress bilinear pooling for a single modality.It views the bilinear transformation as a polynomial kernel. [Pham and Pagh](https://www.itu.dk/people/pagh/papers/tensorsketch.pdf) describe a method to approximate the polynomial kernel using Count Sketches and convolutions. ### Multimodal Compact Bilinear Pooling : ![](https://i.imgur.com/OHiBARW.png) Bilinear model: $z = W[x \otimes q]$ here, $[.]$ denotes linearizing the matrix in a vector and $\otimes$ denotes outer product. - However, high dimensionality makes it computationally infeasable. - Hence, to reduce dimensionality they use a Count sketch projection function $\psi$ which projects $v \in \mathbb{R}^n$ to $y \in \mathbb{R}^d$ - they initialize 2 vectors: $s \in \{-1,1\}^n$ and $h \in \{1, ....d\}^n$. - $s$ can be either 1 or -1 for each index. - $h$ maps each index $i$ in the input $v$ to an index $j$ to output $y$. - both $s$ and $h$ are randomly initialized from a uniform distrinution and remain constant in future. ``` y = zero vector of d dimensions for every element in v: j = h[i] y[j] += s[i].v[i] ``` - to avoid explicitly calculating the outer product they use (property of count sketches shown in [Pham and Pagh](https://www.itu.dk/people/pagh/papers/tensorsketch.pdf)): $\psi(x \otimes q, h, s) = \psi (x, h, s) \star \psi (q, h, s)$ here, $\star$ is the convolution operator. - convolution in time domain is equivalent to elementwise product in the frequency domain. $x \star q = FFT^{-1}(FFT(x') \odot FFT(q'))$ where, $\odot$ is the element-wise product - this even extends and remains efficient for more than 2 modal inputs as the combination happens as an elementwise product. ### Architecture for VQA: ![](https://i.imgur.com/vwKez39.png) 1. Image Embeddings : - Images are resized to 448 x 448. - Features are extracted using 152 layer ResNet pretrained on ImageNet. - Output after "pool5" layer taken then $L_2$ normalization on 2048-D vector is performed. 2. Question Embeddings: - word embeddings - tanh on the embeddings - then these are passed through a 2 layer LSTM with 1024 units and the outputs are concatenated to form a 2048-D vector. 3. Pooling : ![](https://i.imgur.com/3mFrYND.png) - the 2 vectors are passed through MCB - element-wise square root and L_2 normalization. - FC layer with input: 16, 000 and output 3,000 (Answer space). 4. Attention : ![](https://i.imgur.com/bHeyJtH.png) - to encorporate spatial information ,they use soft attention. - after pooling the last conv layer of ResNet( or VGG) and language representations, they used two conv layers to predict attention weight for each grid location. - then they applied softmax to produce normalized soft attention map. - then take a weighted sum of spatial vectors using attention map to create attended visual representation. - they tried multiple attention maps (like multi-headed attention, this was in 2016 ) which were concatenated before being merged with language representation 5. Answer Encoding: - for MCQ, encode the answers and use yet another MCB with attention - ![](https://i.imgur.com/UEtQsAp.png) ### Architecture for Visual Grounding: ![](https://i.imgur.com/0hxpVSl.png) - Based their architecture on fully-supervised version of GroundeR([Rohrbach et. al.](https://arxiv.org/abs/1511.03745)) - They replaced the concatenation of visual and textual representation in GroundeR with MCB. - Except this they also included a linear embedding of visual representations and $L_2$ normalization of both input modalities, instead of batchnorm. ### Evaluation of VQA: 1. Dataset : - evaluated on 2 datasets: 1. [VQA](https://arxiv.org/abs/1505.00468) dataset 2. [Visual genome dataset](https://arxiv.org/pdf/1602.07332v1.pdf): The avg question and answer lengths for visual genome is larger than VQA dataset. - They removed unnecessary words such as "a", "the", and "it is " from answers to decrease the length of the answers and extracted QA pairs whose answers are single-worded. - These were again filtered based on the ans vocabulary space created from VQA dataset. Hence, they had 1M extra image-QA triplet. 3. Visual7W : - A part of Visual Genome. - Adds a 7th W question category - However they only evaluate on Telling tasks wich involve 6W questions. - 4-choice MCQ's - They used answer encodings as described above in answer encoding section. - ablation studies reported on test-dev data split. 2. Experimental Setup : | Column 1 | Column 2 | | -------- | -------- | | Optimizer | Adam solver, $\epsilon$ = 0.0007, $\beta_1$ = 0.9 $\beta_2$ = 0.999| Regularization: | Dropout( on LSTM and fc layers) and $L_2$ normalization| |other methods| *Early stopping* if val doesn't improve in 50,000 iterations and report the best iteration on test-dev | **NOTE**: They used the same hyperparameters and training settings on Visual7W tasks as that of VQA. ### Ablation Results: ![](https://i.imgur.com/ZXNvC09.png) - They have even cleared the possiblity of getting good results due to increased parameters. - They compensated for teh parameters by stacking fcs with 4096 units and ReLU and Dropout . (shown by section 2 of Table 1) - However even with similiar parameter budget non-biinear methods could not achieve same accuracy as MCB method. - Section 2 of the table also shows that compact bilinear pooling has no impact on accuracy compared to full bilinear pooling. - They primarily use ResNet-152 but claim that MCB improves performance if VGG-19 is used.(section 3- MCB improves the performance irrespective of the image CNN used) - section 4 of the table shows that their soft attention model works best with MCB.

    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