InfiGUI-G1 icon indicating copy to clipboard operation
InfiGUI-G1 copied to clipboard

A question about Multi-Answer Generation

Open xray1111 opened this issue 1 year ago • 1 comments

Hi!

Very great work and thank you for your sharing!

I'd like to understand a few things, please correct me if I'm wrong:

  1. I guess, the M candidate points in each rollout is also auto-regressivelly generated, induced by a specific prompt?
  2. What is the exact prompt in rollout process?
  3. Do we still get M candidate points If we use the trained policy in inference mode?

xray1111 avatar Oct 21 '25 08:10 xray1111

Hi @xray1111,

Thanks for your kind words and for the thoughtful questions! Glad to clarify:

  1. Yes, the M candidate points in each rollout are generated auto-regressively within a single forward pass.

  2. The exact rollout prompt is as follows:

    f"""<image>The screen's resolution is {image_width}x{image_height}. 
    Locate the UI element(s) for "{sample['instruction']}", 
    output the coordinates using JSON format: [{{"point_2d": [x, y]}}, ...]"""
    
  3. Yes, during inference the model still produces M candidate points, but we typically take only the first one for evaluation or deployment — since the model is trained to rank higher-confidence predictions earlier in the sequence.

Hope this helps! Feel free to open another issue if you have any other questions.

Sirius-L1 avatar Oct 23 '25 06:10 Sirius-L1