cd /news/machine-learning/llm-based-embeddings-for-program-ana… · home topics machine-learning article
[ARTICLE · art-91502] src=machinebrief.com ↗ pub= topic=machine-learning verified=true sentiment=· neutral

LLM-Based Embeddings for Program Analysis and Optimization

Researchers introduced the first application of program embeddings from LLMCompiler, an LLM pretrained on intermediate representation (IR) code, to program analysis and optimization tasks. Combining source and IR code embeddings achieved a 1.54% error rate in algorithm classification, a 12% improvement over the current state-of-the-art, and competitive accuracy on heterogeneous device mapping. The findings suggest that training a performance-aware LLM for embedding IR code could yield state-of-the-art results in code optimization.

read1 min views1 publishedAug 11, 2026

arXiv:2608.07894v1 Announce Type: new Abstract: Recent advances have highlighted the potential of machine learning, particularly Large Language Models (LLMs), for analyzing and optimizing programs. We present the first application of program embeddings from LLMCompiler---an LLM massively pretrained on intermediate representation (IR) code---to representative program analysis and optimization tasks. We generate program embeddings directly from source and IR code using a simple approach: split programs into chunks, independently embed each chunk with pretrained LLMs, and then aggregate the chunk embeddings into a single program embedding. Our experiments show that combining source and IR code embeddings achieves an error rate of 1.54% in algorithm classification, a 12% improvement over the current state-of-the-art, and a competitive accuracy on heterogeneous device mapping. These findings suggest that training a performance-aware LLM for embedding IR code might yield state-of-the-art results in code optimization tasks.

── more in #machine-learning 4 stories · sorted by recency
── more on @llmcompiler 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/llm-based-embeddings…] indexed:0 read:1min 2026-08-11 ·