Elamur Research

Fast and scalable neural embedding models for biomedical sentence classification

Paper · 2018 · Asan Agibetov, Kathrin Blagec, Hong Xu et al.

Summary

A researcher looking for a trial’s findings may have to read through its motivation, objective and procedures before reaching the results. Sentence classification can help a search system direct readers to the part of an abstract they need. The authors study a specific version of that task. Given a sentence from a biomedical abstract, the classifier must identify its role as background, objective, method, result or conclusion. They ask how much of the accuracy of an established deep neural system can be obtained with fastText, a shallow classifier designed to train quickly. The task is an example of text classification.

In its ordinary form, fastText classifies a sentence by combining learned vectors for words and short phrases. The authors give it a way to use the surrounding abstract by changing what it reads. They add tokens that identify where the sentence occurs and include words from nearby sentences, marking those words with prefixes that indicate how far before or after the target they appear. A word from the sentence immediately before the target can therefore carry different evidence from the same word in the target itself. The classifier still receives a single input per decision. The added features let that input carry information about the sequence.

On the PubMed 200k test split, fastText trained and evaluated with both kinds of sequence information reached a weighted F1 of .917 after 73 s of training on the authors’ CPU. The published bidirectional neural baseline scored .916. With isolated sentences, fastText reached .852 and trained in 13 s. The comparison was less favorable to fastText on PubMed 20k, where its context-aware version scored .896 against the bidirectional system’s .900. Removing either position or neighboring text weakened fastText on PubMed 200k. The most persistent category confusion involved separating the objective of a study from the background that motivates it.

The authors also ask what happens when biomedical text is plentiful but labeled sentences are scarce. They compare a classifier trained from scratch with approaches that first learn vectors from the PubMed 200k training text while ignoring its labels. On randomly sampled test sentences, with 1000 labeled training sentences and no neighboring text supplied to any classifier, median weighted F1 was 0.21 for supervised fastText from scratch, 0.73 for fastText initialized with pretrained vectors and 0.74 for a classifier using pretrained sent2vec sentence representations. The advantage diminished as more labels became available. Together, the experiments show how the source of the useful information depends on the setting. With complete abstracts, nearby text and position improve the input to the classifier. With isolated sentences and a small labeled sample, learning from unlabeled text improves the starting point for training.

Deep dive: Fast and scalable neural embedding models for biomedical sentence classification

How fastText uses neighboring sentences to classify biomedical abstracts quickly, and how pretraining helps when labeled examples are scarce. · about 32 minutes to read

The problem and its context

Finding the part of an abstract a reader needs

A biomedical abstract contains several kinds of information in a small space. A sentence may explain why a problem matters, state what the investigators wanted to learn, describe what they did, report what they observed, or interpret the findings. For a reader trying to locate a particular kind of information, identifying the relevant sentence can matter as much as identifying the relevant paper. The authors motivate their study with the size of PubMed, which they describe as containing over 27 million articles at the time. They see role labels as a way to make passages easier to locate across that literature. This connects sentence classification with information retrieval and information extraction.

The labels describe what a sentence is doing in an abstract. A reference to a treatment, for example, could occur in an explanation of prior work, a description of the current study, or a report of an observed outcome. The topic words alone may therefore give an incomplete account of the role. Conversely, wording that signals what the investigators set out to do can help classify an objective even when the subject of the research is unfamiliar. The labels are coarse enough for the benchmark to use across studies, while distinguishing information a reader might seek for different reasons.

An abstract also provides clues through its organization. Early sentences can set up the problem or state an aim. A sentence appearing after a description of the procedures may be part of the move into reporting outcomes. These cues have different sources. The target sentence supplies the words that need interpreting. Its position supplies a location in the document. The text around it can explain whether the author is continuing the same part of the abstract or moving to another part. A system that receives a target sentence by itself has access to the first source. A system that receives the abstract can potentially use all of them.

This distinction gives rise to two versions of the task in the paper. In one, the authors classify each sentence as if it were presented by itself. In the other, they preserve a limited amount of information about the surrounding sequence as they construct the classifier’s input. Both versions assign labels to individual sentences. They differ in the evidence available for assigning those labels. The comparison matters because a system that can score isolated passages and a system that can exploit a fully available abstract may face different conditions in use.

There is a further distinction between finding a rhetorical role and extracting the underlying facts. A result label can direct a reader to a sentence where an outcome is stated. It leaves the outcome itself to be read or extracted. An objective label can indicate where the research question appears, while leaving its precise scope to further interpretation. The benchmark therefore tests a component that could support a larger application. Its immediate question is whether the system puts a sentence in the same category as the dataset.

How earlier approaches treated sentence order

The paper describes earlier biomedical sentence classifiers based on naive Bayes and support vector machines, as well as systems using Hidden Markov models and conditional random fields. It also cites work that engineered linguistic features to distinguish sections of an abstract. These examples establish that the problem predates neural sentence embeddings and that researchers had already treated abstract structure as a source of information. The line of work ranged from classifying text with selected features to approaches that could account for the dependence between parts of a sequence.

