Skip to content

Add GRAFT-ATHENA example - #791

Open
eb8680 wants to merge 1 commit into
masterfrom
eb-graft-athena-example
Open

eb8680 wants to merge 1 commit into
masterfrom
eb-graft-athena-example

Conversation

@eb8680

@eb8680 eb8680 commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

This PR adds an example derived from GRAFT-ATHENA, a state-of-the-art LLM-based optimizer for scientific computing problems, in docs/source/llm_examples/optimization/athena.py. The original is incredibly convoluted and almost impossible to understand or reproduce, for reasons that seem entirely unrelated to its effectiveness.

This replaces almost all of the bespoke machinery from the paper with ordinary typed code generation and simplifies it to its essence as an incremental improvement over the AVO example docs/source/llm_examples/optimization/avo.py to use learning (in-context learning, in this case) to warm-start search on new problems. The example script reproduces a version of the original paper's spectral Burgers case study (Section 2.8); reproducing the other case studies would be straightforward.

…toolkit

optimization/athena.py implements the closed loop of GRAFT-ATHENA
(arXiv 2605.11117) over evolve_lineage: a strategist agent writes
methods as annotated callables over a typed 1-D finite-difference and
spectral toolkit, an evaluator measures failure modes and convergence
class against exact references kept out of the prompt, and a
type-directed memory seeds each problem. Tested on the paper's spectral
Burgers case (Section 2.8), which both warm and cold arms reconstruct.
@eb8680
eb8680 requested a review from datvo06 September 23, 2026 22:13

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant