SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2405.15189 · NeurIPS · 2024

EFFI-LEARNER: Enhancing Efficiency of Generated Code via Self-Optimization

Jie Zhang, Dong Huang, Zhijiang Guo, Yuhao Qing, Heming Cui, Jianbo Dai, Han Weng, Puzhen Wu

arXiv · PDF · Open in the Atlas

Code that ran

12 of 17 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; 6 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 6 failures of our instrument; 5 no recorded run), measured 2026-11-24; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; 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/2405.15189.json · badge: /api/ran/2405.15189.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
huangd1999/EffiLearner canonical (classifier label)
classifier basis: census
10 ran · 0 no recorded run
huangd1999/effilearner canonical (classifier label)
classifier basis: classifier_2025
2 ran · 5 no recorded run
FunctionStatusWhere it lives
calculate_memory_usage Ran
ran, honoured the contract we drafted
huangd1999/EffiLearner/src/calculate_memory_usage.py
code served (permissive licence) · get_code("d55a48418c812b09")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tempfile
import os

# Create a temporary file with memory profiling data
temp_file = tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.dat')
temp_file_path = temp_file.name

# Write header
temp_file.write("timestamp memory_mb time\n")

# Write sample memory profiling data
# Format: function_name memory_mb timestamp
temp_file.write("function_a 100.5 1.0\n")
temp_file.write("function_b 105.2 2.0\n")
temp_file.write("function_c 110.8 3.5\n")
temp_file.write("function_d 108.3 5.0\n")
temp_file.write("__main__.some_func 112.1 6.5\n")  # This should be skipped
temp_file.write("function_e 115.6 8.0\n")

temp_file.close()