The strongest recent comparison in the paper was a bidirectional neural approach evaluated on NICTA-PIBOSO and the larger PubMed 200k RCT benchmark. The earlier system used long short-term memory layers on character and word inputs and took sentence order in the abstract into account. The role of a sentence could thus be inferred within a system designed to read ordered text. The authors’ question was whether comparable evidence could be made available to a much simpler classifier by encoding some of the order in the inputs themselves.

That question had a practical motivation. The authors describe training deep networks on large text collections as a job that often calls for careful tuning, substantial training time and graphics processing hardware. They point to earlier work reporting that fastText could perform competitively on text classification with much lower resource demands. The attraction was a system whose capacity could grow by adding embeddings for more features. Each additional word or phrase could have its own set of learned values without requiring a deeper series of transformations through the network.

The paper also separates computational cost from the cost of getting labels. A classifier can be quick to train and still have too few examples to learn from. The authors therefore study whether the language patterns in the training corpus can be put to work before the role labels are introduced. They draw on methods that learn to predict a word from its context. The words themselves supply the targets for that stage, so the learning procedure can use text that lacks role annotations. A later supervised stage still needs labeled examples to associate those patterns with the benchmark’s categories.

These concerns motivate different parts of the study. The sequence experiments ask what fastText can do when it receives enough contextual information to address the benchmark on similar terms to a sequential system. The label-scarcity experiments ask whether learning from a large text collection can improve classification of isolated sentences when only a small subset has labels. The latter setup controls access to supervision while keeping access to the underlying training text for the pretrained approaches. Treating the questions separately makes it possible to tell which resource is being supplied in each comparison.

The method, step by step

Start with words and short phrases

FastText needs a way to represent a sentence numerically before it can decide which category fits. The approach in the paper uses word embeddings, which are vectors learned during training. A vector is an ordered collection of numerical values. Here, the positions in a vector are learned features, and the classifier can use them together even when no individual position has a simple interpretation. The input vocabulary can contain embeddings for words and for contiguous sequences of words, known as n-grams.

An n-gram preserves the order inside the span it represents. For example, a phrase that describes an allocation procedure can appear as a feature in its own right, in addition to the features for its constituent words. The classifier represents the sentence as a bag of those features. The bag retains which features contribute and how they are weighted in the aggregate. A particular phrase can matter while the model remains insensitive to where in the input that phrase was found, except where location has been encoded as part of the feature.

Preprocessing is light. The authors lower-case the text and add spaces around punctuation to separate it from words. They retain rare words and numbers. That choice is consequential for the sort of classifier they evaluate. The feature vocabulary may contain items with little value for distinguishing roles, and a large corpus can supply many such items. The experiment tests whether fastText can operate effectively with those inputs and the additional vocabulary created by the sequence features.

Once the text is represented as a bag, fastText looks up the vectors for its features and combines them into a single representation. The classifier learns which combinations support each role. In supervised training, a sentence that is assigned low probability for its recorded label creates a training signal. That signal can change both the vectors that represent its features and the weights used to score the classes. Repeated examples let the same feature receive information from multiple sentences.

This use of embeddings is connected to distributional semantics, the idea that the contexts in which items occur provide evidence about their behavior or meaning. The role labels add a supervised signal. Features can become useful because they occur in sentences with related rhetorical functions. In the pretraining experiments, the signal is instead supplied by word prediction before any role labels are used. The two training stages can consequently produce related kinds of vectors while rewarding them for different tasks.

Put sequence information into the input

A bag of n-grams made from the target sentence alone contains no direct indicator of where the target occurs in the abstract. It also omits the words that a reader sees immediately before and after it. The authors keep fastText’s ordinary input mechanism and add features that carry these clues. The procedure works on an abstract in sentence order, constructing an enriched input for whichever sentence is being labeled.

The first addition is a pair of position tokens. One encodes the index of the target sentence within the abstract. The other encodes the total number of sentences in the abstract. In the paper’s toy example, the target is the objective sentence. Its position tokens are sentence_3 and of_5. These tokens enter the feature representation alongside text. They tell the classifier which position and abstract length have occurred, leaving it to learn what those cues imply for a role. The encoding supplies the index and length directly.

The second addition is the text of the two preceding and two following sentences within the abstract. Each neighboring word is prefixed so that its identity records its source relative to the target. The paper uses -1_ for the immediately preceding sentence, for example. In the toy abstract, the first token from that sentence becomes -1_ddd. The first token from the immediately following sentence becomes 1_jjj. The tokens -2_aaa and 2_mmm illustrate the more distant positions on either side. The target keeps its own unprefixed tokens, which in the example are ggg, hhh and iii.

