21 1 month ago

BioLaya is a set of six non-generative encoder checkpoints released together in a single Hugging Face repository. It contains one Laya-style structured decision model and five task-specific ModernBERT-large classification models.

embedding decision 421m
curl http://localhost:11434/v1/systemone \
  -H "Content-Type: application/json" \
  -d '{
    "model": "Gabriel382/biolaya-systemone:421m",
    "state": "Hello World",
    "questions": {
      "says_hello": {
        "type": "noul",
        "instructions": "Does the state text contain a greeting?",
        "criteria": {
          "true": "The state text contains a greeting.",
          "false": "The state text does not contain a greeting."
        }
      }
    }
  }'

Details

1 month ago

c51250453128 · 844MB

modern-bert
·
421M
·
BF16
{ "num_ctx": 1024 }

Readme

BioLaya

BioLaya is a biomedical-adapted decision encoder built on Laya (ModernBERT), designed for fast, structured, and evidence-based decision-making.

Unlike conventional generative language models, BioLaya does not generate long textual responses. Instead, it evaluates a given context, compares possible actions or answers, and selects the most appropriate option.

BioLaya is part of the BioJev/BioLaya research ecosystem, exploring efficient biomedical reasoning and decision-making architectures.

Model Information

Property Description
Model BioLaya
Architecture Laya / ModernBERT
Base model convaiinnovations/laya
Parameters Approximately 421M
Model type Structured decision encoder
Fine-tuning Supervised decision learning
Training epochs 3
Training examples 145,998
Evaluation examples 6,768
Primary language English
Domain Biomedical and general decision-making

Capabilities

  • Biomedical NLI: Determine whether biomedical evidence supports or contradicts a hypothesis.
  • Clinical evidence assessment: Evaluate statements against clinical trial information.
  • Decision routing: Select appropriate actions from predefined options.
  • Semantic classification: Handle intent classification, topics, and categories.
  • Structured reasoning: Compare candidate decisions using contextual evidence.
  • Efficient inference: Perform decision selection without autoregressive text generation.

Benchmark Results

BioLaya was evaluated on 11 decision-making datasets.

Dataset Samples Accuracy
BioNLI 2,000 94.25%
NLI4CT 200 62.00%
AG News 250 94.40%
Banking77 400 96.00%
BoolQ 400 91.75%
MNLI 550 86.91%
Policy 150 97.33%
Policy v2 1,200 85.92%
Research Taxonomy v2.1 768 99.61%
Routing v2 600 84.33%
SST-5 250 52.40%
Overall 6,768 89.44%

All 6,768 evaluation examples were processed successfully, without inference errors.

These results come from the held-out development benchmark used during BioLaya development. They are not an independent external test-set estimate.

Efficiency

On the evaluation hardware (NVIDIA RTX 6000 Ada):

  • Median inference latency: approximately 11.1 ms per decision.
  • Top-1 Expected Calibration Error (ECE): 4.66%.
  • Non-generative inference architecture.

Latency depends on hardware, input length, and runtime implementation.

Usage with Ollama

BioLaya is intended for the native structured-decision API rather than the conventional chat endpoint.

Once published and served by a compatible Ollama runtime, use the model with /v1/systemone.

Example request:

curl http://localhost:11434/v1/systemone \
  -H "Content-Type: application/json" \
  -d '{
    "model": "biolaya:421m",
    "state": "The patient presents with fever and persistent cough.",
    "questions": {
      "fever": {
        "type": "choice",
        "instructions": "Is fever reported?",
        "criteria": {
          "yes": "Fever is reported.",
          "no": "Fever is not reported."
        }
      }
    }
  }'

Compatibility note: The fine-tuned BioLaya GGUF requires an Ollama runtime that supports its Laya decision encoding. Native Ollama execution and parity with the PyTorch checkpoint remain subject to runtime validation.

Training Methodology

BioLaya was fine-tuned using the Laya training framework with supervised decision learning.

The training corpus combines biomedical inference, natural-language understanding, semantic classification, research taxonomy, policy decisions, and routing tasks.

The training set was audited for overlapping content against the development set, with overlapping training instances removed while preserving the development examples.

Training configuration:

  • Objective: Soft Cross-Entropy
  • Optimizer updates: 6,825
  • Effective batch size: up to 64
  • Maximum input length: 1,024 tokens
  • Random seed: 42

Limitations

BioLaya is an experimental research model.

  • It is not a general-purpose conversational or text-generation model.
  • It can make incorrect decisions, particularly on ambiguous or complex biomedical evidence.
  • Long documents may be truncated according to the configured context length.
  • Benchmark accuracy does not establish medical reliability or clinical safety.
  • It must not be used as an autonomous diagnostic or treatment system.
  • Performance may differ between PyTorch and quantized GGUF runtimes.

Related Research

BioLaya complements BioJev, a biomedical language-model research project investigating domain adaptation, natural-language inference, structured decisions, and efficient biomedical AI.

BioLaya focuses specifically on encoder-based decision architectures and their potential as lightweight alternatives to generative models for classification and decision-making tasks.

Research status: Experimental — intended for research, benchmarking, and reproducible evaluation.

Author: Gabriel Henrique Alencar Medeiros

Affiliation: LITIS, Université de Rouen Normandie, France.