Tech Studies

91,965 research papers, searchable by meaning as well as exact wording. So “steering vectors” also surfaces work on “activation steering.”

Papers
91,965
Semantically indexed
91,965
Subject areas
145
Authors
199,823
Newest paper
25 Nov

76 results for “code optimization”

Matched on wording only, meaning-matching is unavailable right now

1

ECO: Enhanced Code Optimization via Performance-Aware Prompting for Code-LLMs

12 Oct · Su-Hyeon Kim, Joonghyuk Hahn, Sooyoung Cha +1 · arXiv:2510.10517

Code runtime optimization-the task of rewriting a given code to a faster one-remains challenging, as it requires reasoning about performance trade-offs involving algorithmic and structural choices. Recent approaches employ code-LLMs with slow-fast code pairs provided as optimization guidance, but such pair-based methods obscure the causal factors of performance gains and often lead to superficial pattern imitation…

2

Beyond Local Code Optimization: Multi-Agent Reasoning for Software System Optimization

16 Mar · Huiyun Peng, Parth Vinod Patil, Antonio Zhong Qiu +2 · arXiv:2603.14703

Large language models and AI agents have recently shown promise in automating software performance optimization, but existing approaches predominantly rely on local, syntax-driven code transformations. This limits their ability to reason about program behavior and capture whole system performance interactions. As modern software increasingly comprises interacting components - such as microservices, databases, and…

3

Green Code or Costly Code? Evaluating the Energy Costs of Iterative LLM-Based Code Optimizations

23 Oct · Sadra Emami, Benjamin Weigell, Mohammad Reza Mousavi +3 · arXiv:2610.32891

Large Language Models (LLMs) are increasingly used to optimize code for performance. This practice often assumes that improvements in execution speed naturally translate into overall lower energy consumption. We challenge this assumption empirically by measuring whether performance-optimized code produced by LLM self-refinement pipelines is also energy-efficient relative to canonical human reference solutions, and…

Accepted at the 49th IEEE/ACM International Conference on Software Engineering (ICSE 2027) Software engineering Artificial intelligence Matched by wording
4

Pattern-Driven Evaluation of LLM Code Optimization: Isolating Compiler-Transcendent Semantic Reasoning

17 Oct · Wesley Lu, Runzhou Liu, Hongru Du +1 · arXiv:2610.24835

Existing evaluations of LLM-based code optimization primarily measure end-to-end speedup, obscuring whether a model actually performs the intended optimization. For compiled languages, this is especially problematic: observed gains may reflect transformations already recoverable by modern optimizing compilers rather than optimization behavior attributable to the model itself. We present PatternBench, a benchmark for…

Published at the AI Measurement Science Workshop at COLM 2026 Artificial intelligence Programming languages Software engineering Matched by wording
5

T-LLM Compiler: Trusted LLM-based Code Optimization and Verification Framework

15 Aug · Zahra Fazel, Sunanda Gamage, Shayan Shirahmad Gale Bagi +5 · arXiv:2608.14953

Recent advances in Large Language Models (LLMs) have opened opportunities to apply high-level code transformations to the field of code optimization, and it has since emerged as one of the most fundamental tasks for LLMs to perform; however, at present, LLMs struggle to apply wide-ranging code optimization tasks due to both the complexity of the code and the inability to independently verify the correctness of the…

6

SymRTLO: Enhancing RTL Code Optimization with LLMs and Neuron-Inspired Symbolic Reasoning

14 Apr · Yiting Wang, Wanghao Ye, Ping Guo +9 · arXiv:2504.10369

Optimizing Register Transfer Level (RTL) code is crucial for improving the power, performance, and area (PPA) of digital circuits in the early stages of synthesis. Manual rewriting, guided by synthesis feedback, can yield high-quality results but is time-consuming and error-prone. Most existing compiler-based approaches have difficulty handling complex design constraints. Large Language Model (LLM)-based methods…

7

