RAAS is a robust evaluation framework for automated LLM agentic architecture search. Instead of learning from a single absolute score for one sampled workflow, RAAS builds more reliable search signals by comparing peer architectures on the same query and aggregating multiple independent executions.
- Robust architecture search. RAAS searches over an Agentic Supernet and adapts the architecture distribution using stable merit signals.
- Contextual Architecture Orchestration (CAO). Candidate architectures are evaluated as a cohort on the same query, producing peer-normalized merit signals that reduce task-difficulty bias.
- Multi-Trial Assessment Synthesis (MTAS). Multiple independent executions are synthesized to reduce stochastic workflow variance.
- Broad evaluation. The paper evaluates RAAS on mathematical reasoning, code generation, and multi-step tool-use benchmarks including GSM8K, MATH, MultiArith, HumanEval, MBPP, and GAIA.
RAAS addresses two common instabilities in automated agentic workflow optimization:
- Task-difficulty entanglement: absolute scores mix architecture quality with query difficulty.
- Execution variance: one stochastic run may not represent the true capability of an architecture.
RAAS therefore uses:
- CAO to evaluate multiple candidate architectures on an identical query and compute relative, context-aware advantages.
- MTAS to execute each candidate multiple times and aggregate the outcomes into a more stable capability estimate.
- Merit-weighted adaptation to reinforce architecture patterns that consistently outperform their peer group under the same query context.
Implementation note: this early code release builds on the MaAS-style Agentic Supernet codebase. Some scripts and folders still retain
maasnames from the upstream baseline, while the package namespace in this repository israas.
.
├── config/ # Example model and runtime configuration
├── examples/maas/ # Optimization entry points and example assets
│ ├── optimize.py # Baseline Agentic Supernet optimizer
│ └── optimize-grpo.py # Robust/group-normalized optimizer entry point
├── raas/
│ ├── actions/ # Agent actions and workflow primitives
│ ├── configs/ # Configuration loaders
│ ├── ext/raas/ # RAAS/MaAS benchmark and optimizer extensions
│ │ ├── benchmark/ # Dataset wrappers and experiment configs
│ │ ├── models/ # Controller and robust sampling utilities
│ │ └── scripts/ # Optimizers, evaluators, optimized graphs
│ ├── provider/ # LLM provider integrations
│ ├── rag/ # RAG components
│ └── tools/ # Tool-use utilities
└── GRPO_USAGE_GUIDE.md # Additional command examples
git clone https://github.com/ridlog/raas.git
cd raas
conda create -n raas python=3.8 -y
conda activate raas
pip install -U pipInstall the dependencies required by your target backend and benchmark. The included requirements.txt is an environment export from the development environment, so you may use it as a reference when recreating the full environment.
Copy the example configuration and fill in the model credentials/endpoints you plan to use:
cp config/config2.example.yaml config/config2.yaml
# edit config/config2.yamlAt minimum, configure the optimization model and execution model used by the search scripts, for example OpenAI-compatible or local model endpoints.
cd examples/maas
python optimize.py --dataset GSM8K --sample 4 --batch_size 4cd examples/maas
python optimize-grpo.py --dataset MATH \
--sample 4 \
--max_sampling_rounds 8 \
--success_threshold 2 \
--noise_scale 0.03 \
--cost_weight 2.0cd examples/maas
python optimize-grpo.py --dataset HumanEval --is_testThe bundled experiment configuration currently exposes MATH, GSM8K, and HumanEval in raas/ext/raas/benchmark/experiment_configs.py. Add new benchmark wrappers and update this config to reproduce additional paper settings.
You can place robust sampling and normalization hyperparameters in a YAML file:
grpo:
max_sampling_rounds: 8
success_threshold: 3
architecture_noise_scale: 0.03
cost_weight: 2.0
normalization_strategy: group_mean
track_architecture_diversity: true
diversity_penalty: 0.1Then run:
cd examples/maas
python optimize-grpo.py --dataset MATH --grpo_config path/to/grpo_config.yamlIf you find this repository useful, please consider citing:
@misc{yang2026raas,
title = {Rethinking LLM Agentic Architecture Search: A Robust Evaluation View},
author = {Yang, Jiayi and Wan, Guancheng and Zhang, Man and Ye, Mang},
year = {2026}
}This repository builds on the Agentic Supernet / MaAS codebase and related LLM-agent workflow optimization research. We thank the authors and maintainers of the open-source agent frameworks and benchmarks used in this project.


