/ Модель

Характеристики

Контекст
32 токена
Лицензия
Apache 2.0
Архитектура
embedding_gemma2 · dense
Базовая модель
embeddinggemma-2
Библиотека
sentence-transformers
Опубликована
20 окт 2026

FinxGemma-Lite

ЭмбеддингиТекст → embedding3 профессии

Модель создаёт эмбеддинги описаний карточных транзакций для поиска похожих продавцов и переноса категорий из уже размеченных записей.

45скачиваний за 30 дней1лайквеса обновлены20 окт 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

FinxGemma-Lite — модель эмбеддингов, разработанная Surya-sourav путём дообучения google/embeddinggemma-2 на коротких и зашумлённых описаниях карточных транзакций. Она предназначена для поиска похожих описаний торговых точек: модель кодирует текст в 768-мерный L2-нормированный вектор, после чего записи сравнивают по косинусному сходству и переносят категорию с ближайшего уже размеченного описания. Модель содержит 271 млн параметров и принимает только текст.

Модель рассчитана на прототипирование поиска и категоризации транзакций по карточным и банковским выпискам, а также на сопоставление вариантов написания названий продавцов. В исследовании на транзакциях государственных закупочных карт США она примерно соответствовала базовой модели; заметного подтверждённого улучшения для ранее не встречавшихся продавцов не показано. Оценка сходства сама по себе не является надёжной оценкой уверенности.

Обучение проводилось на 60 000 парах и триплетах с шумными описаниями, похожими продавцами и вариантами названий. Результаты ограничены одним набором данных из США, англоязычными описаниями, шумными категориями и эвристическим определением совпадений продавцов. Для автоматизированных финансовых решений автор рекомендует дополнительную калибровку уверенности и проверку человеком. Лицензия — Apache-2.0.

Сценарии применения

  • поиск похожих описаний продавцов в карточных транзакциях
  • категоризация новой транзакции по ближайшей размеченной записи
  • сопоставление сокращённых и зашумлённых названий торговых точек
  • поиск вариантов написания одного и того же продавца
  • прототипирование поиска по истории банковских выписок

Ограничения

Оценка сходства не является надёжной уверенностью ответа; для финансовой автоматизации автор рекомендует отдельную калибровку и проверку человеком. Обучение и проверка ограничены одним англоязычным набором транзакций государственных закупочных карт США, а категории и сопоставление продавцов имеют шум.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

FinxGemma-Lite

FinxGemma-Lite is google/embeddinggemma-2 fine-tuned on raw card-transaction merchant descriptors: short, noisy strings such as SQ *SHAKE SHACK, AMZN MKTP US*Z58J27N20 and WAL-MART #2791. It is meant for retrieval-based transaction categorisation: embed a new transaction, find the most similar descriptor you've already labelled, and reuse its category.

It comes out of a two-part study of whether embedding similarity can be trusted for this job.

An honest summary. FinxGemma-Lite matches the base model; it doesn't beat it. For merchants it has never seen, it gets 51.1% against the base model's 50.9%, which is within noise. What did work in the same study is a small calibrated trust model on top of retrieval, which predicts whether each answer is right. It raised the AUROC for telling right from wrong answers from 0.73 to 0.90. The trust model is described in the GitHub repo; it is not part of this checkpoint.

Model details

