Giter VIP home page Giter VIP logo

2021-gaiic-track1-idea's Introduction

2021-GAIIC-Track1-idea

非常荣幸能够拿到本周周星星,目前线上分数是5折nezha-base模型融合得到,采用pretrian+finetuning,具体细节如下:

Pretrain

  1. 由于数据是脱敏,所以直接从头开始训练bert模型,没有加载已有的预训练模型权重,模型采用的是nezha-base,代码参考;nezha
  2. mask方法:采用ngram mask方法,以及动态mask方法,具体可以参考:albert
  3. 预训练代码使用的是tansformers模块自带的,具体可以参考;transformers
  4. 预训练参数:lr=1e-4,batchSize=128,seql_length=128,动态batch length,最终mlm损失为0.3左右

Finetuning

  1. k折: 采用的multilabel进行划分,默认k=5

  2. 模型:nezha模型微调,并直接使用CLS进行分类,采用sigmoid

  3. 损失; 二分类交叉熵损失函数

  4. 对抗:加入对抗训练,使用的是fgm

  5. 自融合方法,采用是SDA,可以参考:SDA

  6. 优化器:加入lookahead方法,具体可以参考:lookahead

  7. 线下dev:0.96

总体上没有新的技巧,都是自己仓库中的方法拿来堆的,线上线下差距很大,也很难同步,所以摸奖看人品。

2021-gaiic-track1-idea's People

Contributors

lonepatient 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.