Back to the research lab · Versione italiana

An experiment from DL Frontier Lab · 5 min read

Distill: testing ways to use fewer AI tokens

We are testing how to send AI less text while keeping the information it needs. Explore the results, limitations and a kit you can try.

How much text can we remove before the AI’s work suffers?

The project: give AI less text to read

Long-running projects can leave an AI system with pages of conversations, documents and earlier decisions to read. That text uses tokens: the units a model counts when reading and writing. Distill is our experimental project to reduce those tokens while keeping the information needed to do the task well.

Suppose an agent is resuming work on a website. Does it need the entire history, or just the completed work, pending checks and current decisions? We tested both requests on the same model. In that case, input fell by 78.4% and all ten checked facts survived. One recommendation was still wrong. A lower token count alone is not enough for us to accept the result.

You can download a worksheet for selecting information from your own project, with a complete example, three case sources and the comparison data. You fill it in and check it yourself; the kit does not contain software that automatically compresses your conversations. No installation, account or data upload is required. Start with the English or Italian README.

Download worksheet, example and data · ZIP

What the AI needed to understand in our test

The test took place on 6 October 2026, during our work to make this site findable on Google. Some addresses had already been fixed, and Google had accepted two indexing requests the day before. We still needed to check which address Google treated as the main one for each page.

The shorter input had to preserve an important distinction: Google accepting a request does not mean the page is already indexed. It also had to retain the fact that the address problems were fixed, so the AI would not propose doing the same work again.

The next task was to inspect both pages in Google Search Console on 12 October and save the results. The worksheet above records that historical situation, not the site’s current status. The pack includes the three sources you need to check the case.

The results: from 27,781 to 5,991 input tokens

We ran the same task on a local model, first with the full context and then with selected sections. Input fell from 27,781 to 5,991 tokens: a 78.4% reduction. All ten facts in our check still appeared in the answer. That verifies those ten facts; it does not establish that every nuance of the text survived.

The answer based on the shorter input suggested stopping the monitoring if impressions did not exceed ten. Impressions count appearances in search results; our procedure contained no such threshold. We rejected the recommendation. To use fewer tokens in real work, we also need to check what the AI proposes doing with the information retained.

The full request took 64.98 seconds; an identical repeat took 28.23. The shorter request took 31.22, so it was not the fastest. Cache behaviour was not measured. These times exclude preparation and review, and we did not account for hardware or electricity. This test shows a shorter input, not an overall financial saving.

Try it on your own project

Download the pack and open the blank worksheet. Choose a task you are about to give an AI and three facts it needs to complete it. For each fact, record its source document and date. If you cannot find the source, mark the fact as unverified.

Add completed work, current decisions and actions that require permission. Then record the intended next step, who is responsible and the expected result. Use the worksheet to assess how much text you actually need, keeping the originals available for checking.

Before acting, compare the answer with those sources. Are the facts right? Is the proposed action justified and authorised? If information is missing or the answer invents a new rule, retrieve the evidence and correct it. The README also contains a deliberately altered example to help you recognise the failure.

What we still need to establish

For a short project, an up-to-date manual note may be enough. You can keep it in Git, which tracks file versions. The worksheet helps you select and check the information you give the AI; it does not replace document history.

Context compaction tools and structured summaries already exist. The README links to OpenAI, LLMLingua and Factory. We are studying how to shorten input for real tasks and which checks that requires. We have not demonstrated an advantage over those systems.

Early Distill experiments counted words, not tokens. An 83.2% reduction retained five facts; another lost two deadlines and was rejected. Those measurements remain separate from the 6 October token comparison.

The current result concerns one task and one model. We need tests on other projects and a measure of the work involved in preparing and checking the shorter text. The goal remains fewer tokens without compromising the result. The kit already lets you try the approach and examine its limits.