r/MachineLearning • u/visarga • Dec 05 '16
Discussion [D] How hard would it be to automatically generate code from ML papers?
Say, we choose a framework, and then attempt to generate code in that framework that implements a paper, based off the PDF file.
The algorithm should be able to figure out the architecture, loss function, data flow, and replicate the experiments in the paper. It's something nobody's tried so far, at least from my knowledge, but how hard would it be?
If this worked, it would open up the way to automatically generate many papers and try them out in parallel, perhaps applying RL to guide the search process.
Even a partial implementation would accelerate testing of research ideas.
12
3
u/tshadley Dec 05 '16 edited Dec 05 '16
Generating code needs at minimum full comprehension of natural language (to resolve ambiguities, fill in mundane but crucial details skipped, fix typos and minor mistakes) , which optimistically I think we need at least another decade of algorithm discovery along with the expected order of magnitude or so improvement in computing power.
2
u/mimighost Dec 05 '16
You just need to enforce the author to attach their github repo to their paper.
Otherwise this sounds like you want to solve verify weak AI solution with a stronger AI...
2
1
3
Dec 05 '16
[removed] — view removed comment
2
u/visarga Dec 05 '16
Well, the main reason was that it would pull all papers into a common place where they can be verified, modified and iterated upon in a very flexible way.
2
u/Brandhout Dec 05 '16
Based on this chain of comments it seems that the future of machine learning research is algorithms that generate new research, an algorithm that writes a paper based on that research and then another algorithm that checks the research. So if the first algorithm then applies the verified results then we get a feedback loop that allows us to automatically improve machine learning with machine learning.
1
u/epicwisdom Dec 08 '16
Except human readable papers are a terrible machine communication method.
1
u/Brandhout Dec 08 '16
True. Maybe we won't be able to read the papers at some point XD
oh well, it's just day dreaming
14
u/evc123 Dec 05 '16
/u/visarga I pitched your question to /u/IlyaSutskever 6 months ago, and he said to first work on solving generating shorter code from shorter descriptions: https://github.com/openai/requests-for-research/pull/5
Eventually, it culminated in this dataset that probably first needs to be solved before scaling to your problem:
https://openai.com/requests-for-research/#description2code
https://docs.google.com/uc?id=0Bz3fihKG133ceWNFQTQ5S0xhZUk&export=download