Ask about every pair
The first version of my pipeline for the Bio-Agent challenge did what LibrisVault always did: an agent read a paper, wrote a page for it and for the genes, diseases and chemicals it discusses, and added a relation wherever it thought one belonged. Measured against BioRED, a corpus of abstracts in which experts annotated every relation, the result was precise and thin. About half of what it wrote was right, but it found only about a quarter of what was there.
Where recall was lost
My first guess was the relations themselves: the agent sees two entities and fails to connect them. A diagnostic run over four rounds said otherwise. Wherever an entity had a grounded page, it was almost always in a relation (331 of 344 in one round). Missing rows between two pages that both existed cost a few dozen pairs. Entities that never got a grounded page at all cost hundreds. About half of the entities the gold relates never got one.
That reframed the problem. The agent was not failing at extraction; it was doing something else. It wrote like an editor: the paper’s main finding, the entities worth a page, the relations worth a sentence. The annotators had worked like auditors and recorded everything the abstract states. Both are reasonable, but only one of them is what the benchmark counts and what a knowledge graph needs.
The closed question
The systems that do well on BioRED’s shared task are classifiers. They take every pair of entities in a document and ask whether the text relates them. So I added a step after the ingest that does the same with a model: list the paper’s entities, ground them, and put every pair of grounded entities to one call. The answer per pair is none, or a BioLink predicate with the sentence that supports it, quoted verbatim.
Recall went from 26 to 43 percent on the first half of the development set and from 21 to 37 on the second. Precision fell by six to eight points, mostly in chemical and disease pairs. Pair F1 rose by about ten points on both halves, and the paired bootstrap interval cleared zero on each. It was also cheaper than the ingest: 7 to 8 dollars per 50 abstracts against 19 to 28.
Where the rows go
The next surprise was about storage, not extraction. My first integration wrote a decided relation onto the subject’s entity page, the way the agent always had. But only about four in ten decisions had both ends on a page. Writing only those kept most of the gain out of the graph.
So the statements moved to the paper’s own page, as a table with one row per claim and the evidence sentence beside it. An entity without a page can still be an end of a statement, because the row carries its identifier.
Then a smaller finding with a larger consequence: once every pair was decided, the ingest’s own relation rows lowered the score. They added false pairs and almost no true ones the step had missed. In the version that runs today, the ingest writes no relation rows at all. The step is the only writer of relations. The score stayed where it was, the ingest became about a tenth cheaper, and the entity pages got shorter by about a third, because the agent no longer wrote prose about relations a table already held.
How I knew it was real
One round of the ingest scatters by several points against itself, with nothing changed. A gain of two or three points from one run says nothing. So every change runs on one half of the development set, and only if it holds there does it run on the other half, which I never tuned on. Comparisons are paired: the same documents, resampled together, so that two runs are compared on the same draw rather than as two independent averages.
This change was large enough that the protocol was a formality. Most are not, and the next note is about the ones that looked good and did not survive it.
The general point
An agent asked to read and summarise decides what matters, and that judgement is part of what makes its output useful to read. It is also why it is a poor extractor. When the job is exhaustive, take the enumeration away from the model: let code generate the full list of questions, let the model answer each one, and let code check the answers. The model is good at the judgement in a single case. It should not also decide which cases to look at.