Rank, Don't Regress: A 279M Text Ranker Beats 2B and 7B VLMs on Referential Urdu GUI Grounding

Hamza Raziq Khan, Aimal KhanarXiv 2026

TL;DR

Researchers have demonstrated that for UI grounding—the task of mapping a user instruction to a screen element—a small 279M-parameter text ranker significantly outperforms massive 2B and 7B Vision-Language Models (VLMs). By selecting elements from the page's DOM rather than guessing pixel coordinates, their model achieved 73.4% accuracy on Urdu mobile web pages, nearly tripling the performance of state-of-the-art VLMs.

What Problem Does This Paper Address?

When a computer agent is told to "open the sports section," it first needs to perform UI grounding: finding the exact coordinates of that button on the screen. The current industry standard is to use a VLM that "looks" at a screenshot and regresses (predicts) pixel coordinates.

However, this approach has three major flaws:

  1. Fragility: Coordinate regression is highly sensitive to layout changes (e.g., switching from desktop to mobile).
  2. Data Scarcity: Training these models requires massive amounts of hand-labeled data. For languages like Urdu—a right-to-left language with millions of speakers—such datasets simply don't exist.
  3. The "Readout" Limit: Even when a model knows where an object is, translating that internal knowledge into precise pixel coordinates is a notoriously difficult bottleneck for neural networks.

Methods

The authors propose a shift in perspective: Rank, don't regress. Instead of asking a model to point to a spot in a 2D image, they provide the model with a list of candidate elements extracted directly from the web page's Document Object Model (DOM).

The core of their system is a 279M-parameter cross-encoder based on mDeBERTa-v3-base. For every candidate element on a page, the model receives a text string containing the element's text, its HTML tag, ARIA labels, and its parent section heading. The model then scores each candidate against the user's instruction. The element with the highest score is the "winner," and the agent clicks its center.

They tested several variants of candidate representations:

  • MINDACT_TEXT: Only text and tag.
  • FULL: Adds attributes like ARIA labels and section headings.
  • FULL_GEO: Adds normalized bounding box coordinates as text tokens.

Datasets

The study introduces the first UI grounding results for Urdu.

  • Training Pool: 4,216 positive items generated from 12 Urdu websites (e.g., ARY News, Urdu Wikipedia).
  • Frozen Test Set: 304 instructions from six Urdu news sites (e.g., Dawn, Siasat). Crucially, these domains were "banned" from the training set to ensure the model wasn't just memorizing specific site layouts.
  • Instruction Types: The set includes "Explicit" instructions (quoting the button text) and "Referential" instructions (e.g., "the fourth link" or "the search box"), which are much harder as they require understanding the UI's structure.

Key Insights and Ideas

  • The DOM is a Cheat Code: Why try to "see" a button through pixels when the browser's underlying code already provides a clean list of every clickable element and its exact boundaries?
  • Regression vs. Selection: In a controlled experiment, a model trained to regress coordinates scored a dismal 1.6% accuracy. The exact same model trained to select from a list scored 73.4%. The output space (pixels vs. candidates) makes all the difference.
  • Referential Intelligence: The ranker excels at "referential" tasks where a simple string-match would fail. For example, it can identify "the fourth link" by learning to use position and context cues that VLMs currently struggle with in low-resource languages.
  • Efficiency Matters: A 279M-parameter model is small enough to run on a standard CPU, making it viable for "on-device" agents where hosting a 7B VLM would be impossible.

Key Results

The results show a massive performance gap between the ranking approach and traditional VLM regression:

  • Overall Accuracy: The FULL ranker scored 73.4%, while the best VLM (UI-TARS-2B) managed only 29.6%, and Qwen2.5-VL-7B trailed at 23.7%.
  • Referential Slice: On instructions that don't quote the target text, the ranker scored 65.8%, compared to just 30.2% for a basic string-matching heuristic.
  • Geometry Boost: Adding bounding box coordinates as text tokens (FULL_GEO) yielded the highest overall score of 75.7%.

Limitations and Future Work

  • Same-Text Duplicates: The model's primary failure mode occurs when multiple elements have identical text (e.g., two "Read More" buttons). While adding geometry helps, the model still sometimes picks the wrong instance.
  • Ordinal Confusion: The model struggles with instructions like "the third link" because it scores each candidate independently. It doesn't "see" the whole list at once to count positions accurately.
  • DOM Requirement: This method only works where a DOM is available (web and some mobile apps). It cannot ground elements in "black-box" environments like remote desktops, games, or canvas-based interfaces where only pixels are visible.
  • Future Directions: The authors suggest that future models should score candidates jointly to better handle lists and use more local context to distinguish between identical-looking elements.

Summary updated

Abstract

UI grounding asks a model to find the screen element that a user instruction refers to. Most current systems use a vision-language model (VLM) that reads a screenshot and outputs pixel coordinates. We study this task on Urdu mobile web pages, a setting with no published UI grounding results. Instead of regressing coordinates, we take the candidate elements from the page DOM and train a 279M-parameter cross-encoder (mDeBERTa-v3-base) to pick one. The click point is the centre of the picked element's box, so it is exact whenever the right element is picked. We built a frozen test set of 304 instructions from six Urdu news sites; 149 of them (49%) are referential and never quote the full target text. Test domains were banned from training data before collection started. The ranker scores 73.4% point-in-box accuracy, against 29.6% for UI-TARS-2B and 23.7% for Qwen2.5-VL-7B, both zero-shot. On the referential slice the ranker scores 65.8%, against 30.2% for a string-matching baseline that needs no training. In a controlled comparison at small scale, with training data drawn from the same pages, a coordinate-regression model of similar size scores 1.6%. Adding element geometry as input tokens gives the best variant, at 75.7%. The ranker's errors concentrate in two places: elements that share identical text, and ordinal instructions such as "the fourth link".
BibTeX
@misc{khan2026rank,
  author = {Hamza Raziq Khan and Aimal Khan},
  title = {{Rank, Don't Regress: A 279M Text Ranker Beats 2B and 7B VLMs on Referential Urdu GUI Grounding}},
  year = {2026},
  eprint = {2611.20145},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.20145},
}
Figure