PURPOSE: This randomized phase I/II trial is studying the side effects of vaccine therapy and interleukin-2 and to see how well they work in treating women with stage IV, recurrent, or progressive breast or ovarian cancer.