About Kaimei

Models should be able to explain themselves.

Kaimei means to clarify, to elucidate, to reveal through investigation. We build the tools that let teams do exactly that with the machine-learning models they already run.

Why we exist

Accuracy is not accountability.

Machine learning now decides who gets a loan, which claim gets a second look and what a patient is told to watch for. Most of those models are black boxes, judged by an accuracy number and trusted until something goes wrong.

A model can be right for the wrong reasons. Two models can agree on an answer while believing opposite things about the world. A production feed can start sending a field in the wrong units and nothing in a test suite will notice, while every prediction quietly moves.

Kaimei exists so that every one of those models can answer the question the people affected by it are entitled to ask: why? We attach to the models teams already have, in the frameworks they already use, and give every prediction its reasons, every model its anatomy, and every deployment a watch.

解明
解
kai
to untie, to solve
明
mei
bright, clear

kaimei · to clarify, to elucidate, to reveal through investigation

Same passenger, two models

Two models agree. Ask them why.

Accuracy tells you what a model got right. It never tells you why. Here is one passenger from the open Titanic example, scored by a random forest and by a logistic regression.

Attributions for Mr Braund in percentage points of P(survived). The random forest predicts 7.4%, the logistic regression 12.8%; both say he died. Logistic regression values are approximate.
InputRandom forestLogistic regression
Sex = male−12.1about −21.8
Title = Mr−11.0about 0.0
Pclass = 3−4.5about −10.9
IsAlone = no−0.2about +6.3
Fare = 7.25 GBP−4.1about −0.7
Age = 22−0.6about +3.6
SibSp = 1−0.2about −3.0
Embarked = Southampton−0.8about −0.3
FamSize = 2−0.0about −0.6
Parch = 0−0.2about +0.1
  1. 01The answer

    Both say he died.

    Two models score the same passenger: Mr Owen Harris Braund, 22, third class, travelling with his brother. The random forest gives him a 7.4% chance of surviving, the logistic regression 12.8%. Both are around 80% accurate. A leaderboard stops here.

  2. 02The reasons

    Kaimei opens both.

    The same explanation, run on each model for the same input. Each bar is one input pushing P(survived) toward survival or away from it, in percentage points. The rows line up, so you can read straight across.

  3. 03Where they agree

    He was an adult man.

    Sex and title are two encodings of one fact. Together they cost him 22 to 23 points in both models. The forest splits that between the two inputs. The regression puts nearly all of it on Sex.

  4. 04Where they split

    The regression cannot read his title.

    Titles are stored by alphabetical position, which a linear model can only weigh up or down. So Title = Mr gives it almost nothing, and it leans on class more than twice as hard. The forest also holds his cheap fare against him. The regression barely does.

  5. 05Opposite pulls

    Some inputs pull the other way.

    In the regression, travelling with his brother (IsAlone = no) and his age push toward survival. In the forest, both push slightly away. A sibling aboard costs him 3 points in one model and almost nothing in the other.

  6. 06The what-if

    So they disagree about what would save him.

    Ask each for the smallest change to his ticket that flips the answer, all else held fixed. The regression: first class instead of third, and he survives, 12.8% to 54.1%. The forest: no ticket is enough. Its best, a 57.81 GBP fare, reaches 33.9%.

Same answer. Different reasons. Only one of them you can defend.

Both models are around 80% accurate. Only their explanations show that one of them cannot read a passenger’s title, makes up for it with class, and so believes a ticket alone could have saved him. Kaimei explains every model you upload the same way, so you can compare their reasons before one goes live.

  • explainEvery prediction, explainedKernelSHAP, permutation Shapley or LIME, plus counterfactuals that keep the inputs you choose fixed.
  • analyseEvery model, analysedImportance, learned rules, behaviour curves and interactions across the reference data.
  • versionsEvery version, comparedShip v2 under the same model, keep v1’s history, and compare their insights side by side.

From notebook 01 of the open Titanic example. Random forest attributions are exact KernelSHAP over 58 reference passengers. Logistic regression attributions, and the sums and gaps that use them, are read off the notebook’s comparison chart and rounded to 0.1 points (marked ≈). Predictions, accuracies (5-fold cross-validation) and what-ifs are the notebook’s printed output.

What we believe

Four commitments that shape every feature we ship.

Reasons, not just scores

A prediction without its reasons is a guess with a confidence interval. Every output Kaimei produces comes with the inputs that moved it, in the output's own units.

Exact where possible, honest where not

When a model is small enough we enumerate rather than sample, and say so. When we approximate, the method and its limits are part of the response, not a footnote.

Private by design

We never store your model file. Upload shapes only, or keep the model behind your own endpoint, and Kaimei still does its job without your weights leaving home.

Open by default

An Apache-2.0 client, a plain REST API and examples that run end to end in public notebooks. If a capability is described on this site, you can reproduce it yourself.

How we work

A small technical team, one public example, and no claim we cannot show.

01

Everyone builds

Everyone who works on Kaimei writes code and reads the research. The person who answers your issue is usually the person who built the feature.

02

One dataset, every claim

Every capability is exercised on the same public example before we describe it. What the documentation shows is what the product does, with the outputs committed.

Build this with us.

We are a small team working on a hard, important problem. If that sounds like your kind of work, or you want Kaimei on your models, we would like to hear from you.