The best solution is not only free and compulsory education, but also huge monetary benefits for the underpriveleged.
If a Dalit or a MBC kid performs and scores high marks, govt should give lumpsome amount to his parents ,and maybe give him/her huge money for him/her to pursue the best eductation, if required even outside India. Why cant they do that ? These scholarships should be exclusively for MBCs and Dalits. That will really be a strong incentive for communities other wise not very educated to get obsessed with education .