The index tokens and the prefixes capture different things. An index describes a target’s place in the whole abstract. A prefix ties a word to a particular neighboring position. The classifier can therefore receive evidence from the overall location even if neighboring words are ambiguous. It can likewise receive evidence from nearby wording when the index alone leaves the role uncertain. A word in the previous sentence and the same word in the target are distinct entries for the lookup, so training can give them different weights through their embeddings.

The example’s objective label belongs to the target input as its training answer. The neighboring sentences supply prefixed text. Their recorded labels are not features in the enriched input. This matters at test time because the same representation can be constructed for an abstract whose role labels are unknown. The system needs the neighboring text and the target’s place in the abstract to create those tokens. It does not need earlier decisions about the labels of those neighbors.

The sequence procedure therefore yields a separate input and prediction for every target. If a sentence appears as the target, its original words take on their ordinary feature identities. When it appears as a neighbor of another target, those words have identities tied to their position relative to that target. The same surrounding material can inform multiple predictions in this way. The classifier still issues its decisions from the enriched inputs one at a time. It does not optimize a joint sequence of predicted labels.

How fastText classifies a sentence in its abstract

The steps in order.

How fastText classifies a sentence in its abstractStep 1: Lowercase text and separate punctuation from words1. Lowercase text and separate punctuation from wordsStep 2: Select the target sentence2. Select the target sentenceStep 3: Add its index and the abstract length3. Add its index and the abstract lengthStep 4: Prefix nearby words by their relative sentence positions4. Prefix nearby words by their relative sentence positionsStep 5: Combine target words, position tokens and neighboring words5. Combine target words, position tokens and neighboring wordsStep 6: Average embeddings for the resulting n-gram features6. Average embeddings for the resulting n-gram featuresStep 7: Score the possible roles for the target7. Score the possible roles for the target

The added tokens enlarge the collection of features fastText can learn. A single word from the original vocabulary can now occur under different identities depending on its relative sentence position. Short sequences can also contribute features when the enriched text is passed through fastText’s n-gram procedure. This is the authors’ practical use of width. They add entries that can be represented by the existing architecture. They obtain some access to sentence order through that representation, while the classifier still uses an average over feature embeddings.

From feature vectors to a supervised prediction

The paper presents supervised and unsupervised learning as variations on a matrix factorization framework. Each input feature selects a column of an embedding matrix. A second matrix works on the combined embedding to produce scores for the current task. The generic objective in the paper can be written as follows.

arg min over U,V  ∑₍S∈C₎ fₛ(U V ιₛ)

The operator arg min asks for parameters that make the expression as small as possible. U and V are the parameter matrices. S denotes an input unit and C is the collection of such units, so the sum runs over the inputs. ιₛ is the feature indicator vector for S, and V ιₛ combines the columns selected by that vector. U maps the result to output scores. fₛ is the loss for the input and its prediction target, and the subscript s associates it with S.

The vocabulary, written 𝒱, indexes the columns of V, and |𝒱| is the number of entries in that vocabulary. A column has h values, where h is the dimension of the embedding. U has k output rows, each with h entries. In the supervised case, k is the number of role labels. For word prediction in the unsupervised case, the outputs correspond to vocabulary entries and k equals |𝒱|. Thus the base calculation can use similarly structured parameters even when the outputs represent completely different things.

For supervised fastText, the input vector is normalized. Its feature weights sum to one, so the hidden representation is an average over the contributing embeddings. The output layer scores each role from that representation. A softmax turns the scores into probabilities that sum to one. It assigns more probability to roles with higher scores, while changing each probability in relation to the scores of the other roles. This matches the benchmark’s practice of giving each sentence a single target category.

The paper expresses training as minimization of the negative log-likelihood of the labels. Written with the label explicitly selecting a component of the probability vector, the objective is as follows.

arg min over U,V  −(1/N) ∑₍S∈C₎ log(p(U V ι̃ₛ)ᵧₛ)

Here arg min again asks for the values of the matrices U and V that minimize the objective. C contains the training inputs, S is one input and N is their count. The sum covers the examples in C. ι̃ₛ is the normalized feature vector for S. p is the softmax, so p(U V ι̃ₛ) gives probabilities for every class. The subscript yₛ selects the probability of the recorded label for S. log is the logarithm, and the minus sign makes low probability for the correct class incur a larger cost. The factor 1/N averages the cost over the inputs.

In the fully supervised setup, the matrices begin without pretrained embeddings. Updates based on the training objective change the parameters to improve the label predictions. The columns of V at the end of training are the learned input embeddings. Because those columns are shared across inputs, a feature encountered in one sentence can affect later predictions for other sentences that contain it. The matrix U learns how to turn the combined hidden values into scores for the categories.

