Git Product home page Git Product logo

googleqalabeling's People

Watchers

 avatar  avatar  avatar

googleqalabeling's Issues

Review past competitions

Consider RAdam

My understanding is that RAdam is probably better for NLP stuff. Let's give it a try here.

Why do we turn off weight decay for bias and layernorm?

This is done while setting up our optimizer:

            no_decay = ['bias', 'LayerNorm.bias', 'LayerNorm.weight']
            optimizer_grouped_parameters = [
                {'params': [p for n, p in param_optimizer if not any(nd in n for nd in no_decay)], 'weight_decay': 0.8},
                {'params': [p for n, p in param_optimizer if any(nd in n for nd in no_decay)], 'weight_decay': 0.0}
            ]

What is the reason for this?

25% of words are not in embeddings

We have about 48,000 unique words from the StackExchange Q&A sites. We're creating embeddings from Crawl300 which has over 2 million words with their corresponding embeddings.

Somehow we're getting over 25% of words as UNKNOWN.

This seems super high, we should investigate which words are unknown and see if there is an issue we need to fix.

Implementation of SpatialDropout seems incorrect

Implementation:

class SpatialDropout(nn.Dropout2d):
    def forward(self, x):
        x = x.unsqueeze(2)  # (N, T, 1, K)
        x = x.permute(0, 3, 2, 1)  # (N, K, 1, T)
        x = super(SpatialDropout, self).forward(x)  # (N, K, 1, T), some features are masked
        x = x.permute(0, 3, 2, 1)  # (N, T, 1, K)
        x = x.squeeze(2)  # (N, T, K

I think we're supposed to randomly dropout entire channels NOT entire words. I think this implementation ends up dropping entire words.

We should check both of these statements ^

Is 512 a good sequence length?

By default our current approach uses sequences of length 512 that are fed to the BERT transformer. Is this a good length? How many sequences are less than this, how many are more?

Our EDA tried to explore this, but we weren't tokenizing the same way.

Test Set: 29.83% of sentences are 512 or more tokens
Train Set: 26.93% of sentences are 512 or more tokens

Consider mixup?

From: https://forums.fast.ai/t/mixup-data-augmentation/22764/4

Have you tried mixup with anything else but classification?

Yes, I’ve tried it in NLP, mixing the outputs of the embedding layers and it has given good results. Hoping to have time to experiment with this more and write a paper about it when the development of fastai_v1 slows down a bit 😉 I think it would also be helpful in tabular data (again mixing the embeddings fro categorical variables), not sure about object detection since I don’t see how you mixup the targets (which is critical in making mixup work properly).

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.