Elamur Research

Attentive Multiview Text Representation for Differential Diagnosis

Paper · 2021 · Hadi Amiri, Mitra Mohtarami and Isaac Kohane

Summary

A clinician looking for the cause of an unusual illness may have a detailed patient history and still face a difficult search. A disease description may use different words for the same finding, while a medical code that brings those words together can lose distinctions about what was observed, suspected, or ruled out. The authors study whether a search system can benefit from keeping both forms of the information. They frame differential diagnosis as a ranking task. Given a patient's written history, the system orders candidate diseases by how well their descriptions match the case. Clinicians from the Undiagnosed Diseases Network supplied the judgments used to evaluate those rankings.

The authors' attentive multiview ranker, AMNM, compares a patient and a disease through separate views of the same pair. One view represents the original text. The other uses medical concepts and codes, which can bring different expressions of the same finding together. For each patient and disease, the ranker learns how much weight to give each view. It then combines information from within each view and uses the result to score the pair. The experiments compare several ways of making that combination, from a dot product that produces a single similarity value to operations that represent interactions between individual features.

The evaluation uses histories from 257 patients and descriptions of more than 9K diseases from Online Mendelian Inheritance in Man. On the held-out patients, text-only BERT reached 15.5% mean average precision, a measure that rewards placing relevant diseases early in the ranking. The best AMNM setting on that metric reached 18.9% using BERT for both views and dot-product fusion. Another dot-product setting, which combined BERT for the narrative with a support vector machine representation for the concept view, reached the highest precision at the reported short cutoffs. Its precision was 18.3% among the first 5 diseases and 17.9% among the first 10. PhenoTips, a tool used by the network, scored close to text-only BERT in mean average precision and lower at both short cutoffs.

The analysis shows where the combined approach still struggled. The narrative and concept views sometimes placed the same relevant disease at quite different ranks, especially when they used different representation methods. Yet when the concept view using support vector machines put a relevant disease higher than the narrative view did, the attention component gave it more weight in only 0.9% of those cases. The experiments establish gains in ranking against the recorded judgments for this cohort. They leave open whether the resulting lists help clinicians reach a diagnosis sooner or improve patient care.

Deep dive: Attentive Multiview Text Representation for Differential Diagnosis

Attentive multiview ranking combines clinical narratives and medical concepts to bring relevant rare diseases higher in a diagnostic search. · about 32 minutes to read

The problem and its context

From a patient history to a list of candidates

Differential diagnosis involves distinguishing diseases that could explain similar clinical findings. In the setting studied here, the starting point is a medical history for a patient whose illness has been difficult to diagnose. The history may describe symptoms, observations, and clinical interpretations in prose. The candidate descriptions, in contrast, give general accounts of diseases and their clinical features. A system has to compare a record of what happened to a particular person with descriptions written to characterize conditions across patients.

The paper identifies several reasons why that comparison is difficult. Medical records contain specialized terminology, and the information available for any patient can be incomplete or imprecise. Rare diseases also vary in their presentation. A finding can therefore be relevant to a disease even when the patient's history describes it in different terms, gives it a different degree of certainty, or records only some of the features that appear in the disease description. In this setting, a useful match may depend on which findings line up and what the history says about each of them.

The authors treat the task as information retrieval. The query is the patient's history. The documents are descriptions of candidate diseases. For each query, the system scores the documents and returns them in order of estimated relevance. The same collection can be searched for different patients, while the order changes with the history. The retrieval formulation makes it possible to ask whether diseases judged relevant for a case appear early enough in the list to be encountered during review.

The distinction between ranking and assigning a diagnostic label matters for the evaluation. The data can associate a history with several relevant diseases. The experiment can therefore give credit for finding several relevant entries and can distinguish a list that places them near the top from one that finds them only much later. It can also ask whether the first part of the list contains any relevant entry at all. These are different properties of the same ranking, and the paper uses different measures to examine them.

The histories come from the Undiagnosed Diseases Network, or UDN. As the paper describes it, the network brings together 12 clinical sites and evaluates applications from people with difficult cases. Applicants submit a referral from a health professional, and a committee of experts reviews applications for admission. The paper distinguishes research on who enters this program from the retrieval question it investigates. Earlier studies had considered factors associated with application outcomes and used patient characteristics to predict admission. The present task starts with histories of participating patients and asks how to order diseases for each history.

How earlier work searched for diseases

The paper places its approach alongside earlier attempts to make disease information searchable from patient findings. FindZebra was a search engine designed for rare diseases that used retrieval methods available in Indri. Other work examined whether general search engines such as Google and Bing could return relevant diseases from descriptions of phenotypes, the observable characteristics recorded for a patient. Further approaches compared phenotypes through structured medical terminology and the information conveyed by particular findings. Earlier researchers also applied collaborative filtering and combined predictions from multiple methods.

