r/MachineLearning • • 2d ago

Research Structure-first AI execution: Can we determine whether inference is necessary before invoking an LLM? [R]

We recently published our research on KORA, an architecture that prioritizes structured execution before model inference.

While much of AI research focuses on improving model capabilities and inference efficiency, we explore a different question: Can unnecessary inference be avoided at the architectural level?

In our controlled 100-task benchmark, KORA avoided 80% of simulated model calls with zero mismatches on deterministic tasks.

These results are limited to the evaluated benchmark and should not be interpreted as production-level cost savings.

We are particularly interested in feedback on:

  • Task classification before inference
  • Deterministic execution versus probabilistic inference
  • Evaluation methodology and benchmark design
  • Generalization to real-world workloads

The paper, implementation, and reproducible benchmarks are publicly available.

Paper: https://arxiv.org/abs/2610.35869

GitHub: https://github.com/Krako-Labs/KORA

Krako Labs: https://krako.xyz

Disclosure: I'm one of the authors and a founder of Krako Labs.

6 Upvotes

5 comments sorted by

2

u/yhjung012 2d ago

Do you have a benchmark against deterministic algorithm? For instance if you were to pair task classification with something like pagerank, what's the benefit that this workflow provides?

2

u/NervousPengwin 1d ago

The closest comparison we’ve run is a hand-configured router with the same rules and tools as KORA. On 2,400 tasks with known policies, both got all 2,400 answers right and each made 30 fallback model calls. KORA also used one earlier model call to generate the policy. So we saw no accuracy or runtime model-call advantage over that baseline.

I don’t have a published comparison with a classifier plus PageRank. In the setup you have in mind, would PageRank rank the candidate routes or the documents a route retrieves? I’d want to test against the version you actually mean. Benchmark results

2

u/yhjung012 22h ago

I was thinking the document route retrieval. So, if you were to use algorithms for connecting tokenized request string and tokenized documents and then compared to the KORA's deterministic route, what is the ultimate benefit?

1

u/NervousPengwin 11h ago

For document ranking itself, we haven’t shown a benefit over your approach. I’d keep the corpus and PageRank retriever identical and add KORA in front of just one run. Then I’d check how often it skips retrieval on a known FAQ, how often it skips a document it actually needed, and what that does to answer quality and latency. Our published demo doesn’t answer that comparison yet.