What does Gemini think about your brand?

Inside Chrome Dev, there’s a quantized version of Google’s flagship model Gemini for those who have it enabled. The model does many things from summarization, translation, writing assistance all the way to scam prevention. The model definition is a secret, but its weights are stored as a 3GB .bin file on the user machine.

Inside \User Data\optimization_guide_model_store\55\ folder is a file called on_device_model_execution_config.pb which defines a prompt for Gemini’s role in scam detection.

Reverse engineered it looks approximately as this:

-optimization_guide.proto.ScamDetectionRequest
You are a web page text scanner. Your task is to carefully review text from a web page.

The following text is extracted from a web page.
Answer the following questions:
1) What brand does the page represent?
2) Summarize the intent of the page in one sentence. Do not leak PII data.

You should output your answers strictly in the following JSON format, but do NOT use markdown:
{"brand": "<brand>", "intent": "<intent>"}

.optimization_guide.proto.ScamDetectionResponse

The model receives clean text from Chrome and returns two items:

  • Brand
  • Intent

Here’s an example of the above implemented with trafilatura and Gemma, a distilled version of Gemini with approximately equal capability as Gemini Nano.

Google’s on-device scam detection classifier then takes over and makes a decision on whether the page is trustworthy or not.


Comments

2 responses to “What does Gemini think about your brand?”

  1. Freaking cool. This gives a different perspectives that computing power happens at the end users devices. As web is vast, this makes sense too.

    And also, this is the reason more ram is needed for the chrome browsers too. As there are so many memes around chrome using so much computing resources like cpu, ram even for normal browsing.

    Chrome always auto updating to the latest versions.

    Thank you for these Dejan.

  2. It’s a fascinating topic and I really enjoyed the insights here (will check them probably today), but I think there’s an opportunity to dive even deeper like adding more diverse examples and providing a bit more detail would make the article even better.

Leave a Reply

Your email address will not be published. Required fields are marked *