These approaches give different answers to the question of what should count as evidence for a match. A retrieval method can measure how much vocabulary a history and a disease entry share. A terminology-based approach can connect findings through relationships between concepts. Combining predictors offers a way to use several such signals when each captures part of the relationship. The paper's question is how to retain distinct representations of the history and disease while allowing their relative influence to change from one proposed match to another.

The distinction is especially clear in PhenoTips, the clinical comparison system used in the paper. It ranks diseases using phenotype similarity informed by the Human Phenotype Ontology and Orphanet. The paper describes it as using population frequencies from Orphanet, accepting findings that were explicitly absent, and working with text and coded information. It establishes that the practical context already included tools that use several kinds of evidence. AMNM investigates a particular way of learning to combine two representations when scoring a patient–disease pair.

Why retain both words and concepts?

A representation is the form in which a system can compare or combine an input. A word-based representation may preserve much of the language that accompanies a finding. A concept representation groups expressions under the same medical term or code. The paper illustrates the motivation with different names for a form of diabetes, including an abbreviation and phrases that differ in word order. Assigning those expressions the same preferred concept gives the representation a consistent term to compare across documents.

The surrounding prose serves another purpose. It can indicate that a finding was denied, that a conclusion was tentative, or that the writer was considering a possibility. The paper singles out negation and hedging as information the text view can convey. A concept can identify what the clinician was writing about, while the surrounding statement conveys the status of that finding in the history. The extent to which either distinction survives in a numerical representation depends on how the view is built.

Vocabulary can also differ for reasons beyond the choice of a synonym. A patient history and a disease description may situate related findings in different clinical contexts. The paper uses an example in which a query containing congestive heart failure can be relevant to documents using expressions such as cardiac decompensation, pulmonary edema, or ischemic cardiomyopathy. The example illustrates a lexical matching problem. It does not require treating each phrase as an interchangeable name. A system based primarily on words in common can miss a relationship that a representation sensitive to context or medical concepts has some chance of capturing.

Earlier ranking work described in the paper often combined a query vector and a document vector by concatenation, which means placing their coordinates end to end. That preserves the values from each side and lets subsequent scoring use them. The authors also cite work that explicitly put interactions between query and document features into the representation. Their fusion experiments follow that line of work. They compare ways of making a feature of the patient and a feature of the disease contribute together before the final relevance score is calculated.

AMNM thus addresses two decisions that can be made separately. The ranker has to decide how much influence a view should have for the patient and disease under consideration. It also has to decide what information to extract from the two representations within that view. The first decision is implemented through attention, the assignment of learned weights. The second is implemented through fusion, the construction of a joint representation. Keeping those operations distinct makes it possible to compare fusion rules and to inspect whether the learned weights favor the view whose standalone search result is better.

The method, step by step

How a candidate gets a score

The computation starts with a patient history and one candidate disease description. The system represents both through the narrative view and through a view based on medical concepts and codes. Each representation is a vector, an ordered collection of numerical features. The system thus has a patient vector and a disease vector within each view. It can use both views without assuming that the coordinates of a narrative vector and those of a concept vector have the same interpretation.

For each view, the attention component projects the patient and disease vectors into a common space and measures how closely they align there. These measurements are turned into weights across the views for the current pair. A view's weight then affects both its original vectors and the feature interactions calculated from them. The score eventually uses those weighted vectors and interactions together. During test ranking, the system repeats the procedure for the other diseases and sorts them by their relevance scores.

From a patient history to ranked diseases

The steps in order.

From a patient history to ranked diseasesStep 1: Represent the patient and disease in each view1. Represent the patient and disease in each viewStep 2: Project each pair into a shared space2. Project each pair into a shared spaceStep 3: Compare projections and assign weights across views3. Compare projections and assign weights across viewsStep 4: Weight the patient and disease vectors4. Weight the patient and disease vectorsStep 5: Compute feature interactions within each view5. Compute feature interactions within each viewStep 6: Join weighted vectors and interaction features6. Join weighted vectors and interaction featuresStep 7: Score and sort candidate diseases7. Score and sort candidate diseases

For a patient whose history contains unusual terminology, normalization may help a disease description and the history share a concept. For the same patient and a different disease, the narrative may offer the more distinctive evidence because the two texts describe findings in similar contexts. The architecture can give different weights to those pairs. It calculates a weight using information about the candidate as well as the patient, so it need not assign a single preference for narrative or concepts to an entire patient history.

There are also two different comparisons within the scoring pipeline. The attention calculation compares the projected patient and disease representations to decide the weight of the view. The fusion calculation extracts a feature or set of features from the pair. With dot-product fusion, a projected similarity serves both purposes. With the outer-product and convolution alternatives, attention still comes from projected similarity, while the interaction features come from a different operation. Changing fusion therefore changes the information reaching the final scorer, even though the rule for producing attention weights has the same form.

Constructing the views