Autocomp: A Powerful and Portable Code Optimizer for Tensor Accelerators

24 May · Charles Hong, Sahil Bhatia, Alvin Cheung +1 · arXiv:2505.18574

Hardware accelerators, especially those designed for tensor processing, have become ubiquitous in today's computing landscape. However, even with significant efforts in building compilers, programming these tensor accelerators remains challenging, leaving much of their potential underutilized. Recently, large language models (LLMs), trained on large amounts of code, have shown significant promise in code generation…

8

Reinforcement Learning for Code Optimization

28 Jul · Pierre Chambon, Kunhao Zheng, Juliette Decugis +2 · arXiv:2607.25970

RL for code correctness is now established: have the model generate a program, run it against hidden test cases, and reward solutions that pass. Extending this to code optimization seems straightforward: just add execution time to the reward. But in practice, once timing drives the reward, small problems in measurement noise, reward sparsity, or GRPO instability overwhelm the signal and make RL fail: generated…

9

A Problem-Oriented Perspective and Anchor Verification for Code Optimization

17 Jun · Tong Ye, Tengfei Ma, Xuhong Zhang +3 · arXiv:2406.11935

Large Language Models (LLMs) have shown remarkable capabilities in solving various programming tasks, such as code generation. However, their potential for code optimization, particularly in performance enhancement, remains largely unexplored. This paper investigates the capabilities of LLMs in optimizing code for minimal execution time, addressing a critical gap in current research. The recently proposed code…

10

Learning Game-Playing Agents with Generative Code Optimization

27 Aug · Zhiyi Kuang, Ryan Rong, YuCheng Yuan +1 · arXiv:2508.19506

We present a generative optimization approach for learning game-playing agents, where policies are represented as Python programs and refined using large language models (LLMs). Our method treats decision-making policies as self-evolving code, with current observation as input and an in-game action as output, enabling agents to self-improve through execution traces and natural language feedback with minimal human…

ICML 2025 Workshop on Programmatic Representations for Agent Learning, Vancouver, Canada Machine learning Artificial intelligence Matched by wording
11

Industrial LLM-based Code Optimization under Regulation: A Mixture-of-Agents Approach

5 Aug · Mari Ashiga, Vardan Voskanyan, Fateme Dinmohammadi +7 · arXiv:2508.03329

Recent advancements in Large Language Models (LLMs) for code optimization have enabled industrial platforms to automate software performance engineering at unprecedented scale and speed. Yet, organizations in regulated industries face strict constraints on which LLMs they can use - many cannot utilize commercial models due to data privacy regulations and compliance requirements, creating a significant challenge for…

Submitted to ASE'25 Industry Showcase Software engineering Artificial intelligence Matched by wording
12

COMPAS: Difficulty-Aware Joint Search for Optimizing Code Generation

5 Aug · Jingzhi Gong, Jie M. Zhang, Gunel Jahangirova +3 · arXiv:2608.04336

Code generation systems make each LLM call with a model, a prompt, and decoding settings. However, existing optimization methods usually tune only part of these choices or use one fixed configuration for all tasks: global optimizers search one configuration for all tasks, routers choose only a model, and prompt optimizers keep the model and decoding settings fixed. This leaves their joint, group-specific…

13

Rethinking LLM-Based RTL Code Optimization Via Timing Logic Metamorphosis

22 Jul · Zhihao Xu, Bixin Li, Lulu Wang · arXiv:2507.16808

Register Transfer Level(RTL) code optimization is crucial for achieving high performance and low power consumption in digital circuit design. However, traditional optimization methods often rely on manual tuning and heuristics, which can be time-consuming and error-prone. Recent studies proposed to leverage Large Language Models(LLMs) to assist in RTL code optimization. LLMs can generate optimized code snippets…

with 9 pictures and Software engineering Artificial intelligence Matched by wording
14

Tuning LLM-based Code Optimization via Meta-Prompting: An Industrial Perspective

