arXiv Science⌕ Search

arXiv subjects

Adrian Catalin Badea

Publications and source records attributed to Adrian Catalin Badea.

2 recordsLinked to original sources

Simplicity is Enough: ReAct Agents for Prompt Optimization

Prompt optimization has recently been approached with increasingly specialized search procedures and evolutionary frameworks. In this work, we ask whether such complexity is necessary to achieve competitive performance. We introduce ReAPO (ReAct Agents for Prompt Optimization), a lightweight framework that casts prompt optimization as an agentic process built around a ReAct loop augmented with evaluation and reflection tools. Rather than relying on bespoke optimization machinery, ReAPO iteratively refines prompts through error analysis, reflective reasoning, and validation against the optimization objective. We evaluate ReAPO on several established benchmarks spanning multi-hop question answering, mathematical reasoning, fact verification, instruction following, and privacy-conscious delegation, as well as on real enterprise agentic tasks. Across these settings, this agentic optimizer can match or outperform specialized prompt optimization methods, with 2-7x fewer evaluation rollouts and a lower API cost on the public benchmarks. We also report confidence intervals over multiple independent runs and show that single-run evaluations on small benchmarks can give a misleading picture of relative performance, since LLM variance may obscure true gains. Taken together, our results suggest that effective prompt optimization need not depend on increasingly elaborate search procedures and that agentic methods can provide a more efficient alternative.

cs.CL↗

Evaluating the Performance of Large Language Models in Competitive Programming: A Multi-Year, Multi-Grade Analysis

This study explores the performance of large language models (LLMs) in solving competitive programming problems from the Romanian Informatics Olympiad at the county level. Romania, a leading nation in computer science competitions, provides an ideal environment for evaluating LLM capabilities due to its rich history and stringent competition standards. We collected and analyzed a dataset comprising 304 challenges from 2002 to 2023, focusing on solutions written by LLMs in C++ and Python for these problems. Our primary goal is to understand why LLMs perform well or poorly on different tasks. We evaluated various models, including closed-source models like GPT-4 and open-weight models such as CodeLlama and RoMistral, using a standardized process involving multiple attempts and feedback rounds. The analysis revealed significant variations in LLM performance across different grades and problem types. Notably, GPT-4 showed strong performance, indicating its potential use as an educational tool for middle school students. We also observed differences in code quality and style across various LLMs

cs.SE↗