ARGS = {
    'dat_file_path': temp_file_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
calculate_memory_usage Ran
ran, honoured the contract we drafted
huangd1999/EffiLearner/src/code_efficiency_calculator.py
code served (permissive licence) · get_code("f21888a0452d23f3")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tempfile
import os

# Create a temporary file with memory profiling data
temp_file = tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.dat')
temp_file.write("TIMESTAMP MEM_MB TIME\n")
temp_file.write("MEM 100.5 1.0\n")
temp_file.write("MEM 105.2 2.0\n")
temp_file.write("MEM 110.8 3.5\n")
temp_file.write("MEM 108.3 4.0\n")
temp_file.close()

dat_file_path = temp_file.name

ARGS = {
    'dat_file_path': dat_file_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
calculate_runtime Ran
ran, honoured the contract we drafted
huangd1999/EffiLearner/src/calculate_memory_usage.py
code served (permissive licence) · get_code("6cf2449e22e03c59")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tempfile
import os

# Create a temporary .dat file with the expected format
# The function expects lines with timestamps in the 3rd column (index 2)
# and skips lines containing '__main__.'

temp_file = tempfile.NamedTemporaryFile(mode='w', suffix='.dat', delete=False)
temp_file_path = temp_file.name

# Write header line
temp_file.write("header line\n")

# Write data lines with timestamps
# Format: some_data some_data timestamp other_data
temp_file.write("data1 data1 1.5 extra\n")
temp_file.write("data2 data2 2.3 extra\n")
temp_file.write("data3 data3 1.8 extra\n")
temp_file.write("__main__. data4 3.0 extra\n")  # This line will be skipped
temp_file.write("data5 data5 2.1 extra\n")

temp_file.close()

ARGS = {
    'dat_file_path': temp_file_path
}

# Clean up will happen when the temp file is garbage collected or manually deleted
# For testing, the file persists during execution
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
calculate_runtime Ran
ran, honoured the contract we drafted
huangd1999/EffiLearner/src/code_efficiency_calculator.py
code served (permissive licence) · get_code("952b9c9886c64735")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tempfile
import os

# Create a temporary .dat file with test data
temp_file = tempfile.NamedTemporaryFile(mode='w', suffix='.dat', delete=False)

# Write header line
temp_file.write('HEADER\n')

# Write some MEM lines with timestamps
temp_file.write('MEM value 1.5 other\n')
temp_file.write('MEM value 2.3 other\n')
temp_file.write('MEM value 3.7 other\n')
temp_file.write('OTHER value 4.0 data\n')
temp_file.write('MEM value 5.2 other\n')

temp_file.close()

dat_file_path = temp_file.name

ARGS = {
    'dat_file_path': dat_file_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
fetch_completion Ran
ran; our contract draft was wrong, not the code
huangd1999/EffiLearner/src/gpt_EffiLearner.py
code served (permissive licence) · get_code("1cf1dc440f14d987")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# Create a minimal data_entry dict with all required keys
data_entry = {
    'small_test_cases': 'assert fibonacci(5) == 5',
    'completion': 'def fibonacci(n):\n    if n <= 1:\n        return n\n    return fibonacci(n-1) + fibonacci(n-2)',
    'markdown_description': 'Write a function to compute the Fibonacci number at position n.',
    'overhead': 'The recursive implementation has exponential time complexity. Consider using dynamic programming or memoization to optimize.',
}

# The model parameter is a string representing the OpenAI model identifier
model = 'gpt-3.5-turbo'

ARGS = {
    'data_entry': data_entry,
    'model': model,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
openai, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
fetch_completion Ran
ran; our contract draft was wrong, not the code
huangd1999/EffiLearner/src/gpt_generation.py
code served (permissive licence) · get_code("a025fbf6131456dc")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import openai

# Create a minimal data_entry dict with the required structure
data_entry = {
    'markdown_description': 'Write a function that adds two numbers',
    'small_test_cases': 'assert add(2, 3) == 5\nassert add(-1, 1) == 0',
    'completion': None
}

# The model parameter should be a string specifying the OpenAI model
model = 'gpt-3.5-turbo'

# Construct ARGS dict with all parameters
ARGS = {
    'data_entry': data_entry,
    'model': model
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
openai — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
filter_line_profiler_results Ran
ran; our contract draft was wrong, not the code
huangd1999/EffiLearner/src/run_source_code_five_times.py
code served (permissive licence) · get_code("2c1a50ab9452b4aa")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import re

def filter_line_profiler_results(line_profiler_output, top_n=5):
    lines = line_profiler_output.strip().split('\n')
    results = []
    for line in lines:
        match = re.search('(\\d+\\.\\d+)\\s+(\\d+)\\s+(.*)', line.strip())
        if match:
            time = float(match.group(1))
            line_no = int(match.group(2))
            code = match.group(3)
            results.append((time, line_no, code))
    total_time = sum((time for time, _, _ in results))
    results = [(time / total_time, line_no, code) for time, line_no, code in results]
    results.sort(reverse=True)
    top_lines = results[:top_n]
    output = 'Line Profiler - Top lines by execution time:\n'
    for percentage, line_no, code in top_lines:
        output += f'Line {line_no}: {code.strip()} ({percentage:.2%})\n'
    return output.strip()


# Construct a valid line_profiler_output string that matches the regex pattern
# Format: time_in_seconds line_number code
line_profiler_output = """2.50 10 x = y + z
3.75 15 result = compute(x)
1.25 20 print(result)
0.50 25 return result
5.00 5 def foo():"""

ARGS = {
    'line_profiler_output': line_profiler_output,
    'top_n': 3
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
filter_memory_profiler_results Ran
ran; our contract draft was wrong, not the code
huangd1999/EffiLearner/src/run_source_code_five_times.py
code served (permissive licence) · get_code("b1ff21f11875705f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import re

# Sample memory profiler output with realistic formatting
memory_profiler_output = """Line #      Hits         Time  Per Hit   % Time  Line Contents
    10                                           def example_func():
    11      1000      5234.2 MiB      5.2        x = [1, 2, 3]
    12       500      3421.5 MiB      6.8        y = process(x)
    13       200      8765.3 MiB     43.8        z = expensive_operation(y)
    14       100      2134.1 MiB     21.3        return z
    15        50      1500.0 MiB     30.0        cleanup()
"""

ARGS = {
    "memory_profiler_output": memory_profiler_output,
    "top_n": 5
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
prompt_construction Ran
ran; our contract draft was wrong, not the code
huangd1999/effilearner/src/EffiLearner.py
code served (permissive licence) · get_code("4468d1d9afee5b05")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

task_description = "Write a function that computes the sum of all elements in a list"

test_case = """
def test_sum():
    assert sum_elements([1, 2, 3, 4]) == 10
    assert sum_elements([]) == 0
    assert sum_elements([5]) == 5
"""

completion = """
def sum_elements(lst):
    total = 0
    for i in range(len(lst)):
        total = total + lst[i]
    return total
"""

overhead_prompt = """
Performance Analysis:
- Current implementation uses a for loop with range(len(lst))
- Potential optimization: Use built-in sum() function or list comprehension
- Memory overhead: O(1) space complexity
- Time complexity: O(n) where n is the length of the list
- Recommendation: Replace manual loop with built-in sum() for better performance
"""

ARGS = {
    "task_description": task_description,
    "test_case": test_case,
    "completion": completion,
    "overhead_prompt": overhead_prompt,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
prompt_construction Ran
ran; our contract draft was wrong, not the code
huangd1999/effilearner/src/gpt_EffiLearner.py
code served (permissive licence) · get_code("09a23c4ef21bd633")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# Define arguments for prompt_construction function
task_description = "Write a function that computes the sum of squares of all elements in a list"

test_case = """
Input: [1, 2, 3, 4]
Expected Output: 30
"""

completion = """
def sum_of_squares(lst):
    result = 0
    for i in range(len(lst)):
        result = result + lst[i] * lst[i]
    return result
"""

overhead_prompt = """
Performance Analysis:
- Current implementation uses explicit loop iteration
- Time Complexity: O(n)
- Space Complexity: O(1)
- Potential optimizations:
  1. Use list comprehension with sum() for better readability
  2. Consider numpy for vectorized operations on large arrays
  3. Use built-in sum() with generator expression
"""

ARGS = {
    "task_description": task_description,
    "test_case": test_case,
    "completion": completion,
    "overhead_prompt": overhead_prompt
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
report_max_memory_usage Ran
ran, honoured the contract we drafted
huangd1999/EffiLearner/src/calculate_memory_usage.py
code served (permissive licence) · get_code("1e930421d6b5e3e8")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tempfile
import os

# Create a temporary .dat file with memory profiling data
temp_file = tempfile.NamedTemporaryFile(mode='w', suffix='.dat', delete=False)
temp_file_path = temp_file.name

# Write header and sample memory profiling lines
temp_file.write("Filename:Function:Line\tMemory(MB)\n")
temp_file.write("module.py:some_function:10\t45.3\n")
temp_file.write("__main__.run:5\t100.5\n")  # This line will be skipped due to __main__ check
temp_file.write("module.py:another_function:20\t32.1\n")
temp_file.write("module.py:third_function:30\t78.9\n")
temp_file.close()

ARGS = {
    'dat_file_path': temp_file_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
report_max_memory_usage Ran
ran, honoured the contract we drafted
huangd1999/EffiLearner/src/code_efficiency_calculator.py
code served (permissive licence) · get_code("41e149764f34c485")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tempfile
import os

# Create a temporary .dat file with memory usage data
temp_file = tempfile.NamedTemporaryFile(mode='w', suffix='.dat', delete=False)
temp_file.write("TIME(s) MEM(MB) CPU(%) GPU(%)\n")
temp_file.write("MEM 512.5 75 0\n")
temp_file.write("MEM 1024.3 85 0\n")
temp_file.write("MEM 768.9 80 0\n")
temp_file.write("OTHER_DATA some_value\n")
temp_file.write("MEM 2048.7 95 0\n")
temp_file.close()

dat_file_path = temp_file.name

ARGS = {
    'dat_file_path': dat_file_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
construct_prompt_template Not yet run
unverified (harvested, no recorded run)
huangd1999/effilearner/src/open_llm_generation.py
code served (permissive licence) · get_code("2878904bfb0b29f6")
How it ran

no invocation recorded.

construct_prompt_template Not yet run
unverified (harvested, no recorded run)
huangd1999/effilearner/src/EffiLearner.py
code served (permissive licence) · get_code("59ed4ee229411304")
How it ran

no invocation recorded.

fetch_completion Not yet run
unverified (harvested, no recorded run)
huangd1999/effilearner/src/EffiLearner.py
code served (permissive licence) · get_code("71b8326ce231d069")
How it ran

no invocation recorded.

fetch_completion Not yet run
unverified (harvested, no recorded run)
huangd1999/effilearner/src/open_llm_generation.py
code served (permissive licence) · get_code("30c53b3e7b5e16e4")
How it ran

no invocation recorded.

fetch_completion Not yet run
unverified (harvested, no recorded run)
huangd1999/effilearner/src/EffiLearner.py
code served (permissive licence) · get_code("87352e224fad7dbd")
How it ran

no invocation recorded.

Also present in other papers' code

Of 17 samples lifted from this paper's linked repositories, 17 carry a function identity and 0 do not. Of the 16 distinct functions with an identity, 6 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 5 later) and 10 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
calculate_memory_usage 1 other paper
1 later
2410.10209 (2024-10)
EFFICODER: Enhancing Code Generation in Large Language Models through Efficiency-Aware Fine-tuning
calculate_memory_usage 1 other paper
1 later
2410.10209 (2024-10)
EFFICODER: Enhancing Code Generation in Large Language Models through Efficiency-Aware Fine-tuning
calculate_runtime 1 other paper
1 later
2410.10209 (2024-10)
EFFICODER: Enhancing Code Generation in Large Language Models through Efficiency-Aware Fine-tuning
calculate_runtime 1 other paper
1 later
2410.10209 (2024-10)
EFFICODER: Enhancing Code Generation in Large Language Models through Efficiency-Aware Fine-tuning
construct_prompt_template
brick of this paper's assembly: helper
1 other paper
1 dated earlier
2402.02037 (2024-02)
EFFIBENCH: Benchmarking the Efficiency of Automatically Generated Code
report_max_memory_usage 1 other paper
1 later
2410.10209 (2024-10)
EFFICODER: Enhancing Code Generation in Large Language Models through Efficiency-Aware Fine-tuning

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-24.

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 remarkable progress in code generation, but their generated code often suffers from inefficiency, resulting in longer execution times and higher memory consumption. To address this issue, we propose EFFI-LEARNER, a self-optimization framework that utilizes execution overhead profiles to improve the efficiency of LLM-generated code. EFFI-LEARNER first generates code using an LLM, then executes it locally to capture execution time and memory usage profiles. These profiles are fed back to the LLM, which then revises the code to reduce overhead. To evaluate the effectiveness of EFFI-LEARNER, we conduct extensive experiments on the EffiBench, HumanEval, and MBPP with 16 open-source and 6 closed-source models. Our evaluation results demonstrate that through iterative self-optimization, EFFI-LEARNER significantly enhances the efficiency of LLM-generated code. For example, the execution time (ET) of StarCoder2-15B for the EffiBench decreases from 0.93 (s) to 0.12 (s) which reduces 87.1% execution time requirement compared with the initial code. The total memory usage (TMU) of StarCoder2-15B also decreases from 22.02 (Mb*s) to 2.03 (Mb*s), which decreases 90.8% total memory consumption during the execution process. The source code of EFFI-LEARNER was released in https://github.com/huangd1999/EffiLearner.

For agents

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

get_harvested_code_for_paper("2405.15189")
get_code_for_paper("2405.15189")
have("2405.15189")

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

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

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

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

Connect an agent — have() is free.