Summary: Cactus post-trained Gemma 4 E2B with a 68k parameter probe layer that reads an intermediate layer during decoding to predict the probability of being wrong. This allows the on-device model to return a confidence score (0-1) with each response, enabling developers to route low-confidence queries to more powerful cloud models. This approach achieves performance comparable to Gemini 3.1 Flash-Lite on various benchmarks while routing only 15-35% of queries.
Why it matters: This innovation offers a robust, structured way to build hybrid AI applications, optimizing cost and privacy by intelligently combining on-device and cloud models. AI builders should explore integrating similar self-correction mechanisms to improve reliability and resource efficiency in their applications.