, 6 tweets, 3 min read
My Authors
Read all threads
Most NLP models treat numbers (e.g., “91”) in the same way as other tokens, i.e., they embed them as vectors. Is this a good representation for downstream numerical tasks such as DROP, math questions, etc?

Yes! Pre-trained vectors (BERT, GloVe, ELMo) know numbers.[1 / 6]
We begin by testing QA models on questions that evaluate numerical reasoning (e.g., sorting, comparing, or summing numbers), taken from the DROP dataset. Standard models excel on these types of questions! [2 / 6]
To understand how models can capture numerical reasoning, we probe their token embeddings (e.g., BERT, GloVe) using list maximum, number decoding, and addition tasks. [3 / 6]
Pre-trained embeddings capture numeracy: number magnitude/order is present, even for numbers in the thousands. Character-level methods are especially strong (ELMo excels while BERT is mediocre), and CNNs are a great prior for numeracy. [4 / 6]
We do find one failure mode---the probing models struggle to extrapolate to numbers outside the training range. See in-domain test set predictions (blue) versus out-of-domain (red) in the first tweet. We attribute this problem to neural models themselves. [5 / 6]
See all of this and much more in:

Do NLP Models Know Numbers? Probing Numeracy in Embeddings by @Eric_Wallace_ @yizhongwyz, Sujian Li, @sameer_ @nlpmattg

#emnlp2019

Paper: arxiv.org/abs/1909.07940
Missing some Tweet in this thread? You can try to force a refresh.

Enjoying this thread?

Keep Current with Eric Wallace

Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

Twitter may remove this content at anytime, convert it as a PDF, save and print for later use!

Try unrolling a thread yourself!

how to unroll video

1) Follow Thread Reader App on Twitter so you can easily mention us!

2) Go to a Twitter thread (series of Tweets by the same owner) and mention us with a keyword "unroll" @threadreaderapp unroll

You can practice here first or read more on our help page!

Follow Us on Twitter!

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just three indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3.00/month or $30.00/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!