SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2410.14826 · ICLR · 2024

SPRIG: Improving Large Language Model Performance by System Prompt Optimization

Tolga Ergen, David Jurgens, Lechen Zhang, ♯ Lajanugen, Logeswaran Moontae, Lee ♯⋄

arXiv · PDF · Open in the Atlas

Code that ran

16 of 19 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 15 failures of our instrument; 3 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2410.14826.json · badge: /api/ran/2410.14826.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
orange0629/prompting canonical (classifier label)
classifier basis: census
16 ran · 3 no recorded run
FunctionStatusWhere it lives
create_save_dir Ran
ran; our contract draft was wrong, not the code
orange0629/prompting/exp3/categorization/language-matters/count_reasoning_types.py
pointer only (licence: NONE) · get_code("c845e58e7ef3ba34")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, orange0629/prompting when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

extract_path_components Ran
ran; our contract draft was wrong, not the code
orange0629/prompting/exp3/categorization/language-matters/classify_reasoning_types_batch.py
pointer only (licence: NONE) · get_code("290efba7e1ecb8c2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, orange0629/prompting when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

format_steps Ran
ran; our contract draft was wrong, not the code
orange0629/prompting/exp3/segmentation/segmentation.py
pointer only (licence: NONE) · get_code("8452ea695318c238")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, orange0629/prompting when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

generate_latex_table Ran
ran; our contract draft was wrong, not the code
orange0629/prompting/exp3/categorization/language-matters/get_table_result.py
pointer only (licence: NONE) · get_code("a1fd5f6c9eed572c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, orange0629/prompting when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_file_save_name Ran
ran; our contract draft was wrong, not the code
orange0629/prompting/exp3/categorization/language-matters/classify_reasoning_types_batch.py
pointer only (licence: NONE) · get_code("9a700f6f68811df6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, orange0629/prompting when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_file_save_name Ran
ran; our contract draft was wrong, not the code
orange0629/prompting/exp3/categorization/language-matters/count_reasoning_types_batch.py
pointer only (licence: NONE) · get_code("069bc97ca5d9dc52")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, orange0629/prompting when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_gcs_download_dir Ran
ran; our contract draft was wrong, not the code
orange0629/prompting/exp3/categorization/language-matters/count_reasoning_types_batch.py
pointer only (licence: NONE) · get_code("97568c4ea3aefbe7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, orange0629/prompting when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_gcs_upload_path Ran
ran; our contract draft was wrong, not the code
orange0629/prompting/exp3/categorization/language-matters/classify_reasoning_types_batch.py
pointer only (licence: NONE) · get_code("0561a2abdc6ecd47")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, orange0629/prompting when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_gcs_upload_path Ran
ran; our contract draft was wrong, not the code
orange0629/prompting/exp3/categorization/language-matters/count_reasoning_types_batch.py
pointer only (licence: NONE) · get_code("3827108f9c3935dd")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, orange0629/prompting when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

inference_and_save Ran
ran on a synthesized input
orange0629/prompting/exp3/categorization/language-matters/count_reasoning_types.py
pointer only (licence: NONE) · get_code("1702eb3291926377")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, orange0629/prompting when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

normalize_step_types Ran
ran; our contract draft was wrong, not the code
orange0629/prompting/exp3/categorization/language-matters/get_behavior_result.py
pointer only (licence: NONE) · get_code("813f1b42c556fc3b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, orange0629/prompting when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

parse_sectioned_prompt Ran
ran; our contract draft was wrong, not the code
orange0629/prompting/related_work/protegi/utils.py
pointer only (licence: NONE) · get_code("37e7baf06cc5b2f0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, orange0629/prompting when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

parse_steps Ran
ran; our contract draft was wrong, not the code
orange0629/prompting/exp3/categorization/language-matters/get_behavior_result.py
pointer only (licence: NONE) · get_code("6886e74e5643103d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, orange0629/prompting when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

predict_on_example Ran
ran; our contract draft was wrong, not the code
orange0629/prompting/related_work/protegi/scorers.py
pointer only (licence: NONE) · get_code("d71640372878473e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, orange0629/prompting when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

process_example Ran
ran; our contract draft was wrong, not the code
orange0629/prompting/related_work/protegi/tasks.py
pointer only (licence: NONE) · get_code("aab213b0895dc732")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, orange0629/prompting when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

strip_all_lines Ran
ran; our contract draft was wrong, not the code
orange0629/prompting/exp3/categorization/language-matters/count_reasoning_types.py
pointer only (licence: NONE) · get_code("7675dd1e070692e3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, orange0629/prompting when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

predict_batch_step_splits Not yet run
unverified (harvested, no recorded run)
orange0629/prompting/exp3/segmentation/segmentation.py
pointer only (licence: NONE) · get_code("90e80d909d64d09f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, orange0629/prompting when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

process_example_vllm Not yet run
unverified (harvested, no recorded run)
orange0629/prompting/related_work/protegi/tasks.py
pointer only (licence: NONE) · get_code("19209ae07d7fceae")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, orange0629/prompting when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

process_steps_with_normalization Not yet run
unverified (harvested, no recorded run)
orange0629/prompting/exp3/categorization/language-matters/get_behavior_result.py
pointer only (licence: NONE) · get_code("759a3fe338de2d4b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, orange0629/prompting when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 19 samples lifted from this paper's linked repositories, 19 carry a function identity and 0 do not. Of the 19 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 0 later) and 18 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
parse_sectioned_prompt 1 other paper
1 dated earlier
2305.03495 (2023-05)
Automatic Prompt Optimization with "Gradient Descent" and Beam Search

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Large Language Models (LLMs) have shown impressive capabilities in many scenarios, but their performance depends, in part, on the choice of prompt. Past research has focused on optimizing prompts specific to a task. However, much less attention has been given to optimizing the general instructions included in a prompt, known as a system prompt. To address this gap, we propose SPRIG, an edit-based genetic algorithm that iteratively constructs prompts from prespecified components to maximize the model's performance in general scenarios. We evaluate the performance of system prompts on a collection of 47 different types of tasks to ensure generalizability. Our study finds that a single optimized system prompt performs on par with task prompts optimized for each individual task. Moreover, combining system and task-level optimizations leads to further improvement, which showcases their complementary nature. Experiments also reveal that the optimized system prompts generalize effectively across model families, parameter sizes, and languages. This study provides insights into the role of system-level instructions in maximizing LLM potential.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2410.14826")
get_code_for_paper("2410.14826")
have("2410.14826")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2410.14826.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2410.14826.svg)](https://syntology.ai/paper/2410.14826)

Connect an agent — have() is free.