Giter Club home page Giter Club logo

multitask-abuse's People

Contributors

zeeraktalat avatar

Stargazers

 avatar

Watchers

 avatar

multitask-abuse's Issues

Weight all aux tasks equally

As discussed, since we don't have much information as to how informative tasks are for each other, we set the weights for all auxiliary tasks equally, more specifically to 1/len(aux_tasks).

That will be the easy thing to try first.

What I forgot to mention are possible ways to quantify task relatedness. These could include measuring the PMI of labels or vocabulary. Could be interesting to look into this.

Implement MTL capability

See our CWI'18 code for reference: https://github.com/bjerva/cwi18

In this project, tasks are different languages.

In src/model.py you'll see that self.inputs is a dictionary mapping a taskID to an input layer. self.outputs should really follow that convention tbh, but for some reason it's a list of layers here that are accessed with integers, don't know why we did it that way. Then in the forward(), you see that the input task ID is provided as an argument.

In src/run.py, during training, a task ID is drawn at random, then a batch of data for that task. That's not best practice I'd say, better to have a predefined schedule, but in any case you wanna know which task you're training on, so that you can tell that to the model.forward().

Make sense?

Questions

A bunch of questions have come up today from the train function:

  • Can we make one massive vocabulary shared by all tasks or should it be task dependent vocabularies?
  • What is clip / does it do?
  • What is model.binary?
  • Why the CWI epoch loss?
  • What does model.train() do?
  • Why do you set the zero gradient for the optimizer instead of the model?
  • Why do you change the view (logits.view([size, 1]) of the predicted results of your model?

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.