The separation between the two matrices also explains what can be reused after training on a different task. A class scorer for predicting words has different outputs from a scorer for predicting sentence roles. The input embeddings remain representations of words or features that can be used by a later system. In the paper’s mixed training setups, this is the part that makes unlabeled text useful. The downstream prediction still has to be learned with the appropriate output targets.

Learn from words before learning from labels

For pretraining, the authors use a word-prediction problem in which a piece of the observed text supplies the answer. A target word is selected, and the context is used to predict that word. The fastText pretraining setup uses fixed-length contexts, in the style of continuous bag-of-words, abbreviated CBOW. The sentence can supply a succession of local prediction problems. The sent2vec setup expands the scope of context to the sentence, which can have variable length. It also learns n-gram embeddings that can be combined into a sentence vector.

The distinction concerns which features are visible for each prediction. A local context gives repeated training signals about words that occur near one another. A sentence context can associate a target with evidence distributed farther across the sentence. This distinction still applies when the representations are later used for the same category task. FastText with pretrained vectors starts supervised learning with features shaped by local word prediction. The sent2vec classifier starts with an aggregate representation shaped by prediction using sentence-wide context.

The paper defines the sent2vec sentence vector as the average of the source embeddings for its constituent n-grams.

vₛ = (1/|R(S)|) ∑₍w∈R(S)₎ v_w

In this expression, S is the sentence and vₛ is its vector. R(S) is the list of n-grams present in S, including single-word features. |R(S)| counts the entries in that list and the sum adds their vectors. w is the entry currently being included, and v_w is its source embedding from the matrix V. Dividing by the list length gives the average.

During sent2vec training, the model forms a context representation with the target word withheld. There are separate vectors for features used as input and for words being scored as outputs. The score for a word is obtained from its output vector and the current context vector. Training favors a high score for the word that actually occurred, and low scores for sampled alternatives. The sampled words let training use selected comparisons for each target in place of evaluating a full vocabulary distribution at every update.

The paper gives a negative-sampling objective for sent2vec. Using a logistic loss convention in which a larger signed score means a smaller loss, the component loss is as follows.

ℓ(x) = log(1 + e^(−x))

Here ℓ denotes the logistic loss, x is the signed score, log is the natural logarithm and e is its exponential base. The terms 1 and e^(−x) form the argument of the logarithm. The minus sign in the exponent makes the cost go down as the signed score increases. With this convention, a score can be used directly for an observed target, and negated for a sampled alternative.

arg min over U,V  ∑₍S∈C₎ ∑₍wₜ∈S₎ [ℓ(u_wₜᵀ vₛ∖wₜ) + ∑₍w′∈N_wₜ₎ ℓ(−u_w′ᵀ vₛ∖wₜ)]

arg min chooses the matrices U and V to minimize the accumulated loss. The outer sum runs over sentences S in corpus C; the next sum runs over target words wₜ in a sentence. vₛ∖wₜ is the vector formed from the context with wₜ withheld. u_wₜ is the output embedding for the observed target, and u_w′ is the output embedding for a sampled alternative w′ in N_wₜ, the set of words sampled for that target. The superscript ᵀ transposes the output vector so its product with the context vector is a dot product. The loss ℓ rewards agreement for the observed word. The minus sign before the alternative score reverses that preference for sampled words. The output vectors participate in this prediction task, while the input embeddings provide the features for downstream classification.

The authors use pretrained vectors in two ways. In the fastText route, they initialize the n-gram embeddings from training on the full PubMed 200k training text without the labels, then switch to supervised fastText to predict roles. In the sent2vec route, they first use that same unlabeled training text to learn the embeddings that make up sentence vectors. The vectors for labeled examples are then given to a multilayer perceptron, abbreviated MLP. It is a classifier with a hidden layer between its input and output, and the authors use a hidden layer of size 100 neurons.

These setups share access to the training text and use the same downstream categories, but put the pretrained information to work differently. FastText starts with learned feature embeddings and can train its sentence classifier from that starting point. The MLP receives a composed sentence vector from sent2vec as its input. The supervised baseline receives the sampled labeled sentences and learns without either pretraining route. Accordingly, the comparisons can show whether those two pipelines help, while differences between the pipelines cannot be assigned solely to the length of the unsupervised context.

Select the training settings

For the supervised experiments, the authors search a grid over feature dimension, n-gram size and the number of passes through the training examples. Embedding dimensions are 10, 20 and 50. The word n-gram sizes considered are 1, 2, 3 or 4 words. The epoch ranges are from 1 to 8 for the 20k datasets and from 1 to 4 for larger datasets. An epoch is a pass through the training data. The effect of the epoch count is important here because fastText does not stop automatically based on a validation criterion in the setup described.

The authors keep other fastText settings at their defaults. They report using an Intel Core i7-6700 processor and 32 GB RAM. Their method is designed around CPU training, with the feature construction performed before standard fastText classification. The paper makes the experimental notebooks and trained classifiers available in the authors’ GitHub repository, including the code for training, testing and statistical analysis.

