Giter Site home page Giter Site logo

danielsaggau / deep_unsupervised_learning Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 9.66 MB

This repo examines different decoding schemes for conditional text generation. Specifically I look at counterfactual reasoning, adductive reasoning and text summarization.

Jupyter Notebook 99.86% Python 0.14%

deep_unsupervised_learning's Introduction

deep_unsupervised_learning

Note that this code is pre-dominately based on existing reposities:

For the BigBird Model I use pegasus_evaluation.ipynb which i added in the bin repo and for the counterfactual reasoning i use the official repo: https://github.com/qkaren/unsup_gen_for_cms_reasoning.

Data

Abductive Reasoning Datasource: http://abductivecommonsense.xyz

Counterfactual Data:

https://paperswithcode.com/dataset/timetravel

Commonsense Reasoning

Delorean entails code for the two tasks namely abductive reasoning. The main delorean decoding notebook can be found in the DeLorean.ipynb file. Code can be found in the commonsense folder.

Note that there is no offical code for the evaluation and the repo only contains code untill the ranking step. This is a reason why there are some difference also with respect to the scaling of the scores.

ROUGE-L BertScore Bleurt
TimeTravel
Reported DeLorean 40.73 63.36 -
Replicated DeLorean (Non-Deprecated) 31.19 0.886 -.8552
Art
Reported DeLorean 18.94 42.86 -
Replicated DeLorean (Non-Deprecated) 17.89 0.874 -0.970

Text Summarizations

I report the ROGUE and BLEURT Scores for the models for the summarization. You can find the respective CSV with the results folder for the respective model. When i write down BigBird, i refer to BigBird-Pegasus large of the respective fine tuned checkpoint. The table reports the F1 measures

ROUGE-1 ROUGE-2 ROUGE-L Bleurt
Pubmed
Reported BigBird 46.32 20.65 42.33 -
Replicated BigBird 43.94 19.60 26.90 -0.448
BigBird + Sampling 43.93 19.62 26.91 -0.159
BigBird + Sampling + Repetition Penalty 43.94 19.55 26.82 -0.161
Arxiv
Reported BigBird 46.63 19.02 41.77 -
Replicated BigBird 43.50 17.74 25.77 -0.4993
BigBird + Sampling 43.50 17.74 25.77 -0.4993
BigBird + Sampling + Repetition Penalty 43.47 17.77 25.70 -0.498
Big Patent
Reported BigBird 60.64 42.46 50.01 -
Replicated BigBird 37.88 15.11 26.12 -0.473
BigBird + Sampling 37.88 15.11 26.12 -0.473
BigBird + Sampling + Repetition Penalty 37.88 15.21 26.09 -0.474
billsum
BigBird Arxiv 16.06 01.73 12.45 -1.001
BigBird Big Patent 26.92 09.44 19.22 -0.716
BigBird Arxiv + Ngram-Penalty 22.22 03.24 13.20 -0.9698
BigBird Big Patent + Sampling + Repetition Penalty 26.47 09.38 18.94 -0.724

I include a few notebooks i used. To reproduce, Arxiv one needs to make some changes in the pubmed notebook. Instructions are provided in the notebook itself. All the notesbokes heavily built on the pegasus_evaluation notebook which was published by the authors of bigbord. I also link that and many other reference notebooks in the bin folder.

Plots

Code for the plots can be found in the paper folder

Bin

This folder contains all reference notebooks i used.

Further Direction

I would love to apply this combined method of bidirectional decoding and long sequence summarization via sparse attention in further research and potentially apply it to a shared task such as laysumm2020.

deep_unsupervised_learning's People

Contributors

danielsaggau avatar

Watchers

 avatar

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.