Optimal Forgetting In Stomatopods.
Male stomatopods leave the breeding cavity after mating to search for new mates.
They seem to remember their former mates and to be less aggressive toward them during the four weeks that their brood remains in the cavity.
After the four weeks, when his offspring have left the cavity, it no longer benefits the male to remember his former mate.