The original prose supplies the text view. For the other view, the authors use medical concepts and codes identified with QuickUMLS, a system for information extraction from clinical text. For BERT's concept-based input, occurrences of medical concepts are replaced with their preferred expressions in the Unified Medical Language System, or UMLS. The paper describes applying this replacement in both patient histories and disease descriptions. This implementation matters because a representation produced from a rewritten passage can inherit more from the original prose than a list consisting only of codes would.

In the diabetes example, the preferred UMLS expression given in the paper is “juvenile diabetes.” The abbreviation “IDDM” and the longer variants in the example are normalized to that expression. The normalization provides a way to bring different mentions into a shared vocabulary. With an encoder that uses the context around a term, however, changing an expression inside a sentence can also change how the surrounding words are represented. The authors later invoke that possibility when they interpret the relative performance of the two BERT views.

The clinical BERT representations are based on the work described in Publicly Available Clinical BERT Embeddings. BERT generates contextual representations, so the numerical representation of an expression can depend on the words around it on both sides. This gives the narrative view a way to incorporate local wording when comparing patient and disease passages. The underlying approach to bidirectional context comes from BERT.

The paper gives 768 as the initial dimension of the clinical BERT representations. In the configuration the authors call bert-bert, BERT supplies representations for both the text and the concept view. In bert-svms, BERT supplies the text view and support vector machines supply the representation used for the concept view. The BERT narrative side is common to the two choices. Their comparison asks what happens when the concept view is represented using the same contextual approach as the narrative or through a different technique.

The support vector machine experiments use TF-IDF to weight n-grams. An n-gram is a sequence of adjacent items in the input. The range in the paper is [1–2], so the features include individual terms and adjacent pairs. TF-IDF gives terms weight based on their occurrence in the text and how common they are across the collection. The paper describes these features for the support vector machine baselines and names support vector machines as the source of the concept-view representation in the mixed AMNM configuration. It gives less detail about how that representation is passed into the ranker than about how attention and fusion operate once the vectors are available.

Assigning attention across views

The attention calculation starts by giving the patient and disease vectors compatible coordinates. Each side has its own learned linear projection and a bias, a learned offset applied after the projection. Both projected vectors pass through a rectified linear unit, or ReLU, which clips negative coordinates to zero and leaves positive coordinates unchanged. The system then takes a dot product. A dot product multiplies corresponding coordinates and adds the products, yielding a single value for the view.

f(qᵢ, dᵢ) = ϕ(W_q qᵢ + b_q)ᵀ · ϕ(W_d dᵢ + b_d)

Here, i indexes the view and f is the function that returns its unnormalized attention score. The inputs qᵢ and dᵢ are the query and document vectors for that view. Their respective lengths are l and m. The trainable projection matrices W_q and W_d have n rows and, respectively, l and m columns. They map each input to the shared space of dimension n, which the authors set to 100. The trainable bias vectors b_q and b_d have length n. The symbol ϕ denotes ReLU, ᵀ transposes the query-side result so it can be multiplied by the disease-side result, and · denotes that dot product.

Giving the two sides separate projections lets the scoring procedure learn useful coordinates even when the input coordinates on the patient and disease sides carry different distributions of features. A medical history and a disease entry have different purposes and styles. Similarity in the learned space can therefore reflect a correspondence between their features that would be difficult to express by matching their original coordinates directly. The dot product is a learned scoring proxy for how informative the view may be for the current pair. Its magnitude depends on the projected activations as well as their alignment.

a = softmax([f(qᵢ, dᵢ), ∀i])

In this expression, a is the vector of attention weights for the current patient–disease pair. The square brackets collect the scores returned by f and ∀i means that the collection includes every view. The symbols qᵢ and dᵢ refer to the same query and document vectors used in the preceding formula. The softmax converts the scores into non-negative weights in the paper's stated range [0, 1] that sum to one. Larger scores receive larger weights. The weight for a particular view is the corresponding entry in a.

The normalization is across views for a single pair. A narrative view's weight therefore depends on its own projected similarity and on the similarities calculated for the other available views. Even if the score from one view stays the same, the weight can change when the other view's score changes. The weights indicate how the ranker distributes influence among its representations. They are separate from the final confidence score used to order diseases for a patient.

The calculation extends to additional views by scoring each one and including its score in the same normalization. The paper mentions demographic information, diagnostic codes, and radiology images as examples of different sources from which a patient might be represented. In the reported experiment, the inputs are the two textual views. The use of a common weighting scheme describes the architecture's capacity, while the evaluation concerns those particular inputs.

Turning a weighted pair into features

Once the attention weight is known, the fusion component receives a patient vector and a disease vector scaled by that same weight. The two scaled vectors are retained in the representation. The ranker also calculates an interaction embedding, which is a numerical description of how features on the patient side and features on the disease side go together. The experiments differ in how they calculate that interaction.

The notation now uses q and d for the patient and disease vectors of the current view, leaving the index out because each formula is applied within a view. The scalar α is its entry in the attention vector. In each reported fusion expression, the interaction is scaled by α². This is the consequence of weighting both sides of an interaction that combines patient and disease features. For the dot-product variant, the displayed expression applies that factor to the similarity of the already projected, unweighted inputs.

