HyperAIHyperAI

Command Palette

Search for a command to run...

CVEvolve: 구조화되지 않은 과학적 데이터 처리를 위한 자율적 알고리즘 발견

Ming Du Xiangyu Yin Yanqi Luo Dishant Beniwal Songyuan Tang Hemant Sharma Mathew J. Cherukara

초록

과학 데이터 처리는 종종 특정 작업 전용 알고리즘이나 AI 모델을 필요로 하며, 이는 자신의 데이터를 분석해야 하지만 광범위한 컴퓨팅 또는 이미지 처리 전문 지식을 갖추지 않은 도메인 과학자에게 장벽으로 작용합니다. 이러한 장벽은 데이터에 노이즈가 많거나 역동 범위(dynamic range)가 넓고, 레이블이 희소하며, 요구사항이 느슨하게 지정된 경우 특히 두드러집니다. 본 연구에서는 과학 데이터 처리 알고리즘 발굴을 위한 제로-코드(zero-code) 인터페이스를 갖춘 자율 에이전트용 프레임워크인 CVEvolve를 소개합니다. CVEvolve는 다중 라운드 탐색 전략과 코드 실행, 평가 구현, 이력 관리, 홀드아웃(holdout) 테스트, 그리고 선택적인 과학 데이터 및 시각화 결과 검사 도구를 결합합니다. 이 탐색 과정은 발굴(discovery) 및 개선(action) 작업을 번갈아 수행하며, 탐색(exploration)과 활용(exploitation) 사이의 균형을 맞추기 위해 계보(lineage) 인식 확률적 후보 샘플링(lineage-aware stochastic candidate sampling)을 사용합니다. 본 연구는 X선 형광 현미경 이미지 등록(x-ray fluorescence microscopy image registration), 브래그 피크(Bragg peak) 탐지, 그리고 고에너지 회절 현미경(high-energy diffraction microscopy) 이미지 분할 작업을 통해 CVEvolve의 유효성을 입증했습니다. 이러한 작업 전반에 걸쳐 CVEvolve는 기본(baseline) 방법론보다 향상된 알고리즘을 발굴하였으며, 홀드아웃 테스트 추적은 이후 과도하게 최적화된(over-optimized) 대안들보다 일반화 성능이 더 우수한 후보군을 식별하는 데 도움을 주었습니다.

One-sentence Summary

CVEvolve, an autonomous agentic harness with a zero-code interface, discovers scientific data-processing algorithms by combining a multi-round search strategy with lineage-aware stochastic candidate sampling to balance exploration and exploitation, demonstrating improvements over baseline methods on x-ray fluorescence microscopy image registration, Bragg peak detection, and high-energy diffraction microscopy image segmentation while utilizing holdout test tracking to identify candidates that generalize better than later over-optimized alternatives.

Key Contributions

  • This work introduces CVEvolve, an autonomous agentic harness featuring a zero-code interface for scientific data-processing algorithm discovery. The system combines a multi-round search strategy with tools for code execution, evaluation implementation, and history management.
  • The framework employs a dynamic workflow that grants agents freedom to configure development environments and translate user-provided metric descriptions into executable evaluation procedures. Lineage-aware stochastic candidate sampling balances exploration and exploitation during the search process.
  • Experiments demonstrate the framework on representative scientific imaging problems such as X-ray fluorescence microscopy image registration and Bragg peak detection. Results show the agent synthesizes algorithms that rival or exceed manual baselines while using holdout test tracking to ensure robust generalization.

Introduction

Domain scientists frequently encounter bottlenecks when processing complex unstructured data such as microscopy images due to a lack of specialized programming expertise. Prior automated research systems typically rely on structured optimization problems with predefined evaluators, which limits their ability to handle the noisy or variable nature of real-world scientific datasets. To address this challenge, the authors introduce CVEvolve, an autonomous agentic harness designed for zero-code algorithm discovery. The system employs a multi-round search strategy alongside tools for code execution, visual inspection, and agent-managed holdout testing to prevent over-optimization. CVEvolve translates natural language instructions into robust processing pipelines, allowing scientists to develop task-specific algorithms without writing custom evaluation scripts.

Method

CVEvolve is designed as an autonomous search controller wrapped around a large language model (LLM) agent. The system leverages code, data, evaluation, history, and visualization tools to propose, run, and evaluate candidate algorithms. The overall workflow is structured into three primary stages: workspace preparation, baseline evaluation, and algorithm development. Refer to the framework diagram for a comprehensive view of these stages and their interactions.

During the intake stage, the agent prepares the workspace, builds the environment, and implements the performance evaluation. The baseline evaluation stage follows, where the agent assesses user-provided or suggested baseline algorithms to establish a performance benchmark. The core of the system lies in the algorithm development stage, which operates through a series of rounds. In each round, a harness selects one of three actions with distinct strategic focuses: generate, tune, or evolve. The generate action proposes new algorithm types, the tune action improves existing candidates, and the evolve action combines multiple existing candidates. For rounds involving parent candidates, the system employs lineage-aware sampling inspired by MAP-Elites. A holdout test may optionally run at the end of each round on a separate dataset using a dedicated agent to handle unstructured data and evaluation schemes.