Experiments and results

The benchmark and the evaluation measure

PubMed 200k RCT is a benchmark derived from abstracts of randomized controlled trials. The paper works with its PubMed 200k and PubMed 20k subsets, which have pre-defined training, validation and test splits. PubMed 200k comprises approximately 200,000 abstracts. PubMed 20k contains 20,000 abstracts. Each sentence has a recorded role drawn from the same category inventory: objective, background, method, result and conclusion. The target in the supervised experiment is that assigned category, whether the classifier reads the sentence on its own or receives the enhanced input.

For PubMed 20k, the paper reports 15k training abstracts with 180k sentences. The validation split has 2.5k abstracts with 30k sentences, and the test split also has 2.5k abstracts with 30k sentences. Its listed vocabulary is 68k. For the larger subset, the paper reports 190k training abstracts with 2.2M sentences and a vocabulary of 331k. These counts help distinguish the scale of the training material from the amount of evidence fastText receives for a particular prediction. A large training vocabulary can coexist with an isolated test sentence that supplies only its own words.

The authors also make an extended training corpus by adding structured abstracts from medically focused journals indexed by PubMed. They report 872k training abstracts containing 10,3M sentences, with a vocabulary of 451k. They leave the PubMed 200k validation and test splits in place. This means that scores from the extended corpus still describe evaluation against the original PubMed 200k benchmark. The experiment changes the amount and sources of training material while retaining the same assessment target. It provides no separate test of accuracy on the additional journals.

The main metric is weighted F1. The F1 for a category combines precision and recall. Precision asks what proportion of the sentences assigned to a category actually have that label. Recall asks what proportion of the sentences with that label the classifier recovers. F1 gives a joint measure that depends on both. The paper weights each category’s F1 by its support, meaning its frequency in the data being scored. Common roles thus contribute more to the aggregate than less frequent ones. The paper’s confusion analysis provides another view of performance because the aggregate can conceal the categories responsible for a substantial share of the remaining errors. This is a useful distinction in evaluation and benchmarking.

Supervised classification on the fixed test splits

The authors compare their classifiers with published results for logistic regression, a forward artificial neural network, a conditional random field and the bidirectional artificial neural network abbreviated bi-ANN. The benchmark results place supervised fastText in two ways. The isolated-sentence setup shows what its ordinary bag of n-grams can do with the target’s text. The context-aware setup shows the accuracy attainable when the same classification architecture is given explicit information about abstract order.

Classifier weighted F1 on the PubMed 200k test split

FastText with position and neighboring text reaches the highest reported score in this comparison.

Classifier weighted F1 on the PubMed 200k test splitfastText on isolated sentences: .852fastText on isolated sentences.852Logistic regression: .859Logistic regression.859Forward ANN: .884Forward ANN.884Conditional random field: .915Conditional random field.915Bidirectional ANN: .916Bidirectional ANN.916fastText with context and position (this paper): .917fastText with context and position (thispaper).917
The numbers
System or settingWeighted F1
fastText on isolated sentences.852
Logistic regression.859
Forward ANN.884
Conditional random field.915
Bidirectional ANN.916
fastText with context and position (this paper).917

On the PubMed 200k test split, fastText with context and position reaches .917 weighted F1. The previous bidirectional result is .916, and the conditional random field scores .915. The informative comparison is twofold. Within the authors’ experiments, the added input features move fastText well above its isolated-sentence result of .852. Among the published systems, several reach a similar level to the enhanced classifier. The scores place that fastText configuration at the top of the benchmark comparison reported in the paper, with the leading prior systems close by.

On PubMed 20k, ordinal and neighboring-text features also improve fastText. Its weighted F1 is .825 from isolated sentences and .896 with both sources of contextual information. The bidirectional neural system scores .900, so it retains the highest result on that split. The conditional random field scores .895. The published forward network and logistic regression results are .861 and .831, respectively. The comparison across the two test sets shows that the value of contextual fastText features appears in both, even though the ranking of fastText against the bidirectional system changes.

With the extended corpus used for training, context-aware fastText reaches .919 on the PubMed 200k test set. That is the highest weighted F1 in the authors’ extended-data comparison. The classifier using only isolated sentences reaches .852 again. The result suggests that the additional structured abstracts offer useful signals under the context-aware representation used here. In the isolated configuration, the same expansion of training material produces no change in the reported score. The contrast is important because it concerns which representation can take advantage of the additional data, as well as how much data are available.

How long the reported runs took

The paper gives training times for the fastText configurations that produce the displayed scores. For context-aware fastText the time is 73 s on PubMed 200k and 11 s on PubMed 20k. The corresponding isolated-sentence runs take 13 s and 5 s. On the extended training corpus, the context-aware configuration trains in 183 s, while the isolated configuration takes 61 s. The added input comes with additional training work in each comparison, while the absolute training times remain short on the reported machine.