Base modelgoogle/embeddinggemma-2, revision 914f7f8, text encoder only
Parameters271M
Output768-dimensional, L2-normalised embeddings; compare them with cosine similarity
Max sequence length32 tokens, enough for any descriptor plus its prompt
Promptsquery for the new transaction, document for the labelled descriptors (the base model's retrieval prompts)
Precisionfloat32 (the base model card warns against float16)
LicenceApache 2.0, the same as the base model

How to use

from sentence_transformers import SentenceTransformer

model = SentenceTransformer("suryeah/FinxGemma-Lite")

# descriptors you've already categorised (in practice: your whole history)
labelled = {
    "SQ *BLUE BOTTLE COFFEE": "restaurants",
    "SHELL OIL 57444": "service stations",
    "STAPLES 00103010": "office supplies",
}

new = model.encode(["TST* LA COLOMBE COFFEE"], prompt_name="query")
known = model.encode(list(labelled), prompt_name="document")
scores = model.similarity(new, known)[0]
best = int(scores.argmax())
print(list(labelled.values())[best], float(scores[best]))

The similarity score is not a confidence: for well-known merchants it couldn't separate right answers from wrong ones (AUROC 0.40). If you need to know when to trust an answer, put a calibrated classifier on top. The repo shows one that uses neighbour agreement, merchant history and a TF-IDF cross-check.

Intended use

  • Intended: research and prototyping of retrieval-based categorisation for card and bank transaction descriptors, and nearest-neighbour lookup of merchants you've already seen.
  • Not intended: automated financial decisions without a confidence layer and human review. It is also not a general-purpose sentence embedding model; use the base model for that.

Training

  • Data: 60,000 triplets mined from State of Delaware employee credit-card transactions dated before 2025-01-16 (data.delaware.gov, public domain). There are three kinds, each with a hard negative mined with the base model:
    • 30,185 noise pairs: a descriptor with a processor prefix (SQ *, TST* , PAYPAL *), a store number, or cut to 12 characters, against the clean descriptor;
    • 27,988 category pairs: a descriptor against the closest descriptor from a different merchant with the same category;
    • 1,827 variant pairs: two spellings of the same merchant.
  • Held out: 5% of merchants were kept out of training entirely.
  • Recipe: CachedMultipleNegativesRankingLoss (batch 64, computed 32 texts at a time), learning rate 2e-5, 1 epoch, 10% warm-up, float32, seed 42. Training prompts match the inference prompts. It took 40 minutes on one T4, with a peak of 6.5 GB of GPU memory.

Evaluation

The test set is 20,000 transactions from 4 Sep 2025 to 30 Jun 2026. Each was matched against the 154,361 distinct descriptors seen before that date, and the category was copied from the closest one. Accuracy is the share of right categories, split by how often the transaction's merchant had appeared before:

merchant seen beforequeriesbase modelchar n-gram TF-IDFFinxGemma-Lite
never1,96050.9%43.1%51.1%
once33592.2%91.9%92.5%
2–5 times84892.1%92.0%92.5%
6+ times16,85795.9%95.4%96.0%
all20,00091.2%90.1%91.4%

Accuracy by merchant familiarity

  • Other measures:
    • Seen merchants are matched to the right merchant 99.5% of the time (base: 99.1%).
    • New-merchant detection from low similarity reaches an AUROC of 0.974 (base: 0.966).
  • The trust model, from the same study:
    • It separates right from wrong answers far better than the cosine: AUROC 0.90 vs 0.73, and 0.81 vs 0.40 for merchants seen 6+ times.
    • Answering only the 80% of queries it's most confident about is 98.2% accurate, against 95.7% for the base model with calibrated cosine.

Risk-coverage curves

The hypotheses were fixed before the run. Each counts as supported only if the 95% paired-bootstrap interval of the improvement excludes zero (1,000 resamples):

hypothesisresultdifference [95% CI]
RQ1fine-tuning helps never-seen merchants without hurting known onesnot supportednew +0.002 [-0.013, +0.015]; known +0.001 [+0.000, +0.002]
RQ2mined hard negatives beat in-batch negatives (never-seen)not supported+0.003 [-0.008, +0.013]
RQ3trust model AUROC beats calibrated cosine, overall and 6+supportedall +0.173 [+0.159, +0.186]; 6+ +0.407 [+0.382, +0.431]
RQ4lower AURC and higher accuracy at 80% / 90% coverage (P vs B2)supportedAURC -0.039 [-0.041, -0.034]; @80 +0.025 [+0.023, +0.028]; @90 +0.013 [+0.010, +0.015]

Limitations

  • One dataset. It was trained and tested only on US public-sector purchase cards. Other card programmes, countries and languages may behave differently.
  • Noisy labels. Categories are card-network merchant category descriptions, which are noisy and sometimes ambiguous. A hotel and its restaurant share one name, and 42% of the remaining errors are of this kind.
  • Merchant names are inferred. The data has no merchant ID, so "same merchant" is decided by a simple rule.
  • One training run. The planned extra seeds turned out identical, because sentence-transformers 6.1 seeds its batch sampler with a fixed 0, so the variance between seeds wasn't measured. The source notebooks now fix this.

Citation

@misc{parida2026finxgemmalite,
  author = {Surya Parida},
  title  = {FinxGemma-Lite: does an embedding model know when it is wrong about a card transaction?},
  year   = {2026},
  url    = {https://github.com/Surya-sourav/FinxGemma-lite}
}

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · sentence-transformers

Нельзя запустить

Архитектура embedding_gemma2 неизвестна transformers в образе рантайма.

Класс архитектуры
EmbeddingGemma2Model
Ревизия весов
f9afda6

0 моделей