← Latest papers
🤖 machine learning

LASER: Language Model Regression for Semi-Structured Workflow Resource and Runtime Estimation

LASER is a novel framework that fine-tunes large language models on serialized semi-structured workflow configurations to accurately predict resource consumption and runtime, outperforming traditional machine learning baselines and human experts by leveraging scientific notation encoding, constrained decoding, and full-attention mechanisms.

Original authors: Yuxuan Yin, Shengke Zhou, Yunjie Zhang, Ajay Mohindra, Boxun Xu, Peng Li

Published 2026-05-18
📖 5 min read🧠 Deep dive

Original authors: Yuxuan Yin, Shengke Zhou, Yunjie Zhang, Ajay Mohindra, Boxun Xu, Peng Li

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 the manager of a massive, busy kitchen (a cloud computing system). Every day, hundreds of chefs (jobs) submit complex recipes (workflow configurations) to be cooked. Some recipes are simple, like boiling water; others are intricate, like a 10-course banquet that requires specific ovens, exact amounts of ingredients, and precise timing.

To run this kitchen efficiently, you need to know two things before you start cooking:

  1. How long will this take? (Runtime)
  2. How much fuel and space will it need? (Resources like CPU, memory, and disk)

If you guess wrong, you either waste money by ordering too much fuel (over-provisioning) or you burn the kitchen down because you didn't have enough power (under-provisioning).

The Old Way: The "Checklist" Problem

Traditionally, managers tried to predict this by turning every recipe into a long, boring checklist of numbers. They had to manually translate things like "use the aarch64 compiler" or "set Python version to 3.11" into specific numbers on a spreadsheet.

The problem? This checklist is brittle.

  • If a new tool appears in the kitchen, the checklist breaks because no one wrote a number for it.
  • It loses the story of the recipe. It sees "Python 3.11" as just a number, missing the fact that it's a specific version that behaves differently than 3.9.
  • It's like trying to predict how long a movie will take by only counting the number of pages, ignoring the plot, the actors, or the special effects.

The New Way: LASER (The "Smart Sous-Chef")

The paper introduces LASER, a system that uses a Large Language Model (LLM)—basically a super-smart AI that has read millions of recipes, code, and manuals—to act as a "Sous-Chef."

Instead of forcing recipes into a checklist, LASER reads the raw text of the job configuration. It understands the language of the recipe naturally.

  • It sees the command python script.py and understands the context.
  • It sees the dependencies and the hierarchy without needing a human to manually translate them into numbers first.

How LASER Solves Three Tricky Problems

1. The "Too Big or Too Small" Problem (Scientific Notation)
Resources vary wildly. A job might need 500 Megabytes of memory, while another needs 50 Terabytes. That's a huge gap.

  • The Analogy: Imagine trying to measure both a grain of sand and a mountain with the same ruler. It's messy.
  • The LASER Fix: LASER uses scientific notation (like 5.0×1025.0 \times 10^2). It teaches the AI to speak in "powers of ten." This allows the AI to handle tiny numbers and massive numbers equally well without getting confused or needing complex math adjustments.

2. The "Hallucination" Problem (Constrained Decoding)
When you ask a smart AI to give you numbers, it sometimes gets creative and makes things up (hallucinating). It might invent a fake file name or write a number that doesn't make sense.

  • The Analogy: Imagine asking a waiter for the bill, and they start inventing new menu items you didn't order.
  • The LASER Fix: LASER uses constrained decoding. It's like giving the waiter a pre-printed form with the exact boxes for "Time," "CPU," and "Memory." The AI is only allowed to fill in the numbers inside those boxes. It can't invent new boxes or write gibberish.
  • Bonus: Because the AI doesn't have to "think" about the structure of the sentence (since the structure is fixed), it answers 30% faster.

3. The "Long Story" Problem (Full Attention)
Some recipes are very long. A detail mentioned at the very beginning of the recipe might be crucial for a step at the very end.

  • The Analogy: Imagine reading a long novel but only remembering the last few pages. You might miss the plot twist that happened on page 1.
  • The LASER Fix: Most modern AI models only look at a "window" of text at a time (like reading a few pages at a time). LASER forces the model to use full attention, meaning it can look at the entire recipe from start to finish simultaneously. This helps it connect the dots between distant parts of the job configuration.

The Results

The authors tested LASER on two types of "kitchens":

  1. Chip Design: A highly complex, industrial kitchen where a tiny change in a script can make a job take 10 times longer.
  2. GitHub Actions: A public dataset of over 580,000 software jobs from 27,000 different repositories.

The Outcome:

  • LASER was more accurate than human experts.
  • It was better than traditional "checklist" (tabular) machine learning models.
  • It got even better as it was fed more data and used larger models (a "scaling law").
  • It could predict the needs of jobs it had never seen before, showing it learned the logic of the work, not just memorized the answers.

In short, LASER replaces the brittle, manual process of translating recipes into numbers with a smart, language-savvy AI that reads the recipe, understands the context, and gives a precise, reliable estimate of time and resources.

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 →