The timing figures refer to selected settings instead of the cost of the full hyper-parameter search. The prior logistic regression and conditional random field entries report 33,006 s and 4867 s, respectively, on PubMed 200k. Their numbers include training and testing together. The fastText table gives training time, with evaluation using the fastText tool reported separately at approximately 15 s for a trained classifier. The comparison gives a sense of the practical scale of the reported runs. A precise speedup across these systems would require equivalent timing procedures. The paper also gives no corresponding runtime for the bi-ANN row, which is the closest prior comparator in score.

The difference between training and timing a whole experiment matters especially for a method whose inputs must be prepared. Producing prefixed versions of words and adding position indicators are part of the method. Searching over epochs and feature settings is also part of the study. The training times show how quickly the chosen classifier can be fitted with its input already represented for training. The paper does not provide a separate end-to-end time covering all preparation, search and testing.

Classification when few labels are available

The label-scarcity experiment uses a different protocol from the fixed-split supervision comparison. The authors vary the size of the labeled training sample from 100 sentences to 180,000 sentences, sampling from the PubMed 200k training corpus. All inputs are isolated sentences for this experiment. In the pretrained setups, the full training corpus is available as unlabeled text before the classifier is trained on its smaller labeled sample. The supervised baseline learns from the labeled sample without that preparation. The authors reuse previously selected fastText hyper-parameter settings instead of describing a separate search for every sample size.

Each run is evaluated on 20,000 randomly sampled sentences that do not overlap with the labeled training sample. At each training size, the classifiers are run on five random training and test samples, and the paper reports median weighted F1 over the test sets. A median gives the central result from those repeated samples. It offers more information about typical performance under this sampling procedure than a single run would, while leaving the size of run-to-run fluctuations unspecified. The numerical results belong to this isolated-sentence protocol.

Median test weighted F1 with 1000 labeled PubMed 200k sentences

Both pretrained approaches substantially outperform fastText trained from scratch on the small labeled sample.

Median test weighted F1 with 1000 labeled PubMed 200k sentencesSupervised fastText from scratch: 0.21Supervised fastText from scratch0.21fastText with pretrained n-gram vectors: 0.73fastText with pretrained n-gram vectors0.73sent2vec with an MLP (this paper): 0.74sent2vec with an MLP (this paper)0.74
The numbers
System or settingMedian weighted F1
Supervised fastText from scratch0.21
fastText with pretrained n-gram vectors0.73
sent2vec with an MLP (this paper)0.74

With 1000 labeled sentences, the supervised baseline yields a median weighted F1 of 0.21. With the same labeled sample size, pretrained fastText reaches 0.73 and sent2vec with an MLP reaches 0.74. The baseline still uses supervised role training. What it lacks is an initialization or input representation learned from the larger supply of unlabeled text. The comparison therefore isolates the practical value of access to that text through the respective pretraining pipelines, at the specified budget of labels.

Below 1000 labeled sentences, the authors report that pretrained fastText performs better than sent2vec with an MLP. At 1000 and above, they describe the two pretrained approaches as having similar results. The paper reports that the approaches converge towards approximately 0.84 weighted F1 in its sampled evaluation when the training set exceeds 50,000 labeled examples. This is a feature of the observed learning curves under the single-sentence protocol. The context-enriched classifiers from the fixed test split answer a different question, so their scores describe a separate operating condition.

The change across training sizes qualifies the result at 1000 labels. Pretraining is most important where learning the relationship between sentence features and categories from a small labeled sample is difficult. When enough task labels are available, the baseline learns enough from direct supervision to approach the pretrained alternatives in the paper’s experiment. The authors favor pretrained fastText in the sparse-label setting on practical grounds, pointing to its ease of use and its performance at the smallest labeled sizes they consider.

What the ablations show

Removing position and neighboring words

The ablations examine what happens when parts of the sequence preprocessing are removed. The full fastText configuration receives both the numeric position tokens and the prefixed words from neighboring sentences. With position removed, the target still has contextual words whose prefixes identify their direction and distance in the abstract. With neighboring text removed, the classifier keeps the target text and the tokens for position and abstract length. Removing both restores the isolated-sentence setup. The resulting comparisons show what each source of evidence contributes in the presence of the other.

Weighted F1 after removing sequence features on PubMed 200k

The full representation performs best, and removing neighboring text causes a larger decline than removing position from it.

Weighted F1 after removing sequence features on PubMed 200kIsolated sentence: .852Isolated sentence.852Position retained, neighboring text removed: .904Position retained, neighboring textremoved.904Neighboring text retained, position removed: .912Neighboring text retained, positionremoved.912Neighboring text and position retained (this paper): .917Neighboring text and position retained(this paper).917
The numbers
System or settingWeighted F1
Isolated sentence.852
Position retained, neighboring text removed.904
Neighboring text retained, position removed.912
Neighboring text and position retained (this paper).917

