Phygitalytics

Advanced Research · Fine-Tuning

Small models, trained for one job

We fine-tune small language models (around 3B) for narrow, high-stakes tasks. Each one is tested on held-out data and attacked before we call it done. Here is what we have built so far.

Part of our advanced research, with two granted vision-AI patents and published papers. See patents & papers →

ESG Reasoner

AI that reads sustainability reports like an analyst and never guesses a number

Compact private model · The model reads, the platform computes

  • Fully correct on held-out cases when the platform computes the figures: 95%
  • Complete answers exactly right: 17.2% vs 0.2% for an open model twice its size
  • Runs inside our ESG platform, so client data stays in house
Read the article →

UPI payments

ML vs DL vs SFT: classical models learn strings, the fine-tuned LLM learns the task

Qwen3-1.7B · SFT with LoRA, against 9 other models

  • Accuracy on 600 payments from unseen payees: 89.8% vs 62.7% for the best classical model
  • On new vocabulary: 85.2% vs 34–45% for classical models
  • Not ready to ship yet: passes 8 of 10 ship-gate checks (misses consistency and latency)
Read the article →

SafeQuery

Teaching a 3B model to look before it queries

3B base model · LoRA fine-tuning, then GRPO

  • Task success on 111 held-out tasks: 19.8% to 99.1%
  • Prompt injection resistance: 0% to 100%
  • Checks table stats and query cost before it runs SQL, and refuses unsafe requests
Read on Hugging Face →

SafeQuery on Gemma 2

Does the recipe transfer to a new model?

Gemma 2 · Same SafeQuery training recipe

  • Tests whether the safety-gated SQL agent method holds up on a different base model
  • Shows what carries over and what has to change
Read on Hugging Face →

RiskTune

Can a 3B model learn fraud risk from labels alone?

Tiny Aya Global (3B) · Fine-tuned on yes/no fraud labels only

  • Average precision on 2,000 test accounts: 0.574 to 0.929
  • Level with a tuned XGBoost baseline
  • Found a prompt injection in account text that let most caught fraud slip through
Read on Hugging Face →

How we work

Six steps, every model

Step 1

Pick one job

One task, one clear pass or fail. A small model does one job well.

Step 2

Build the test first

Hold out real cases before training. Score the base model so we know the starting point.

Step 3

Train small

LoRA keeps cost low. We add reinforcement learning (GRPO) when the model must follow rules, not just copy answers.

Step 4

Compare with the simple option

If a classic model like XGBoost does as well, we say so.

Step 5

Attack it

We try prompt injection and unsafe requests before anyone else does.

Step 6

Publish the numbers

Method, results, and what went wrong, in the open.

Need a small model trained for your task?

Tell us the job. We will tell you if fine-tuning is the right answer.