Pedophilia is not a fetish. It is much closer to a sexual orientation than a fetish, but most correctly, it is a paraphilia. This is why they are practically incurable. The pedophile who is married will still molest his children, even though he can have sex with his wife. There is no way to "treat" pedophiles to full recovery; it is an integral part of their personalities: not even castration has been shown to be completely effective. The only solutions are those that are permanent.
While some may emotionally jump immediately to
>>1, I don't agree. Pedophiles's are unfixable fuckups, but it is often better to avoid bloodshed when possible. If the punishment is death simply for being sick in the head, then they will try to get to do as much as they can before they are found. That's the thing about the death penalty: you've got nothing worse to offer. The pedophile would be , after molesting a child, with the options of letting the child go, or silencing her/him. If the punishment were the same for both, he would rationally choose to kill the child. After all, dead men tell no tales.
Instead, I suggest that the punishment for being attracted to children be institutionalization. It will give our scientists much better resources to find out exactly what makes a pedophile, while still protecting children from them. Those who have molested children will be imprisoned in a more prison-like place, while those who have not yet can be afforded more privileges than their more repugnant counterparts, such as better food or less work hours. Even more perks can be given to those who turn themselves in, rather than wasting police time by posting on 4chan.