/ Модель

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

Контекст
8 194 токена
Параметры
659 млн
Лицензия
MIT
Архитектура
xlm-roberta · dense
Базовая модель
bge-m3
Библиотека
sentence-transformers
Опубликована
18 сен 2026

poiss-bge-m3-retriever

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

Двуязычный энкодер POISS на базе BGE-M3 для поиска мест и объектов интереса по текстовому запросу с учётом координат пользователя.

93скачиваний за 30 дней0лайковвеса обновлены28 сен 2026

Бенчмарки

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

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Эмбеддинги» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

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

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

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

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

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

POISS BGE-M3 retriever — модель Amazon на основе BAAI/bge-m3, дообученная для поиска мест и объектов интереса (POI) по запросу с учётом географических координат. Это двусторонний энкодер: он независимо строит векторные представления запроса и POI, поэтому эмбеддинги каталога можно вычислить заранее и искать по ним через ANN-индекс. Координаты включаются в текст обеих сторон с точностью до четырёх знаков после запятой; для корректной работы нужно соблюдать шаблоны представления запроса и POI.

Модель предназначена для семантического поиска по корпусу мест, рекомендаций и поиска занятий поблизости. В тесте на более чем 72 млн POI она показала Recall@100 83,2% и nDCG@20 60,3%; показатели различаются по намерениям пользователя, а открытые запросы остаются более сложными. Архитектура — XLM-RoBERTa, 658,7 млн параметров, контекст до 8194 токенов; модель выдаёт L2-нормированные эмбеддинги CLS последнего слоя, которые сравниваются скалярным произведением.

Поддерживаются английский, испанский, французский, португальский, немецкий, итальянский и нидерландский языки. Модель выпущена под лицензией MIT. Она предназначена для исследований поиска POI и геопространственного поиска; поведение за пределами семи языков и регионов Америки и Европы не проверено.

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

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

Ограничения

Точность заметно зависит от соблюдения шаблонов текста и форматирования координат. Поведение за пределами семи поддерживаемых языков и регионов Америки и Европы не проверено; открытые запросы сложнее для модели.

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

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

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

Также подходит для

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

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

Открыть на Hugging Face

POISS BGE-M3 retriever

BAAI/bge-m3 fine-tuned on POISS for point-of-interest retrieval over the full Overture Maps Places corpus (72M+ POIs). It is a bi-encoder: queries and POIs are encoded independently, so POI embeddings can be built offline and searched with an ANN index.

The distinguishing feature of this task is that a query carries the coordinate it was issued from, and relevance depends jointly on semantics and geography. The coordinate is given to the model as text, at four-decimal precision, in both the query and the POI representation.

Companion cross-encoder: amazon/poiss-bge-m3-reranker.

Results

Full-corpus retrieval on the POISS test split (42,018 queries, percentages):

SystemR@10R@100R@1kN@5N@20
BM2517.829.942.816.018.0
BGE-M3 zero-shot15.226.440.013.715.3
this model45.283.295.658.360.3

Per-language R@100: EN 82.4, ES 83.9, FR 85.1, PT 80.5, DE 86.1, IT 84.7, NL 79.8. Fine-tuning shrinks the cross-language spread from 2.2× to 1.08×.

Per-intent R@100: Search 89.1, Detail 88.0, Recommend 77.3, Things-to-do 74.0. Open-ended intents remain the harder half of the benchmark.

Used as a reranker over its own top-1000 (the setting the cross-encoder is compared against): P@5 57.6, P@20 35.5, MRR 85.5, nDCG@5 61.5, nDCG@20 62.6.

Usage

Embeddings are the CLS token of the last layer, L2-normalized; score with a dot product. Both sides must follow the templates below, including the coordinate formatting, or accuracy drops sharply.

With sentence-transformers, pooling and normalization are already configured:

from sentence_transformers import SentenceTransformer

model = SentenceTransformer("amazon/poiss-bge-m3-retriever")
query = "User Query: pizzeria near the colosseum; Coordinate: 41.8902N 12.4922E;"
pois = [
    "Location Name: Pizzeria Da Enzo; Address: Via dei Fori Imperiali 1; Position: Rome, "
    "Lazio, IT, 00184; Coordinate: 41.8925N 12.4853E; Categories: pizza restaurant, restaurant;",
    "Location Name: Oslo Dental Clinic; Address: Storgata 10; "
    "Position: Oslo, Oslo, NO, 0155; Coordinate: 59.9139N 10.7522E; Categories: dentist;",
]
print(model.similarity(model.encode([query]), model.encode(pois)))

Or with transformers directly, which is what the formatting helpers below are for:

import torch
from transformers import AutoModel, AutoTokenizer

model_id = "amazon/poiss-bge-m3-retriever"
tokenizer = AutoTokenizer.from_pretrained(model_id)
# add_pooling_layer=False: the checkpoint has no pooler, and pooled output is unused
model = AutoModel.from_pretrained(model_id, add_pooling_layer=False).eval()