g_dot(αq, αd) = α² × ϕ(W_q q + b_q)ᵀ · ϕ(W_d d + b_d)

The function g_dot is dot-product fusion. Its arguments αq and αd are the attentive patient and disease vectors, with juxtaposition denoting multiplication by the attention weight. The symbol α² is the squared weight and × indicates scalar multiplication of the interaction result. The projections W_q and W_d, biases b_q and b_d, activation ϕ, transpose ᵀ, and dot product · are the ones used in the attention formula. This fusion rule supplies a single interaction value for the view. The ranker also retains the two attentive vectors, so the information used by the final scorer is wider than this value alone.

Dot-product fusion makes each coordinate contribute through the corresponding coordinate in the shared space, then pools those contributions into the same scalar. This keeps the interaction representation compact. It also gives the downstream layer access to the learned similarity in a form that reflects the weight assigned to the view. When that weight is small, the similarity value contributes less through this channel, and the original vectors for the same view are also scaled down.

g_outer(αq, αd) = α² × (q ⊗ d)

The function g_outer is outer-product fusion. The arguments αq and αd again denote the attentive patient and disease vectors, with α the same view weight on both sides. The superscript in α² denotes squaring and × scales the result. The operator ⊗ forms the outer product of the original vectors q and d. The output has a row for each patient coordinate and a column for each disease coordinate. Each entry is the product of the two corresponding features, scaled here by the squared weight.

An outer product preserves patient–disease feature combinations as distinct entries. A patient feature can interact with several disease features, including features at different positions in their vectors. The output is flattened, meaning that the entries are arranged in a vector for the final scoring stage. Because it keeps many feature products separately, outer-product fusion creates a larger interaction representation than dot-product fusion. The paper notes the additional computational expense as a tradeoff for a richer description of the interaction.

g_conv(αq, αd) = α² × Conv1d(q ⊗ d)

The function g_conv is the convolutional fusion variant. Its arguments again comprise q and d, the patient and disease vectors, each multiplied by the view's weight α. The ⊗ operator first forms their outer product. The paper defines Conv1d here as its one-dimensional convolution operation with average pooling. The convolution applies learned filters to local groups of entries. Average pooling summarizes activations by averaging them. The factor α² scales the interaction result through ×. The authors use 250 filters and a kernel size of 3, where the kernel size specifies the width used by a filter in the convolution.

Both the outer-product and convolutional alternatives begin with the full set of feature products. The outer-product variant makes those products directly available after flattening. The convolutional variant processes them into a set of filter responses and summarizes those responses before they enter the fused representation. The comparison tests whether that processing yields a more useful interaction feature for ranking. The paper does not require assigning a clinical meaning to each coordinate or each filter. Their usefulness is judged through the resulting disease ranks.

From the fused vectors to the ranked list

For each view, the flattened interaction features are concatenated with the two weighted input vectors. The view representations then feed the last scoring layer. The paper describes this as a softmax layer that gives the estimated relevance of the document for the query. The first softmax distributes attention among the available views. The last one generates the pair's classifier confidence for ranking. The system evaluates that confidence for each patient and disease separately and uses the scores to put the diseases in order.

An example in the ranking task is a history paired with a disease description. The term pairwise here refers to that patient–disease input and the relevance judgment attached to it. For every positive pair in the training set, the authors create a negative pair by sampling for use in training. They keep the patient fixed and sample a disease at random for the negative example. That gives the classifier examples of relevant and sampled negative associations for the same patient. At test time, the authors score every possible pair between the held-out patients and the disease collection. The sampled training candidates do not determine which diseases can appear in the test rankings.

The split is made by patient, so the history serves as a query on only one side of the training, validation, and test partition. The paper specifies the sampling procedure and the inference step, while the detailed settings are referred to supplementary material. It gives the AMNM code location and describes a request process for access to UDN phenotypic and genomic data through dbGaP. The ranking experiment itself uses the patient histories, the disease descriptions, and the relevance judgments supplied by clinicians.

Experiments and results

The patients, diseases, and relevance judgments

The experiment uses medical histories from 257 UDN patients. The candidate collection consists of descriptions of more than 9K diseases from Online Mendelian Inheritance in Man, abbreviated OMIM. These entries include clinical features that can be compared with findings in a history. Expert clinicians from the UDN supplied the patient–disease relevance judgments. The paper reports 4, 746 positive pairs involving 1, 131 distinct diseases. A disease may be relevant to different patients, and a patient's evaluation can include several relevant diseases.

The authors assign patients to training, validation, and test sets using an 80%, 10%, and 10% split, respectively. Splitting by patient makes the evaluation a test of ranking for held-out histories. It still permits disease descriptions to be shared across the rankings, which fits the use of a catalog as the search collection. The positive pairs and random negatives supply the training examples. The test rankings come from more than 218K possible pairs, formed by pairing the held-out histories with every candidate disease.

