Some dogs come back when they run away simply for the reason that there is a good reason for them to come home.
This is not a very exciting thought for a dog to come home to if he runs away.
When your dog comes back after running away, teach him what you want to do so he does not run away again.