def encode(texts, max_length):
    batch = tokenizer(texts, padding=True, truncation=True,
                      max_length=max_length, return_tensors="pt")
    with torch.no_grad():
        hidden = model(**batch).last_hidden_state[:, 0, :]
    return torch.nn.functional.normalize(hidden, dim=1)


def format_query(text, lat, lng):
    lat_dir, lng_dir = "N" if lat >= 0 else "S", "E" if lng >= 0 else "W"
    return (f"User Query: {text}; "
            f"Coordinate: {abs(lat):.4f}{lat_dir} {abs(lng):.4f}{lng_dir};").strip()


def format_poi(name, street, city, state, country, postcode, lat, lng, categories):
    parts = ["Location "]
    if name:
        parts.append(f"Name: {name}; ")
    if street:
        parts.append(f"Address: {street}; ")
    position = [v for v in (city, state, country, postcode) if v]
    parts.append("Position: " + ", ".join(position) + "; ")
    lat_dir, lng_dir = "N" if lat >= 0 else "S", "E" if lng >= 0 else "W"
    parts.append(f"Coordinate: {abs(lat):.4f}{lat_dir} {abs(lng):.4f}{lng_dir}; ")
    if categories:
        parts.append(f"Categories: {categories}; ")
    return "".join(parts).strip()


query = format_query("pizzeria near the colosseum", 41.8902, 12.4922)
pois = [
    format_poi("Pizzeria Da Enzo", "Via dei Fori Imperiali 1", "Rome", "Lazio", "IT",
               "00184", 41.8925, 12.4853, "pizza restaurant, restaurant"),
    format_poi("Oslo Dental Clinic", "Storgata 10", "Oslo", "Oslo", "NO",
               "0155", 59.9139, 10.7522, "dentist"),
]

query_vec = encode([query], max_length=128)
poi_vecs = encode(pois, max_length=160)
print((query_vec @ poi_vecs.T).squeeze(0))

Notes on the templates:

  • Categories is the Overture primary category followed by the alternates, comma-separated, with underscores and slashes replaced by spaces.
  • Truncation lengths at training and evaluation time were 128 tokens for queries and 160 for POIs.
  • Strip the final string. Training inputs were stripped, so a trailing space after the last ; adds a token and shifts the embedding. sentence-transformers strips for you; with plain transformers do it yourself, as the helpers above do.
  • No rating, review-count or quality signal appears in either input: this model is purely semantic + geographic. The cross-encoder is the component that consumes the quality score.

For corpus-scale use, embed POIs offline and index them (the paper used FAISS).

Training

Fine-tuned from BAAI/bge-m3 on the POISS train split: 254,089 training records and 13,374 validation records, with POI content resolved from Overture Places release 2026-03-18.

ObjectiveInfoNCE with in-batch negatives, learnable temperature initialized at 0.01
Hard negatives100 mined per query, 4 sampled per step
OptimizerAdamW, lr 2e-5, linear schedule, gradient clipping 1.0
Batch size16 per GPU × 8 GPUs
Precision / hardwarebf16 mixed precision, 8× NVIDIA A100 40GB
Scheduleup to 20 epochs, early stopping on validation MRR
Selected checkpointepoch 19, validation MRR 0.8828

Negatives are mined by taking the candidates the LLM judge marked non-relevant and padding from the cross-encoder's reranked top-300 starting at rank 30 — semantically related POIs that are nonetheless wrong, typically differing in quality score, distance or prominence.

Training supervision is derived from POISS labels: positives are the graded relevant POIs.

Reproducibility note

The published weights are numerically identical to the ones used for the paper: they were converted from the training checkpoint by re-expressing a fused-QKV flash-attention layout in the standard XLMRobertaModel layout, and the conversion round-trips bit-exactly through the original remapping function.

Metrics reproduce to about 1e-3 rather than exactly, because the reported numbers were computed in bf16 with flash attention. Near-tied candidates around rank 20 can swap order across precisions, which moves nDCG@20 slightly while leaving the top of the ranking unchanged.

Intended use and limitations

Intended for research on POI search and geospatial retrieval. Coverage is limited to 7 languages concentrated in the Americas and Europe, so behaviour outside those locales is untested.

Citation

@inproceedings{maritan-etal-2026-poiss,
    title = "{POISS}: A Large-Scale Multilingual Dataset for Point-of-Interest Search",
    author = "Maritan, Nicola  and
      Moschitti, Alessandro  and
      Borazio, Federico  and
      Zhou, Xiaokun  and
      Bai, Zhengwei",
    booktitle = "Proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing",
    month = oct,
    year = "2026",
    address = "Budapest, Hungary",
    publisher = "Association for Computational Linguistics",
    note = "To appear",
}

License

These weights are a derivative work of BAAI/bge-m3, distributed by BAAI under the MIT License, and are released under the same license; see LICENSE. The base model derives from XLM-RoBERTa, also MIT.

Modification with respect to the base model: all weights were modified by supervised fine-tuning on the POISS train split with an InfoNCE objective. Architecture, configuration, vocabulary and tokenizer are unchanged.

The training data, POISS, is Apache-2.0 and places no additional restriction on these weights.

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

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

GPU в ailist

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

Можно запустить

Подбираем GPU…

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

0 моделей