Manuscript Offprint
arXiv:2610.11845Detecting Spin in Clinical Trials with Large Language Models
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Tjaš Ajdovec
University of Ljubljana, Faculty of
Computer and Information Science
Slovenia
Marko Robnik-Šikonja
University of Ljubljana, Faculty of
Computer and Information Science
Slovenia
Simon Šuster
Independent researcher
Ljubljana, Slovenia
Abstract
Spin in clinical trials includes reporting practices that distort the presentation of results. This is particularly critical in medicine, where spin is present in more than 50% of randomized controlled trials that fail to reach statistical significance. The comparison of primary and reported outcomes is crucial for detecting several types of spin, including outcome switching. We used 300 pairs of outcomes labeled with semantic similarity to develop a system for automatic detection of outcome switching. We evaluated baseline text similarity models and open-source LLMs using generated similarity scores and the Youden index to determine the classification threshold. The proposed approach involves prompt engineering, classification based on token probabilities, and majority voting for the final decision. The results on the test set of 2,496 examples with an score of 0.78 and an accuracy of 0.90 outperform baseline text similarity models but trail behind fine-tuned versions of BERT. We used LLMs to generate natural language explanations for the classified instances and manually assessed their quality.
Keywords
spin, clinical trials, natural language processing, large language models, sentence similarity.
Large language models (LLMs) have recently become capable of solving many natural language processing (NLP) tasks without task-specific training . Existing spin detection tools rely on dedicated models trained on expensive, manually labeled data, and to our knowledge none of them make use of LLMs. We investigate whether LLMs can be used to classify pairs of primary and reported clinical trial outcomes as similar or different. This is a core subtask needed for detecting a type of spin called outcome switching - compromised reporting of primary and secondary outcomes in the results.
We addressed the following research questions in the context of detecting outcome switching in RCT reports:
(1) How successful are LLMs, without additional training, at classifying pairs of clinical trial outcomes as similar or different?
(2) How do the results and behavior of different LLMs differ with respect to generality and comprehension ability?
(3) Can LLMs generate meaningful, human-readable explanations for the already classified examples?
We report the work in six sections. Section 2 outlines the related work. Section 3 presents the methodology and Section 4 the results. The discussion is contained in Section 5, and the conclusions follow in Section 6.
2 Related Work
Spin is defined as the distorted presentation of study results, which misleads readers about how effective a treatment actually is [3]. It may be intentional or simply a consequence of negligence [1]. In RCTs, the result of interest is referred to as the outcome of the trial. Since readers often judge a study by its abstract alone, it is especially prone to spin: manual audits report spin in 47–71% of clinical trial abstracts that fail to confirm their hypothesis, depending on the biomedical field [6, 11, 14, 15].
According to Yavchitz et al. [16], spin falls into three main groups:
• Misleading reporting of results: inconsistent or incomplete reporting, such as omitting an outcome that did not confirm the hypothesis, adding a new outcome that does, or changing the order of primary and secondary outcomes.
• Inappropriate interpretation of results: incorrect conclusions drawn from even correctly reported data, such as unjustified causal language or claims not based on the actual statistical results.
• Inappropriate extrapolation of results: unjustified generalization, such as extending treatment effects to a different population.
Automatic tools for detecting spin can benefit both authors in writing, as well as readers and reviewers in critically evaluating articles. ExaCT (2010) uses statistical models and regular expressions to extract key trial information, such as sample size, from RCT abstracts into a table [8]. RobotReviewer (2015) uses a machine learning model trained on 12,800 labeled clinical trial reports to assess their level of bias [12]. DeSpin (2020) uses fine-tuned pre-trained language models (PLMs) to detect several types of spin in RCTs, by breaking the task down into extraction, detection, and classification sub-tasks [9]. One such example is comparing the primary and reported outcomes, needed to detect inconsistent reporting, specifically outcome switching. This is also the task addressed in this paper, using large language models, presuming that outcomes were already extracted.
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for third-party components of this work must be honored. For all other uses, contact the owner/author(s).
Information Society 2026, Ljubljana, Slovenia
© 2026 Copyright held by the owner/author(s).
https://doi.org/10.70314/is.2026.aihc.42
This research was conducted in academic year 2024/25 as part of a bachelor's thesis.
Information Society 2026, 5–9 October 2026, Ljubljana, Slovenia
Ajdovec et al.
3 Methodology
3.1 Dataset
Comparing primary and reported outcomes can be framed as a directed semantic similarity task in the context of biomedicine. This is crucial for automatically checking whether the stated objectives of a clinical trial are correctly reported and met. Koroleva et al. [10] built a dataset of such outcome pairs from 3,938 RCT articles available on PubMed Central . One human annotator, after consulting domain experts, labeled 3,043 pairs as similar (label 1) or different (label 0). We then deduplicated the pairs, leaving 2,796. This dataset was imbalanced, with 21.8% of pairs labeled as similar and 78.2% as different, as a consequence of the collection methodology. An example pair labeled as similar is the primary outcome log HbA1c, reported as glycaemic control. This is a broader term, and recognizing it as a match requires domain knowledge of (blood sugar) measurements. An example of a negative pair is the primary outcome blood pressure, reported as systolic BP, which is a more specific term.
From the deduplicated pairs, we randomly sampled 300 for our own experiments: 100 for model tuning and 200 for validation. The remaining 2,496 pairs were used for the final testing. The tuning, validation and test sets contained 31.0%, 21.5% and 21.4% similar pairs respectively, compared to 21.8% overall. Due to unstratified sampling, the tuning set is biased toward similar pairs, relative to the whole deduplicated dataset.
3.2 Metrics
When comparing texts, most models produce a continuous similarity score on the interval rather than a direct label, so a threshold is needed to turn this score into a binary decision. We used the Youden index to determine this threshold automatically, rather than setting it manually, which would be time-consuming and prone to bias . The Youden index J is defined at each point on the ROC curve as:
For each model, we selected the threshold that maximizes J. Unlike accuracy or score, J treats both classes equally, making it appropriate for imbalanced datasets.
We reported classification accuracy, positive-class precision, recall, and score as evaluation metrics, with as the main one.
3.3 Baseline Models
Koroleva et al. [10] divided baseline text similarity models into the following groups, each representing sentences differently:
(1) String measures treat sentences as sequences of characters. We evaluated the Levenshtein distance and sequence similarity based on the Ratcliff-Obershelp distance.
(2) Lexical measures operate on words or word parts. We evaluated lemma similarity and stem similarity.
(3) Vector-based measures embed text into a vector space and compare vectors using distances such as cosine distance. We evaluated spaCy and Word2Vec embeddings.
(4) Ontology-based measures represent language as a hierarchy of concepts and compute distances between them. We evaluated path distance, Leacock-Chodorow similarity, and Wu-Palmer similarity.
(5) Deep learning models use contextual representations from large pre-trained encoders. We evaluated SciBERT and BioBERT as sentence embedding models, as well as the all-MiniLM-L12 sentence transformer .
3.4 Large Language Models
To make our approach widely accessible, we selected open-source LLMs available on HuggingFace and ran them locally with their transformers library. Local inference avoids API costs and latency, while keeping data private in the sensitive medical domain. We ran experiments on a single NVIDIA Quadro RTX 5000 GPU with 16 GB of VRAM, which limited the model size to up to 8B parameters. We considered only instruction fine-tuned variants, as these follow user prompts rather than simply continuing text.
We evaluated four LLMs with different characteristics:
• OLMo-7B-Instruct was chosen for its complete transparency. The architecture, training data, and procedure are publicly documented and replicable. The model was trained on 2.46T tokens, with over 2% of scientific articles.
• Mistral-7B-Instruct-v0.2 is a general-purpose LLM with slightly better benchmark results than OLMo.
• BioMistral-7B-DARE is a variant of Mistral further trained on PubMed Central literature, giving it stronger biomedical terminology knowledge at the cost of generality.
• Llama-3-8B-Instruct was reportedly trained on 15T tokens and achieves the best reasoning scores.
We first tested LLMs as binary similarity classifiers by inserting a pair of outcomes into a prompt template and extracting a Yes or No prediction from the generated text:
<|endoftext|><|user|> Are the following sentences semantically similar? First sentence: {out1} Second sentence: {out2} Answer: <|assistant|>
Algorithm 1: Classification via LLM token probabilities
Input: Problem with a finite set of answers
1 Construct a prompt that expects an answer to the problem;
2 Assign each possible answer to a token ;
3 Run the model to generate the first token;
4 Extract the output value for each token ;
5 Compute output probabilities for each token ;
6 Find the index of the highest probability
;
Output: Answer with the highest output probability
This text-based approach has several limitations related to LLM answer format and extraction. We therefore adopted a probability-based approach, outlined in Algorithm 1 [17]. It
https://huggingface.co/sentence-transformers/all-MiniLM-L12-v2
https://huggingface.co/allenai/OLMo-7B-Instruct-hf
https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.2
https://huggingface.co/BioMistral/BioMistral-7B-DARE
https://doi.org/10.5281/zenodo.3234827
https://huggingface.co/meta-llama/Meta-Llama-3-8B-Instruct
Detecting Spin in Clinical Trials with LLMs
Information Society 2026, 5–9 October 2026, Ljubljana, Slovenia
uses probabilities of the first generated token to obtain a similarity score between 0 and 1, similar to how the MMLU benchmark [5] evaluates multiple-choice answers. In our case, these are the tokens for Yes and No.
We used the LangChain library to define multiple prompt templates [2], varying in complexity from simple similarity questions to outcome switching definitions and few-shot examples. All tested prompts are available in our GitHub repository and can be modified as needed. Experiments used deterministic decoding with temperature set to 0. We measured AUC on the 200 instance validation set to compare model quality across prompts, before setting the classification threshold, as shown in Figure 1.