The distinction between the number of judged positives and the number of possible pairs is important for reading the scores. Results at short cutoffs concern diseases retrieved from the full collection. A system that places a recorded relevant disease high has put it ahead of many alternative entries for that patient. Precision also depends on how many returned diseases are labeled relevant. Finding a disease high in a large collection can have practical interest even when most entries in the first screen of results are not credited by the evaluation.

What the comparisons test

BM25 is the unsupervised lexical baseline. It uses document length, term frequency, and inverse document frequency to assign a score to a candidate. A term can contribute according to its frequency in a description, while rarer terms can be more discriminating across descriptions. The length adjustment lets the score account for documents offering different amounts of text in which terms might occur. This baseline asks how far lexical evidence can take the retrieval task. It is associated with Okapi at TREC-3.

The support vector machine baselines use the weighted n-gram features for text and concepts, with hyper-parameters selected by exhaustive search on validation data. In contrast to the unsupervised retrieval score, these systems learn from labeled examples. The paper cites earlier clinical text work as evidence that these features were a reasonable starting point. The foundational work it cites is Support-Vector Networks.

The BERT baseline estimates relevance through contextual representations. The authors run it for the text view and the concept view, giving a comparison between leaving the narrative wording intact and replacing medical expressions with preferred concepts. Because the text-view BERT result is the strongest baseline by mean average precision, it also serves as the reference point for the significance comparisons reported for AMNM.

SVM rank learns how to put documents in order for a query. Its inputs include scores or predicted probabilities from the other baselines, plus features for shared individual terms and shared terms weighted by inverse document frequency. The paper evaluates SVM rank with features from an individual view and with features across both views. The multiview result is relevant to the main claim because it tests another way to combine evidence. It operates on scores and overlap features, while AMNM builds representations within the views and weights them for each patient and disease.

PhenoTips provides a comparison with an existing system used by the UDN. It draws on structured sources of phenotype and disease knowledge and can take account of findings recorded as absent. Its inputs and evidence therefore differ from the lexical and contextual ranking baselines. The comparison asks how the resulting rankings fare on the same measures, with each system bringing its own representation of disease evidence.

What the metrics reward

Precision at a cutoff is the share of entries through that rank that the evaluation counts as relevant. P@5 refers to the first 5 diseases and P@10 to the first 10. The reported numbers summarize the precision at each cutoff across the test queries. A relevant disease can contribute to precision at a cutoff wherever it appears within that portion of the list. The measure does not give a higher contribution for placing that disease at the very top rather than at the last position within the cutoff.

Average precision reflects the order of relevant entries in more detail. For a given patient, it considers precision at the positions where a relevant disease occurs and averages those contributions over the relevant diseases. A result gains when relevant diseases occur early, where they can be reached before many irrelevant entries. Mean average precision, or MAP, then averages the patient-level values. The authors also use a precision–recall curve to examine the tradeoff between returning a concentrated set of relevant results and retrieving a greater share of the judged relevant diseases.

The paper additionally reports Hit@K, which records whether the list through rank K contains any relevant disease for the patient. Hit and precision answer different questions even when applied to the same list. A list that supplies a single relevant lead qualifies as a hit. Precision also depends on the other entries in the returned set. The authors motivate Hit@K by pointing to clinicians' interest in finding a plausible lead in the portion of the list they review.

The main results give MAP and precision as percentages. Statistical comparisons use a t-test and a threshold the paper prints as ρ = 0.01. The significance marks in the multiview results are attached to MAP entries and use text-view BERT as the baseline. The stars in the charts below identify the AMNM configurations leading on the displayed measure.

How the individual views performed

On the test set, BM25 had MAP of 4.1% for text and 6.5% for concepts. The support vector machines scored 8.8% for text and 7.7% for concepts. For single-view SVM rank, MAP was 12.1% using text and 8.5% using concepts. BERT produced the strongest MAP in each view, with 15.5% for text and 10.8% for concepts. These results make the choice of representation method important to any interpretation of the view comparison. Moving to concepts favored BM25 on MAP, whereas the other reported baseline methods had higher MAP on text.

The cutoff metrics offer a more specific picture of BERT's view comparison. For test patients, text BERT had P@5 of 12.5% and P@10 of 11.7%. Concept BERT had P@5 of 13.3% and P@10 of 10.8%. The text version leads on MAP and on the longer of those cutoffs. The concept version leads at the shorter one. Among the other single-view results, text SVM rank recorded P@10 of 12.5%, ahead of text BERT on that measure. BERT is consequently a strong baseline across the results, while the highest baseline at a given cutoff depends on which metric and view are considered.

The authors attribute weak lexical scores partly to differences between the language of clinical histories and that of disease descriptions. The contrasting MAP results for BM25 and the other methods are compatible with that account. Standardizing names can improve overlap for a lexical method without necessarily making a passage easier for a contextual encoder to represent. The authors suggest that rewriting a passage with preferred expressions could reduce its coherence, and that BERT can already recover some semantic relationships from ordinary wording. They connect that account to earlier psycholinguistic tests discussed in What BERT Is Not.