2 Aug · Jingzhi Gong, Rafail Giavrimis, Paul Brookes +8 · arXiv:2508.01443

There is a growing interest in leveraging multiple large language models (LLMs) for automated code optimization. However, industrial platforms deploying multiple LLMs face a critical challenge: prompts optimized for one LLM often fail with others, requiring expensive model-specific prompt engineering. This cross-model prompt engineering bottleneck severely limits the practical deployment of multi-LLM systems in…

Accepted by ASE'25 Industry Showcase Software engineering Artificial intelligence Matched by wording
15

Enhancing SLMs for Sustainable Code Optimization in Radio-Astronomy

23 Jul · Elisa Chiarotto, Jingbo Li, P. Chris Broekema +1 · arXiv:2607.21677

Recent Large Language Models (LLMs) can produce and optimize complex code. We investigate the use of LLMs to generate and optimize code for large-scale sciences, focusing on radio astronomy and sustainability. The LOFAR telescope is currently being upgraded, significantly increasing the sky area observed, while simultaneously processing more data faster. However, this is expected to increase the computational…

16

Cross-Lingual Token Arbitrage: Optimizing Code Agent Context Windows via Local LLM Preprocessing

2 Jun · Mehmet Utku Colak · arXiv:2606.03618

AI-assisted coding agents are bottlenecked by input-token cost. Two pathologies of raw human input drive much of this overhead: tokenization inefficiency for non-English text and structural entropy in conversational prompts. Existing approaches act reactively by compressing already-bloated contexts or intervening after failures occur. We introduce a pre-flight, edge-side prompt-rewriting middleware that operates…

Updated References Artificial intelligence Matched by wording
17

Prior Knowledge or Search? A Study of LLM Agents in Hardware-Aware Code Optimization

19 May · Dmitry Redko, Albert Fazlyev, Konstantin Sozykin +3 · arXiv:2605.19782

LLM discovery and optimization systems are increasingly applied across domains, implementing a common propose-evaluate-revise loop. Such optimization or discovery progresses via context conditioning on received feedback from an environment. However, as modern LLM agents are increasingly complex in their structure, it is difficult to evaluate which components contribute the most, and when and how this exploration may…

18

TextBFGS: A Case-Based Reasoning Approach to Code Optimization via Error-Operator Retrieval

20 Jan · Zizheng Zhang, Yuyang Liao, Chen Chen +8 · arXiv:2602.00059

Iterative code generation with Large Language Models (LLMs) can be viewed as an optimization process guided by textual feedback. However, existing LLM self-correction methods predominantly operate in a stateless, trial-and-error manner akin to first-order search, failing to leverage past problem-solving experiences. To bridge this gap, we introduce TextBFGS, a Case-Based Reasoning (CBR) framework inspired by the…

19

Adaptive Confidence Gating in Multi-Agent Collaboration for Efficient and Optimized Code Generation

29 Jan · Haoji Zhang, Yuzhe Li, Zhenqiang Liu +3 · arXiv:2601.21469

While Large Language Models (LLMs) have catalyzed breakthroughs in automated code generation, Small Language Models (SLMs) often encounter reasoning bottlenecks and failure loops when addressing complex logical requirements. To overcome these challenges, we propose DebateCoder, a multi-agent collaborative framework designed to improve the reasoning ability of SLMs (e.g., Pangu-1B) in resource-constrained…

20

Large Language Model-Powered Evolutionary Code Optimization on a Phylogenetic Tree

20 Jan · Leyi Zhao, Weijie Huang, Yitong Guo +3 · arXiv:2601.14523

Optimizing scientific computing algorithms for modern GPUs is a labor-intensive and iterative process involving repeated code modification, benchmarking, and tuning across complex hardware and software stacks. Recent work has explored large language model (LLM)-assisted evolutionary methods for automated code optimization, but these approaches primarily rely on outcome-based selection and random mutation,…