To manage the search state, CVEvolve utilizes a persistent relational database. This SQL-backed store retains the candidate pool, round history, and metric definitions, allowing the agent to query past performance and lineage information without relying on in-context memory or vector stores. This design ensures reproducibility and deterministic ranking. Candidate sampling for tune and evolve rounds uses a stochastic approach based on a Gibbs distribution. Let ri{1,2,}r_i \in \{1, 2, \ldots\}ri{1,2,} denote the rank of candidate iii in the eligible pool, where ri=1r_i = 1ri=1 is the best. CVEvolve assigns each candidate an unnormalized selection weight:

wi=exp(ri1τ),w_i = \exp \left( - \frac { r_i - 1 } { \tau } \right),wi=exp(τri1),

where τ>0\tau > 0τ>0 is a temperature parameter controlling exploration. The actual sampling probability is the normalized Gibbs distribution:

pi=wijwj.p_i = \frac { w_i } { \sum _j w_j }.pi=jwjwi.

As τ0+\tau \rightarrow 0^{+}τ0+, the distribution becomes greedy, concentrating on top-ranked candidates. Larger τ\tauτ values spread probability mass more broadly. For evolve rounds, a same-lineage penalty is applied to encourage combining different lineages:

w~i=wiλmi,\tilde { w } _ { i } = w _ { i } \, \lambda ^ { m _ { i } },w~i=wiλmi,

where λ[0,1]\lambda \in [0,1]λ[0,1] is the penalty factor and mim_imi is the count of already selected parents sharing the candidate's lineage.

The underlying agent application is implemented using a LangGraph-based framework. The runtime employs a compact node graph that separates message ingestion, model reasoning, tool execution, and optional image follow-up handling. As shown in the figure below:

The workflow begins at the Ingest node, which prepares the system and task prompts. The state is passed to the LLM node for reasoning. If the response contains a tool call, it routes to the Tool execution node. If the tool returns a structured response containing an image path, the flow moves to the Image follow-up node. Here, the image is loaded, encoded, and appended as a multimodal observation before returning to the LLM for the next reasoning step. This mechanism allows the agent to inspect visual outputs, such as plots or scientific images, which is critical for tasks involving image processing pipelines like the one illustrated in the flowchart below.

CVEvolve exposes several tool families to support these operations. File system tools allow listing, reading, writing, and editing files within the workspace. Environment management tools enable the installation of dependencies and execution of Python scripts via commands like uv add and uv run. The image viewing tool renders images into agent-viewable PNGs, supporting dynamic range selection and logarithmic scaling to inspect weak structures or high-dynamic-range data. Search state tools permit the agent to log results, inspect history, and submit new candidates. Additionally, web search tools provide access to literature repositories to inform algorithm development.

The system also supports an optional holdout test to evaluate generalization without exposing holdout data during design. When enabled, the main agent receives a prompt describing the holdout folder structure but cannot inspect the data. Upon candidate submission, a separate holdout test agent is spawned in a temporary workspace to run the evaluation and record metrics, ensuring data isolation. Failed candidates are routed to a repair round where the system attempts to fix issues preventing execution.

Experiment

CVEvolve was evaluated across three computer vision tasks involving image registration, peak detection, and segmentation, where it successfully generated robust analytical algorithms that outperformed baseline algorithms and alternative evolution methods. Holdout testing proved critical in preventing overfitting during development, particularly when training data was scarce, while a separate optimization experiment demonstrated the value of stochastic sampling in avoiding local optima. These findings collectively validate the system's ability to produce interpretable, high-performance workflows for complex scientific imaging problems without requiring dedicated GPU resources.

The the the table presents the holdout test errors for the XRF image registration task, comparing baseline algorithms against candidates generated by evolutionary methods. The results demonstrate that the algorithm discovered by CVEvolve achieved the lowest average Euclidean distance, significantly outperforming the brute-force baseline and the candidate found by OpenEvolve. Phase correlation exhibited the highest error, indicating it is less effective for this specific registration problem than the other methods. CVEvolve identified the most accurate algorithm, achieving the lowest registration error among all tested methods. Evolved candidates significantly outperformed the brute-force baseline, which in turn performed better than phase correlation. Phase correlation resulted in the highest error, suggesting standard strategies struggle with the image characteristics of this task.

This experiment evaluates XRF image registration by comparing baseline algorithms against candidates generated through evolutionary methods. The results demonstrate that the algorithm discovered by CVEvolve achieved the lowest registration error, significantly outperforming the brute-force baseline and the candidate found by OpenEvolve. In contrast, phase correlation exhibited the highest error, indicating that standard strategies struggle with the image characteristics of this task compared to the evolved solutions.


AI로 AI 구축

아이디어에서 출시까지 — 무료 AI 코코딩, 즉시 사용 가능한 환경, 최적의 GPU 가격으로 AI 개발을 가속화하세요.

AI 협업 코딩
바로 사용 가능한 GPU
최적의 가격

HyperAI Newsletters

최신 정보 구독하기
한국 시간 매주 월요일 오전 9시 에 이번 주의 최신 업데이트를 메일로 발송합니다
이메일 서비스 제공: MailChimp