Figure 1: AUC scores across different LLMs and prompt complexity levels. Prompt names for each illustrative complexity level are provided in Table 1.
Table 1: List of evaluated prompt templates.
| Complexity level | Prompt name |
|---|---|
| 1 | Sentence template |
| 2 | Outcome template |
| 3 | Role template |
| 4 | Article definition template |
| 5 | Wikipedia definition template |
| 6 | Random example template |
The prompt with complexity 3, which defines the role of a clinical trial reviewer and the concept of primary and reported outcomes, was chosen as the starting point for further experiments. This prompt was near the middle of the AUC curve, which resembled an inverted U shape. Its average AUC score was comparable to the other prompts, but its range across models was the smallest. This indicates little bias, meaning none of them considerably over- or underperformed.
We then applied the Youden index to the 100-instance training set to determine the classification threshold and used it to obtain binary predictions on the 200-instance validation set. We manually inspected instances misclassified by the OLMo model and identified three recurring error types:
(a) insufficient domain terminology and acronym knowledge (for example, HbA1c),
(b) poor comprehension of longer sentences, and
(c) acceptance of partially reported outcomes.
We addressed (c) by iteratively adding clarifications to the prompt, stating that the reported outcome should include all components and details of the primary outcome. Each version was re-evaluated on the validation set until it reduced this error type while preserving score and accuracy.
3.5 Ensemble models
In the final evaluation, we included ensemble models, more specifically hard voting classifiers with a majority threshold. Each ensemble was composed of the three models with the highest score on the validation set from their respective group. This improved the score over any single model in the group. The ensembles were:
-
Baseline voting: stem similarity, sequence similarity and sentence encoder.
-
LLM voting: OLMo, BioMistral and Llama with initial prompt defining the clinical trial reviewer role.
-
LLM' voting: OLMo, Mistral and BioMistral with prompt corrected to reject partially reported outcomes.
4 Results
4.1 Outcome Classification
Table 2 shows the results of all evaluated models on the 2,496 instance test set. The sentence transformer achieved the best baseline score of 0.67 with a classification accuracy of 0.82. Among LLMs with the original prompt, BioMistral achieved the best of 0.73 and accuracy of 0.88. With the corrected prompt, OLMo' achieved the best of 0.75 and accuracy of 0.89. The best overall result was achieved by LLM' voting with an of 0.78 and accuracy of 0.90, an improvement of 7 percentage points over baseline voting. Koroleva et al. [10] reported values between 0.87 and 0.90 with fine-tuned BERT models on a non-deduplicated dataset of outcome pairs.
4.2 Explanation
Deep learning baseline models and the proposed LLM approach are essentially black boxes, producing only a similarity score with no explanation of their decisions. For authors and reviewers of clinical trial reports, understanding why two outcomes were classified as similar or different is important. Since LLMs can interpret the problem and generate text, they are suitable for producing natural language explanations. We obtained explanations for already classified examples by inserting the model prediction and continuing the conversation with the user message “Why? Explain your answer.” [18] Two examples generated by OLMo are shown below:
Primary outcome: a reduction in depression
Reported outcome: GDS scores
Label: 1
Prediction: 1 √
Explanation: The reported outcome, GDS scores, are a measure of depression, which is the primary outcome in this clinical trial. The GDS is a well-known tool to assess depression in elderly individuals. Therefore, the reported outcome matches the defined primary outcome.
https://github.com/ta5946/Spin/blob/main/src/models/prompt_templates.py
Information Society 2026, 5–9 October 2026, Ljubljana, Slovenia
Ajdovec et al.
Table 2: Classification thresholds and results of baseline models, LLMs, and ensemble models on the test set. LLM' denotes inference with the corrected prompt.
| Group | Model | Threshold | Classification Accuracy | Precision | Recall | Score |
|---|---|---|---|---|---|---|
| Baseline | Stems similarity | 0.3 | 0.805 | 0.528 | 0.845 | 0.650 |
| Sequence similarity | 0.4 | 0.845 | 0.668 | 0.550 | 0.603 | |
| Word2Vec embeddings | 0.4 | 0.708 | 0.409 | 0.813 | 0.544 | |
| Path distance | 0.2 | 0.795 | 0.517 | 0.673 | 0.585 | |
| Sentence transformer | 0.4 | 0.821 | 0.553 | 0.862 | 0.673 | |
| LLM | OLMo | 0.1 | 0.866 | 0.653 | 0.802 | 0.720 |
| Mistral | 0.3 | 0.852 | 0.625 | 0.774 | 0.692 | |
| BioMistral | 0.2 | 0.881 | 0.712 | 0.751 | 0.731 | |
| Llama | 0.1 | 0.884 | 0.831 | 0.578 | 0.681 | |
| OLMo' | 0.3 | 0.889 | 0.725 | 0.778 | 0.750 | |
| Mistral' | 0.2 | 0.894 | 0.789 | 0.692 | 0.737 | |
| BioMistral' | 0.1 | 0.851 | 0.609 | 0.852 | 0.710 | |
| Llama' | 0.1 | 0.853 | 0.962 | 0.329 | 0.490 | |
| Ensemble | Baseline voting | majority | 0.854 | 0.622 | 0.811 | 0.704 |
| LLM voting | majority | 0.899 | 0.781 | 0.733 | 0.756 | |
| LLM' voting | majority | 0.901 | 0.758 | 0.793 | 0.775 |
Primary outcome: pain severity and knee range of motion (ROM)
Reported outcome: pain
Label: 0
Prediction: 0 √
Explanation: The reported outcome is "pain," but the defined primary outcome was "pain severity and knee range of motion (ROM)." It does not include the specific components of pain severity, and it does not mention knee ROM. Therefore, the reported outcome does not match the defined primary outcome.
5 Discussion
LLMs outperformed all baseline text similarity models in , which we attribute to defining the task context and the asymmetric relationship between the primary and reported outcome. Since we used LLMs as adaptive classifiers via prompting, they remained general-purpose. BioMistral performed better with minimal prompts while Mistral benefited from more context, indicating that domain adaptation influences prompt sensitivity. Llama followed the corrected instructions too strictly [19], as its recall dropped to 0.33 and to 0.49, making it an unusable classifier. Individual classification thresholds, obtained by maximizing the Youden index, compensated for model biases. Majority voting across LLMs further improved results, indicating that the models made distinct mistakes and complemented each other.
Our results still trail behind fine-tuned BERT models by about 10 percentage points on score. Part of the reason is that we worked with only 10% of the dataset for development and deduplicated instances, making the task harder. Thresholds tuned on this small, randomly sampled dataset can be unstable and vary across models. We also used LLMs to generate natural language explanations for the classified examples. A manual qualitative analysis showed that more than 50% of explanations are valuable, while approximately every tenth contains hallucinations.
6 Conclusion
We investigated whether smaller open-source LLMs can classify pairs of outcomes based on text similarity as part of detecting outcome switching in RCT reports. For this purpose, we used a dataset of primary and reported outcomes labeled for similarity. Through prompt engineering, OLMo achieved the best score of 0.75, and majority voting of three LLMs improved it to 0.78. Other contributions include automatic threshold tuning, classification based on next token probabilities, and the option to explain the model decision. Our approach requires only a few hundred instances and no parameter fine-tuning. All source code and results, including model predictions and explanations, are publicly available in a GitHub repository.
As future work, we propose evaluating larger, more capable LLMs. A complete spin detection pipeline would have to be extended to other types of spin and related tasks, such as outcome extraction and discrepancy judgment. Alternatively, models with longer context windows could analyze whole reports at once, replacing intermediate steps with reasoning. To ensure cross-lingual reliability, the experiments should be repeated with a machine-translated or separately collected dataset.
References
[1] Isabelle Boutron and Philippe Ravaud. 2018. Misrepresentation and distortion of research in biomedical literature. Proceedings of the National Academy of Sciences, 115, 11, 2613–2619.
[2] Banghao Chen, Zhaofeng Zhang, Nicolas Langrené, and Shengxin Zhu. 2025. Unleashing the potential of prompt engineering for large language models. Patterns, 6, 6.
[3] Kellia Chiu, Quinn Grundy, and Lisa Bero. 2017. 'spin' in published biomedical literature: a methodological systematic review. PLoS Biology, 15, 9, e2002173.
[4] Paul Glasziou, Douglas G Altman, Patrick Bossuyt, Isabelle Boutron, Mike Clarke, Steven Julious, Susan Michie, David Moher, and Elizabeth Wager. 2014. Reducing waste from incomplete or unusable reports of biomedical research. The Lancet, 383, 9913, 267–276.
[5] Dan Hendrycks, Collin Burns, Steven Basart, Andy Zou, Mantas Mazeika, Dawn Song, and Jacob Steinhardt. 2020. Measuring massive multitask language understanding. arXiv preprint arXiv:2009.03300.
https://github.com/ta5946/Spin
Detecting Spin in Clinical Trials with LLMs
Information Society 2026, 5–9 October 2026, Ljubljana, Slovenia
[6] Muhammad Shahzeb Khan et al. 2019. Level and prevalence of spin in published cardiovascular randomized clinical trial reports with statistically nonsignificant primary outcomes: a systematic review. JAMA network open, 2, 5, e192622–e192622.
[7] Dale S Kim, Connor J McCabe, Brianna L Yamasaki, Kristine A Louie, and Kevin M King. 2018. Detecting random responders with infrequency scales using an error-balancing threshold. Behavior research methods, 50, 1960–1970.
[8] Svetlana Kiritchenko, Berry De Bruijn, Simona Carini, Joel Martin, and Ida Sim. 2010. ExaCT: Automatic extraction of clinical trial characteristics from journal publications. BMC medical informatics and decision making, 10, 1–17.
[9] Anna Koroleva, Sanjay Kamath, Patrick MM Bossuyt, and Patrick Paroubek. 2020. DeSpin: A prototype system for detecting spin in biomedical publications. In Proceedings of the BioNLP 2020 workshop, 49–59.
[10] Anna Koroleva, Sanjay Kamath, and Patrick Paroubek. 2019. Measuring semantic similarity of clinical trial outcomes using deep pre-trained language representations. Journal of Biomedical Informatics, 100, 100058.
[11] Suzanne Lockyer, Rob Hodgson, Jo C Dumville, and Nicky Cullum. 2013. "spin" in wound care research: the reporting and interpretation of randomized controlled trials with statistically non-significant primary outcome results or unspecified primary outcomes. Trials, 14, 1–10.
[12] Iain J Marshall, Joël Kuiper, and Byron C Wallace. 2016. RobotReviewer: Evaluation of a system for automatically assessing bias in clinical trials. Journal of the American Medical Informatics Association, 23, 1, 193–201.
[13] Humza Naveed, Asad Ullah Khan, Shi Qiu, Muhammad Saqib, Saeed Anwar, Muhammad Usman, Naveed Akhtar, Nick Barnes, and Ajmal Mian. 2025. A comprehensive overview of large language models. ACM Transactions on Intelligent Systems and Technology, 16, 5, 1–72.
[14] Francisco E Vera-Badillo et al. 2016. Bias in reporting of randomised clinical trials in oncology. European Journal of Cancer, 61, 29–35.
[15] Dongguang Wang et al. 2021. Abstracts for reports of randomized trials of COVID-19 interventions had low quality and high spin. Journal of Clinical Epidemiology, 139, 107–120.
[16] Amélie Yavchitz, Philippe Ravaud, Douglas G Altman, David Moher, Asbjørn Hrobjartsson, Toby Lasserson, and Isabelle Boutron. 2016. A new classification of spin in systematic reviews and meta-analyses was developed and ranked according to the severity. Journal of clinical epidemiology, 75, 56–65.
[17] Yao-Ching Yu, Chun Chih Kuo, Ye Ziqi, Chang Yucheng, and Yueh-Se Li. 2024. Breaking the ceiling of the LLM community by treating token generation as a classification for ensembling. In Findings of the Association for Computational Linguistics: EMNLP 2024, 1826–1839.
[18] Muru Zhang, Ofir Press, William Merrill, Alisa Liu, and Noah A Smith. 2024. How language model hallucinations can snowball. In International Conference on Machine Learning. PMLR, 59670–59684.
[19] Jeffrey Zhou, Tianjian Lu, Swaroop Mishra, Siddhartha Brahma, Sujoy Basu, Yi Luan, Denny Zhou, and Le Hou. 2023. Instruction-following evaluation for large language models. arXiv preprint arXiv:2311.07911.