What changed when the views were combined

The MAP results compare AMNM's fusion and representation settings with the dual-view SVM rank and PhenoTips baselines. The BERT text-only result gives the strongest single-view reference.

Mean average precision for disease ranking on held-out UDN patients

Dot-product fusion with BERT in both views reaches the highest mean average precision.

Mean average precision for disease ranking on held-out UDN patientsSVM rank with text and concepts: 12.9SVM rank with text and concepts12.9PhenoTips: 15.4PhenoTips15.4BERT text view: 15.5BERT text view15.5AMNM BERT–BERT dot product (this paper): 18.9AMNM BERT–BERT dot product (this paper)18.9AMNM BERT–BERT outer product: 18.0AMNM BERT–BERT outer product18.0AMNM BERT–BERT convolution: 16.0AMNM BERT–BERT convolution16.0AMNM BERT–SVMs dot product: 18.4AMNM BERT–SVMs dot product18.4AMNM BERT–SVMs outer product: 17.1AMNM BERT–SVMs outer product17.1AMNM BERT–SVMs convolution: 11.4AMNM BERT–SVMs convolution11.4
The numbers
System or settingMAP %
SVM rank with text and concepts12.9
PhenoTips15.4
BERT text view15.5
AMNM BERT–BERT dot product (this paper)18.9
AMNM BERT–BERT outer product18.0
AMNM BERT–BERT convolution16.0
AMNM BERT–SVMs dot product18.4
AMNM BERT–SVMs outer product17.1
AMNM BERT–SVMs convolution11.4

On test MAP, the best AMNM configuration uses BERT in both views and dot-product fusion. The authors report its improvement over text BERT as 3.4 points. The mixed BERT–SVM setting with the same fusion rule improves on that baseline by 2.9 MAP points. Both dot-product settings and both outer-product settings receive the paper's significance mark. The BERT–BERT convolution setting receives it as well. The BERT–SVM convolution setting, which falls below the text BERT baseline on MAP, is the exception.

View combination has different effects across systems. The dual-view SVM rank reaches 12.9% test MAP, above its individual text or concept results and below text BERT. PhenoTips gives MAP of 15.4%, close to text BERT's 15.5%. AMNM reaches higher MAP for several ways of handling the inputs, while the weaker convolution result shows that adding a concept view and learning to weight it is insufficient to guarantee a gain. What happens to the weighted vectors during fusion is consequential.

At the first 5 ranks, the mixed dot-product AMNM setting achieves the highest precision. The two BERT views with outer-product fusion also do well at this cutoff. The comparison shows that the configuration with the highest MAP can be different from the one that concentrates the most relevant diseases in the shortest returned list.

Precision at rank 5 for disease ranking on held-out UDN patients

The mixed BERT and support vector machine configuration with dot-product fusion leads at the shortest reported cutoff.

Precision at rank 5 for disease ranking on held-out UDN patientsSVM rank with text and concepts: 12.5SVM rank with text and concepts12.5PhenoTips: 8.3PhenoTips8.3BERT text view: 12.5BERT text view12.5AMNM BERT–BERT dot product: 14.2AMNM BERT–BERT dot product14.2AMNM BERT–BERT outer product: 16.7AMNM BERT–BERT outer product16.7AMNM BERT–BERT convolution: 10.0AMNM BERT–BERT convolution10.0AMNM BERT–SVMs dot product (this paper): 18.3AMNM BERT–SVMs dot product (this paper)18.3AMNM BERT–SVMs outer product: 17.5AMNM BERT–SVMs outer product17.5AMNM BERT–SVMs convolution: 14.2AMNM BERT–SVMs convolution14.2
The numbers
System or settingP@5 %
SVM rank with text and concepts12.5
PhenoTips8.3
BERT text view12.5
AMNM BERT–BERT dot product14.2
AMNM BERT–BERT outer product16.7
AMNM BERT–BERT convolution10.0
AMNM BERT–SVMs dot product (this paper)18.3
AMNM BERT–SVMs outer product17.5
AMNM BERT–SVMs convolution14.2

On test P@10, the mixed dot-product AMNM reaches 17.9%. The BERT–BERT dot-product and outer-product settings each reach 17.5%, and the mixed outer-product setting reaches 17.1%. The convolutional settings reach 12.1% with BERT supplying both views and 13.9% with support vector machines supplying the concept view. Dual-view SVM rank reaches 12.9% and PhenoTips reaches 5.4%. Thus PhenoTips's proximity to text BERT on MAP does not carry over to precision at the reported short cutoffs.

The paper gives the mixed dot-product configuration's improvement over text BERT as 5.8 points on test P@5 and 6.2 points on test P@10. The corresponding gains for BERT–BERT dot-product fusion are 1.7 points and 5.8 points. These improvements use text BERT as the reference because of its overall baseline performance. In particular, the precision gains should be read against that named comparison rather than interpreted as gains over the best single-view value at every cutoff.

