self-critical.pytorch icon indicating copy to clipboard operation
self-critical.pytorch copied to clipboard

Lower CIDEr values on CIDEr Optimization

Open goelarushi opened this issue 5 years ago • 12 comments

I am training my captioning model for 32 epochs (with CE loss) and then doing SCST training. But my rewards increase in the negative and my CIDEr decreases. Any possible reasons for this? Thanks for the help in advance.

reward

goelarushi avatar Oct 16 '19 11:10 goelarushi

Could you provide the details of your scores, like CIDEr or Bleu and the model you used.

zhengyi123456 avatar Nov 26 '19 09:11 zhengyi123456

Are you using the same hyperparameters as in the readme? Can you check your learning rate?

ruotianluo avatar Dec 31 '19 21:12 ruotianluo

Did you solve it? thanks

kangkang59812 avatar Jan 03 '20 07:01 kangkang59812

Hi everyone. Thanks for your reply. @ruotianluo - I am using it for a little bit different setting but if I make the learning rate very small (5e-6), the cider starts to increase for a few epochs but then starts decreasing again. Do you suggest a much smaller learning rate? My cider before optimization is 114.5 and increases only upto 115.1.

goelarushi avatar Jan 06 '20 16:01 goelarushi

@goelarushi can you tell me what is your setting? what feature, what model are you using?

ruotianluo avatar Jan 06 '20 16:01 ruotianluo

@ruotianluo, I am using the bottom-up features and a model similar to the original BUTD paper.

goelarushi avatar Jan 06 '20 16:01 goelarushi

@goelarushi if you run the script in README.md, is that doing the right thing?

ruotianluo avatar Jan 06 '20 16:01 ruotianluo

Yes, when I try to run the same setting as yours it works. But when I try to take a part of your cider optimization to my code and setting, it behaves differently. my loss and net reward are -0.75 and -0.96 respectively (do not got a lot lower than this). Thanks for your help in advance.

goelarushi avatar Jan 06 '20 17:01 goelarushi

It's hard for me to guess what is wrong if you are using your own code. Are you running on COCO?

ruotianluo avatar Jan 06 '20 17:01 ruotianluo

I understand. I will try to debug and I hope i get close to the solution soon. I am running on COCO Karpathy splits.

goelarushi avatar Jan 06 '20 17:01 goelarushi

@goelarushi are you using the code here? If yes, i can help you with that.

fawazsammani avatar Feb 11 '20 14:02 fawazsammani

Hi @fawazsammani . Thanks for your reply. I am indeed using similar code. Do let me know if you encounter similar problem while using CIDEr optim. I see my reward doesn't go down much after some epochs. Thanks.

goelarushi avatar Mar 01 '20 15:03 goelarushi