It sounds like they aren't getting what they need nutritionally. I have yet to hear of a proper diet that consists of only dog food. I'm certain they're missing quite a few ingredients they need. There are two kinds of diet you can create with doggy bag dog food but it's not supposed to be their staple diet.
Here's the Shunamite Rat diet. (I use the same diet for rats, mice, and ASFs)
http://www.shunamiterats.co.uk/feedkittens.shtml
And here's the Sue Bees Rat diet
http://www.ratsrule.com/diet.html
I've also read there is a link between two much protein and more males. I know a mouse breeder that has been experimenting with diets to lower the protein to get more females.
If you get them on a proper diet (either making your own or buying lab blocks) and they still cannibalize, then you need to start over with new stock.