Learning Solutions Structure