{
  "licence": "https://creativecommons.org/licenses/by/4.0/",
  "credit": "Saulius Beconis, sbeconis.com",
  "page": "https://sbeconis.com/lab/multilingual-triage/",
  "url": "https://sbeconis.com/lab/multilingual-triage/triage-2026-10-08.json",
  "note": "Measurements and text are CC BY 4.0. Source data and quoted excerpts keep their own licences: see \"attribution\".",
  "lab": "LAB/010",
  "title": "Offline multilingual triage (LT / EN / RU)",
  "date": "2026-10-08",
  "method": {
    "topic data": "SIB-200 (Adelani et al., 2024; CC BY-SA 4.0), test split, eng_Latn / lit_Latn / rus_Cyrl, parallel",
    "ner data": "WikiANN (Pan et al., 2017), test split, 300 sentences per language (seed 3); silver labels",
    "llm": "llama.cpp b11461 (CUDA 13.4); output constrained to a JSON schema (topic: enum of the 7 labels; entities: list of text + PER/ORG/LOC); greedy; Qwen3-8B/14B thinking off",
    "topic prompt": "Classify the topic of this text. Choose exactly one of: science/technology, travel, politics, sports, health, entertainment, geography. Reply as JSON: {\"topic\": \"...\"}.\n\nText: {text}",
    "ner prompt": "List the named entities in this text: people (PER), organisations (ORG) and locations (LOC). Copy each entity exactly as written in the text. Reply as JSON: {\"entities\": [{\"text\": \"...\", \"type\": \"PER\" | \"ORG\" | \"LOC\"}]}. Use an empty list if there are none.\n\nText: {text}",
    "embeddings": "bge-m3, multilingual-e5-base, bge-base-en-v1.5 (English-only reference); logistic regression (C = 4) on the 701 English training sentences",
    "scoring": "topic accuracy; entity-level precision/recall/F1 after whitespace/punctuation/case normalisation; relaxed = same type and containment"
  },
  "environment": {
    "gpu": "RTX 4070 12 GB",
    "llama.cpp": "b11461 (CUDA 13.4)"
  },
  "tables": {
    "topic": {
      "caption": "Topic triage, SIB-200: the same 204 sentences in English, Lithuanian and Russian, 7 topics. Chance ≈ 14%.",
      "columns": [
        {
          "key": "en",
          "label": "English",
          "suffix": "%"
        },
        {
          "key": "lt",
          "label": "Lithuanian",
          "suffix": "%"
        },
        {
          "key": "ru",
          "label": "Russian",
          "suffix": "%"
        }
      ],
      "rows": [
        {
          "label": "Qwen3-4B Instruct-2507 Q4_K_M · zero-shot",
          "cells": {
            "en": 82.4,
            "lt": 81.4,
            "ru": 84.3
          }
        },
        {
          "label": "Qwen3-8B Q4_K_M · zero-shot",
          "cells": {
            "en": 82.4,
            "lt": 76,
            "ru": 84.8
          }
        },
        {
          "label": "Qwen3-14B Q4_K_M · zero-shot",
          "cells": {
            "en": 86.8,
            "lt": 86.3,
            "ru": 87.7
          }
        },
        {
          "label": "Phi-4-mini Q4_K_M · zero-shot",
          "cells": {
            "en": 85.3,
            "lt": 78.4,
            "ru": 84.3
          }
        },
        {
          "label": "bge-m3 + logistic regression · trained on English only",
          "cells": {
            "en": 89.2,
            "lt": 86.8,
            "ru": 89.2
          },
          "highlight": true
        },
        {
          "label": "multilingual-e5-base + logistic regression · trained on English only",
          "cells": {
            "en": 89.7,
            "lt": 83.8,
            "ru": 87.7
          },
          "highlight": false
        },
        {
          "label": "bge-base-en + logistic regression · trained on English only",
          "cells": {
            "en": 89.2,
            "lt": 43.1,
            "ru": 28.9
          },
          "highlight": false
        }
      ],
      "note": "The classifiers saw 701 labelled English sentences and no Lithuanian or Russian ones"
    },
    "ner": {
      "caption": "Entity extraction, WikiANN: 300 sentences per language (different sentences per language), people, organisations, locations. F1, relaxed match (same type, one string contains the other) / exact match.",
      "columns": [
        {
          "key": "en",
          "label": "English"
        },
        {
          "key": "lt",
          "label": "Lithuanian"
        },
        {
          "key": "ru",
          "label": "Russian"
        },
        {
          "key": "lat",
          "label": "Median time (s)",
          "decimals": 2
        },
        {
          "key": "cut",
          "label": "Replies cut off",
          "decimals": 0
        }
      ],
      "rows": [
        {
          "label": "Qwen3-4B Instruct-2507 Q4_K_M",
          "cells": {
            "en": "76.4 / 54.9",
            "lt": "69.8 / 49.5",
            "ru": "71.2 / 28.0",
            "lat": 0.236,
            "cut": 0
          },
          "highlight": false
        },
        {
          "label": "Qwen3-8B Q4_K_M",
          "cells": {
            "en": "79.4 / 62.2",
            "lt": "73.9 / 63.6",
            "ru": "73.7 / 37.6",
            "lat": 0.505,
            "cut": 0
          },
          "highlight": true
        },
        {
          "label": "Qwen3-14B Q4_K_M",
          "cells": {
            "en": "79.3 / 62.9",
            "lt": "72.1 / 64.9",
            "ru": "71.2 / 36.4",
            "lat": 0.496,
            "cut": 0
          },
          "highlight": false
        },
        {
          "label": "Phi-4-mini Q4_K_M",
          "cells": {
            "en": "57.8 / 43.2",
            "lt": "44.4 / 34.7",
            "ru": "45.1 / 23.7",
            "lat": 0.174,
            "cut": 1
          },
          "highlight": false
        }
      ],
      "note": "WikiANN labels are generated automatically and contain errors; exact match also penalises inflected forms"
    }
  },
  "charts": {
    "ner": {
      "title": "Entity extraction by language (relaxed F1)",
      "meta": "Scale 0–100%",
      "max": 100,
      "suffix": "%",
      "groups": [
        {
          "label": "Qwen3-4B Instruct-2507 Q4_K_M",
          "bars": [
            {
              "label": "English",
              "value": 76.4,
              "highlight": false
            },
            {
              "label": "Lithuanian",
              "value": 69.8,
              "highlight": true
            },
            {
              "label": "Russian",
              "value": 71.2,
              "highlight": false
            }
          ]
        },
        {
          "label": "Qwen3-8B Q4_K_M",
          "bars": [
            {
              "label": "English",
              "value": 79.4,
              "highlight": false
            },
            {
              "label": "Lithuanian",
              "value": 73.9,
              "highlight": true
            },
            {
              "label": "Russian",
              "value": 73.7,
              "highlight": false
            }
          ]
        },
        {
          "label": "Qwen3-14B Q4_K_M",
          "bars": [
            {
              "label": "English",
              "value": 79.3,
              "highlight": false
            },
            {
              "label": "Lithuanian",
              "value": 72.1,
              "highlight": true
            },
            {
              "label": "Russian",
              "value": 71.2,
              "highlight": false
            }
          ]
        },
        {
          "label": "Phi-4-mini Q4_K_M",
          "bars": [
            {
              "label": "English",
              "value": 57.8,
              "highlight": false
            },
            {
              "label": "Lithuanian",
              "value": 44.4,
              "highlight": true
            },
            {
              "label": "Russian",
              "value": 45.1,
              "highlight": false
            }
          ]
        }
      ]
    }
  },
  "attribution": "SIB-200 (CC BY-SA 4.0) built on FLORES-200; WikiANN (Pan et al., 2017), terms as published on the Hugging Face Hub (not stated).",
  "compares": {
    "topic": {
      "title": "Topic accuracy, English → Lithuanian",
      "meta": "Same texts in each language · trained or prompted in English only",
      "fromLabel": "English",
      "toLabel": "Lithuanian",
      "min": 0,
      "max": 100,
      "decimals": 1,
      "suffix": "%",
      "better": "higher",
      "rows": [
        {
          "label": "Qwen3-4B Q4_K_M · zero-shot",
          "from": 82.4,
          "to": 81.4,
          "highlight": false
        },
        {
          "label": "Qwen3-8B Q4_K_M · zero-shot",
          "from": 82.4,
          "to": 76,
          "highlight": false
        },
        {
          "label": "Qwen3-14B Q4_K_M · zero-shot",
          "from": 86.8,
          "to": 86.3,
          "highlight": false
        },
        {
          "label": "Phi-4-mini Q4_K_M · zero-shot",
          "from": 85.3,
          "to": 78.4,
          "highlight": false
        },
        {
          "label": "bge-m3 + logistic regression · trained on English only",
          "from": 89.2,
          "to": 86.8,
          "highlight": false
        },
        {
          "label": "multilingual-e5-base + logistic regression · trained on English only",
          "from": 89.7,
          "to": 83.8,
          "highlight": false
        },
        {
          "label": "bge-base-en + logistic regression · trained on English only",
          "from": 89.2,
          "to": 43.1,
          "highlight": true
        }
      ]
    }
  }
}
