Easy-vs-Hard Queries

  • Last Updated 31 May, 2026
  • by David Spuler, Ph.D.

What is Easy-vs-Hard Query Optimization?

This optimization is based on the observation in LLM theory that some queries are "easy" to compute, whereas others are "hard" to predict. This has the obvious optimization idea of sending the easy queries to a small model, and only doing full computation of a large model on the "hard" queries.

This idea is a type of "adaptive inference" where the model does different computations according to the inputs. Some of the ways to do this include:

Easy-Hard LLMs: Book Excerpts and Blog Articles

Free online book excerpts with full text chapters online and free PDF downloads, and the Aussie AI blog, including related articles:

Research on Easy-Hard Architectures

Various papers have examined the easy-versus-hard query distinction and related optimizations:

More AI Research

Read more about: