bert icon indicating copy to clipboard operation
bert copied to clipboard

Is CLS token also Masked in pre-training?

Open SRHyd opened this issue 8 years ago • 2 comments

In the BERT paper, it says "In all of our experiments, we mask 15% of all WordPiece tokens in each sequence at random" Is it true for CLS token also?

Thanks, SR

SRHyd avatar Nov 23 '18 07:11 SRHyd

no, it wouldn't https://github.com/google-research/bert/blob/master/create_pretraining_data.py#L340

xwzhong avatar Nov 23 '18 12:11 xwzhong

Correct, it doesn't get masked.

jacobdevlin-google avatar Nov 23 '18 22:11 jacobdevlin-google