MEDBERT.de: A Comprehensive German BERT Model for the Medical Domain
Paper · 2023 · Keno K. Bressem, Jens-Michalis Papaioannou, Paul Grundmann et al.
Summary
A chest imaging report can record several findings in a few sentences. A discharge summary may spread the evidence for a diagnosis across the patient's history, treatment, and follow-up. Turning either document into searchable information requires a system that can work with the way clinicians write German. The authors built medBERT.de to give such a system a medical background before it learns any particular annotation or coding task. They trained from scratch on 4.7 million documents, drawing on hospital records, research publications, textbooks, and other medical writing. The system uses the architecture introduced in BERT.
The study covers eight medical benchmarks. Some ask which findings or codes apply to an entire document. Others ask the system to mark the words that express a clinical concept and assign them a category, a task called named entity recognition. The clearest radiology advantage appears on chest CT reports. medBERT.de scores 96.69 in AUROC, a measure of how well prediction scores separate positive from negative cases across decision thresholds. A variant trained after filtering similar short radiology reports scores 96.39 on that task. Scores are closer across systems on chest X-rays and wrist reports. Both variants lead the comparisons on diagnosis and procedure coding from discharge summaries and operative reports, genres excluded from pretraining. On public oncology guidelines and synthetic case reports, the leader depends on the metric. GottBERT, a general German system, leads on the general-language benchmark.
Filtering similar reports helps on some tests, while keeping the full collection helps on others. The authors also find that their vocabulary can encode radiology text in fewer pieces per word than GottBERT's. GottBERT remains competitive on several of the same tests, so compact encoding alone gives an incomplete account of the results. The authors credit much of the medical advantage to the amount of training material. The comparisons measure the performance of whole training approaches, with corpus size, genre coverage, and vocabulary design each a possible contributor. The authors release the trained weights for both variants and the new radiology benchmarks. They keep the training corpus and the private coding datasets out of public distribution because of privacy concerns.
Deep dive: MEDBERT.de: A Comprehensive German BERT Model for the Medical Domain
medBERT.de learns from German medical writing and is tested on radiology findings, clinical entities, and diagnosis and procedure codes. · about 34 minutes to read
The problem and its context
Where general German preparation leaves a gap
When clinicians write a report, they select details for someone who understands the examination and its purpose. A radiology report may describe anatomy, record an abnormality, and state an overall impression. A discharge summary has a wider remit. It may cover the patient's condition, treatments and medications, and what should happen after discharge. A system designed to organize such prose needs to handle medical terminology wherever it appears and recognize how the genre determines what the author records. These are the kinds of document-processing problems the paper addresses through natural language processing.
The desired output determines what counts as a successful reading. A system that identifies reports describing a condition needs to make a decision at the level of the document. It can succeed on that decision even if its output gives the reader no indication of the supporting phrase. A system that marks clinical expressions has to locate the material as well as categorize it. If it identifies the general subject of a passage but marks only part of an expression, that is an error the span-based task can expose. Both kinds of output help structure medical text. Each asks the system to retain a different kind of detail about the input.
The authors approach both through self-supervised pretraining. Ordinary text supplies the learning signal during this stage, so a collection can be useful even if no one has marked its diagnoses, procedures, or entity spans. A later supervised stage uses labeled examples to teach the desired output. The attraction is practical. The authors can collect a much larger body of prose than they could reasonably label for every application. The kinds of text in that collection determine which contexts the system encounters before it ever receives a clinical task. This is the premise behind using a specialized language model.
An important distinction in the paper is between specializing for a language and specializing within it. The authors cite German, French, and Spanish systems as examples of pretraining aimed at a particular language. That choice gives a system more relevant preparation for processing text in the target language. Clinical German is a further specialization. Contexts that occur in an examination report include particular ways of locating findings, descriptions of apparatus, and conventional phrases about what was observed. General German remains the language of the report, with a domain-specific distribution of terms and contexts inside it. The paper illustrates the language-level approach with GottBERT and CamemBERT.
Precedents in biomedical and hospital text
The English precedents show that medical preparation can mean different things. The authors describe BioBERT as adapting BERT using English biomedical abstracts and report that earlier work found gains on biomedical benchmarks while retaining the original system's performance. Scientific abstracts give a system examples of how research findings and biomedical concepts are written. Another precedent, Med-BERT, used semi-structured electronic health records for pretraining and improved downstream prediction. In that case the material came from documenting care, with the structure of health records also forming part of the input. The sources differ in genre as well as in the purposes for which they were written. BioBERT
The authors also cite work on training language representations specifically for the biomedical domain. For their own experiment, the relevant question is how broad the specialization should be. A corpus can be biomedical in the sense that it contains articles about medicine, clinical in the sense that it contains records made during care, or a mixture of the two. A training collection intended to support several types of hospital work has reason to represent several of these uses of German. The authors' design is grounded in this distinction between domain and genre. Domain-Specific Language Model Pretraining for Biomedical Natural Language Processing
Existing German work had already made a case for specialization. The paper describes BioGottBERT as an adaptation of GottBERT using material that included German Wikipedia and scientific abstracts. Earlier comparisons cited by the authors found that the adapted system could surpass GottBERT on medical tasks. The paper also points to German work on medical entity recognition and on chest radiograph report classification. These efforts established precedents for clinical extraction and for using large bodies of a particular kind of hospital report. The authors' concern is how to extend the scope of training and evaluation across document types.
The supply of suitable German text constrains that ambition. The authors describe biomedical text as harder to obtain in languages other than English, and clinical material adds the difficulty of protecting sensitive information. A directly useful hospital collection may be available to an institution under conditions that prevent its open distribution. Public material such as articles or reference works can add breadth, while hospital records provide language shaped by clinical workflow. Assembling the two is part of the work of building a specialized system. Making enough of the evaluation available for others to compare their own systems is a separate part.
Why the study uses several kinds of benchmark
A benchmark built from actual reports has the advantage that the language was produced in a clinical setting. The authors chose radiology partly because patients referred for imaging present a range of conditions and the reports cover multiple kinds of disease. A benchmark built entirely around imaging would still put considerable weight on a style that the system frequently encountered in pretraining. Strong performance under that comparison could reflect familiarity with imaging terminology, report structure, or both. The study also needs a way to ask how far the preparation carries into other kinds of writing.
Discharge summaries and operative reports serve that purpose. Their authors record a course of care or describe an intervention, so their organization and detail differ from an account of imaging findings. The paper treats both genres as absent from pretraining and uses them in supervised coding experiments. This creates a test of adaptation to a new document type. It also changes the nature of supervision. A radiology annotator reads the text and marks a finding or expression. A code drawn from the hospital information system can be associated with a patient or procedure even when the particular document gives only part of the evidence.
The public guideline and synthetic case evaluations broaden the design again. Guidelines use medical terminology to express recommendations or describe conditions in general. Case reports use it to tell a clinical story. Evaluating entity recognition in both settings helps establish how performance depends on the characteristics of the text and on the conventions used to mark expressions. Taken together, the benchmarks cover local extraction, whole-document classification, and supervised adaptation to clinical genres that the authors kept out of pretraining. The paper's comparison with general German adds a different question about what the specialized preparation preserves.
The method, step by step
How the two stages fit together
The starting point is an architecture for processing text in context. Training from scratch means the authors use that architecture with parameters learned in their own pretraining run. They assemble German medical prose, clean it, and determine how to represent it as sequences of text pieces. Pretraining develops a representation of those sequences. The system can then be adapted to a specific kind of output once it has examples of the expected answers.
The second stage is fine-tuning. A labeled document provides a much more specific signal than ordinary pretraining text. For instance, the relevant distinction in a chest examination might be whether a particular finding is present, while in a wrist report the required output can include the position and extent of a clinical expression. Each task gets its own adaptation procedure. The results show what the same pretraining approach can support under different forms of supervision.
The study follows this process for medBERT.de and medBERT.dededup. The first uses the full training collection. In the second, a filter removes some radiology reports whose wording is especially similar. The pair gives the authors a comparison within their own training approach. The other systems provide comparisons with different starting points, including general German pretraining and earlier adaptations to medical German.
From German medical documents to benchmark predictions
The steps in order.
What goes into the corpus
The authors describe the collection as 4.7 million documents from 11 sources, with a raw size of 10 GB. A document count describes the number of records gathered. The raw size of a source also reflects how much text its records contain. That distinction matters in a corpus combining short clinical entries with academic articles and educational material. The paper reports counts and sizes for several components, which makes it possible to see their different contributions without treating each document as an equal amount of text.
The radiology documents came from the information system at Charité in Berlin. The collection spans records from January 1st, 2009, through December 31st, 2021. The authors discarded texts shorter than 100 characters. In the appendix's account of the source, similarity filtering and anonymization yield 3.66 million radiology reports with a raw size of 4,195 MB. The methods discussion supplies the more precise report counts for the full and filtered variants. The appendix's radiology figure describes the filtered material and is useful for identifying which version of the source the raw size accompanies.
Hospital writing also came from the TBase database used in nephrology and kidney transplantation. The authors report 373,421 electronic health records from this source, comprising 440 MB of raw text. The material includes physician letters, diagnostic procedure reports, microbiology reports, and pathology reports. These documents give the training corpus clinical language from activities other than imaging. Their institutional provenance is still concentrated. A source drawn from kidney care and transplantation can add a wider range of document styles while remaining anchored in particular departments and their clinical practices.
The academic and educational collections supply longer explanatory writing. The authors extracted abstracts and full text from German open-access Springer Nature publications, obtaining 257,999 documents and 1,986 MB of data. Licensed Thieme materials provided textbooks and continuing medical education publications. The authors used them with the publisher's permission and removed tables and figures during cleaning. Thieme ended up contributing 330,994 documents, totaling 2,898 MB in raw text. These sources offer full discussions of medical topics, including prose written to teach or explain the material.
The paper also reports collecting 12,139 German PubMed abstracts, representing 16 MB of raw text. A separate source of extended academic writing comprised 7,481 German medical dissertations and postdoctoral theses. The authors removed sentences lacking German stop words, common words that served here as a filter for prose. They also excluded theses below 15 pages. After processing, this source added 648 MB. The abstract search targeted German publications with German abstracts available to collect. The thesis processing addressed the composition of text already retrieved. These are different collection decisions with consequences for which kinds of prose enter pretraining.
DocCheck contributed material aimed at different readers within the same source. The selection includes articles from its medical wiki as well as forum entries and descriptions of products. That yields 63,884 documents totaling 92 MB of raw text. A distinct crawl of German medical forums adds 11,322 documents and 65 MB. The authors also extracted 3,639 medically relevant German Wikipedia articles, corresponding to 22 MB. Another listed source is the oncology guideline corpus, whose recommendations add a formal variety of medical writing. The guideline source is also relevant to the study's evaluation because a version of that corpus supplies an entity benchmark. GGPOnc
Privacy review and the similarity filter
The authors describe identifying information in the radiology prose as an occasional occurrence. They used a German entity recognizer to flag patient names, had two radiologists check the detected names, and removed them from the text. Dates were replaced with wildcards, which are placeholders for the original strings. The benchmark documents received at least three reviews by the authors for identifying information. This review concerns the text available to the system and, for the released material, what other researchers can see. The clinical study was retrospective and received approval from the local ethics committees. Contextual String Embeddings for Sequence Labeling
The similarity filter addresses repeated language. A radiologist can write many reports using lightly modified versions of the same sentences. If those reports are counted as separate training examples, the system receives repeated exposure to the corresponding word patterns. The authors ask whether limiting this repetition changes downstream performance. They represent reports as bags of words. In such a representation, the words in the report determine its representation and their ordering is set aside. This gives the authors a basis for comparing many reports without having to align the sentences or judge their clinical content individually.
The comparison uses a cosine measure. A report's bag of words is represented as a vector, an ordered collection of values describing its word content. A cosine comparison measures how closely the vectors point in the same direction. The authors describe their retention rule in terms of similarity. A retained report has no other report above the stated similarity cutoff of 0.75. The cutoff operates on the word representations. The fact that two reports contain much the same words can indicate a reused template, and a change in that template can have clinical significance even when the overall word mix stays close.
Computational constraints limited the comparison to short radiology reports. The authors give 4,504,167 radiology reports before the procedure and 3,657,801 afterward. This filter changes which examples reach pretraining and how strongly radiology reports are represented within the collection. It therefore creates a concrete comparison between keeping the corpus intact and applying this particular rule. The treatment leaves open how a filter based on different features, or one applied to other kinds of medical text, would affect the balance of material.
Choosing text pieces and a training schedule
The next step is to convert the cleaned prose into input units. With subword tokenization, some units can be entire words and others can be pieces used to construct words. A vocabulary built from medical writing can give commonly recurring specialist forms their own units or divide them into familiar parts. This choice determines which units acquire representations during pretraining. It also determines how much text can fit in a sequence of a specified length, since the limit refers to input tokens.
The authors remove Unicode characters that occur fewer than three times in the pretraining data. This prevents exceptionally infrequent characters from occupying space in the tokenizer's vocabulary and gives room to more useful text pieces. They also set the word occurrence requirement for entry into the vocabulary at 20. Part of their motivation is to reduce the chance that a patient name missed during anonymization would appear as a vocabulary entry. This is a frequency rule governing the vocabulary. A rare string can still be represented through its constituent pieces if it remains in the training text, which is why the report-level review addresses a separate problem.
The training schedule progresses from shorter to longer sequences. The first phase caps a sequence at 128 tokens. It uses a batch size of 65,536, so each training step operates on a batch of that size. The run lasts 7,038 steps, with a warm-up covering 2,000 steps and a learning rate that decays according to a polynomial schedule. Warm-up is the initial period in which the learning rate builds towards its training setting. The optimizer uses the learning rate to determine the scale of updates to the learned parameters. The authors choose LAMB and follow the pretraining settings cited in Large Batch Optimization for Deep Learning.
The paper gives the first-phase learning rate in this notation.
6e⁻³
The 6 is the coefficient. The e is the scientific-notation marker for a power of ten. The superscript minus sign and 3 form the exponent, with the sign indicating a negative power. The expression specifies a learning-rate setting. The warm-up and decay schedule describes how the rate varies over training.
The second phase uses sequences of length 512 and a batch size of 32,768. The warm-up lasts 200 steps within a run of 1,563 steps. This stage gives the system training experience with sequences that can contain more context. The maximum learning rate for the second phase is printed as follows.
4e⁻ᵉ
The 4 is the coefficient and the baseline e occupies the scientific-notation position. The superscript minus sign applies to the superscript e that follows it. The letter in the exponent makes the intended numerical setting uncertain. The rest of the second-phase schedule has separately specified numeric values.
How the benchmarks get their labels
The new radiology benchmarks begin with reports from a large German hospital. Each contains 2000 reports. The wave of supervision needed for radiology depends on the task. The chest X-ray benchmark asks about the presence of four pathologies and four types of therapy device. Three board-certified radiologists manually labeled the reports. Since a report can document several relevant findings or devices, a prediction can contain several labels. This is the defining feature of multi-label text classification.
The chest CT task also attaches labels to documents. A report qualifies for the collection if the examination includes the chest, and it may also cover the abdomen, neck, or head. The benchmark labels focus on 23 chest pathologies. A final-year medical student annotated their presence or absence and two board-certified radiologists reviewed the work. This setup gives the system a clear prediction target even when the input contains material about other parts of the body.
The wrist task uses reports from CT or X-ray examinations. A final-year medical student annotated them with a scheme comprising 42 labels, and two board-certified radiologists verified the annotations. The unit of interest is a mention in the text. A system must learn where a relevant expression occurs and what kind of entity it describes. The distinction matters for borderline predictions. Marking part of a relevant phrase can identify some of the right tokens while leaving the full span incorrectly delineated.
For the private surgical and discharge benchmarks, the authors derive labels from records already in the hospital information system. A surgical report receives procedure codes associated with the same patient and the date of the report. The authors limit this task to the surgery chapter of OPS, the procedure code system used in the experiment. For discharge summaries they create separate tasks from the patient's ICD-10 diagnosis codes and OPS procedure codes. They choose the most frequent labels under a rule requiring at least 10 test examples per included code. Such labels give the authors a way to train and compare systems without having specialists manually code the text for the study.
The public entity benchmarks use another form of supervision. The authors select the long-span, fine-category version of the oncology guideline annotations and follow the original training, development, and test splits. For the synthetic GraSCCo cases they obtain annotations from a member of the guideline annotation team who uses the same instructions. Applying the scheme to case reports makes it possible to ask whether similar kinds of medical expressions can be identified in a different genre. The comparison retains the consequences of the annotation choices, including how much text is considered part of each mention. GGPOnc 2.0
How the downstream settings are chosen
The authors give each system its own search for suitable task settings. They vary the learning rate, batch size, and number of warm-up steps over 100 runs for every system and task pairing. This lets a system benefit from settings that suit its particular pretrained parameters and benchmark data. The search applies median pruning, using the performance of trials in the search as a reference for cutting short trials that appear unpromising.
The search metric follows the task. Classification uses AUROC, which evaluates the ranking of prediction scores over decision thresholds. Entity recognition uses token F1, which balances how many assigned token labels are correct with how many required token labels are recovered. As a result, the entity search directly rewards token-level decisions. The final results include other metrics that can favor a different system. The paper evaluates the best-performing configurations after the search, so its comparisons are between systems that have been separately adapted to the benchmark under its optimization procedure.
Experiments and results
What the comparisons tell us
The experiments compare six pretrained systems from the BERT and RoBERTa families. GottBERT is the general German comparator based on RoBERTa, and multilingual BERT offers a different general-language starting point. The existing domain-adapted comparators are BioGottBERT, developed from GottBERT using medical text and Wikipedia, and German-MedBERT, which adapts German BERT with a crawl of medical websites. The remaining entries are medBERT.de and medBERT.dededup. The comparison tests the authors' approach against both general pretraining and earlier approaches to specializing in German medicine. RoBERTa
A classification system gives a document a score for each label. AUROC describes how well the scores put positive cases ahead of negative ones as a decision threshold varies. Precision answers a different question about the predictions actually called positive. It is the share of those decisions that agree with the labels. Recall is the share of labeled positives that the system finds. F1 combines precision and recall and is sensitive to weakness in either. A system can learn a good ranking while the particular set of positive decisions produced at a threshold leaves many positives unrecovered.
The distinction takes a different form in named entity recognition. Token precision and recall count decisions about the pieces of text that make up a mention. Partial recognition can therefore earn some token-level credit. Measures reported for the task as a whole can paint a different picture, especially when the errors concern mention boundaries. The paper also discusses macro F1, which gives the categories being averaged equal weight. An improvement on frequent categories can then coexist with uneven performance across the category set. The benchmark comparisons make the most sense when each score stays attached to its unit and method of aggregation.
The chest X-ray results are close
The chest X-ray benchmark uses reports with a length given as 98 ± 27 words. These reports provide the input for predicting presence or absence of pathologies and therapy devices. The highest average AUROC among the values given in the paper's discussion is 83.65 for medBERT.dededup. GottBERT is reported at 83.48 and medBERT.de at 83.42. Those values put GottBERT between the medBERT variants. The accompanying narrative calls GottBERT third and describes both new systems as the strongest performers. The chart follows the individual numeric scores.
Average AUROC for chest X-ray report classification
The filtered medBERT variant leads a tightly grouped comparison.
The numbers
| System or setting | AUROC |
|---|---|
| medBERT.dededup (this paper) | 83.65 |
| GottBERT | 83.48 |
| medBERT.de | 83.42 |
This task shows how much a general German starting point can recover after adaptation to labeled examples of short reports. GottBERT achieves a close result even though its preparation and its handling of word pieces differ from those of the medical systems. The ranking gives the filtered variant a lead for this task and metric. The small separation also makes this a different kind of result from a benchmark on which the proposed training approach puts substantial distance between itself and both general and medical alternatives.
The larger advantage is on chest CT
The CT reports have a length of 258 ± 100 words. Some cover body areas beyond the chest, although the required labels are for chest pathologies. On this benchmark the full-corpus medBERT.de scores 96.69 AUROC, and medBERT.dededup scores 96.39. The authors describe a considerably larger separation from the other systems than on the X-ray reports. They express that separation using 19%, without specifying in the prose whether that denotes a relative gap or an absolute change on the displayed scale. They also describe GottBERT and BioGottBERT as close to one another on most metrics, with precision as an exception.
AUROC of the medBERT variants on chest CT reports
The full-corpus variant leads on the chest CT classification task.
The numbers
| System or setting | AUROC |
|---|---|
| medBERT.de (this paper) | 96.69 |
| medBERT.dededup | 96.39 |
The two variants' proximity on this task matters for understanding the wider result. Both retain medical preparation in spite of the change in the short-report pool. The paper's clearest radiology finding is that this shared overall approach does well on chest CT compared with the baselines. The more specific finding about the data filter is that the full corpus yields the higher AUROC of the pair. CT includes a wider range of pathology labels than the X-ray benchmark and frequently gives the system a longer input to work through. These characteristics help define the setting in which the advantage was observed.
Wrist reports test the location of evidence
The wrist reports have a length of 108 ± 41 words. Their relatively short inputs resemble the chest X-ray reports in length, while the task requires a different output. The system identifies and categorizes clinical text spans. medBERT.dededup has the strongest results on the reported metrics other than global recall. The authors characterize the range between the highest and lowest scores as mostly 1-3%. Thus the leading configuration on the wrist benchmark is the same as on the X-ray AUROC comparison, and the overall wrist comparison is also tightly grouped.
The appendix describes the category distributions as skewed, especially for the CT and wrist tasks. Some findings and entities have fewer labeled examples than others. The authors examine precision, recall, F1, and AUROC separately for radiology classes to give readers a way to look beyond aggregate scores. A class-level analysis matters here because a high overall score leaves room for uneven performance across findings. The broad wrist result describes which system usually leads across the metrics under discussion. Questions about individual entities require the corresponding class-specific evidence.
Public benchmarks reward different strengths
The guideline benchmark uses the long-span, fine-category setting from GGPOnc 2.0. The source contains more than 200K labeled mentions of clinical entities, annotated by seven medical students. The selected setting distinguishes 8 fine-grained semantic classes and asks the system to find relatively extended mentions. Reusing the original training, development, and test divisions makes the setup comparable to the baseline evaluations for the corpus. It also concentrates the analysis on a demanding annotation scheme, where category choice and span length can both affect the score.
On these guidelines the two medBERT variants lead the comparison on AUROC, global and token-level precision, and token-level recall. BioGottBERT has the strongest macro F1 and leads on the recall measure reported separately from token recall. The full-corpus medBERT.de consistently scores above the filtered variant on the reported guideline metrics. The cross-system rankings give several ways to characterize success on this dataset. The medical variants are stronger at a number of decisions captured by precision and token coverage. BioGottBERT has the better aggregate balance as captured by macro F1.
GraSCCo brings the annotation task to synthetic clinical narratives. The collection contains 62 case reports, and the application of the guideline team's scheme yields 5.8K annotations in the long-span, fine-category setting. The instructions for identifying and categorizing entities carry over from the guideline work. The system now encounters those kinds of expressions as part of a report about a case. An expression's role and surroundings can differ when the writing describes what happened to a patient instead of laying out clinical recommendations.
On GraSCCo, medBERT.de leads on AUROC with 85.14. Its token AUROC is 75.17, and its token recall is also reported as 75.17. It leads on each of those measures. GottBERT leads on the remaining reported metrics, and the paper describes the overall separation as small. The result gives medBERT.de a clear claim on the stated ranking and token recall measures and gives GottBERT a clear claim on the other measures. An overall judgment about the benchmark depends on whether the reader cares more about ranking possible mentions, finding their constituent tokens, or the precision and coverage of the returned annotations.
Private code prediction tests adaptation to unfamiliar genres
Each private coding benchmark starts with 2000 documents. The authors stratify them into a training split of 1000 texts, a validation split of 500, and a test split of 500. The training split supplies examples from the target genre for adaptation. The validation split provides separate material for development, and the test split supports the final comparison. Stratification and the minimum number of examples per label help ensure that the retained codes can be evaluated even though their frequencies differ.
The diagnosis task has 65 ICD-10 labels and uses discharge summaries. Both medBERT variants outperform the other systems. medBERT.de leads the filtered variant by a margin that the authors describe as being in the sub-percentage range. A discharge summary can bring together observations, descriptions of care, and plans. The adaptation has to map this kind of writing to diagnosis codes attached to the patient. The advantage is evidence that the medical starting point can be adapted effectively to a genre outside the authors' pretraining collection.
A second task uses discharge summaries to predict 49 OPS procedure codes. Both medBERT variants again lead the comparison. The authors emphasize that all evaluated systems have weak results on this task, particularly in recall and F1. That combination is important for reading the outcome. The two variants rank highest among the approaches tested, while the resulting predictions recover a limited share of the assigned labels. Since a patient's code can refer to information documented elsewhere in the chart, a low score can reflect both the difficulty of recognizing the relevant evidence and whether that evidence can be found in the input at all.
The operative report benchmark asks for 10 OPS codes and again favors the medBERT variants. Overall performance is higher than for the discharge tasks. The paper's explanation is that operative reports tend to be shorter and less variable and that this task includes fewer labels. The benchmark also uses a date match between the report and the patient's codes. This can help make sense of what a successful prediction represents. The supervision is tied to a procedure of the same date, whereas the discharge tasks attach codes to the summary based on the patient. Each comparison uses a consistent rule within its own task.
The most frequent codes offer concrete examples of the targets. In the operative reports, the leading label by frequency is OPS 5-984, for microsurgical technique. In the discharge procedure task, OPS 8-930 is most frequent and concerns monitoring of breathing, cardiac function, and circulation under the conditions of the code. The most frequent diagnosis label is ICD-10 Z11, associated with testing for infectious and parasitic disease. The targets cover concepts that vary in how directly the clinical prose might express them. A code about a technique may be supported by how an operation is described. A code for testing can depend on the reason for care or on information recorded in another part of the chart.
The consistent ordering across these tasks is more informative about transfer than any single absolute score. Both variants adapt to documents from clinical genres set aside during pretraining. They do so when trained on labeled examples of the target tasks, including the clinical language of discharge and operative notes. All private datasets come from the same hospital that supplied the study's radiology benchmarks. The experiment accordingly gives evidence about adaptation across document types within that source of clinical writing.
The general German benchmark favors GottBERT
The general comparison uses GermEval18, an offensive-language classification benchmark. GottBERT outperforms the domain-adapted systems on every evaluated metric discussed for this task. BioGottBERT also outperforms the medBERT variants. The language is still German, but both the subject matter and the purpose of classification have changed. The ranking demonstrates a substantial difference in which preparation proves most useful across the medical and general tasks in the study.
The authors connect GottBERT's result to the general German material available during its training. They discuss catastrophic forgetting as another possible factor in the comparison with BioGottBERT. This is the possibility that further training for a specialized domain weakens capabilities acquired earlier. BioGottBERT's initialization from GottBERT makes the comparison relevant to that idea, and the study observes the end result of the respective training histories on this benchmark. The mechanism remains a proposed explanation. GermEval18 contributes direct evidence about performance on its particular kind of general German classification.
What the ablations show
Removing similar reports has effects in both directions
The study's most direct intervention is the short-report filter. Both medBERT variants follow the authors' approach to medical pretraining. The filtered variant uses a smaller pool of radiology reports after removing examples with high bag-of-words similarity. The filtered corpus gives the highest X-ray AUROC and the strongest performance on most wrist metrics. The full corpus gives the highest chest CT AUROC and consistently stronger guideline scores than the filtered corpus. It also has an edge on the private diagnosis coding task, with both versions still leading the baseline systems there.
The comparison tests a decision that matters when working with templated clinical prose. Keeping every report preserves repeated exposure to common expressions and preserves the variations within similar reports. Filtering reduces the representation of some of those patterns and removes the details carried by the excluded texts. Both effects follow from applying the same rule. The varied benchmark outcomes establish that this intervention can help or hurt, depending on the task. They provide no universal preference for treating high similarity as grounds for exclusion.
The intervention also changes the amount and mixture of text. As reports are removed, the collection contains fewer instances from a genre that otherwise supplies much of the training material. A same-size comparison designed to separate the effect of similarity from the effect of report count would answer an additional question. In these experiments, the effects of using fewer short radiology reports and of selecting which reports to remove travel together. The authors specifically note the limited scope of the filter and the possibility of repetition in other sources.
There is also a distinction between repetition among documents and repetition inside them. Bag-of-words similarity measures the word content of reports taken as units. A repeated sentence in two otherwise different reports can have limited effect on their resemblance, while two very similar reports can describe separate clinical episodes. The filter is therefore a test of a practical approach to corpus construction under the authors' computational constraints. The learned systems show the consequences of that approach rather than a general relationship between clinical redundancy and downstream accuracy.
Fertility measures how much space the words occupy
The paper measures tokenizer fertility, the average number of sub-word units used per word. The experiment uses texts from the chest CT, chest X-ray, and wrist datasets. Both medBERT variants have a fertility of 1.18 on this material, and GottBERT has a fertility of 1.75. Lower fertility means that a sequence of a given number of words generally uses fewer input positions. The authors examine this because earlier work suggested that more compact segmentation could be associated with better learned representations for the resulting pieces. How Good Is Your Tokenizer?
Tokenizer fertility on chest CT, chest X-ray, and wrist texts
Both medBERT variants use fewer subword units per word than GottBERT.
The numbers
| System or setting | subword units per word |
|---|---|
| medBERT.de (this paper) | 1.18 |
| medBERT.dededup | 1.18 |
| GottBERT | 1.75 |
These values explain a property of the inputs. The metric says how much of the sequence budget the words occupy on average. The performance of a fine-tuned system also depends on what it learned about those pieces, how it uses the surrounding text, and the task's scoring rules. GottBERT uses more pieces per word and stays close on short radiology tasks. The medBERT variants have the same fertility at the reported precision and trade the lead across evaluations. These observations are evidence against using fertility alone to predict the ranking.
The authors identify a way lower fertility could still matter. Surgical reports and discharge summaries are truncated to fit 512 tokens. If one tokenizer encodes a passage more compactly, more of its words may fit. Whether that affects a diagnosis or procedure prediction depends on where its evidence occurs. Additional text can contain the sentence that supports a code, material irrelevant to that code, or an ambiguous reference. A code whose evidence sits elsewhere in the record poses a different problem. The reported fertility values come from radiology text, so the proposed benefit for the private clinical tasks is a mechanism to investigate instead of a measured gain attributable to truncation.
The tokenizer comparison is observational across systems trained with other differences. It shows which vocabularies yield shorter encodings on these inputs and how those systems perform after adaptation. Isolating the contribution of segmentation would require a comparison that changes the tokenizer while keeping other relevant training choices comparable, or an analysis that directly tests what happens to predictions when relevant text falls outside the input boundary. Neither effect can be estimated from the reported fertility average alone.
Report length and corpus size are plausible contributors
The authors point to the gap between systems on chest CT, where the reports are longer than on the X-ray and wrist benchmarks. This comparison motivates the idea that domain-specific preparation can matter more when a document gives the system more text to interpret. The private coding results show a recurring medBERT advantage on clinical genres in which the evidence can also be distributed across a more involved account of care. The pattern gives the length hypothesis a concrete empirical basis.
Report length changes along with other features. The CT task has a different pathology set from the X-ray task. It allows reports covering several body areas and has a particularly skewed distribution of findings. The wrist task uses text spans as its output. Within the private tasks, the operative reports are described as generally shorter and less variable than discharge summaries, and the operative task yields stronger overall scores. That comparison concerns the difficulty of the predictive task itself. The radiology comparison concerns the size of the advantage relative to the other systems. These observations address different consequences of using longer or more complex documents.
The authors see the large amount of medical data as the main explanation for the improvement over earlier German medical systems. Their approach also changes the mix of genres, the vocabulary used to encode them, and whether the representation is learned from scratch or adapted from another pretrained system. The deduplication experiment varies data volume within their approach, but does so by targeting a particular kind of text. It gives direct evidence about keeping or removing similar short reports. A series that held the source mix and training conditions fixed while varying corpus size would be needed to measure the separate effect of scale. The reported results support the combined recipe and leave the relative importance of those choices open.
Limitations
Limits the authors identify
The authors describe radiology reports as accounting for about 40% of the data in their limitations discussion. They give no explicit denominator for that share there. Their corpus description separately reports document counts and raw text sizes, two ways of expressing composition that have different implications for a mix of records and long publications. The central concern is concentration in one style of clinical writing. Reports that often use the same expressions can be plentiful without giving comparably broad coverage of the ways clinicians document a condition or treatment.
The authors name ophthalmology and pathology as underrepresented because they make relatively limited use of the kind of radiological imaging represented in the corpus. They also point to psychiatry, where the conditions treated are usually outside the scope of an imaging report. Although the training collection has scientific and educational material and some other hospital records, those sources supply a different kind of exposure from clinical notes generated within the underrepresented specialties. The authors propose a more diverse collection for future clinical pretraining, including discharge summaries from a wider set of specialties.
The hospital records come from one university hospital. The authors warn that other institutions may write reports differently, which could affect performance on new records. The private coding tests expand the types of documents, yet they share an institution with the radiology benchmarks. An institution can have characteristic templates and ways of organizing the evidence in a report. Results across document genres from that hospital provide one kind of evidence. The evaluation leaves transfer to hospitals with other reporting conventions unmeasured.
The authors explicitly caution about the private labels. Codes taken from a hospital information system and attached by patient or date only approximate the codes that can be established from a specific document. This is especially consequential for discharge summaries. A code can be part of the record even though its best evidence is in a different document. The authors accordingly treat the private scores as a comparative measure of how systems behave on the same assigned labels. A clinical review comparing each prediction to the evidence actually available in the report would answer a different question.
The private tasks also have the input limit of 512 tokens. The authors note that truncation may remove relevant information, particularly in long notes. A compact tokenizer could preserve more words, but the specific gain depends on which words survive the cutoff. Another limit stated by the authors concerns the similarity filter. It was practical to use on short radiology reports, and the corpus could still contain repetition in long reports or other medical sources. The study measures what the chosen, limited intervention does to downstream scores.
Limits that follow from the setup
The guideline corpus appears in the pretraining source list, and GGPOnc 2.0 provides a downstream benchmark. The authors use the original guideline splits for fine-tuning and evaluation, which supports comparison with earlier benchmark results. The paper leaves the relationship between the documents in those splits and the guideline prose used for pretraining unclear. Seeing a guideline without its human annotations is a different form of exposure from learning from its labeled spans. Uncertainty about the former matters if the question is how the system processes guideline documents whose text was wholly unfamiliar before evaluation.
GraSCCo tests entity recognition on 62 synthetic cases, with annotations created by one member of the guideline team using the existing guidelines. This brings a consistent scheme to another genre and gives an openly available comparison. Its results are conditioned on the synthetic selection of cases and on the annotator's application of the scheme. In particular, a lead on one token measure in this collection gives limited information about how often the system will find complete expressions in real records from other sources. The split leadership across metrics is part of the result on this benchmark.
The coding evaluation concentrates on codes frequent enough to meet the requirement of at least 10 test examples. It supports conclusions about those retained categories and the way the authors assign labels. Uncommon codes and code sets that differ substantially across specialties are beyond the measured range. The radiology data also have uneven class frequencies. The class-level results are the appropriate evidence for performance on a particular finding, while the aggregate scores characterize the benchmark as a whole. Clinical decisions about an uncommon condition would require knowing how frequently the relevant label is missed and how frequently it is predicted in error at an operating threshold.
Several rankings are close. The 100 runs per system and task are a search over settings, with lower-performing trials subject to early stopping. This count does not measure variation across repeated final trainings with fixed settings. The paper's close scores therefore establish the ordering produced by its selection and evaluation procedure. This qualification is particularly relevant to the chest X-ray result, where the individual values cluster and the prose ranking conflicts with their ordering. The repeated lead on private tasks gives evidence across different endpoints, while each individual margin has its own scope.
The release makes some experiments easier to check than others. With the weights and the open radiology benchmarks, researchers can run downstream comparisons on the released material. The pretraining corpus remains private, and the surgical and discharge benchmarks are likewise unavailable for open evaluation. Reconstructing the corpus or independently checking how well the private labels match the actual clinical notes would require access to the underlying documents. The study establishes comparative benchmark performance after supervised adaptation. Its experiments leave clinical deployment questions, such as how a reviewer would use the returned codes or findings and which errors would matter most in practice, open.
What came after
The Word and the Way (2026) cites medBERT.de and takes strategies for domain-specific BERT pretraining in German medicine as its subject. The connection is a methodological one. medBERT.de demonstrates the performance of a particular combination of choices: train from scratch on a broad medical collection, use a vocabulary suited to that material, and evaluate across several tasks. Its comparison with earlier German systems puts that combination alongside medical adaptation of existing general systems. Its comparison between the two variants changes the treatment of recurring text within the new approach.
The later work's stated focus brings those strategy choices to the foreground. The citation establishes that it engages with medBERT.de in that context. The specific use of the earlier weights, corpora, or benchmarks and the outcomes of any comparisons remain unspecified. The question connecting the two papers is how to choose a pretraining approach for German medical language when training sources, starting weights, and the demands of downstream tasks can all shape the result.
Cite
Cite as Keno K. Bressem, Jens-Michalis Papaioannou, Paul Grundmann, Florian Borchert, Lisa C. Adams, Leonhard Liu, Felix Busch, Lina Xu, Jan P. Loyen, Stefan M. Niehues, Moritz Augustin, Lennart Grosser, Marcus R. Makowski, Hugo JWL. Aerts and Alexander Loser. 2023. MEDBERT.de: A Comprehensive German BERT Model for the Medical Domain. arXiv:2303.08179 · Expert Systems with Applications 2024;237(21):121598.
@misc{bressem2023medbert,
title = {{MEDBERT.de: A Comprehensive German BERT Model for the Medical Domain}},
author = {Keno K. Bressem, Jens-Michalis Papaioannou, Paul Grundmann, Florian Borchert, Lisa C. Adams, Leonhard Liu, Felix Busch, Lina Xu, Jan P. Loyen, Stefan M. Niehues, Moritz Augustin, Lennart Grosser, Marcus R. Makowski, Hugo JWL. Aerts and Alexander Loser},
year = {2023},
doi = {10.1016/j.eswa.2023.121598},
eprint = {2303.08179},
archivePrefix = {arXiv},
url = {https://doi.org/10.1016/j.eswa.2023.121598}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/bressem-2023-medbert-de-comprehensive-german-bert/
References
- A. Akbik, D. Blythe, and R. Vollgraf. Contextual string embeddings for sequence labeling. In COLING 2018, 27th International Conference on Computational Linguistics, pages 1638–1649, 2018. our card
- F. Borchert, C. Lohr, L. Modersohn, T. Langer, M. Follmann, J. P. Sachs, U. Hahn, and M.-P. Schapranow. GGPONC: A corpus of German medical text with rich metadata based on clinical practice guidelines. In Proceedings of the 11th International Workshop on Health Text Mining and Information Analysis, pages 38–48, Online, Nov. 2020. Association for Computational Linguistics. our card
- F. Borchert, C. Lohr, L. Modersohn, J. Witt, T. Langer, M. Follmann, M. Gietzelt, B. Arnrich, U. Hahn, and M.-P. Schapranow. GGPONC 2.0-the German clinical guideline corpus for oncology: Curation workflow, annotation policy, baseline ner taggers. In Proceedings of the Thirteenth Language Resources and Evaluation Conference, pages 3650–3660, 2022. our card
- K. K. Bressem, L. C. Adams, R. A. Gaudin, D. Tröltzsch, B. Hamm, M. R. Makowski, C.-Y. Schüle, J. L. Vahldiek, and S. M. Niehues. Highly accurate classification of chest radiographic reports using a deep learning natural language model pre-trained on 3.8 million text reports. Bioinformatics, 36(21):5255–5261, 2020. OpenAlex ↗ · Scholar ↗
- J. Canete, G. Chaperon, R. Fuentes, J.-H. Ho, H. Kang, and J. Pérez. Spanish pre-trained bert model and evaluation data. Pml4dc at iclr, 2020:1–10, 2020. OpenAlex ↗ · Scholar ↗
- B. Chan, S. Schweter, and T. Möller. German's next language model. In Proceedings of the 28th International Conference on Computational Linguistics, pages 6788–6796, Barcelona, Spain (Online), Dec. 2020. International Committee on Computational Linguistics. our card
- J. Devlin, M. Chang, K. Lee, and K. Toutanova. BERT: pre-training of deep bidirectional transformers for language understanding. CoRR, abs/1810.04805, 2018. our card
- J. Devlin, M. Chang, K. Lee, and K. Toutanova. BERT: pre-training of deep bidirectional transformers for language understanding. In J. Burstein, C. Doran, and T. Solorio, editors, Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, NAACL-HLT 2019, Minneapolis, MN, USA, June 2-7, 2019, Volume 1 (Long and Short Papers), pages 4171–4186. Association for Computational Linguistics, 2019. our card
- J. Frei and F. Kramer. GERNERMED: An open German medical ner model. Software Impacts, 11:100212, 2022. OpenAlex ↗ · Scholar ↗
- Y. Gu, R. Tinn, H. Cheng, M. Lucas, N. Usuyama, X. Liu, T. Naumann, J. Gao, and H. Poon. Domain-specific language model pretraining for biomedical natural language processing. ACM Transactions on Computing for Healthcare (HEALTH), 3(1):1–23, 2021. our card
- J. Lee, W. Yoon, S. Kim, D. Kim, S. Kim, C. H. So, and J. Kang. BioBERT: a pre-trained biomedical language representation model for biomedical text mining. Bioinformatics, 36(4):1234–1240, 2020. our card
- K. Lee, D. Ippolito, A. Nystrom, C. Zhang, D. Eck, C. Callison-Burch, and N. Carlini. Deduplicating training data makes language models better. In S. Muresan, P. Nakov, and A. Villavicencio, editors, Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), ACL 2022, Dublin, Ireland, May 22-27, 2022, pages 8424–8445. Association for Computational Linguistics, 2022. our card
- M. Lentzen, S. Madan, V. Lage-Rupprecht, L. Kühnel, J. Fluck, M. Jacobs, M. Mittermaier, M. Witzenrath, P. Brunecker, M. Hofmann-Apitius, J. Weber, and H. Fröhlich. Critical assessment of transformer-based AI models for German clinical notes. JAMIA Open, 5(4), 11 2022. ooac087. OpenAlex ↗ · Scholar ↗
- Y. Liu, M. Ott, N. Goyal, J. Du, M. Joshi, D. Chen, O. Levy, M. Lewis, L. Zettlemoyer, and V. Stoyanov. Roberta: A robustly optimized bert pretraining approach. arXiv preprint arXiv:1907.11692, 2019. our card
- L. Martin, B. Muller, P. J. O. Suárez, Y. Dupont, L. Romary, É. V. de La Clergerie, D. Seddah, and B. Sagot. CamemBERT: a tasty french language model. arXiv preprint arXiv:1911.03894, 2019. our card
- L. Modersohn, S. Schulz, C. Lohr, and U. Hahn. GRASCCO-the first publicly shareable, multiply-alienated German clinical text corpus. Studies in health technology and informatics, 296:66–72, 2022. OpenAlex ↗ · Scholar ↗
- L. Pérez-Mayos, M. Ballesteros, and L. Wanner. How much pretraining data do language models need to learn syntax? In M. Moens, X. Huang, L. Specia, and S. W. Yih, editors, Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, EMNLP 2021, Virtual Event / Punta Cana, Dominican Republic, 7-11 November, 2021, pages 1571–1582. Association for Computational Linguistics, 2021. OpenAlex ↗ · Scholar ↗
- L. Rasmy, Y. Xiang, Z. Xie, C. Tao, and D. Zhi. Med-BERT: pretrained contextualized embeddings on large-scale structured electronic health records for disease prediction. NPJ digital medicine, 4(1):1–13, 2021. OpenAlex ↗ · Scholar ↗
- J. Risch, E. Krebs, A. Löser, A. Riese, and R. Krestel. Fine-grained classification of offensive language. In Proceedings of GermEval 2018 (co-located with KONVENS), pages 38–44, September 21st 2018. OpenAlex ↗ · Scholar ↗
- P. Rust, J. Pfeiffer, I. Vulic, S. Ruder, and I. Gurevych. How good is your tokenizer? on the monolingual performance of multilingual language models. In C. Zong, F. Xia, W. Li, and R. Navigli, editors, Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing, ACL/IJCNLP 2021, (Volume 1: Long Papers), Virtual Event, August 1-6, 2021, pages 3118–3135. Association for Computational Linguistics, 2021. our card
- R. Scheible, F. Thomczyk, P. Tippmann, V. Jaravine, and M. Boeker. GottBERT: a pure German language model. arXiv preprint arXiv:2012.02110, 2020. OpenAlex ↗ · Scholar ↗
- D. Schmidt, B. Osmanodja, M. Pfefferkorn, V. Graf, D. Raschke, W. Duettmann, M. G. Naik, C. J. Gethmann, M. Mayrdorfer, F. Halleck, et al. TBase-an integrated electronic health record and research database for kidney transplant recipients. JoVE (Journal of Visualized Experiments), 170(1):e61971, 2021. OpenAlex ↗ · Scholar ↗
- S. Schulz. GraSCCo, May 2022. OpenAlex ↗ · Scholar ↗
- M. Shrestha. Development of a language model for medical domain. masterthesis, Hochschule Rhein-Waal, 2021. OpenAlex ↗ · Scholar ↗
- Y. You, J. Li, S. Reddi, J. Hseu, S. Kumar, S. Bhojanapalli, X. Song, J. Demmel, K. Keutzer, and C.-J. Hsieh. Large batch optimization for deep learning: Training bert in 76 minutes. arXiv preprint arXiv:1904.00962, 2019. our card