I have a male 100 lb. 3/4 yellow lab, 1/4 white shepherd. He is extremely smart, even for a lab/shepherd mix. I used to work for Guiding Eyes for the Blind and I can say from experience that he is above average intelligence even for those breeds. He learns very fast and is very respectful of me and the people he sees regularly, but there is one problem. He CANNOT be trusted around other male dogs.
His history here should be mentioned. He was found by his previous owners wondering around on the side of a highway, with scars on his face and some missing teeth, judged to be about 3 years old at the time. The people that found him kept him for less than a year because he had a habbit of unpredictably biting people that came to their house. My family saw a listing they put in the Pennysaver and that's how we got him.
Having some dog training experience from my GEB work, I taught him not to attack people anymore and at this point he's very trustworthy and even affectionate. And he's learned all the basic commands. I had him sitting before crossing the street without being told to do so in only a matter of weeks.
But sometimes I'm not around to walk him, and only large, strong people can fill in for me (I'm 6'7" and 240 lbs.) because he's been known to snap the lease out of the walker's hand upon seeing another male dog, at which point he darts over and attacks.
Now I've been trying to work on this, but I only feel comfortable doing so much because if you make a mistake, you've got a neighbor with an injured dog and it's not worth the risk. He's already bitten 3 dogs badly enough that they needed medical attention. What I do when another dog approaches him, if I can't avoid the situation entirely, is I hold the leash very tight and wait until the other dog is done checking him out. The times when he has bitten other dogs when I was with him, I made it very clear that I disapproved of this and locked him in a room by himself for several hours. And he responds to this, clearly concerned about my approval. But it seems to make no difference the next time he sees another male dog.
And the strange thing is how it sometimes comes out of nowhere. There have been times when I thought we had made enough progress that I could give him a little more freedom. And he'd start playing with the other dog, tail wagging, then out of nowhere just bite the dog and pin him to the ground, and not respond to anything I did other than physical intervention.
Does anyone have any ideas for how to get this highly intelligent, highly responsive dog, to stop injuring other dogs? I would love to be able to let him play with other dogs more because I know he'd really enjoy that. And it would be great for him also if he could be trusted because he'd get walked by the other people in my house who are afraid of him pulling away to attack.

