iCreatAI News
Skip to content
Trending storyPast story

Google releases tutorial on lightweight classifier routing for Gemini

1 reports1 sources22 days agoUpdated

Understand this story

AI overview

Google Developers Blog published an engineering practice tutorial proposing that before tasks enter expensive inference models, a lightweight classifier first routes requests to different Gemini models and thinking levels to reduce unnecessary costs. The tutorial's measurements are based on 50 auto-graded coding agent tasks, using TypeSafe's Jev classifier: on 34 unseen tasks the classification agreement rate was 100%, and across all 50 tasks it reached 96%. Google states it has no partnership with TypeSafe, and the article does not constitute an endorsement of TypeSafe or its products; the benchmark code will be released after open-source review. Google recommends users first measure accuracy and latency on their own tasks before switching, and notes that self-hosted models are billed by GPU hours rather than by token.

AI overview based on source reports · Updated 21 days ago

Coverage timeline

Follow the coverage to explore different perspectives.

Nov 3
  1. Google Developers Blog
    Cost per task: Using cheap classifiers to route across Gemini models and thinking levels

    The article argues that cost per successful task, not price per token, governs production economics for coding agents, and reports a 50-question auto-graded benchmark routing tasks with TypeSafe's Jev classifier across Gemini configurations. A frozen regex and prompt-length heuristic scored 93.8% on 16 development questions but fell 23.2 points to 70.6% on 34 held-out tasks, while Jev agreed with hand labels on all 34 and 48 of 50 overall; capping maxOutputTokens at 300 saved nothing on easy tasks and broke 7 of 25 hard ones. A router sending tasks to Flash-Lite first and escalating Jev-flagged complex ones to Flash on low thinking solved all 50, as did Flash on low thinking alone, and the article notes caching favors keeping long context-heavy turns on one model.