The full representation scores .917 weighted F1 on PubMed 200k. Removing the numeric position information leaves a score of .912. Removing the neighboring words leaves .904. With both sources removed the score is .852. The comparison therefore gives two kinds of evidence. Either type of added information helps when used on its own, and each provides a further improvement when the other is already available. The context-only setting scores higher than the position-only setting for this specific encoding and benchmark.

The ablation without numeric position still has substantial information about sequence. Its prefixes identify which surrounding words occur before or after the target, so it can learn patterns tied to relative location. That result supports a distinction between order relative to the target and position within the abstract as a whole. The ablation without neighbors shows that the latter supplies meaningful evidence by itself. A classifier can learn that certain labels occur more frequently at particular positions even when it sees none of the surrounding text.

The results also show that the value of each input depends on what else is available. The position-only score is visibly above the isolated score, while the full score is closer to the score with neighboring text alone. The experiment is consistent with some shared information between the sources. Words used in nearby passages can partly reveal where the target falls in an abstract’s rhetorical progression. The ablations identify the effect of removing each group of features as implemented. They leave open which neighboring sentence, which position token or which lexical features contribute most.

Where the classifier still makes mistakes

The confusion matrix examines the best context-aware fastText classifier on the PubMed 200k test split. Its entries are organized by true category and predicted category, allowing errors to be associated with pairs of roles. The reported correct entries include Methods at 9375 (96%), Results at 9744 (95%) and Conclusions at 4186 (95%). The corresponding entries for Objective and Background are 1704 (72%) and 2051 (77%). These are category-specific entries from the test confusion matrix. They measure a different aspect of the predictions from weighted F1.

The authors identify confusion between objective and background as the central category problem. A sentence that motivates a study and a sentence that states what the study will examine can use similar words, and both may occur near the beginning of an abstract. The confusion analysis is compatible with that account, while the matrix alone cannot determine what generated the ambiguity in an individual sentence. The authors also report that the prior bidirectional system had difficulty with the same pair. This shared pattern gives a reason to examine how the labels are used in the corpus as well as how the classifiers interpret the inputs.

The matrix adds something the feature ablations do not. The ablations demonstrate that more evidence improves the weighted score. The matrix identifies which distinctions remain uneven with the strongest fastText input. A high aggregate score can coexist with much lower correct classification for specific roles. A system used to locate study aims would therefore care about the objective category’s behavior even if the weighted score were appropriate for tracking overall benchmark performance.

What tuning and training data reveal

The authors’ hyper-parameter analysis identifies the number of epochs as the main determinant among the settings they varied. Too few epochs led to underfitting, in which the classifier had learned too little of the predictive structure in the training material. More epochs could lead to overfitting, in which additional attention to the training examples hurt performance away from them. The authors found good performance across a wide range of the settings they explored, while recommending external tuning of the number of passes because the implementation did not include its own early stopping.

The extended-corpus experiment is a further comparison of training conditions. The test remains on PubMed 200k, so the gain with context and position can be attributed to a difference in training conditions rather than an easier test collection. The lack of a gain for isolated sentences indicates that a larger supply of labeled examples alone did not improve the displayed result for that condition. The extended corpus includes additional sources as well as greater volume. The experiment therefore provides evidence for the value of that corpus with the richer input, while leaving the separate contributions of diversity and size unresolved.

Limitations

Limits identified by the authors

The authors identify a mismatch between fastText’s output and tasks that allow several labels for one input. Their classifier uses a softmax distribution over the available categories. Increasing the probability of one role affects the probability left for others, and the training target names a single correct role. That is a natural fit for the benchmark. A task that allows a sentence to satisfy several categories calls for a decision procedure that can assign them independently or otherwise represent their joint applicability. The paper acknowledges workarounds while treating multi-label prediction as a limitation of the approach as used.

They also question the reliability of the distinction between background and objective in PubMed 200k RCT. On reviewing a sample of abstracts, they found what appeared to be inconsistent use of the two labels. They suggest that even expert annotators might have difficulty distinguishing them consistently. That possibility affects what a high score can mean. Agreement with the recorded labels is the benchmark’s criterion, and systematic ambiguity in those labels could limit how informative it is to pursue small improvements near the top of the comparison.

The authors propose assessing expert human performance on the benchmark to establish a point of comparison. Their inspection motivates that proposal. It supplies neither an expert agreement measurement nor a numerical ceiling on what is attainable. The recurring objective–background confusion could have several sources, including ambiguous sentences, variation in the labeling conventions, or classifiers missing useful evidence. An expert study would help clarify how much of the observed error belongs to each of those possibilities. The paper’s results leave that question open.

