In France the very elite students get paid during their studies (equivalent to Msc, not PhD). In exchange they are supposed to work as civil servants for some time (not sure all are supposed to do that), but some go work abroad right after their studies so that investment is mostly lost by the French government.