question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I’ve noticed an abnormal phenomenon for seq2seq model: the validation loss is always lower than training loss, both on Twitter and OpenSubtitles dataset.

And I found this part of codes quite suspicious: https://github.com/facebookresearch/ParlAI/blob/09351eec1076319a9f5ea0f6a0c242d5f35fa43d/parlai/agents/seq2seq/seq2seq.py#L403-L411

So here we see when doing pure prediction, we don’t use true labels ys, but when computing loss we use, which I think will bias the validation loss. Are there any reasons for computing loss like this?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
ShaojieJiangcommented, Mar 2, 2018

And thanks @alexholdenmiller ! With dropout=0.0, the validation loss is roughly the same as training loss.

0reactions
alexholdenmillercommented, Mar 12, 2018

Updated perplexity scoring

Read more comments on GitHub >

github_iconTop Results From Across the Web

Identifying Bugs and Bug Bites - WebMD
Learn to identify ticks, poisonous spiders, fleas, chiggers, and other bugs in this WebMD slideshow. See what their bites and stings look ...
Read more >
A Suspicious Insect
Is a little-known predator insect that lives its life underwater in the tropics the cause of an outbreak of a mysterious flesh-eating ...
Read more >
How to Identify a Bed Bug Infestation
Most people become suspicious of a bed bug infestation when they find unexplained bites on their bodies. Most commonly a per- son will...
Read more >
CWE-546: Suspicious Comment (4.9) - MITRE
Many suspicious comments, such as BUG, HACK, FIXME, LATER, LATER2, TODO, in the code indicate missing security functionality and checking.
Read more >
Remove malware or unsafe software - Android - Google Support
Malware is unsafe or unwanted software that may steal personal info or harm your device. You may have malware on your device if:...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found