INQUIRING LINE

Why do AI models that can both read a screen and follow layout rules still fail when asked to do both at once?

Why do multimodal LLMs fail at identifying UI elements and respecting layout constraints simultaneously?

This explores why multimodal models break down when one task asks them to do two things at once: work out what is on a screen or page (which button is which, what an icon means) and produce or act on output that has to obey spatial rules (where things go, what fits where, what has to hold across the whole page).


This explores why multimodal models break down when one task asks them to both understand what's in front of them and respect spatial or structural rules at the same time. No paper in the collection tests that exact pairing head-on. Several lines of work do point to the same cause: the failure comes less from either skill alone than from making one model do both in a single pass. The clearest case is OmniParser. GPT-4V struggled when it had to work out what each icon on a raw screenshot meant and also decide what to click. Once the screenshot was first parsed into labeled elements with descriptions, the model only had to choose the action, and that bottleneck went away Why do vision-only GUI agents struggle with screen interpretation?. Agent S reached a similar result from the other direction. It gives the agent a screenshot plus an accessibility tree (the structured list of on-screen elements that screen readers use), and it separates planning from grounding, meaning the step of matching a plan to the exact element on screen. That split beat end-to-end prediction Can structured interfaces help language models control GUIs better?.

The layout half of the problem has its own weak point, and it shows up well outside GUIs. In tests on floorplans, language models calculated distances and angles reliably but fell apart on combining areas, irregular shapes and multi-step path planning. The authors trace this to the models lacking a consistent internal picture of space, not to arithmetic errors Can language models reason reliably about indoor spatial layouts?. Room layouts generated by GPT show the same weakness in what the model produces: about 55% had structural flaws such as furniture bunched together, missing objects or wrong orientations Why do GPT-generated room layouts fail so often?. So asking a model to recognize elements and also keep spatial constraints stacks a hard perception task on top of a reasoning skill that is already fragile.

Accessibility repair shows a related split between local and global work. LLMs fixed individual HTML elements well, improving compliance in 80% of files Can LLMs actually fix web accessibility problems?. Yet they fully fixed fewer than 26% of files, because rules that apply across the whole document need a view of the entire page structure that the model doesn't hold Why do LLM accessibility repairs fail at the document level?. Feeding checker results back into generation helped, but subtle constraints such as keyboard navigation and focus order still slipped through Can feeding accessibility violations back into code generation improve results?. The pattern: models are good at "this element is wrong," and much worse at "this arrangement breaks a rule that spans the page."

There's also an architectural angle. Vision and language can compete for the same model capacity. One line of work argues this competition comes from how capacity is allocated, not from the two being incompatible, and that Mixture of Experts layers, which send each token to its own specialized sub-network, let the two coexist Can we solve modality competition through architectural design?. DocLLM takes a lighter route. It skips the image encoder entirely and feeds the model bounding-box coordinates, so layout arrives as explicit structure instead of something the model has to infer from pixels Can bounding boxes replace image encoders for document understanding?.

The most practical takeaway is that a working fix exists: render the output and check it, instead of trusting the model to keep layout in mind. RRVF rewards a model for how closely its rendered code matches the target image. Checking a match is much easier than producing the code, so it makes a usable training signal Can visual matching alone train image-to-code models without text?. ReLook uses a multimodal critic to score screenshots of generated front-end pages, and it gives zero reward to anything that fails to render so the model can't game the score Can multimodal LLMs judge front-end code quality better than tests?. Taken together, the collection suggests that these models don't so much lack the two abilities as get overloaded when one forward pass has to carry both, and the systems that work tend to give either the perception or the layout check to something outside the model.


Sources 11 notes

Why do vision-only GUI agents struggle with screen interpretation?

OmniParser demonstrates that GPT-4V fails when forced to simultaneously identify icon meanings and predict actions from raw screenshots. Pre-parsing screenshots into structured semantic elements with descriptions lets the model focus solely on action prediction, removing the composite-task bottleneck.

Can structured interfaces help language models control GUIs better?

Agent S's dual-input design—visual input for environmental understanding plus image-augmented accessibility trees for grounding—achieved 9.37% improvement over baseline by factoring planning and grounding into separate optimization paths rather than forcing end-to-end prediction.

Can language models reason reliably about indoor spatial layouts?

Testing 15 models on 2,000 floorplans reveals they handle simple metrics like distance and angle correctly but collapse on area unions, irregular polygons, and multi-step path planning. Failures appear rooted in lacking unified internal spatial models rather than insufficient computation.

Why do GPT-generated room layouts fail so often?

About 55% of Holodeck's GPT-generated layouts contained structural flaws including under-population, clustering, and wrong object counts or orientations. OptiScene required manual filtering and correction before the layouts could train downstream models.

Can LLMs actually fix web accessibility problems?

Testing Kimi K2.5 on real HTML pages shows LLM-generated repairs improve compliance in 80% of cases and reduce violations per file from 3.98 to 1.7, yet fully resolve fewer than 26% of files. Iterating repairs increases cost 52% with no improvement.

Show all 11 sources
Why do LLM accessibility repairs fail at the document level?

LLMs achieve 80% partial compliance improvement but only 26% full resolution because they excel at element-level fixes but lack a global DOM view needed for document-wide rules. Scope-matched repair strategies pairing LLMs with deterministic validators could address this limitation.

Can feeding accessibility violations back into code generation improve results?

FeedA11y's ReAct-based feedback loop significantly outperforms zero-shot, few-shot, and self-criticism prompting by iteratively feeding evaluator results back into generation. However, it still struggles with nuanced ARIA constraints like keyboard navigation and focus management, suggesting evaluator feedback alone cannot substitute for domain expertise.

Can we solve modality competition through architectural design?

Modality competition arises from caption distributional shift and rigid dense capacity allocation, not from vision and language being fundamentally incompatible. Mixture of Experts resolves the architectural bottleneck by allocating capacity per token, enabling modalities to coexist without competing.

Can bounding boxes replace image encoders for document understanding?

DocLLM shows that bounding-box spatial information combined with decomposed transformer attention can capture text-spatial alignment in documents without pixel-based visual encoding. Pretraining on text-infilling objectives suited to irregular layouts achieves this at substantially lower computational cost than multimodal LLMs using image encoders.

Can visual matching alone train image-to-code models without text?

RRVF rewards MLLMs for how closely rendered code output matches the source image, not for matching ground-truth text or code. This leverages asymmetry-of-verification: checking if rendered output matches is easier than generating code, making visual similarity a tractable RL reward signal.

Can multimodal LLMs judge front-end code quality better than tests?

ReLook trains a reward model on visual screenshots rather than unit tests, using a strict zero-reward rule for invalid renders to prevent reward hacking. It outperformed baselines across three benchmarks by embedding pixel-level visual judgment into the policy training loop.

Papers this line draws on 8

The research behind the notes this line reads — ranked by how closely each paper relates.