Skip to main content

AI Skill Test Coverage: Can we create line coverage for AI skills Eval?

Updated 2 min readMarkdown
Part of seriesTech Notes

Before getting deep into the above topic, we need to understand more on the skill lift. Attaching a link to the article on skill lift. Simple in one line, there might be n tests, run those with skill - run those without the skill. Now this gives you the effectivity of the skill.

For each line of the skill should be tagged to a test/eval. Multiple line can be tagged to a single test.

The structure can be written as:
Skill eval {
test: .......
skill used: [{0,10},{15,28},{110,128}]

}

The part of the skill used should be tagged to the eval. Now come the interesting part, we will use skill lift but this time not deleting the whole skill but just removing the part skill used. The main point is the test should fail without those lines. This guarantees that the skill is getting used.
All these removals can be done by a python script.
And the summation of all the characters used in "skill used" across all the skill tests will give us the total percentage of the skill used. That is our line coverage of the skill. Or better it is the character coverage of our skill.

I did some testing and experiment and converted it to research paper.

Read the paper: Layered Skill Coverage on Zenodo

Tagging character ranges like {15,28} to each eval is a neat way to make ablation granular, and I like the rule that the test must fail once those lines are removed. My worry is overlap, since two ranges can each look redundant on their own and still matter together. Does your python script ever remove pairs of ranges to catch that?

We can add multiple range and the remove them together. The point is instructions will matter with a group of ranges.

BBomToBe1mo ago

One guardrail: treat line coverage as explanatory metadata, not the eval score. Keep the task set and scoring fixed, then compare the full skill with targeted section ablations on held-out tasks; otherwise coverage can rise while actual outcomes regress. Disclosure: I work on Orke at BOMTOBE.

Great point. Will look into it.

AI Skill Test Coverage: Can we create line coverage