CLaC at SemEval-2024 Task 2: Faithful Clinical Trial Inference

Jennifer Marks, MohammadReza Davari, Leila KosseimSemEval @ NAACL 2024

Abstract

In the high-stakes domain of clinical medicine, Natural Language Inference (NLI) models must be more than just accurate; they must be faithful to the evidence. This paper details the approach taken by Team CLaC for SemEval-2024 Task 2, focusing on the trade-off between standard performance metrics and safety-critical measures such as faithfulness and consistency. By introducing random token masking during training, the researchers achieved the top rank in faithfulness, albeit at a significant cost to F1 accuracy.

Introduction

The rapid proliferation of Clinical Trial Reports (CTRs) presents a significant synthesis challenge for healthcare professionals. While automated NLI systems—designed to determine if a claim is "entailed" or "contradicted" by a report—offer a potential solution, their adoption is hindered by a lack of transparency. Standard transformer-based models often act as "black boxes," frequently arriving at correct predictions by exploiting superficial linguistic patterns rather than genuine semantic reasoning.

In the medical context, "right for the wrong reasons" is a dangerous failure mode. To address this, SemEval-2024 Task 2 introduced metrics for Safe Biomedical NLI, specifically focusing on:

  1. Faithfulness: The degree to which a model's prediction changes logically when the underlying meaning of the input is altered.
  2. Consistency: The model's ability to provide identical answers to semantically equivalent prompts.

Methodology

Team CLaC developed a system centered on robustness and semantic depth, utilizing the following components:

Model Architecture and Efficiency

The team utilized BART, a sequence-to-sequence transformer model, as their base. To ensure computational efficiency and prevent catastrophic forgetting during fine-tuning, they employed LoRA (Low-Rank Adaptation). This technique allows for the modification of a small subset of parameters, making the model more adaptable to the specialized vocabulary of CTRs.

Contrastive Learning

To move beyond simple pattern matching, the team implemented a Contrastive Tension loss function. Unlike standard NLI approaches that concatenate the report and statement into a single string, this method encodes them separately using two model instances. This forces the system to learn the deep semantic relationship between the evidence and the claim rather than relying on surface-level correlations.

Controlled Uncertainty: Token Masking

The most distinctive feature of the CLaC approach was the introduction of noise via random token masking. During training, a percentage ($k\%$) of tokens in both the CTRs and the statements were masked. This strategy was hypothesized to act as a regularizer, preventing the model from over-relying on specific "trigger words" and forcing it to develop a more holistic understanding of the clinical context.

Results: The Safety-Accuracy Trade-off

The experimental results revealed a stark inverse relationship between standard accuracy (F1 score) and safety metrics. The level of masking ($k$) served as the primary lever for this trade-off.

  • Baseline ($k=0\%$): With no masking, the model achieved a respectable F1 score of 0.65 (ranking 22nd in the competition). However, its Faithfulness score was 0.51, indicating that it was still prone to superficial reasoning.
  • High Noise ($k=30\%$): When masking was increased to 30%, the model's Faithfulness soared to 0.95, securing the #1 rank in the competition for this category. Consistency also improved from 0.54 to 0.60. However, this came at a massive cost: the F1 score dropped to 0.06.

These results suggest that while high levels of noise force the model to be extremely faithful to the remaining text, 30% masking likely represents a "breaking point" where the loss of information prevents the model from making useful predictions on the original, unmasked test set.

Discussion and Limitations

The CLaC team's findings highlight a critical challenge in AI safety: the "Accuracy-Faithfulness Gap." By prioritizing logic over labels, the researchers demonstrated that it is possible to create near-perfectly faithful models, but current architectures struggle to maintain predictive power under those constraints.

Future Work

To bridge this gap, the authors propose several avenues for future research:

  • Multi-objective Optimization: Developing loss functions that simultaneously optimize for F1, Faithfulness, and Consistency, rather than treating them as competing goals.
  • Expanded Context Windows: The current 512-token limit of BART is insufficient for many lengthy CTRs. Utilizing models capable of processing longer sequences could prevent the loss of critical evidence due to truncation.
  • Ensemble Strategies: Combining models trained at different noise levels might allow for a system that balances the high accuracy of low-noise models with the high faithfulness of high-noise models.

Conclusion

The CLaC submission to SemEval-2024 Task 2 serves as a proof-of-concept for prioritizing reliability in biomedical AI. While the trade-off in F1 score is currently steep, the achievement of the top rank in faithfulness underscores the potential of noise-based regularization in developing AI systems that healthcare professionals can trust.

Summary updated

BibTeX
@inproceedings{marks2024clac,
  author = {Jennifer Marks and MohammadReza Davari and Leila Kosseim},
  title = {{CLaC at SemEval-2024 Task 2: Faithful Clinical Trial Inference}},
  booktitle = {SemEval @ NAACL},
  year = {2024},
  doi = {10.18653/v1/2024.semeval-1.239},
}
Figure