Abstract
In this study, we introduce FEET, a standardized protocol designed to guide the development and benchmarking of foundation models. While numerous benchmark datasets exist for evaluating these models, we propose a structured evaluation protocol across three distinct scenarios to gain a comprehensive understanding of their practical performance. We define three primary use cases: frozen embeddings, few-shot embeddings, and fully fine-tuned embeddings. Each scenario is detailed and illustrated through two case studies: one in sentiment analysis and another in the medical domain, demonstrating how these evaluations provide a thorough assessment of foundation models' effectiveness in research applications. We recommend this protocol as a standard for future research aimed at advancing representation learning models.
Introduction: The Benchmarking "Wild West"
In the current landscape of artificial intelligence, comparing foundation models like GPT-4, Claude, or Gemini has become increasingly difficult. Researchers often report performance using arbitrary "shot counts"—the number of examples provided to the model during evaluation. For instance, one study might report 3-shot performance while another uses 5-shot or 25-shot. This inconsistency leads to two major issues: "cherry-picking," where models are only reported in regimes where they excel, and a lack of nuance regarding how a model scales with additional data.
Without a standardized protocol, the research community cannot truly understand the generalizability or the transferability of the knowledge embedded within these models. The FEET (Framework for Evaluating Embedding Techniques) protocol aims to solve this by providing a holistic view of a model's adaptability and practical utility.
The FEET Protocol Methodology
The FEET protocol categorizes model evaluation into three distinct and standardized scenarios:
- Frozen Embeddings: This measures "out-of-the-box" utility by using the model's pre-trained features exactly as they are, without any further training.
- Few-Shot Embeddings: The model is trained on a small "support set" of labeled examples. To ensure consistency, FEET recommends standardizing these evaluations at powers of 2 (e.g., 2, 4, 8... up to 1024 shots).
- Fine-tuned Embeddings: This involves adapting the model's parameters (often via techniques like LoRA) to a specific dataset to reach peak performance.
Crucially, the framework introduces Measuring Deltas ($\Delta$). Instead of focusing solely on raw accuracy, researchers calculate the performance differential between the frozen baseline and the few-shot or fine-tuned versions. This metric quantifies the specific value added by additional training or data.
Experimental Evaluation
Case Study 1: Sentiment Analysis (SST-2)
The authors first validated FEET using the SST-2 (Stanford Sentiment Treebank 2) dataset for binary sentiment analysis. The results revealed that models like BERT and GPT-2 were relatively poor sentiment classifiers when "frozen," suggesting their pre-training does not naturally capture sentiment as effectively as other features. However, these models showed massive gains as they moved toward the fine-tuned regime.
As seen in Table 1, BERT’s F1 score jumped from a baseline of 31.88% in the frozen state to 85.80% after full fine-tuning. This trajectory highlights the model's high capacity for learning sentiment features when provided with sufficient data.
Case Study 2: Biomedical Prediction (MIMIC-IV ED)
The second case study focused on the medical domain, using the MIMIC-IV ED dataset to predict antibiotic susceptibility. This task is significantly more complex, requiring models to identify whether a patient would be susceptible to various antibiotics based on medical history.
In this domain, MedBERT generally outperformed SciBERT. However, the FEET protocol revealed a significant performance "dip" in the few-shot regime across all models, with AUROC scores often dropping sharply before recovering as the shot count reached 128 or higher. This non-linear trajectory is a critical insight for clinical applications.
Discussion and Key Insights
The "Expected" vs. "Actual" Path
While it is often assumed that models improve linearly as more data is added, FEET demonstrates that this is not always the case. The framework makes it easy to identify when a model hits a performance plateau early or exhibits erratic behavior in few-shot scenarios.
The Risks of Fine-tuning
One of the most significant findings from the medical case study was that fine-tuning can sometimes be harmful. For certain antibiotics, such as Clindamycin, Bio_ClinicalBERT actually performed worse after fine-tuning (67.59 AUROC) compared to its frozen state (74.99 AUROC). This highlights the risks of overfitting on small, specialized datasets—a nuance that would be lost if only the final fine-tuned result was reported.
Conclusion and Future Work
By using standardized FEET tables, researchers can identify exactly at which "shot count" a model becomes commercially or clinically viable. While the current framework focuses on classification metrics like Accuracy, F1, and AUROC, future work will expand to include generation-based metrics for Large Language Models. The authors are also preparing a public codebase to allow researchers to integrate the FEET pipeline into existing HuggingFace workflows, ensuring that high-quality, standardized evaluation is accessible to the broader AI community.
Summary updated