Could be various mechanisms OCD, autism spectrum, addiction, etc. I do not have a porn addiction but I do have repetitive behavior. Oddly large doses of taurine seem to be helping with that. Do not know much about OCD. In the case of addiction drugs like naltrexone has been used to treat a lot different types of addiction.
http://en.wikipedia.org/wiki/Naltrexone