asappresearch / revisit-bert-finetuning Goto Github PK
View Code? Open in Web Editor NEWFor the code release of our arXiv paper "Revisiting Few-sample BERT Fine-tuning" (https://arxiv.org/abs/2006.05987).
License: Other
For the code release of our arXiv paper "Revisiting Few-sample BERT Fine-tuning" (https://arxiv.org/abs/2006.05987).
License: Other
Great paper, thanks.
Quick question, am I correct to assume that the bias correction has been addressed in the transformers library? It seems that their new AdamW is taking an argument BiasCorrection, which evaluates to True by default, hence using BC.
The condition to trigger exclude_last_group is never True because "i" will always be smaller than len(self.param_groups). See #6
"Re-initialization" is typed without the dash
Hi, thanks for the great paper and implementation. I have a question regarding pre-trained weight decay.
Assume I don't want to use layerwise learning rate decay (args.layerwise_learning_rate_decay == 1.0
), in get_optimizer_grouped_parameters
I will get two parameter groups: decay and no decay. Hence in PriorWD
all initial parameters will be recorded
self.prior_params = {}
for i, group in enumerate(self.param_groups):
for p in group["params"]:
self.prior_params[id(p)] = p.detach().clone()
In this case, during updating, all parameters will have a weight decay towards the initial value.
However, I suppose that we don't want the classification layer to decay towards the init values, so it seems that we should really create a separate parameter group for the classification layer.
I was wondering whether my reasoning would make sense to you, or where did I get it wrong?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.