Large Language Models for Biomedical Knowledge Graph Construction: Information extraction from EMR notes
Paper · 2024 · Vahan Arsenyan, Spartak Bughdaryan, Fadi Shaya et al.
Summary
A clinical note can mention a disease, a treatment, and a change in vision in the same paragraph. To build a useful record of their relationships, a system has to distinguish what was offered as treatment from what was observed or discussed as a risk. Arsenyan and colleagues study whether large language models can make those distinctions from electronic medical record notes. Their system collects notes about a target disease and turns the answers to questions about those notes into a knowledge graph, where entries such as a disease or a medication are connected by labeled relationships.
The method combines clinical terminology with question answering. A biomedical vocabulary helps find notes that use different names for the same disease. The system then asks several questions about each note, each aimed at a treatment, a factor associated with the disease, or something that coexists with it. It filters low-scoring answers, groups similar expressions, and uses repeated answers and their scores to decide which relationships to retain. For systems that generate free text, the authors also design a prompt that requests short, typed lists drawn from the note and specifies how to respond when the note cannot answer the question.
The authors compare 12 systems from different architectural families. The clinical records span 122 eye diseases, while the annotated evaluation is based on 320 selected notes about age-related macular degeneration. The authors judge the final graph against a reference assembled by a retina specialist and a clinical research coordinator. Encoder-decoder systems give the strongest overall results in this evaluation, with guided FLAN-UL2 singled out by the authors. FLAN-T5-XXL with ordinary instructions, for example, reaches treatment precision of 0.86 and treatment recall of 0.9. The guided format makes three of the seven decoder-only systems usable in the pipeline. Others produce text that the pipeline cannot turn into graph entries, including repeated instructions, explanations and answers with weak support in the note.
The graph contains terms absent from the authors’ comparison graph drawn from published abstracts and titles. That comparison shows what the local notes can add as a source of documented information. The study measures recovery of terms recorded in those notes, so its results speak to extraction from this collection. The evaluated graph covers a single disease at one institution, and the records are private.
Deep dive: Large Language Models for Biomedical Knowledge Graph Construction: Information extraction from EMR notes
Arsenyan and colleagues test how well language models turn retinal clinic notes into a knowledge graph of treatments, factors, and findings. · about 33 minutes to read
The problem and its context
What a graph can preserve from a note
A clinician writes a note to record some aspect of care. The note can contain observations, a plan, an account of a discussion, and shorthand for conditions or procedures. Someone looking across many notes might want an inventory of the things clinicians repeatedly connect with a disease. Reading the notes can supply that inventory, but building it by hand takes time and requires enough domain knowledge to interpret the language. The authors frame their approach as a form of information extraction.
A graph gives the inventory a structure. Each node stands for an entity, such as a disease or something mentioned in connection with it. Edges connect those entities and carry information about the kind of relationship involved. A treatment edge and an edge for a coexisting finding convey different readings of the same source material. The graph also gives the reader a way to look at entities linked to a disease without reading the notes in the order in which they were written.
The paper places this work alongside biomedical uses of graphs in drug repurposing, the interpretation of protein information, and the detection of healthcare misinformation. The authors also discuss clinical trial design, where investigators may need to identify variables that confound a comparison. A confounding variable can make an association between treatment and outcome appear stronger or weaker than it is, or make an apparent association arise in the first place. A graph of documented relationships can help bring candidate variables to a reader’s attention. In this study, that possibility motivates extracting factors. The experiments measure whether a system recovers named relationships from notes.
The authors use a broad set of categories suited to their records. Treatment covers interventions discussed in relation to a condition, including ways to slow progression or lower risk. Factors include causes and risks as well as more generally associated factors. The coexistence category can include a symptom, another condition, a test, or something else observed or discussed alongside the disease. The categories carry different amounts of clinical meaning. In particular, coexistence allows the graph to keep a connection without claiming the direction of an effect.
Earlier ways to obtain biomedical relations
Published biomedical writing is one source of material for graphs. The authors describe PubMed as a way of accessing biomedical publication records and discuss SemRep, a system that extracts semantic relationships from text. SemRep combines information about sentence structure and meaning with domain knowledge from the Unified Medical Language System, or UMLS. Its predicates cover a range of relations, including molecular interactions, the origins of disease, and more static connections. The paper also describes earlier work that adds filters to SemRep to improve precision. The present study reuses predicates from SemRep when designing questions for notes.
Another line of work asks whether a pretrained system can supply biomedical relationships in response to a prompt. The paper discusses a study that used BERT-based probes and observed a bias towards entities that occur often in prompts. Arsenyan and colleagues focus on a different difficulty with probing. If the system has only a short prompt to go on, extracting a relationship can be difficult even when the intended relation is clear to the person writing the prompt. Their setup supplies the clinical passage as evidence and asks the system to answer a targeted question about it. The task therefore depends on the source text available at inference time. BERT
Clinical records have also been used directly in graph construction. The authors describe earlier work that combines structured diagnosis codes with unstructured notes by doctors and nurses. A different project draws on 20 multimodal resources to represent relationships involving disease at different biological scales. These approaches illustrate how the choice of sources shapes what a graph can contain. Arsenyan and colleagues isolate the clinical note as the source of evidence for their extracted relations, while using a medical terminology resource to help find notes about the target disease. Building a knowledge graph to enable precision medicine
The paper also discusses work outside medicine in which detailed instructions helped a conversational system turn sustainability material into a graph and populate it with instances from news articles. Closer to the present task, earlier clinical experiments used InstructGPT to identify spans of text, classify tokens, and extract relations. Those experiments used manually reannotated material from a clinical abbreviation resource. They motivate testing whether demonstrations supplied in the prompt, a form of few-shot learning, can help a system extract information in a usable form. Training language models to follow instructions with human feedback
Why the notes make the task harder
The authors describe their notes as harder to work with than the biomedical and clinical material they discuss from earlier studies. Some sentences are fragmentary or contain grammatical errors. Abbreviations can appear without a definition. A clinician’s shorthand may be sufficient for a colleague who already understands the encounter and still be hard to interpret in isolation. Notes can also repeat substantial passages because clinicians use standard templates. This creates two separate problems for an extraction system. It must interpret the details that differ between notes, and it must contend with text that recurs for reasons unrelated to the importance of a relationship.
The paper uses a private collection partly because some of the systems under consideration had used public clinical data for training or fine-tuning. The authors name MIMIC-III as an example of a public source they chose to leave out of their analysis. That decision gives the study a distinct setting for comparing ways to extract information and places more weight on the quality of its own annotations. MIMIC-III
A clinical passage also changes the standard for what counts as a good answer. A system can answer an ordinary question about a disease from information it encountered during training. In this experiment, the relation has to be supported by the note attached to the question. A plausible answer drawn from general knowledge would misrepresent what was documented in that source. A useful output also has to arrive in a form the system can turn into a graph entry. These demands motivate both the scoring of extracted terms and the authors’ closer examination of the generated responses.
The method, step by step
From a disease name to a set of clinical passages
The method takes a disease as its starting point. It looks for records that discuss the disease, supplies those records as context for questions, and collects the entities returned by the answering system. An answer becomes a candidate relationship because it is tied to both a disease and the category of the question that produced it. Several steps then decide which candidates make it into the graph and how to represent them.
From clinical notes to disease relationships
The steps in order.
The study draws on an electronic medical record collection from the Macula & Retina Institute in Glendale, California. The collection covers roughly 10,000 patient records from visits between 2008 and 2023. The authors analyze 360,000 notes relating to 122 eye diseases. A record can contain notes documenting different aspects of care, so the patient record count and the note count describe different units. The extraction procedure works with the notes.
The first preparation step discards notes with fewer than 5 words. It also tackles repetition by representing notes as numerical vectors with Sentence T5 XXL and comparing the vectors. These representations, called embeddings, allow a similarity calculation over whole notes. When the similarity exceeds the preprocessing threshold, the authors prefer the note with more words. The reason for using length to break the tie is to retain more of the source material when two notes are judged to overlap. The implementation appendix recommends 0.8 for this preprocessing threshold. Sentence-T5
The paper uses cosine similarity in several parts of the method. The calculation measures alignment between two vectors. In standard notation, the operation named by the authors is:
cosine(u, v) = (u · v) ÷ (‖u‖ × ‖v‖)
Here u and v are the vectors being compared. The centered dot denotes their dot product, and ‖u‖ and ‖v‖ are their respective lengths. The multiplication sign combines those lengths, and the division sign indicates that the dot product is divided by their product. In preprocessing, the vectors represent notes. Later, the same kind of calculation is used for disease expressions and for answer variants. Those comparisons operate on different objects, so a high score serves a different purpose at each stage.
To find notes about the target disease, the system first looks for known names. The UMLS Metathesaurus supplies alternative expressions for a disease, addressing the fact that clinicians and institutions may use different wording. The authors characterize UMLS as a biomedical terminology resource containing over 3 million concepts and associated aliases. An occurrence of one of the target disease’s known expressions is enough to identify a relevant note in the method’s narrative description.
The next step handles expressions that may escape the vocabulary check. The authors use BioBERT for named entity recognition, here the task of finding spans of text that name diseases. They compare the detected expressions with the names of the target disease by cosine similarity. A match above the cutoff is sufficient to select the note. The suggested value for this disease-identification cutoff is 0.8. Matching a listed alias and comparing a recognized mention give the system routes to the same result, a note assigned to the target disease. BioBERT
The paper denotes the input disease by d_input and its set of known expressions by D_input. The set D_note contains disease expressions recognized in a given note. In the prose description, the system compares an expression in D_note with an expression in D_input. The corresponding pseudocode displays the comparison using the input disease itself on the target side. Both descriptions place similarity after a terminology-based search, although they differ in how they specify the target of the fuzzy comparison. The paper’s account of the workflow supports treating the output of this stage as disease-specific context for the next step.
How a question specifies a relationship
The authors build a bank of question templates using predicates taken from SemRep. Each template has a slot for the disease name. Filling the slot fixes what the question is about, and choosing a template fixes the relation category under which an answer is collected. This is how the system turns question answering into relation extraction. A relevant phrase in a note becomes the other endpoint of a candidate edge.
Treatment questions cover ways of treating a condition as well as ways of slowing progression or lowering a chance or risk. Factor questions ask about causes, risk increases, contributing factors, or conditions that can develop into the target disease. The final group is called Effect in the question list and is collected under coexists_with in the graph procedure. These questions ask what the disease affects, what can follow from it, and what it can develop into. The paper also describes this group as covering symptoms, tests, behaviors, and other diseases found alongside the target condition.
Using several questions per category gives the procedure ways to look for relations expressed in different terms. It also compresses distinctions at the point where the answers are recorded. Questions about an intervention that slows progression and about an intervention that lowers the chance of developing the disease both contribute to treatment. A question about a cause and a question about increased risk both contribute to factor. The graph records the assigned category, while the question text carries the narrower meaning that elicited the answer.
A note about dry macular degeneration in the authors’ examples illustrates the role of the question. The passage mentions that the dry form can develop into wet disease and also discusses vitamins and food in connection with slowing progression. A question about what the dry form can develop into directs the system toward the first statement. A question about slowing progression directs it towards the second. Disease identification alone cannot make this selection. The system has to distinguish the relation expressed by each part of the note.
How the systems answer
The paper assumes query access during extraction. The authors can send an input and receive outputs but treat the systems as fixed at this stage. This allows them to compare existing checkpoints and prompting strategies without training a new system on the annotated AMD notes. It also means that differences in the checkpoints’ earlier training remain part of the comparison.
For the encoder-only systems, the authors use open-book question answering. The question comes with the note that may contain its answer. A reader based on a BERT-family checkpoint has output layers that assign scores to potential answer starts and ends. Together these positions identify a span in the supplied text. The evaluated readers are BERT-SQuAD-v2, RoBERTa-SQuAD-v2, and BioBERT-SQuAD-v2. Their names reflect the question-answering setup. BioBERT also brings pretraining on biomedical corpora into the comparison. RoBERTa · SQuAD
The encoder-decoder and decoder-only systems produce responses as text. An encoder-decoder processes the input and then uses a separate decoding component to produce the answer. A decoder-only system generates the answer as a continuation of its input. The distinction matters for this task because the pipeline needs a short list of entities even when a system is capable of producing a much longer passage. Both families are tested with prompts that use the question and the note as input. An explanation, a restatement of the prompt, and a short list are all possible forms of generated text. The pipeline only has a use for the entities it can recover from the response.
In the basic zero-shot setting, the input poses the question with the clinical context and gives the system no worked example. The few-shot setting adds example inputs and outputs to show how a task should be performed. This is in-context learning. Examples appear in the input the system reads for the current request. Their role is to illustrate a behavior during inference. Language Models are Few-Shot Learners
The ordinary instruction-based prompt states the task explicitly. As the authors break it down, a prompt can contain directions for the task, material that introduces the source passage, and a message asking for the answer. The guided prompt uses these parts and specifies the shape of both the input and the response. It identifies the requested category, presents the question and note in labeled fields, and asks for a category label followed by a comma-separated list of entities. It tells the system to rely on the passage, keep its response brief, and leave out entities from other categories. A fixed abstention response is prescribed when the passage offers insufficient evidence or the question is irrelevant.
These features address different problems. The category field helps a system distinguish the kind of answer sought when the passage mentions several related things. A comma-separated output makes it possible to split a response into individual entries. An abstention gives the pipeline a recognizable output to discard when an answer is unavailable. The instruction to use the note establishes the evidentiary standard for the answer. Following the output format is easy to see in the resulting text. Following the source restriction requires checking what the note actually says.
How answers qualify as graph edges
The query procedure iterates over each target disease, its selected notes, each relation category, and the questions assigned to that category. The paper uses the following notation for a query:
⟨d, q(d), c, t⟩
Here d is the disease. The expression q(d) is a question with that disease inserted into its template. The symbol c is the context, a note selected for the disease. The symbol t identifies the category of the question. The angle brackets enclose the parts of the query. In the authors’ pseudocode, D is the set of target diseases, C(d) is the set of notes selected for d, and Qₜ(d) is the set of questions of type t instantiated for d.
The answering system returns candidate answers with scores, described by the authors as probabilities. A single answer can be a weak basis for adding an edge. The method therefore collects answers for each entity, disease, and category across questions and contexts. A candidate relation is written in the method as:
⟨e, t, d⟩
Here e is an extracted entity, t is its proposed relation category, and d is the target disease. The brackets enclose the fields of a candidate triplet. The relation-selection pseudocode later writes the disease first. In both representations the edge depends on the same three fields, the disease, the entity returned in an answer, and the category assigned through the question.
The algorithm uses both the count of candidate answers and the average of their scores. If a candidate appears several times, the mean gives each occurrence’s score a share in the result. The count provides a separate check on recurrence. The acceptance test in the pseudocode can be written as:
mean_score(e, d, t) ≥ 0.1 and count(e, d, t) ≥ 10
Here mean_score is the average of the scores attached to answers in the candidate group. The function count gives the number of answers in that group. The symbols e, d, and t specify the entity, disease, and category being counted and scored. Each ≥ means that equality with the cutoff also passes the test. The pseudocode gives 0.1 for the mean-score cutoff and 10 for the count cutoff. The running description says that the values should exceed their thresholds. The two formulations therefore differ at the boundary.
As a final selection rule, the paper chooses the category with the highest score for an entity and disease pair. Among candidates that have passed the filters, the rule is:
arg maxₜ mean_score(e, d, t)
The expression arg maxₜ returns the category t at which the mean score is highest. The entity e and disease d are held fixed, and mean_score is the same group average used for acceptance. The returned category becomes the label of the final relation. This makes the graph easier to summarize, while making the resulting edge sensitive to how the system scores an entity under different questions.
A recurrence count in this procedure is a count of answers. Several templates can bring back the same entity from a single note. A standard passage can also occur across records, even after the preprocessing used to reduce duplication. The process therefore uses repetition as a signal of extraction stability. Its unit of recurrence matters when interpreting an edge found through this rule.
How the outputs are cleaned and grouped
The authors also apply filters to the text of the predictions. They remove answers scoring below the suggested per-prediction cutoff of 0.08. This operates on individual predictions and has a different purpose from the cutoff applied to a candidate’s average score. They strip punctuation and stop words, which are common words with limited value for identifying the entity in this application. They also remove outputs expressing uncertainty or a lack of evidence, including the designated abstention.
The same entity can be returned as a short name in one answer and a longer phrase in another. To consolidate these variants, the authors compare pairs of predictions within a category using normalized cosine similarity over the tokens in the output. A pair that exceeds the suggested threshold of 0.8 is treated as equivalent for grouping. The representative of a group is the prediction with the highest original score. That choice uses the answering system’s order of confidence to pick a display form. It can preserve recognizable phrasing from the notes, although the selected name depends on which variant received the highest score.
The postprocessing illustration follows raw answers about supplements and diet through filtering and grouping. A generic response about a new trial carries a score of 0.01 and disappears at the filtering stage. Several answers refer to the same family of vitamins using different expressions. The illustration also includes a compound answer containing vitamins, fish, and spinach. This prediction has a score of 0.67, and the final display shows its components as separate entries carrying that score. Splitting a list and merging alternate expressions do different jobs. Splitting keeps several entities present in one response, while grouping reduces the clutter from repeated references to an entity.
After cleanup and relation selection, the graph links retained entities to the target disease. The results section explains how to reconstruct the AMD graph from its columns. Treatment and factor entries are connected to AMD with arrows. Coexistence entries are connected with undirected edges. The paper initially frames the approach in terms of directed disease relationships, and the displayed AMD graph uses this undirected convention for coexistence. The resulting graph is an aggregate view of the relations extracted from the notes considered for the disease.
Experiments and results
The records used for scoring
The quantitative evaluation focuses on age-related macular degeneration, or AMD. The paper describes it as a progressive condition affecting the macula, an area of the retina, and says it predominantly affects older people. The authors use their note-selection and preprocessing steps to obtain 320 notes related to AMD. This collection is the basis of the manual reference. The much larger corpus gives the scope of the material processed by the study, while the AMD notes determine the scope of the reported precision and recall.
The reference was assembled by a retina specialist and a clinical research coordinator, both authors of the paper. They annotated examples together to establish how the categories should be used. They then independently labeled the same material and resolved disagreements through joint review. The paper reports the outcome as 11 distinct treatment terms, 8 factor terms, and 8 coexistence terms. These are counts of different entries in the reference categories. The study scores the entries recovered for the aggregate graph.
Several features of the task follow from that choice. If a term recurs in many notes, it still belongs to a single reference category as a distinct term. Finding it repeatedly can help it pass the extraction thresholds. Once retained, its contribution to the graph score is that of a recovered term. Conversely, extracting a candidate from one note can be correct as a reading of that passage and have no effect on recall if the candidate does not survive aggregation.
The comparisons and what the metrics count
The authors compare 12 systems spanning encoder-only, encoder-decoder, and decoder-only designs. The encoder-only readers provide a comparison based on selecting spans instead of generating an answer of arbitrary length. FLAN-T5-XXL and FLAN-UL2 represent the encoder-decoder family. The decoder-only group includes biomedical and general text generators as well as systems trained to follow instructions or carry on dialogue. The authors vary both the checkpoint and, where applicable, the prompt. The experiments were run on hardware described as 8xV100 (32GB VRAM).
The comparison set spans differences in size and pretraining as well as architecture. Among the encoder-only readers, the paper lists BERT-SQuAD-v2 and BioBERT-SQuAD-v2 at 110M parameters each and RoBERTa-SQuAD-v2 at 125M. In the encoder-decoder group, it lists FLAN-T5-XXL at 11B and FLAN-UL2 at 20B. In the decoder-only group, its examples range from BioGPT at 349M to BLOOM at 176B. These figures describe the checkpoints compared. The systems entered the extraction experiment with different histories, including differences in how they had been prepared to follow instructions or answer questions. BioGPT · BLOOM
The quantitative reference consists of the disease-related terms identified by reviewing the notes. Precision asks what share of a system’s extracted terms agrees with that reference for the relevant category. Recall asks what share of the reference terms the system recovered.
precision = correct ÷ extracted
Here correct counts the extracted terms that match the reference in the category being scored, and extracted counts all terms returned for that category in the final graph. The division sign indicates that the correct count is taken as a share of the extracted count.
recall = correct ÷ annotated
Here correct counts the same matching terms, and annotated counts all terms in the reference for that category. The division sign expresses recovery as a share of what was annotated. The authors calculate both measures separately for treatment, factor, and coexistence. A system can therefore show high recall in a category while returning a sizeable number of additional terms, which lowers precision.
The paper also compares the contents of the extracted graph with an AMD graph assembled from SemMedDB. That comparison is qualitative. The precision and recall figures use the clinical annotations as their reference, so they answer a different question from the comparison of what appears in a literature-derived graph.
Precision and recall across the reported settings
BioBERT-SQuAD-v2 shows the most striking precision and recall tradeoff of the encoder-only readers on treatment. Its treatment recall is 0.9, with treatment precision of 0.13. Within the other categories, its factor precision and recall are 0.25 and 0.75, and its coexistence precision and recall are 0.45 and 0.71. It retrieves many of the treatment terms identified by the annotators, with a much smaller share of the final treatment predictions counted as correct.
RoBERTa-SQuAD-v2 has treatment precision of 0.25 and treatment recall of 0.54. For factors, its precision is 0.21 and its recall is 0.75. Its coexistence precision is 0.3 and its coexistence recall is 0.14. BERT-SQuAD-v2 has precision of 0.17 in each category. Its recall is 0.45 for treatment, 0.45 for factor, and 0.57 for coexistence. These readers have a built-in way of producing an answer tied to positions in the input. Their scores show how much of the remaining challenge lies in deciding which span, if any, expresses the requested relation.
Among the encoder-decoder settings with complete rows, FLAN-T5-XXL with instructions has treatment precision of 0.86 and recall of 0.9. Its factor precision and recall are both 0.8. Its coexistence precision is 0.83 and its coexistence recall reaches 0.97. The same checkpoint with a few-shot prompt also has treatment recall of 0.9, alongside treatment precision of 0.45. Its factor precision and recall are 0.66 and 0.8. Its coexistence precision and recall are 0.72 and 0.88. Moving to ordinary instructions thus preserves the treatment and factor recall figures while changing how many returned terms agree with the annotation.
Treatment precision on the annotated AMD notes across reader and prompt settings
FLAN-T5-XXL with ordinary instructions has the highest treatment precision among the settings shown.
The numbers
| System or setting | precision |
|---|---|
| BioBERT-SQuAD-v2 | 0.13 |
| BERT-SQuAD-v2 | 0.17 |
| RoBERTa-SQuAD-v2 | 0.25 |
| FLAN-T5-XXL few-shot | 0.45 |
| FLAN-T5-XXL zero-shot | 0.55 |
| FLAN-T5-XXL instruction-based (this paper) | 0.86 |
The zero-shot FLAN-T5-XXL run has treatment precision of 0.55 and recall of 0.75. Its factor precision and recall are 0.54 and 0.69. Its coexistence precision and recall are 0.64 and 0.89. Going from that setting to the few-shot setting raises treatment recall and lowers treatment precision. For factors, both figures rise with the few-shot prompt. For coexistence, precision rises and recall is slightly lower. The effects of the demonstration depend on which part of the graph is being scored.
For FLAN-UL2, the zero-shot results show treatment precision of 0.43 and recall of 0.9. Factor precision is 0.16 and recall is 0.62. Coexistence precision is 0.74 and recall is 0.85. The few-shot results give treatment precision of 0.55 and the same recall of 0.9. Factor precision and recall rise to 0.36 and 0.75, and coexistence precision and recall rise to 0.78 and 0.89. Here the demonstrations improve several scores, while factor precision remains lower than coexistence precision for the checkpoint.
Factor precision on the annotated AMD notes across encoder-decoder prompt settings
Ordinary instructions give FLAN-T5-XXL the highest factor precision among the settings shown.
The numbers
| System or setting | precision |
|---|---|
| FLAN-UL2 zero-shot | 0.16 |
| FLAN-UL2 few-shot | 0.36 |
| FLAN-T5-XXL zero-shot | 0.54 |
| FLAN-T5-XXL few-shot | 0.66 |
| FLAN-T5-XXL instruction-based (this paper) | 0.8 |
The authors identify guided FLAN-UL2 as the strongest overall setting and use it to produce their illustrative AMD graph. Several rows in the results, including the guided FLAN-UL2 row, show fewer values than the full set of metric columns. The charts use settings whose rows identify every metric unambiguously. The paper’s overall judgment about guided FLAN-UL2 is broader than the comparisons shown in the charts.
When the outputs could be scored
The decoder-only comparison runs into a practical problem before precision and recall can be measured. Under zero-shot, few-shot, and ordinary instruction-based prompts, the decoder-only systems did not produce the structured output required by the evaluation. The authors consequently give no quantitative results for those prompt settings. An absent result records an unusable output format in their experiment. Its value cannot be interpreted as a precision or recall score.
With the guided prompt, Vicuna-33B, Llama-2-70B, and WizardLM-70B yielded output that the pipeline could use. BioGPT, OPT, OPT-IML-MAX, and BLOOM remained unsuitable in the authors’ tests. The authors single out WizardLM-70B’s recall for treatments and factors in their discussion of the usable decoder-only runs. The comparison shows that successful parsing is a prerequisite for scoring this pipeline and that its structured prompt moved some systems across that prerequisite. Llama 2 · WizardLM
The appendix offers specific examples of the distinction. An OPT response continues with template placeholders and repeats the instructions for answering. Several BLOOM responses start in a way consistent with the prompt and continue with disconnected or repetitive material. An OPT-IML-MAX response abstains on a question about progression even though the passage describes a transition from dry to wet disease. The first two behaviors disrupt output processing. The third can pass the abstention filter as intended and still leave a supported item unrecovered.
Other examples reveal how a response can contain potentially useful information and remain unsuitable in its original form. One unguided answer begins by declining to provide medical advice, then supplies a long discussion that blends material from the passage with background statements. The graph-building task asks the system to identify the entities that answer the question from the note alone. A reader might recover some of those entities from the prose, but the extraction pipeline receives extra claims and no clean boundary around the requested answer. The authors treat this as an extraction failure even where parts of the response are contextually appropriate.
What appears in the AMD graph
The graph built with guided FLAN-UL2 illustrates the type of vocabulary the pipeline can recover. Its treatment column contains named drugs such as Avastin and Lucentis, a broader anti-VEGF entry, vitamins, and entries for foods discussed in the notes. It also contains Amsler grid testing. This shows the breadth of the operational category, which covers terms recovered in response to treatment and management questions. The table marks missed and incorrect entries, so the column encompasses the output and its errors instead of serving as a vetted list of clinical options.
The factor annotations include smoking, genetic or family history, and retinal findings such as drusen and irregularities of the retinal pigment epithelium. The paper discusses these findings in connection with the complexity of disease progression. Their inclusion in the reference establishes what the annotators classified as factors in the notes. Within the coexistence category, the illustrative graph shows visual findings such as poor visual acuity and metamorphopsia, as well as disease forms and items related to monitoring or testing. Those different kinds of entities can all come from the same note and still warrant different links depending on how they are discussed.
The SemMedDB graph uses semantic relationships extracted from publication titles and abstracts. Its treatment column includes entries such as injection procedure and antioxidants. Its factor column includes oxidative stress. The note-based graph supplies a different level of detail in places, including specific names and language clinicians use when documenting care. The authors report that it surfaced terms absent from the SemMedDB graph and relay positive feedback from their medical evaluators about the value of recovering overlooked information. Since the graphs originate from different text collections, the comparison is evidence about the additional vocabulary available in clinical notes. It offers no matched estimate of how the two extraction approaches would perform on identical material.
What the ablations show
What changes when the prompt changes
The paper offers prompt comparisons and qualitative error analysis. It does not report a component-by-component ablation of the graph pipeline. The closest controlled comparisons hold a checkpoint fixed and change how it is asked to answer. For the encoder-decoder systems, zero-shot prompts, prompts with demonstrations, ordinary instructions, and guided instructions are tested as packages. These comparisons help separate changes caused by switching prompts from changes caused by switching checkpoints.
On FLAN-T5-XXL, the few-shot setting has higher treatment recall than the zero-shot setting, with lower treatment precision. The explicit instruction setting retains the few-shot recall figure while returning a larger share of correct treatment terms. The factor results show a similar contrast between the few-shot and instruction settings. They have the same recall, with greater precision under instructions. Coexistence improves on both measures when moving from the few-shot setting to instructions. Because the scoring occurs at the final graph, these comparisons capture whatever changes the prompt induces in answer selection, formatting, and survival through the later steps.
The FLAN-UL2 comparison shows that the relation category also matters within a checkpoint. The zero-shot and few-shot treatment runs reach the same treatment recall, while factor recall and precision rise with examples. This pattern provides more information than a claim that demonstrations generally help. In this case they change some categories more than others. A worked example can illustrate the desired answer, while the relation being asked about still determines which words in the note count as evidence.
For decoder-only systems, the guided prompt changes which runs can enter the numerical comparison. It supplies a category label, a response format, restrictions on evidence, and an abstention convention together. The experiment demonstrates the effect of offering that complete prompt in this setup. It leaves the relative contribution of each instruction unresolved. The examples make it possible to see the specific behaviors the prompt was meant to address, including category drift, continued generation after a recognizable answer, and use of material beyond the note.
Why a well-formed response can still be wrong
The encoder-only examples isolate a failure that formatting cannot fix. In one passage involving a discussion of progression, a reader selects the name of the disease where the question asks what might slow it. The returned phrase comes directly from the passage. It fails because the disease name is the subject of the question and does not fill the role of the requested intervention. Another encoder-only example reports a passage that explicitly associates smoking with AMD and produces smoking as the factor. These examples show the importance of reading the role a span plays in the note.
Some questions also ask for distinctions sharper than the reference categories reflect. The appendix groups a BioBERT answer about visual changes among its correct examples even though the displayed question uses causal wording. The passage describes monitoring for those changes. That example is best understood alongside the paper’s wide relation categories and its qualitative labeling. It provides little support for treating every output marked correct as evidence of a precisely stated cause. The stronger test for causal extraction would require judging which direction and kind of relation the passage actually asserts.
The appendix also shows a concise answer from an encoder-decoder system that puts vitamins in response to a question about what a disease can become. The vitamins are mentioned in the accompanying passage, but they belong to the part of the passage about possible management. Just as with the wrong span from an encoder-only reader, the error occurs even though the answer names something present in the input. A response can satisfy a source restriction in the narrow sense of using words from the note and still connect them to the wrong relation.
Abstention can also fail in either direction. The OPT-IML-MAX example about dry and wet disease shows a missed answer when evidence is present. An instruction-prompted FLAN-UL2 example illustrates abstention on a question about what the disease affects when the note primarily lists treatment options. The latter response follows the study’s preference for leaving an answer unavailable when its source passage provides evidence for a different category. Together the examples show why abstention is part of the extraction task. It requires interpreting the question and the evidence, not simply recognizing a cue to emit a fixed phrase.
What the cleanup example establishes
The filtering and grouping illustration explains how raw text can yield a more readable list. A low-scoring answer can disappear, several expressions can become a single entry, and several entities in one answer can become separate entries. The figure supplies a trace through those operations. It does not give precision and recall for runs with and without each operation. The same holds for note deduplication and the use of UMLS aliases plus fuzzy matching. Their role in the procedure is described, while their separate contribution to the final scores remains unmeasured.
The analysis therefore supports two levels of explanation. The prompt comparisons document changes in measured graph quality or in the feasibility of scoring a run. The examples show concrete routes by which errors arise and by which the pipeline can remove or normalize certain outputs. They leave open how frequently each failure occurs and how much each piece of the pipeline contributes to the headline result.
Limitations
Limits the authors state
The authors identify the evaluation on one dataset and one target disease as the principal limitation. Medical annotation takes substantial time, and the reference was assembled specifically for AMD. The corpus contains notes relating to many other eye diseases, but performance estimates in the paper come from the annotated AMD material. Clinical vocabulary, disease aliases, and the contents of notes can differ when the target disease or institution changes.
The medical records are private and the authors state that the dataset is unavailable to the public. They use open-source checkpoints to protect patient data. They also recognize that this choice restricts what their comparison can say about proprietary systems. Results depend on the set of checkpoints studied and on whether those checkpoints could produce useful output under the prompts tested.
The authors also limit the study to query access, which makes the pretrained checkpoint and its prior instruction training part of the starting conditions. They raise task-specific fine-tuning on a relevant corpus as a direction for future work. The reported experiments establish the behavior of existing systems under particular queries and postprocessing rules. They give no direct measure of what changes after additional training tailored to these records.
Limits visible in the evaluation design
The distinction between term recovery and case-level support matters. A graph term can agree with the annotation even when a particular answer that helped generate it was weakly tied to its note. The reported precision and recall assess entity lists for the disease and category. The examples offer a closer view of grounding in individual notes, while the study gives no systematic rate for correctly grounded answers, correct abstentions, or unsupported responses across all queries. Its quantitative measures therefore describe graph recovery at a different level from the appendix examples.
The label scheme also sets the scope of the graph’s claims. A treatment category that includes prevention and management can be useful for organizing mentions, while its edges cover interventions discussed for different purposes. A factor category can combine a documented risk with a finding associated with disease progression. A coexistence edge can connect AMD to a test or a manifestation and carries limited information about the circumstances of the connection. These labels should be read at the level of the note-extraction task. The graph scores do not measure the strength of the associations, effectiveness of treatments, or evidence that one thing caused another.
The process of selecting notes can affect what the evaluation sees. The authors assemble their reference after applying their note identification and preprocessing steps. A relevant passage discarded because it is short, judged redundant, or missed by the disease matcher may never contribute a term to either the reference or the system’s input. Consequently, the evaluation covers recovery from the retained AMD notes. It does not independently quantify how many relevant passages or relationships were lost at the earlier selection stage.
Recurrence also has more than one possible explanation. An answer may recur because several patients’ notes express the relationship, because a template repeats the same wording, or because similar questions elicit the same answer. The thresholds work at the level of answer occurrences. A rare but legitimate relationship can struggle to pass on that basis, while a repeated misreading can gain support. The authors describe choosing hyper-parameters through experimentation with the data and allowing them to be adjusted for a different collection. No independent evaluation in the paper establishes how those settings carry over to another collection.
The same concern applies to confidence. The algorithm averages scores and uses them to decide which predictions and categories survive. It describes them as probabilities, but the paper does not establish that a given numerical value has comparable properties across answer types or architectures. Similarity grouping brings a separate judgment into the pipeline. It assumes that outputs with sufficiently similar expressions can stand for the same entity, with the highest-scoring prediction chosen to represent the group. Closely related clinical terms can still matter at different levels of detail, as illustrated by names of individual drugs appearing alongside a broader treatment class.
The annotators’ joint review makes the reference internally consistent enough for the comparisons the paper undertakes. The paper does not supply an agreement statistic or a separate accounting of the types of disagreements resolved in adjudication. This limits what a reader can infer about which assignments would be most difficult to reproduce, particularly for categories that cover several kinds of relationship. The compact number of distinct reference terms also makes the results sensitive to the treatment of individual cases, including whether two surface forms should be considered the same entity.
Finally, the architecture comparison is a benchmark of available systems and configurations. The checkpoints differ in size, training material, and prior instruction training. The authors compare an extractive interface for the encoder-only systems with text generation for the other families. Some decoder-only results are unavailable because the responses cannot be incorporated into the graph. The strongest architecture-level conclusion applies to the systems, prompts, and output requirements tested, with guided encoder-decoder systems giving the authors’ preferred result for this particular extraction task.
What came after
From clinical relations to formal graph structure
Later citing work includes a study of formalizing DATASUS RTS as an ontological model for a Resource Description Framework knowledge graph. Its title points to an emphasis on the formal structure used to represent information. That emphasis connects to a choice Arsenyan and colleagues make at the start of their pipeline. They give the extraction system a small set of relationship categories, and those categories determine how the final graph can express a claim. Formalization addresses the question from the graph side by making the representation itself the object of study. The citation establishes a connection between the works. It leaves the extent of any reuse of the clinical extraction procedure open. Formalizing the DATASUS RTS
Discovering structure with an open schema
A second citing work addresses zero-shot discovery of entity structure with an open schema. That framing connects to the role of the question bank in the AMD study. Arsenyan and colleagues supply a disease name and decide which families of relationships the system should look for before it sees a note. Whatever terms the system finds, its outputs must be expressed through the given categories. An open-schema discovery problem brings the structure to be found into the task itself. Readers can place the works alongside one another by asking which decisions are supplied in advance and which have to be inferred. The citation alone leaves open which, if any, of the AMD study’s prompts or filtering steps the later work uses. Zero-Shot Open-Schema Entity Structure Discovery
Extraction and evaluation in humanitarian mine action
TextMineX is a citing project concerned with data, evaluation, and an ontology-guided extraction pipeline for humanitarian mine action. In the AMD study, domain guidance enters through disease aliases, questions based on biomedical predicates, and named output categories. Evaluation depends on reviewers who can recognize and classify the relevant terms in the documents. TextMineX’s stated combination of a data component, an evaluation framework, and ontology-guided processing puts those design questions in a different domain. Its title and citation support that connection without establishing which implementation choices it carries forward. TextMineX
Cite
Cite as Vahan Arsenyan, Spartak Bughdaryan, Fadi Shaya, Kent Wilson Small and Davit Shahnazaryan. 2024. Large Language Models for Biomedical Knowledge Graph Construction: Information extraction from EMR notes. Proceedings of the 23rd Workshop on Biomedical Natural Language Processing.
@inproceedings{arsenyan2024large,
title = {{Large Language Models for Biomedical Knowledge Graph Construction: Information extraction from EMR notes}},
author = {Vahan Arsenyan, Spartak Bughdaryan, Fadi Shaya, Kent Wilson Small and Davit Shahnazaryan},
booktitle = {Proceedings of the 23rd Workshop on Biomedical Natural Language Processing},
year = {2024},
doi = {10.18653/v1/2024.bionlp-1.23},
url = {https://doi.org/10.18653/v1/2024.bionlp-1.23}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/arsenyan-2024-large-language-models-biomedical-knowledge/