Biological mixtures, such as cellular cytoplasm, have ordered mesoscopic structures that emerge from heterogeneity.A liquid Hopfield model is developed for retrieving states with target compositions.Non-linear repulsive interactions are necessary for the retrieval of target structures.The sparse modern Hopfield model is introduced as a sparse extension of the dense counterpart and shows improved performance in memory retrieval.