Why Reading AI Slop Matters in Security and Engineering
Whenever AI produces a long explanation, a multi-file patch, or a dense proof, it is easy to default to one of two habits. Either we accept the output as-is because it compiles and sounds confident, or we set it aside as “AI slop” because it looks messy.
Across my experience in teaching, academic research, and industry security engineering, I have learned that both reactions miss the point. Dealing with imperfect output—whether from a student, a colleague outside your specialty, or an LLM—comes down to the same discipline, and skipping it creates three real problems:
- Silent risk in working code: AI-generated code can compile, pass basic tests, and still introduce security flaws across files you did not expect it to touch.
- Wasted signal in flawed answers: An explanation or proof that fails at the final step often still carries a valid intermediate insight between the lines.
- Broken feedback loops: If you never read where the output went wrong, you never learn what constraint or context was missing in the first place.
1. The Three Choices: A Lesson from Grading Exam Papers
While I was an Assistant Professor, I worked with students from many different backgrounds. When I graded exams, plenty of answers were just walls of rambling text. Sitting in front of a stack of those papers, I always had three options:
- Accept without reading: Hand out partial points to keep everyone satisfied and avoid the confrontation.
- Reject without reading: Put down a zero because the answer was unreadable—and brace myself for the line outside my office door 😅.
- Read through the ramble: Excavate the expected answer from the rambling, squeeze out every fair point I could, and be ready to defend the grade in court—er, office hours.
I always took the third route. It took more time, and yes, I still had to face students afterward, but I was prepared to show them exactly what was missing and what they got right. Over time, many of those students started respecting the effort I put into reading their work. By the end of the semester, their answers actually improved—basically reinforcement learning on humans, minus the GPU bill.
Today, we face the same three choices with AI output. We can blindly merge code or trust an explanation because it looks complete. We can skim two lines, call it slop, and throw it away. Or we can take the harder route: reading it critically.
2. Why Accepting Without Reading Fails: AI Code and Production Stakes
Modern coding models are very good at making sure generated code compiles and passes basic happy-path checks. That surface polish is exactly what tempts engineers to accept the output without reading.
In practice, an AI agent often edits multiple files implicitly to satisfy a prompt. Because engineers rarely specify every threat model, trust boundary, or failure mode up front, the model fills in the gaps with whatever makes the build green—introducing unfamiliar dependencies, duplicated helpers, or subtle vulnerabilities in edge cases you never thought to mention. Research backs up how deceptive that surface polish can be. In one well-known study of GitHub Copilot, roughly 40% of the generated programs across security-sensitive scenarios turned out to be vulnerable. Another Stanford user study found something even trickier: developers using an AI assistant wrote less secure code than those without one, yet felt more confident that their code was secure.
I learned the same lesson about not accepting things at face value after moving into industry as a security reviewer. Most of the engineers and managers I worked with did not come from a security background, yet they often brought strong ideas to the table—just expressed in their own domain’s language rather than security terminology. Because they were professionals, their pitches were much more focused than student exam papers. At the same time, the stakes were higher: an exam only gets a grade, whereas shipped systems have to hold up in production. Working through that terminology gap together to turn those ideas into concrete security requirements was not always easy, but it consistently paid off for the product.
Reviewing AI-generated code requires that same habit. Prompt engineering helps steer what the model generates, but it does not replace reading the diff. Reading through the generated slop is where you catch the gap between what you meant and what the model quietly assumed before it reaches production.
3. Why Rejecting Messy Output Fails: Hidden Substance and Partial Proofs
On the other side is dismissing AI output on sight because it looks bloated, poorly formatted, or gets the final answer wrong.
In recent mathematical and formal-verification work, AI systems have produced proofs that look dismissible at first glance or fail at their final conclusion. Yet buried inside those messy drafts, researchers sometimes find smaller intermediate steps or lemmas that are valid, novel, and genuinely useful for improving a larger proof. Even when AI proofs are bloated or misaligned with how humans write math, as discussed in this post on Terence Tao’s blog, the real work is digging through the raw machine output to pull out the ideas that actually advance human understanding.
I learned not to judge substance by rough appearance while mentoring a research student. She once brought me a JSON dump she had generated from the Rust compiler while studying its ownership and borrowing model. Because the output was large, the compiler had written it out in a compact format. When she tried to walk me through her findings, she was scrolling and searching through raw tags on screen to point out where the relevant data lived. It was hard to follow, and easy to lose interest. I noticed the file was just missing a .json extension, so I suggested adding .json and formatting it in VS Code. Once she did that, everything formatted cleanly and her confidence picked right back up. She walked me through what she had found without any trouble. She had already put in hours on the material and only missed a small tooling detail. Judging her work by a messy file would have missed all that effort.
AI slop often lands in that exact same gray area. The formatting looks noisy or the final claim misses the mark, yet a useful intermediate idea is sitting underneath if you take a moment to structure it and read past the surface. I saw this firsthand with my own AI threat-intelligence pipeline. Over the last few months, I did not just polish the prompt and hope for the best. I read through the summarized intelligence reports, caught where they drifted, and fed that feedback back into the loop, almost like manual reinforcement learning on the output. The early reports were rough, but reading and correcting them turned them into something genuinely solid.
4. The Unexpected Upside: How Imperfect Output Sparks New Ideas
Reading through rough or off-topic output does more than catch bugs or rescue hidden work—it can also unlock something you were stuck on yourself.
Back when I was a PhD student teaching C++ object-oriented programming as a TA, I was stuck on a research problem that needed a single-line comparison across three items—so an if-else if block was not an option, and the ternary operator (? :) had completely slipped my mind. During a lab hour, a student asked about the ? : syntax from a textbook example. Even though it was outside our OOP topic, I walked her through how it worked. Back at my desk, it clicked immediately: that was the exact solution I needed. I already knew the syntax, but explaining it to someone else connected it to my own problem—a pattern that has helped me so many times since that I rarely say no when someone asks for help and I have time to spare.
We see the same dynamic outside academia, too. During a Starbase tour and interview with Tim Dodd (Everyday Astronaut), Elon Musk was explaining how the Super Heavy booster could maneuver using excess hot gas from the main engines rather than carrying a separate cold-gas thruster system. Tim Dodd—a science communicator, not a SpaceX propulsion engineer—interrupted to ask: “But this is only for the booster, right?” Musk paused on camera, thought through the question in real time, and realized the same simplification could apply to the Starship upper stage as well (YouTube video). He did not dismiss the question just because it came from outside the engineering team. A simple, unpolished question from the right angle triggered a real architectural improvement.
Imperfect AI explanations can trigger that exact same spark. Even when the model is not an expert in your system—and even when its answer is half-wrong—walking through its reasoning can force a connection between two ideas you already knew or surface an angle you had overlooked.
5. Takeaways and Trade-Offs
Reading AI slop is not free. It costs time and attention, and you obviously cannot read every token of every throwaway generation. The goal is not to treat AI output as sacred—it is to stop swinging between blind trust and outright rejection, without turning into a full-time AI paper grader 😄.
Here is the balance that works for me:
- Review AI code like an untrusted PR: Never treat a clean build or passing happy-path test as proof of security. Read the cross-file diff, check new dependencies, and look for what your prompt left unspecified.
- Read explanations for partial signal, not perfection: When an AI explanation or proof is messy or wrong at the end, scan the intermediate steps before discarding it—sometimes one line in the middle connects two ideas you already had.
- Feed failures back into your workflow: Just like grading student papers carefully improved their answers over a semester, reading where an AI model goes off track tells you exactly what context, constraints, or guardrails to add next time.