To me, the evident pattern of the persistently severely overweight or persistently severely underweight will eventually be found to be caused primarily by dna, bacteria or viruses, and/or the microbiome. The psychology to me seems secondary, more symptom than cause.
I think the results of treatment loosely support this hypothesis. People behave like they're underlying condition is not really being treated and are often only ever able to achieve short-term improvement with considerable interventions but rarely are able to keep this up long-term.
My experience talking with people who are very over or underweight is that their appetite corresponds strongly with their weight.
The very underweight have appetites that shut down quickly, making eating further very unpleasant for them. Conversely, the very overweight have strong appetites, making limiting intake very uncomfortable.
Though people don't like to think of it this way, much of our thought processes are epiphenomena of the physical and chemical and biological activity going on in our bodies.