The authors also report Hit@K with K = 20 on the UDN test ranking. They give AMNM a value of 0.49 and the strongest baseline a value of 0.37. This result describes how often the ranking provides a relevant lead within that portion of the list. It complements the precision figures by counting a case with any such lead as a success. In a search meant to suggest candidates for review, it is possible for that property to improve even when many returned entries still fail to match the recorded judgments.

What the ablations show

Changing how features interact

The clearest controlled comparison varies the fusion operation within each choice of representations. For BERT in both views, dot-product fusion has the highest MAP, the outer product improves P@5 over the dot product, and the two settings tie on P@10. For the combination of BERT text and support vector machine concepts, the dot product leads on all the reported main ranking metrics. The outer product remains competitive enough to show that individual feature interactions can support a strong ranking. The additional detail it retains does not produce a consistent advantage across settings and metrics.

The convolutional results help clarify the comparison. In both representation settings, convolution has lower MAP than either of the other fusion operations. With BERT on both sides of the view comparison, it also gives the lowest precision at both cutoffs among that group's fusion rules. In the mixed configuration, convolution still improves the cutoff precision over the paper's chosen text BERT baseline, while its MAP is lower. A result at a short cutoff can therefore move differently from a measure that also rewards where relevant diseases occur farther down the ranking.

The authors propose average pooling as one explanation. Pooling averages the filter activations that reach it. A response carrying particularly useful information for a patient–disease match can receive the same averaging treatment as less informative responses. If that makes strong evidence harder for the final scorer to use, then a less elaborate fusion rule could yield a better ranking. The experiments change the interaction operation as a whole. They show that the tested convolutional design was weaker and leave the effect of pooling itself unresolved. The paper also characterizes outer-product and convolutional fusion as computationally more expensive than the dot product. It does not give a timing comparison that would quantify the tradeoff.

Comparing two sources of concept-view evidence

The authors look at the performance of the standalone views patient by patient. They calculate average precision for each patient's ranking and use Pearson correlation to measure how strongly those patient-level scores vary together. When the narrative view and concept view both use BERT, the correlation on the test queries is 0.87. When the narrative uses BERT and the concept view uses support vector machines, the correlation is 0.34.

The higher correlation indicates that the two BERT variants tend to do well or poorly on the same patients as measured by average precision. The lower value indicates more variation across views in the mixed comparison. This gives a possible explanation for why a weaker standalone concept method might help after fusion. If its strengths occur on different histories, it can add useful signals at points where the text encoder has more difficulty. Standalone quality and usefulness in combination are distinct empirical questions.

The correlations summarize patient-level average precision. They do not directly measure agreement on the rank of each disease. Two rankings can have similar average precision for a patient while disagreeing on which relevant disease appears first. Conversely, the scores may vary differently across patients without showing that a downstream combination can identify when to trust either source. The authors' separate attention analysis examines that selection question at the level of relevant patient–disease pairs.

The results also depend on the ranking metric used to define success. The mixed dot-product setting gets the strongest precision at the short cutoffs, while BERT in both views gets the strongest MAP with the same fusion rule. The correlation difference is consistent with the idea that representation diversity can help the mixed system find strong early matches. It does not on its own establish why the two configurations differ on the cutoffs. Both the representation method and its learned interaction with the rest of AMNM change between those settings.

Testing whether attention favors the better view

For the mixed AMNM configuration, the authors compare the attention weights with a reference defined by standalone rankings. They run text BERT and the concept-view support vector machines separately on the test patients. For each judged relevant pair, they identify which standalone ranking put that disease closer to the top for that patient. They then check whether the attention component assigned the higher weight to the view responsible for that rank. Although the rankings are constructed for the full test candidate set, the weight agreement calculation concerns the relevant pairs.

The attention rule agrees with the better standalone rank on 57.7% of those pairs. Text BERT places the relevant disease higher on 64.7% of the pairs. Within those text-favored cases, the attention component gives BERT the higher weight 88.6% of the time. The concept-view support vector machine places the relevant disease higher on the remaining 35.3% of the pairs. In that subset, the attention component gives the concept view a higher weight only 0.9% of the time.

The conditional results show that the attention mechanism generally favors text, including cases where the concept ranking locates the relevant disease earlier. On this specific agreement criterion, a fixed preference for text would agree with the better standalone view more often than the learned choice of the higher weight. The 64.7% figure is the paper's observed frequency of text having the better rank. That comparison concerns the identity of the higher-weighted view, while AMNM's actual scoring uses continuous weights and retains input from both views.

A pair can therefore benefit from features of the concept view even if the attention score favors the text view. The attention diagnostic does not measure whether the lower-weighted representation contributed to the final score, or how a disease would have ranked if that representation had been removed. The paper compares the architecture with several single-view and multiview systems, but it does not report a controlled comparison that holds the representations and fusion fixed and replaces the learned attention with equal or fixed weights. The reported ranking gains apply to the combined system. The diagnostic identifies a concrete weakness in its use of attention.

