Zero Labs
Industry News / AI

Can an LLM Know That It Knows?

Source · Towards AI By Dami Gupta

From the publisher’s feed, collected in the ZeroLabs newsroom.

A question about AI-driven scientific discoveryTL;DR: When an LLM arrives at a correct insight, did it actually reason its way there, or just recall the answer from its training data? I argue this is an underexplored problem for AI-driven scientific discovery, and examine ways to address it.Can an LLM look at biological data and generate meaningful scientific insights? I’ve been playing with some ideas at this intersection: using protein language model embeddings to analyze genetic variants, multi-agent architectures for drug repurposing, and synthesizing evidence across genomic databases. In every case, I hit the same wall.Here is an example. CDK4 is a gene that, when overactive, can drive uncontrolled cell growth, one of the hallmarks of cancer. RB1 is the brake that normally keeps it in check. When RB1 is lost, CDK4 runs unchecked — this is a well-documented pattern in aggressive breast cancers.A researcher looking at genomic data from breast cancer tumors notices that CDK4 levels are abnormally high. Beyond just expression levels, she draws on several layers of evidence (pathway biology, mutation patterns, and clinical data), all of which lead her to suspect RB1 could be a major player. She checks for RB1. It’s gone. The brake is missing. That explains the pattern. This is biological reasoning: you see something unexpected, you trace it to its cause, you confirm.I wanted to build an LLM that could do the same thing: look at raw data and arrive at insights like the CDK4/RB1 connection. Not because it read a paper that told it the answer, but because it reasoned its way there.So you give the LLM the same data. It notices the CDK4 abnormality. It says “let me check RB1,” and finds it’s lost. It looks like it just did exactly what the researcher did.Except the LLM was trained on thousands of papers about RB1 loss in breast cancer. It already knew to look at RB1. It didn’t discover the connection; it recalled it, while performing the outward motions of reasoning. And I had no easy way to tell the difference.That nagging problem, the difficulty of distinguishing reasoning from retrieval, is actually what got me excited. I started sketching out a scientific reasoning engine: a system that would treat surprise as the driver of discovery, so that when the data contradicts the model’s expectation, it follows the lead instead of explaining it away. At 1 am, this felt like a new research direction.The next morning, I found AutoDS.AI2 published it in July 2025, a system for open-ended autonomous scientific discovery that explores hypothesis space automatically. Google’s AI Co-Scientist had launched in February 2025, already generating novel hypotheses and validating them in wet labs. FutureHouse spun out Edison Scientific in November 2025 to commercialize their AI Scientist paradigm.I was one person in a master’s program. They were full research teams with compute budgets I’ll never touch.But as I sat with the disappointment, I noticed something. My idea and their systems overlapped, but I was fixating on a specific piece that still feels unresolved to me. They’re tackling how to explore hypothesis space at scale. I found myself stuck on a different, but related question, one that showed up the moment I tried to evaluate whether my system was actually discovering anything or just performing a theater of discovery.The question was: when an LLM reasons about scientific data, can it tell the difference between what it figured out and what it already knew?A Problem Worth Solving DirectlyThis isn’t an edge case. It’s a real problem for any AI system that claims to do scientific discovery. If the model can’t distinguish reasoning from retrieval, then we can’t distinguish genuine discovery from sophisticated pattern matching against memorized literature.I think there are three levels to this problem, and they get progressively harder:Level 1: Does the LLM know X? This is straightforward. Just ask it. Benchmark it. We have hundreds of papers on this.Level 2: Does the LLM know how it knows X? Did it reason from the data I provided, or retrieve from training? This is where things get interesting. Recent research suggests models may have some internal signal for which mode they’re in, but that’s a finding about model internals, not something the model itself can access or report.Level 3: Can the LLM constrain itself to only use what it should know? Can you give it data and have it reason purely from that data, flagging when it’s about to use prior knowledge? This is what you’d need for genuine AI-driven scientific discovery, and I haven’t seen it demonstrated.Why The Obvious Solutions Don’t WorkMy first thought was: just find a model that doesn’t know biology. Use a code-only model, one trained purely on programming with no biomedical knowledge. Give it biological data and see what it can figure out from scratch.The problem is that a model that genuinely knows zero biology won’t even understand what it’s looking at. You need some biological literacy to do biological reasoning. The question isn’t knowledge versus no knowledge; it’s whether the model can use its reasoning capabilities while holding its factual knowledge at arm’s length.Then I thought about prompt engineering: just instruct the model to only reason from the data provided. This works on the surface. But knowledge leaks. The model doesn’t explicitly say “RB1 is a tumor suppressor.” It just happens to suggest checking genes that a knowledgeable human would check, for reasons it frames as logical deduction. The contamination is invisible unless you’re a domain expert who can spot it.Chain-of-thought prompting and process supervision get closer. Systems like OpenAI’s o1 force the model to reason step by step, and reward correct intermediate steps rather than just final answers. The reasoning can be genuine. But within any given chain, you still can’t tell which steps were driven by the data in front of the model and which were informed by training knowledge. The two can coexist in the same chain of thought, and nothing in the output distinguishes them.While we have tools to detect verbatim leakage of training text, we still can’t detect the leakage of intuition — where a model uses its prior knowledge to nudge its reasoning toward a known conclusion.Three Ways to Test This (And Why They’re Hard)Machine unlearning. What if you could make a model forget its biology? Then any biological insight it produces must have come from reasoning, not memory. The problem is that knowledge in LLMs is tangled across billions of parameters. You can’t cleanly remove “RB1 is a tumor suppressor” without damaging related knowledge about cell biology generally. But maybe that imperfect forgetting is actually useful. If the model leaks knowledge it was supposed to have forgotten, the leakage itself tells you something about how knowledge and reasoning interact.Selective distillation. Instead of removing knowledge from an existing model, build a new smaller model and control what it learns. Teach it only reasoning (logic, pattern recognition, data interpretation) while withholding biomedical knowledge. The knowledge was never there to begin with, so there’s nothing to leak. But reasoning and knowledge aren’t cleanly separable. When a teacher model demonstrates how to reason, the reasoning patterns themselves carry domain knowledge implicitly. The distillation ends up as a spectrum:Explicit knowledge (“RB1 is a tumor suppressor”): easy to exclude from distillationStructural knowledge (“tumor suppressors regulate cell cycle checkpoints”): harder to exclude, because it’s embedded in how concepts relate to each otherReasoning patterns (“when something is too high, look for what normally keeps it in check”): impossible to classify. Is that domain knowledge, or just general logic?I haven’t found an example of anyone building a deliberately ignorant model this way, because nobody wanted one. I do. Not as a product, but as an experiment.Neural ablation. The neuroscience-inspired approach: identify the neurons responsible for biomedical knowledge and surgically remove them, like a lesion in a living brain. Recent work shows you can selectively prune specific capabilities while leaving others intact. But what I found most fascinating is — removing just a handful of critical neurons can collapse a model’s performance entirely, not gradually but all at once. You might go from “knows biology” straight to “can’t form coherent sentences” with nothing useful in between.Each approach has limitations on its own. But combined, they form a toolkit: three different angles on the same question. (See the Technical Appendix for detailed methods and citations.)A Better Experiment: Instrumented TrainingAll three approaches above are post-hoc. They try to modify or study an already-trained model. But there’s a cleaner path.What if you trained a small model from scratch with the explicit goal of tracking where knowledge and reasoning emerge?Not 70B parameters. More like 100 to 300M. Small enough to instrument fully, big enough to learn real reasoning. You’d train it on a partitioned corpus:Partition A (Pure reasoning): logic puzzles, mathematical proofs, scientific method, causal inference, data interpretationPartition B (Biomedical knowledge): textbooks, papers, pathways, variant databasesPartition C (Mixed): scientific papers where reasoning and biology are entangledSave dense checkpoints. Log weight updates. Then:Compare A-only versus A+B weights. Which parameters change when you add biology to reasoning? Those are your knowledge parameters.Test at intermediate checkpoints. At what point during training does the model start “knowing” that RB1 is a tumor suppressor? At what point does it start being able to reason about tumor suppressors? Are those the same point?Examine the entangled weights. What lives in the parameters that updated on both reasoning and biology data? Is that where “biological intuition” gets encoded, the structural knowledge that isn’t quite a fact and isn’t quite logic?The infrastructure for this largely exists: open-source models with dense checkpointing, methods for identifying which neurons store specific facts, and techniques for tracing how information flows through a network. (See the Technical Appendix for specifics.)What I haven’t seen is the specific combination: training on domain-partitioned data with dense checkpointing to build a complete map of where knowledge versus reasoning lives in the model. The kind of map that could answer: at step 12,000, when the model encountered PubMed batch 47, these parameters shifted, and those same parameters later activate when the model encounters a tumor suppressor question.Instead of reverse-engineering a finished model, you’d be watching the knowledge form in real time.Why This Matters Beyond the LabThis isn’t an academic exercise. The question of whether LLMs can distinguish what they know from what they figured out has immediate practical implications:For AI-driven drug discovery: If we can’t verify that a model’s hypothesis came from reasoning about the data rather than memorizing the literature, we can’t trust its “discoveries.” Any pharmaceutical company investing in AI-driven research would benefit from having this answered.For clinical decision support: A system that recommends a treatment because it reasoned from a patient’s genomic profile is fundamentally different from one that recommends it because similar cases appeared in its training data. The first is personalized medicine. The second is closer to a sophisticated lookup table.For scientific integrity: As AI systems increasingly generate hypotheses and design experiments, the scientific community needs tools to audit whether AI contributions represent genuine reasoning or sophisticated regurgitation. Peer review gets harder if the reviewer can’t tell the difference either.For interpretability and alignment: Understanding how knowledge and reasoning interact inside a model is a prerequisite for building systems we can trust with consequential decisions. The epistemic provenance question (can the model know the source of its own knowledge?) is a special case of the broader alignment question: can the model accurately report its own internal states?What I’m ProposingI’m proposing a research direction I’m calling epistemic provenance for LLMs, the study of whether a model can identify the source of its own output: training data or in-context reasoning.The framework would have three components:A small, instrumented model trained on partitioned data with dense checkpoint logging, creating a ground-truth map of where knowledge and reasoning live in the weights.A forensic toolkit combining unlearning, distillation, and ablation as complementary approaches to detecting when training knowledge contaminates the model’s reasoning.A domain expert who can look at a model’s reasoning chain and say “that step was retrieval, not reasoning, because no one would check RB1 from first principles without knowing it’s a tumor suppressor.”Human-in-the-loop evaluation isn’t new. But applying it specifically to the reasoning-vs-retrieval distinction in scientific domains is an area where I think existing approaches fall short.If this works, even a partial map of where knowledge and reasoning diverge would give AI discovery systems something they currently lack: a way to audit their own outputs. If it turns out that knowledge and reasoning are fundamentally inseparable in the weights, that finding matters too, because it would force a reframing of what “AI-driven discovery” can actually claim. Either way, this is tooling that scientific AI efforts are likely to need.Where This Leaves MeWhen I started this project, I wanted to build a system that could make scientific discoveries. What I realized instead is that the more interesting problem is one step upstream: how do you tell whether a model’s insight came from reasoning or recall?I think this deserves a direct experimental answer.Can an LLM know that it knows? I don’t know yet. But I think it’s the right question to be asking.Technical AppendixThis appendix provides detailed methods and citations for readers interested in the technical foundations of the approaches described above.Epistemic Modes in LLMsHong et al. (2025) found linear features in the residual stream that mediate switching between reasoning and memorization modes, suggesting the model has some internal representation of which mode it’s in. This is a mechanistic finding about model internals, not something the model itself can access or report.Machine Unlearning MethodsThe main approaches include fine-tuning to forget (training the model to output “I don’t know” for targeted knowledge), gradient ascent (pushing the model away from correct answers), and surgical model editing using methods like ROME and MEMIT that modify specific factual associations in the weights.Distillation LiteratureKim et al. (2025) found that distilling reasoning patterns without new knowledge boosts accuracy but at the expense of capability on the hardest problems, suggesting the student learns surface patterns rather than deep reasoning when domain knowledge is withheld.Neural Ablation StudiesPochinkov and Schoots (2024) demonstrated selective pruning that removes specific capabilities (coding ability, for instance) while leaving other skills intact. Research on critical neurons showed that disrupting just 3 neurons out of 1.1 billion parameters can collapse a 72-billion parameter model’s performance entirely, exhibiting sharp phase transitions rather than gradual degradation.Instrumented Training InfrastructureEleutherAI’s Pythia project provides 143+ intermediate checkpoints specifically for interpretability research. Work on “knowledge neurons” (Dai et al., 2022) can identify neurons storing specific facts. Anthropic’s circuit tracing methods can map computational pathways.Dami is a Software Engineer and MS Data Science candidate at Boston University. She has many years of experience working in bio-pharmaceutical industry.This post grew out of a conversation that started with a scientific reasoning engine and ended somewhere much more interesting. The full research direction is in development. If you’re working on related problems in machine unlearning, or AI-driven scientific discovery, I’d love to connect .Can an LLM Know That It Knows? was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.