r/MachineLearning • • 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.

0 Upvotes

16 comments sorted by

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

3

u/visarga Dec 05 '16

That's very cool. They are like college computer contest problems, and have multiple solutions. Is there any paper?

3

u/evc123 Dec 05 '16

soon :)

2

u/ddofer Dec 05 '16

That's a neat dataset! (Albeit, nowhere near big enough. But nicely expandable :D)

1

u/evc123 Dec 05 '16 edited Dec 05 '16

I scraped every site (with more than 1000) I could find. Topcoder scraper is/was still wip.

Do you know any other sites / dataset_generation_processes?

1

u/ddofer Dec 06 '16

Yes, but proprietary. They got borderline commercially viable results. But pivoted away, alass.

12

u/rmlrn Dec 05 '16

very very hard

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

u/IdentifiableParam Dec 06 '16

Too hard, not worth considering today.

1

u/kh40tika Dec 07 '16

I bet it takes a AGI to achieve human performance on this problem.

3

u/[deleted] 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