My view is that talented psychologists, not militarists, should be in charge of a nation's foreign policy.
Most acts of violence are inner-conflicts projected outwards. The solution is to understand the true roots of violence: Often childhood trauma or socio-economic pressures.
Most humans are rational actors. I feel that we label them irrational only when we fail to understand or take interest in their motivations.
For example, the fairly recent murder of as many as eight million people in the Middle East by wars undertaken by the UK and USA seems like it might be a powerful motivator for groups like ISIS to feel their voice is unheard.
Thanks for a thought-provoking question :)
Reminds me of the philosopher king solution :)