This is already what happens though.
It would help to compensate students for going to school, but it would not be the only solution, because the schools and universities are institutions that seek to perpetuate themselves. Whether you pay the student or not is not materially relevant to that.
What really needs to happen is a sort of "de-specialization", where students aim for a general education, and then receive technical education appropriate to filling a particular type of job once they decide (or the government decides) that's what they're going to do with their time. We need to get away from telling kids "what do you want to be when you grow up", as if we need to fill this or that profession. I never had an answer to this (of course none was ever expected of me). I just wanted to be a man who could do something, anything, that was useful. That, of course, was the one thing that was unacceptable, and I think many normals experience the same thing when they realize that their work is just there to make some rich assholes perpetuate their system and their government, and that their dreams are subordinated to that. I just experience it in a way that is utterly undeniable, and comes with social restrictions.
There isn't an easy answer because much of the way universities are structured encourages this division of knowledge, and the separation of the mind and bodies of knowledge into spheres which do not come into contact with each other. A funny thing is that once I started reading more philosophy and reading about Marxism, my understanding of computer programming improved because I actually started to think about what I was writing, rather than just hacking out code. (I must confess though, I am not a great programmer and my programs are chock full of crashes and mistakes… but I'm making fewer than I did when I took up the hobby a few years ago after about a decade of brain rot.)
Probably the simplest reform would be to test kids for basic literacy and arithmetic. If you pass the test, and show sufficient capability later on, congratulations, you get to skip large parts of primary school. If you're behind, then there's a cause for teaching. In practice though, because of how institutions work, the kids who don't succeed first try will be ostracized and declared defectives. I don't see how socialism resolves this because it is the class interest of those who attain the status to preserve it, and preserve it for their children. But you have to acknowledge the class differences within the so-called working class and the open antagonisms, which is dangerous for a revolutionary state to even contemplate when they're already busy trying to fight the old capitalists. Still, if we could somehow reduce this effect (as we have to, out of dire necessity really because the current model of ruthless competition and exterminism is literally killing humanity and society), we could do that right now and cut the school day in half, and kids would have more time to develop organically instead of being beaten and demoralized the way most students are now (with a few so-called gifted students being endlessly praised and turned into the worst shits imaginable).
I have doubts that you would have a "school" as such. Schools as institutions are about policing and suppression rather than learning. You can have organized learning groups without "schooling" per se, and you can socialize children and build a sense of community without resorting to the sickening methods of schooling. How to do this would be uncharted territory unfortunately, since such attempts are extremely frowned upon in the present society and mark a child for extreme exclusion.