In social foraging, scroungers take a disproportionately large share of the food found relative to their own food-searching efforts, while producers find more food than they manage to monopolize. We present a model of social foraging acknowledging the finder's advantage and foraging role asymmetries among individuals but incorporating the possibility that producers and scroungers differ in vigilance level and in vulnerability to predators. This allows simultaneous examination of both foraging benefits and anti-predatory aspects of grouping behaviour. Instead of seeking for equal payoff conditions, we first look for groups in which foraging character combinations and anti-predatory properties of producers and scroungers minimize the phenotype-specific predation hazard over food-intake rate, R-i/I-i, that is, fixed phenotype R-i/I-i minima. In the second approach, we allow individuals to change their foraging status to achieve lower R-i/I-i and look for combinations where it no longer pays for either producers or scroungers to change their roles, that is, evolutionarily stable group compositions, ESS. Various character combinations allow the phenotype-specific minima. In most cases, however, producers' and scroungers' minima are achievable only in different group compositions. The ESS combinations of producers and scroungers deviate widely from those combinations yielding phenotype-specific minima of R-i/I-i. If individuals are allowed to be flexible in adopting either a producer or a scrounger role, ESS group compositions will emerge, even though they are more expensive for both producers and scroungers in terms of R-i/I-i than group compositions yielding the phenotype-specific R-i/I-i minima. (C) 1998 The Association for the Study of Animal Behaviour.