Instructions to use Keyvanazami/embeddinggemma-300m-510k-predicate with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use Keyvanazami/embeddinggemma-300m-510k-predicate with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("Keyvanazami/embeddinggemma-300m-510k-predicate") sentences = [ "That is a happy person", "That is a happy dog", "That is a very happy person", "Today is a sunny day" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
EmbeddingGemma-300M fine-tuned for FDA 510(k) predicate retrieval
A google/embeddinggemma-300m model fine-tuned to retrieve predicate devices for a new medical device. Given a device's Indications for Use and Device Description, it ranks earlier FDA 510(k) clearances so that the devices a real submission cited as predicates come first.
This is a research artifact. It recovers historical citations; it does not give regulatory advice, and an uncited device is not necessarily an unsuitable predicate.
Results
Test split of Keyvanazami/fda-510k-predicate-retrieval: 5,308 devices cleared in 2025 and 2026, each ranked against every corpus device cleared before it (up to 52,123 candidates). Gold = the predicates cited in the device's own 510(k) summary. "Primary" columns score only the single primary predicate (5,173 queries). All values are percentages.
| Method | Recall@10 | Hit@1 | Hit@10 | Hit@100 | primary Hit@1 | primary Hit@10 |
|---|---|---|---|---|---|---|
| This model + TF-IDF (reciprocal-rank fusion) | 78.4 | 53.0 | 88.5 | 98.8 | 46.4 | 83.9 |
| This model | 77.0 | 52.5 | 86.8 | 98.1 | 45.1 | 81.8 |
| TF-IDF (1-2 grams) | 72.6 | 49.6 | 83.1 | 96.6 | 43.9 | 78.8 |
| BM25 | 68.4 | 45.0 | 78.5 | 94.6 | 39.4 | 74.1 |
| BAAI/bge-m3 | 62.9 | 41.3 | 73.0 | 92.0 | 36.0 | 68.6 |
| Qwen/Qwen3-Embedding-0.6B | 62.8 | 40.1 | 73.1 | 92.0 | 34.9 | 68.6 |
| BAAI/bge-base-en-v1.5 | 61.6 | 39.7 | 71.8 | 90.9 | 34.4 | 67.0 |
| google/embeddinggemma-300m (untuned) | 61.3 | 38.9 | 71.2 | 91.6 | 33.5 | 66.4 |
| sentence-transformers/all-MiniLM-L6-v2 | 55.2 | 35.1 | 65.2 | 85.7 | 30.2 | 59.8 |
This model's Recall@10 has a 95% bootstrap interval of 76.0 to 77.9. This model was run with 1,024-token inputs; the other embedders with 512. On the dev split (2,635 devices cleared in 2024) this model reaches 78.5 Recall@10 and TF-IDF 74.3.
Usage
Use the query prompt for the new device and the document prompt for candidates, and set the input length to 1,024
tokens (the length used in training and evaluation). The text format is the one used in training:
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("Keyvanazami/embeddinggemma-300m-510k-predicate")
model.max_seq_length = 1024
def text(ifu, description):
return f"Indications for Use: {ifu}\nDevice Description: {description}"
query = text("The clips are indicated for endoscopic clip placement within the gastrointestinal tract for hemostasis ...",
"Sterile, single-use clip pre-loaded on a delivery catheter ...")
candidates = [text("...", "..."), text("...", "...")]
q = model.encode([query], prompt_name="query", normalize_embeddings=True)
d = model.encode(candidates, prompt_name="document", normalize_embeddings=True)
scores = q @ d.T # cosine similarity, higher is closer
Precomputed document vectors for the whole corpus are in the dataset repository
(embeddings/finetuned-embeddinggemma-300m-510k.docs.npy), so a search needs only one query embedding.
In the evaluation data every K-number in the text is replaced by [K-NUMBER], and in queries the names of the cited
predicates are replaced by [DEVICE]. Masking K-numbers in your own input the same way matches what the model saw.
Training
| Pairs | 41,281 (subject, cited predicate) pairs from 22,580 devices cleared 2015 to 2023 |
| Hard negatives | 2 per pair, sampled from TF-IDF ranks 6 to 35 among earlier devices, excluding every device the summary cites |
| Loss | CachedMultipleNegativesRankingLoss (in-batch negatives plus the hard negatives) |
| Batch size / max length | 64 / 1,024 tokens |
| Learning rate / schedule | 2e-5, linear decay, 10% warm-up |
| Epochs | 2 (1,292 steps) |
| Precision | bf16 |
| Library | sentence-transformers 6.3.0 |
Dev (2024) was used to choose the number of epochs; test (2025 to 2026) was not used for any decision.
Things that did not help: continuing a 512-token run for up to 3.5 more epochs (training loss fell, dev did not improve), and a product-code filter on the candidates (lower recall for every method).
Limitations
- Label noise. Predicate citations are extracted automatically from summary PDFs. On a manual-style check of 100 summaries the gold set had precision about 0.71 and recall about 0.95, so absolute scores are lower bounds.
- Coverage. About 12% of cited predicates are not in the corpus (no summary PDF, or missing sections).
- English, US 510(k) summaries only. Scanned older documents were read with OCR and contain recognition errors.
- Not a regulatory tool. Predicate choice depends on technological characteristics and regulatory strategy that the text alone does not capture.
License
This model is a derivative of EmbeddingGemma and is distributed under the Gemma Terms of Use. Use is subject to those terms, including the Gemma Prohibited Use Policy.
- Downloads last month
- 27
Model tree for Keyvanazami/embeddinggemma-300m-510k-predicate
Base model
google/embeddinggemma-300m