The authors also call for evaluation on other sentence classification tasks and benchmarks. They suggest studying combinations of unsupervised representations, including representations learned over sentence sequences, and discuss possible integration of the classifier into biomedical search and extraction workflows. An example is using predicted conclusion sentences to concentrate subsequent analysis on a narrower set of passages. This is a proposed use. The paper evaluates role assignment and reports how that assignment behaves under its training conditions. It supplies no downstream measurement of whether the resulting passage selection helps a reader or an extraction system.

Limits of the comparisons

The difference between .917 and .916 on PubMed 200k supports the claim that the context-aware fastText run is competitive with the prior bidirectional system. Establishing a dependable advantage would require information about uncertainty around those scores, such as variation across otherwise comparable training runs. The paper reports point results for this benchmark comparison. The different ordering on PubMed 20k also gives a concrete reason to describe the result as comparable performance under the reported setups. It would take a broader evaluation to establish an accuracy advantage across biomedical corpora.

The benchmark uses abstracts of randomized controlled trials and a single role label for each sentence. Even the extended corpus is assessed against the retained PubMed 200k test split. As a consequence, the study measures the classifier under the category conventions and document structure of that benchmark. A change in genre or document organization could change how much evidence is supplied by position and neighbors. There is also no separate test showing how well the classifier performs on the newly added sources after training on the extended corpus. Its measured gain concerns the original benchmark.

The method’s use of following sentences sets an availability condition. The reported context-aware prediction assumes that the surrounding text is accessible when the target is classified. A complete abstract can meet that condition. An isolated passage or an input arriving one sentence at a time may supply less evidence. The reported isolated-sentence runs provide a comparison for an input lacking both kinds of ordering information. The ablations provide further information about the effect of withholding groups of features. The paper does not evaluate a separate configuration with past context only, so the figures do not quantify the effect of losing access specifically to following text.

The input representation captures selected aspects of order. The n-grams represent short word sequences, the prefixes distinguish relative sentence positions, and the numeric tokens identify target index and abstract length. The resulting feature vectors are pooled for one decision at a time. A classifier that explicitly predicts coherent label sequences can impose relationships between its decisions in a way this procedure does not. The benchmark result shows that a feature-based approximation to some kinds of order was enough to reach comparable weighted F1 in this setting. The experiment leaves open when stronger sequence modeling would improve accuracy or consistency.

The runtime evidence supports the narrower claim that the reported fastText settings train quickly on the authors’ machine, including on the extended corpus. The paper discusses linear scaling as an implementation advantage. A formal scaling comparison would need matched measurements over a range of corpus sizes, feature widths or other controlled changes. Here, the reported workloads differ in size, and the chosen settings may also differ. The timings are practical observations at the tested configurations. They do not establish a scaling law for competing architectures or give an all-in cost comparison under one common protocol.

Limits of the pretraining evidence

The small-label experiments address access to a specific combination of resources. The pretrained systems can learn from the entire PubMed 200k training text in advance, and the supervised stages use only the selected labels. This shows what pretraining can contribute when unlabeled domain text is abundant relative to supervision. It leaves open how the same procedures would perform with much less unlabeled text or a corpus from a substantially different domain. The approach’s label efficiency depends on which text is available to build the starting representation.

The two pretrained approaches also differ at more than the size of the word-prediction context. FastText continues into supervision with initialized feature embeddings, whereas sent2vec supplies a sentence vector to an MLP. The experiment compares those end-to-end alternatives. A controlled comparison that changed context length while preserving the downstream classifier and representation interface would be needed to attribute their relative results to that design choice alone. The available comparisons support the value of pretraining in the tested pipelines and show how their results depend on the number of labeled sentences.

Finally, the authors run pretraining evaluations with isolated sentences. The fully supervised context experiments demonstrate the benefit of adding information from an abstract. Whether that benefit combines with the label savings of pretraining remains open because the paper does not test the two changes jointly. In particular, the results at 1000 labeled sentences do not establish how the pretrained approaches would learn to use the enlarged vocabulary of position-marked neighboring words. That question requires an experiment in which scarce labels, unlabeled text and complete abstracts are available under the same evaluation protocol.

What came after

No subsequent studies are available here to document a reuse or extension of the paper’s method. The authors’ proposals for combining sentence representations and applying the classifier in biomedical search describe directions for follow-up, with outcomes still unestablished in the paper.

Cite

Cite as Asan Agibetov, Kathrin Blagec, Hong Xu and Matthias Samwald A. 2018. Fast and scalable neural embedding models for biomedical sentence classification. BMC Bioinformatics.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.1186/s12859-018-2496-4

@inproceedings{agibetov2018fast,
  title = {{Fast and scalable neural embedding models for biomedical sentence classification}},
  author = {Asan Agibetov, Kathrin Blagec, Hong Xu and Matthias Samwald A},
  booktitle = {BMC Bioinformatics},
  year = {2018},
  doi = {10.1186/s12859-018-2496-4},
  url = {https://doi.org/10.1186/s12859-018-2496-4}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/agibetov-2018-fast-scalable-neural-embedding-models/