Oh yes, As I put, I've no issue with the question of density, it's more a question of where the additional weight comes from. If I'm eating less and training more, what physical process has occured that has generated whatever has caused the increase in weight?
The calorific content of any food you eat is not tied to its density. If you're eating and drinking less in weight than you excrete (sweat, urine, faeces, etc) and still gaining weight then clearly there is something funny going on, but until and unless you start weighing your poo I don't see how you're going to know that.