F2LLM Technical Report: Matching SOTA Embedding Performance with 6 Million Open-Source Data

Ziyin Zhang, Zihan Liao, Hang Yu, Peng Di, Rui WangarXiv 2025 · DOI

Abstract

The F2LLM (Foundation to Feature Large Language Models) family introduces a new paradigm for training high-performance text embedding models. By eschewing the standard multi-stage, synthetic-data-heavy pipelines in favor of a streamlined single-stage fine-tuning approach on 6 million curated open-source samples, F2LLM achieves state-of-the-art (SOTA) results on the MTEB benchmark. This report details the methodology, data selection, and performance of F2LLM models ranging from 0.6B to 4B parameters, demonstrating that data quality and efficient training can rival massive proprietary pipelines.

Introduction

Large Language Models (LLMs) have revolutionized text embeddings, consistently topping leaderboards like the Massive Text Embedding Benchmark (MTEB). However, the current recipe for SOTA performance is increasingly resource-intensive. Most top-tier models rely on a two-stage process: billion-scale weakly supervised pretraining followed by supervised fine-tuning (SFT). Furthermore, many of these models depend on expensive synthetic data generated by proprietary LLMs like GPT-4.

This reliance on massive compute and proprietary data creates a significant barrier for researchers. Many SOTA models are either closed-source or release weights without the accompanying training data or code, hindering reproducibility. F2LLM addresses these challenges by providing a fully open-source, data-efficient alternative that matches or exceeds the performance of models trained on orders of magnitude more data.

Methodology

F2LLM simplifies the embedding model training pipeline through several key innovations:

Single-Stage Fine-Tuning

Unlike traditional approaches that require a massive contrastive pretraining phase, F2LLM models are fine-tuned directly from the Qwen3 foundation models. This single-stage approach significantly reduces the computational overhead and complexity of the training process.

Architectural Simplicity

F2LLM maintains the base LLM architecture without modifications. It avoids common "hacks" such as removing causal masks or implementing complex in-context learning tricks. All tasks—including retrieval, classification, and clustering—are unified into a standard (query, positive passage, hard negatives) format, with task-specific instructions prepended to the query.

Margin-Based Hard Negative Mining

To maximize the utility of the 6 million training samples, the authors employ a sophisticated hard negative mining strategy. Using an existing Qwen3-Embedding-0.6B model, they identify challenging negative samples while filtering out potential false negatives. This is achieved by dropping the top 5 matches and selecting passages within specific similarity score margins.

Custom Multitask Loss Routing

A critical component of F2LLM's efficiency is its loss routing mechanism. The training objective combines hard negative loss and in-batch loss. However, a custom dataloader ensures that in-batch loss is calculated only for retrieval tasks. This prevents non-retrieval data (like classification or clustering) from introducing noise into the in-batch contrastive signal, allowing the model to learn effectively from a heterogeneous dataset.

Datasets

The training set consists of exactly 6 million high-quality, human-annotated tuples. This composite dataset includes 4.9 million retrieval pairs, 0.2 million classification samples, and 0.8 million clustering samples. Data is sourced entirely from open datasets such as MSMARCO, SQuAD, SNLI, and Amazon Reviews, with absolutely no synthetic data used.

Key Results and Analysis

The F2LLM family was evaluated on the MTEB English leaderboard across 41 diverse tasks. The results demonstrate exceptional efficiency across all model sizes.

F2LLM models achieve competitive MTEB scores with significantly less training data compared to other SOTA models.
  • F2LLM-4B: With an average score of 73.67, it ranks 2nd in the ~4B parameter class and 7th overall. Notably, it established a new absolute SOTA record for clustering tasks (68.54).
  • F2LLM-1.7B: This model achieved a score of 72.01, securing the top position for all models in the 1B-2B parameter range.
  • F2LLM-0.6B: Scoring 70.03, it ranks 2nd among sub-1B models.
The ternary plot highlights F2LLM's balance between model size, training data volume, and embedding performance.

The performance of F2LLM underscores that data quality is a more potent driver of embedding quality than sheer volume. By focusing on high-quality human-annotated data and a refined training objective, F2LLM proves that the "billion-scale" pretraining paradigm is not the only path to SOTA performance.

Conclusion

F2LLM demonstrates that highly efficient, budget-friendly training can rival massive, proprietary embedding pipelines. By releasing the model weights, the 6-million-sample training dataset, and the training code, the authors provide a powerful, reproducible baseline for the community. While currently focused on English tasks, F2LLM serves as a blueprint for future research into efficient, open-source embedding models that do not rely on expensive synthetic data generation.

Summary updated

BibTeX
@misc{zhang2025f,
  author = {Ziyin Zhang and Zihan Liao and Hang Yu and Peng Di and Rui Wang},
  title = {{F2LLM Technical Report: Matching SOTA Embedding Performance with 6 Million Open-Source Data}},
  year = {2025},
  eprint = {2510.02294},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.02294},
}
Figure