pytorch-vsumm-reinforce icon indicating copy to clipboard operation
pytorch-vsumm-reinforce copied to clipboard

Why is the probability of output always around 0.5?

Open linjingxu opened this issue 5 years ago • 4 comments

hello, I really appreciate your work. I have run your code, but i found the probs of the last fc layer are always close. For example, they are always around 0.5. Why not approach 0 or 1?I look forward to your reply!

linjingxu avatar Nov 16 '19 07:11 linjingxu

Hello mate, have you solve the problem?

pandababyer avatar Apr 27 '20 08:04 pandababyer

@pandababyer Not yet

linjingxu avatar Apr 27 '20 08:04 linjingxu

@linjingxu I think the probs is the predicted importance scores for each frame, and the author want to select the key-shot which is the key segment. so in the function generate_summary, the author convert the key-shot select problem to a knapsack problem and find the key segment in 'picks'. I think that may explain why the score is around 0.5 rather than approach 0 or 1. Looking forward to your reply :)

pandababyer avatar Apr 27 '20 09:04 pandababyer

@pandababyer I have experimented with a couple of models that do the regression with sigmoid to output the frame importance score. Because the frame score is so sparse (at least this is true for summe dataset) the model learns to predict all 0, hence, the loss is pretty low. Very little gradient flow backwards. These regressive model tend to not have that much learning, according to my experience.

Pager07 avatar Jan 22 '21 15:01 Pager07