From Imperative to Declarative: Towards LLM-friendly OS Interfaces for Boosted Computer-Use Agents

This paper introduces the Declarative Model Interface (DMI), a novel OS abstraction that separates high-level semantic planning from low-level interaction mechanisms to transform human-oriented GUIs into LLM-friendly primitives, thereby significantly boosting computer-use agent success rates and reducing interaction steps without requiring application source code modifications.

Original authors: Yuan Wang, Mingyu Li, Haibo Chen

Published 2026-03-26
📖 4 min read☕ Coffee break read

Original authors: Yuan Wang, Mingyu Li, Haibo Chen

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to teach a brilliant but very literal robot how to use a computer. This robot (the AI) is incredibly smart at understanding complex instructions, but it has two major weaknesses:

  1. It's bad at "fine motor skills": It struggles with the tiny, precise movements needed to click a specific button, drag a scrollbar, or scroll through a menu.
  2. It gets tired easily: Every time it has to look at the screen, figure out where to click, and then click, it uses up a huge amount of its "brain power" (computing cost) and time.

Currently, we force this robot to use Graphical User Interfaces (GUIs)—the same screens with menus, icons, and buttons that humans use. This is like asking a master chef to cook a meal by manually turning every single valve on a gas stove, one by one, while also trying to read the recipe. It's slow, prone to mistakes, and exhausting.

The Problem: The "Human" Interface

The paper argues that current computer screens are designed for humans, not robots.

  • For Humans: We are great at seeing a picture and saying, "Oh, that's a blue button, I'll click it." We don't need to know the code behind it.
  • For Robots: They are terrible at guessing where a button is on a messy screen. They have to plan a long, step-by-step journey: "Move mouse to X, click, wait for menu to open, move to Y, click..." If they miss one step, the whole plan fails.

The Solution: The "Declarative Model Interface" (DMI)

The authors propose a new way for computers to talk to robots called DMI. Think of DMI as a specialized translator or a concierge that sits between the robot and the computer screen.

Instead of the robot giving a long list of physical instructions, it simply tells the concierge what it wants to happen.

The Three Magic Tools of DMI

DMI turns the messy computer screen into three simple, magic commands:

  1. Access (The "Find Me" Button):

    • Old Way: "Move mouse to the top left, click 'File', wait, move to 'New', click 'Word Document'..."
    • DMI Way: "Go to the 'New Word Document' button."
    • Analogy: Instead of giving the robot a map and telling it to turn left at the bakery, right at the library, and then knock on the door, you just say, "Go to the library." The robot (via DMI) knows exactly how to get there without getting lost.
  2. State (The "Set It" Button):

    • Old Way: "Click the scrollbar, drag it down a little, look at the screen, drag it a bit more, look again..."
    • DMI Way: "Set the scrollbar to 80%."
    • Analogy: Instead of telling a driver to "press the gas pedal until you see the mountain," you just say, "Drive to the mountain." The car (DMI) handles the steering and speed automatically.
  3. Observation (The "Tell Me" Button):

    • Old Way: "Take a picture of the screen, read the text, tell me what it says."
    • DMI Way: "What is the text in this box?"
    • Analogy: Instead of asking the robot to squint at a blurry sign and guess the words, you just ask the sign itself, "What do you say?"

Why This Changes Everything

The paper calls this "Policy vs. Mechanism Separation."

  • Policy (The Plan): This is the "What." The robot decides, "I need to make the background blue."
  • Mechanism (The How): This is the "How." The robot used to have to figure out, "Click here, then there, then drag this."

DMI takes the "How" away from the robot and gives it to the computer system. The robot only has to worry about the "What."

The Results:
When the researchers tested this with Microsoft Office (Word, Excel, PowerPoint):

  • Success Rate: The robots got the job done 67% more often.
  • Speed: They finished tasks 43% faster because they didn't have to take 20 tiny steps to do one big thing.
  • Efficiency: In over 60% of cases, the robot could finish the whole task with just one single instruction to the computer, rather than a long back-and-forth conversation.

The Bottom Line

This paper suggests that we shouldn't force AI to act like a human clicking a mouse. Instead, we should build computer interfaces that speak the AI's language: direct, declarative, and high-level.

It's the difference between telling a genie, "Rub the lamp, then say 'I wish for a sandwich,' then wait for the smoke to clear," versus just saying, "I wish for a sandwich." The genie (DMI) handles the magic; the wisher (the AI) just focuses on the goal.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →