arXiv AI By Jingzhi Gong, Jie M. Zhang, Gunel Jahangirova, Dong Huang, Mohammad Reza Mousavi, Mark Harman

COMPAS: Difficulty-Aware Joint Search for Optimizing Code Generation

Read the original on arXiv AI →

arXiv:2608. 04336v1 Announce Type: cross Abstract: Code generation systems make each LLM call with a model, a prompt, and decoding settings.

Machine-generated by The Flow from the publisher's headline and feed description — not written or checked by a human. The full article lives at arXiv AI.

arXiv AI
5d ago

Simplicity Goes Far: Auditing Prompt Optimizers with Demonstration-Conditioned Prompt Search

The paper introduces Demonstration-Conditioned Prompt Search (DCPS), a generate‑and‑select control that freezes the prompt generator and evaluates candidates on validation data using randomly sampled demonstrations. DCPS matches the performance of more complex prompt optimizers—such as PPO in StablePrompt and GEPA in DSPy—while using significantly fewer rollouts and lower API costs. The study shows that much of the benefit of advanced optimizers comes from the generate‑and‑select step, with additional mechanisms helping mainly on open‑ended or reasoning‑heavy tasks.

By Bohe Chen
arXiv Computation and Language
Nov 5

LLM Agents Already Know When to Call Tools -- Even Without Reasoning

The paper introduces When2Tool, a benchmark of 18 environments that categorizes tasks by whether a tool call is necessary, covering computational scale, knowledge boundaries, and execution reliability. It evaluates two training‑free baselines—Prompt‑only and Reason‑then‑Act—finding they inadequately control tool usage. By probing hidden states, the authors discover that models can predict tool necessity with high accuracy, leading to the Probe&Prefill method that reduces unnecessary tool calls by 38% with minimal accuracy loss.

By Chung-En Sun, Linbo Liu, Ge Yan, Zimo Wang, Tsui-Wei Weng