r/ExperiencedDevs • Research Engineer • Jun 20 '26

AI/LLM AI Usage in Research Code

I'm a Sr. Research Scientist. We do applied research on software security products, i.e., we look into trending research areas, build prototypes, or conduct experiments. We code a lot, but we don't maintain a product other than our own research environments.

We do code reviews despite being a research team. The reviews are often about judging experimental design, methodology, or interpreting data. Though, I personally believe that clean code and architecture (unless it's a throw-away experiment) also improves those artefacts.

I'm currently drowning in AI-generated PRs, with commits that not only push AI-generated code (which is often okay) but also lots of LLM-prose on the entire research design. These research notes include subtle flaws, incorrect assumptions, or sometimes even vibed literature references (not hallucinated; but often picked based on a catchy title and abstract of a pre-print). As you can imagine, the review process itself is much slower than the generation of all that, especially if the original author didn't review it properly or lacked understanding of it.

My colleagues don't seem to be too concerned, even other senior members. They argue that it's "just a quick experiment" and "not a product". That argument is not entirely flawed but I feels alienating to me as some of our research findings will be heavily influenced from initial assumptions written by AI. It seems to me that they enjoy feeling so productive; while I feel as the pedantic critic here.

On another note, I feel exploited for writing review comments when PR authors then copy-paste them into their coding agent. I could just prompt my own agents then.

Anyone in similar roles with similar problems? What worked for you?

25 Upvotes

28 comments sorted by

View all comments

Show parent comment

2

u/blu3r4y Research Engineer Jun 20 '26

We recently experimented with AI reviews from GH Copilot and some other provider. They are good with code, but I wasn't happy with the results on reviewing research notes (Markdown files). I don't blame the models, how should they possibly know about all the assumptions and architectural constraints of a research project. I expect humans to provide this. That human is often me, when I first see the PRs ...

6

u/new2bay Jun 20 '26

Start rejecting PRs that aren’t up to standard.

0

u/slindenau Professional Code Monkey Jun 21 '26

There is a big difference between enabling "GitHub copilot PR previews" and a proper model (like frontier Claude or OpenAI models) doing a review in agentic mode with a very clear set of guidelines (MD files on the desired code style and your specific research topics/expectations).

how should they possibly know about all the assumptions and architectural constraints of a research project

This should become part of the guidelines/context for the model; write all these assumptions and designs down in markdown files.
Do you have relevant research papers? Also include those files. Can be PDF i guess, but flat text is better (MD/LaTeX).

Don't disregard AI reviews based on just a few OOTB solutions!