Limitations

Limits the authors identify

The authors describe the study as involving a small cohort of diagnosed UDN patients. The network receives referrals and reviews applications, so the cohort reflects the people who participated and had usable records. The authors report retaining available cases except for problems such as missing data or formatting. They describe the population in terms of the participants' demographic and health characteristics and present the results in aggregate. They also acknowledge that a study using these histories entails a risk to privacy and confidentiality.

The attention analysis exposes a limitation the authors explicitly identify for future work. When the concept-view support vector machine ranks a relevant disease above text BERT, the learned weights seldom favor it. Improving that behavior could let the system make better use of the concept view's strongest cases. The paper presents this as a possibility for improvement. It does not establish that reallocating attention on those pairs would necessarily improve the entire ranking, which also depends on the scores given to the other candidate diseases.

The authors likewise identify differences in language between the histories and disease descriptions as an unresolved problem. Normalization addresses some variation in how a concept is named. Contextual representations address some evidence supplied by surrounding words. Patient histories and disease descriptions can still differ in what they discuss and how they express it. The authors propose richer inputs, including patient demographics and clinical synopses of diseases, as another way to extend the approach. The reported evaluation uses the narrative and concept representations.

The paper motivates early retrieval by the potential value of diagnostic clues for patients who have gone through difficult evaluations. It presents the search system as prospective support for specialists. The measured outcomes are ranking scores on histories with clinician-supplied relevance judgments. Improvements in those scores provide a basis for investigating clinical utility, while the actual effect on the time to diagnosis or the patient's care remains unmeasured.

Limits visible in the evaluation design

A patient-level split gives evidence about new histories drawn from this UDN cohort. The setup does not establish performance on a different referral population, a different collection of disease descriptions, or institutions whose clinical writing follows different conventions. It also does not hold out diseases as a separate evaluation condition. Diseases can recur across patients, so successful retrieval for a held-out history does not establish how well the system adapts to diseases whose relevance was never represented in training. An experiment designed around unseen diseases would answer a different question.

The reference judgments define what counts as a retrieved success. The paper gives the number of positive pairs and identifies the clinicians responsible for those mappings. It does not report how extensively experts reviewed alternative OMIM entries for each history or how consistently they judged borderline cases. A system can receive credit only for the relevant pairs represented in the evaluation. The results therefore characterize agreement with those judgments. They do not resolve how the same ranked lists would be assessed if a different review process considered a wider range of possible leads.

The negative examples in training are randomly sampled diseases for the same patient. Random sampling gives the ranker labeled contrasts without requiring experts to select a close alternative for every case. It leaves open how well the training procedure teaches the system to make distinctions between very similar diseases, which is a central part of the clinical problem. At test time the full candidate collection is scored, so some close competitors can appear. The reported aggregate metrics do not isolate performance on those particular comparisons.

Judging the first part of a list also leaves out how it is used. Hit@K records whether it contains a relevant disease, and precision measures the concentration of relevant entries. Neither measure captures how much time clinicians spend reviewing the list, whether they recognize the promising entry, whether the results change the next diagnostic decision, or whether a misleading candidate diverts attention. The experiment evaluates a ranking of disease names and descriptions against a reference. A study of clinicians using those rankings would be needed to observe their consequences in practice.

Finally, the ranker's confidence score is useful for sorting the candidates in this evaluation. The paper does not test whether its values can be interpreted as the probability that a patient has a particular disease, and the reported attention weights do not make that interpretation possible. Attention is normalized over representations of the same pair. It indicates the relative scale assigned to the views within the architecture. The degree to which each view supports a final diagnosis, and whether a score has a dependable probabilistic meaning outside the test setup, remain separate questions.

What came after

No later study is documented as extending or testing the paper's approach. The authors' own proposed follow-up was to improve the allocation of attention, add richer descriptions of patients and diseases, and address the vocabulary gap between histories and disease entries. Those proposals leave open the question raised most directly by the analysis. The concept view sometimes places a relevant disease higher than the narrative view does, yet the learned weights seldom favor it on those pairs. The reported experiments establish that the views can improve a ranking together, while recognizing when to rely more on concept evidence remains unresolved.

Cite

Cite as Hadi Amiri, Mitra Mohtarami and Isaac Kohane. 2021. Attentive Multiview Text Representation for Differential Diagnosis. Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 2: Short Papers).

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2021.acl-short.128

@inproceedings{amiri2021attentive,
  title = {{Attentive Multiview Text Representation for Differential Diagnosis}},
  author = {Hadi Amiri, Mitra Mohtarami and Isaac Kohane},
  booktitle = {Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 2: Short Papers)},
  year = {2021},
  doi = {10.18653/v1/2021.acl-short.128},
  url = {https://doi.org/10.18653/v1/2021.acl-short.128}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/amiri-2021-attentive-multiview-text-representation-differential/