Just the short basics:
Soy won't poison animals, but the oil & some protiens are not handled very well if fed a lot, so they will go off their feed or not gain weight so well.
Roasting the beans will convert those oils & protiens into something that is easily digestable. Just need to do enough heat to convert, not so much to burn up the bean.
Purchased feed uses soybeans that were run through an extruder, which removes the oil & leaves the high-potien bean meal. The heat of the extruding likely was as much as was needed.
If you use whole beans you roast yourself, realize you have a slightly different feed than purchased bean meal, and use the proper charts to account for the oil. Good suppliment, for best efficiency just account for what you have.
You can feed 1-3% raw soybeans without roasting, and the livestock will handle it just fine. If you want more soy in the feed, then roasting will be needed.
Probably 100 different other ways to deal with this too, only a broad outline of what is currently being done with soybeans......
--->Paul