SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2606.24841 · 2026

Matching Tasks to Objectives: Fine-Tuning and Prompt-Tuning Strategies for Encoder-Decoder Pre-trained Language Models

Ahmad Pouramini, Hesham Faili

arXiv · PDF · Open in the Atlas

Code that ran

6 of 9 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; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 4 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/2606.24841.json · badge: /api/ran/2606.24841.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
puraminy/MTO canonical (classifier label)
classifier basis: census
6 ran · 3 no recorded run
FunctionStatusWhere it lives
args Ran
ran; our contract draft was wrong, not the code
puraminy/MTO/mto/mylogs.py
code served (permissive licence) · get_code("516ab2eac2f72bae")
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 torch
import torch.nn as nn

torch.manual_seed(0)

main_args = {}

def args(key, default='no_default'):
    if key in main_args:
        return main_args[key]
    else:
        return default

# The function 'args' is a simple getter that checks main_args dict
# It takes two parameters: 'key' (required) and 'default' (optional, defaults to 'no_default')
# To construct valid arguments, we need to define what values to pass when calling args()

ARGS = {
    'key': 'model',
    'default': 'no_default'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
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
get_run_id Ran
ran; our contract draft was wrong, not the code
puraminy/MTO/mto/mylogs.py
code served (permissive licence) · get_code("ce914ac39a8ef967")
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 os
import json
import tempfile

# Create a temporary directory to work with
temp_dir = tempfile.mkdtemp()

# Create a test id_counter.json file in the temp directory
test_counter_file = os.path.join(temp_dir, 'id_counter.json')
with open(test_counter_file, 'w') as f:
    json.dump({'counter': 42}, f)

# Define arguments for get_run_id
ARGS = {
    'filename': 'id_counter.json',
    'increase': False,
    'only_num': False
}
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
reduce_consecutive_zeros Ran
ran, honoured the contract we drafted
puraminy/MTO/mto/callbacks.py
code served (permissive licence) · get_code("43e4ffd7d80d41cf")
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 ndarray, ndim 2, dtype family float, shape (3, 4) 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 numpy as np

# Create a simple test matrix with some consecutive zero columns
# Matrix shape: 3 rows x 5 columns
# Columns: [non-zero, zero, zero, non-zero, zero]
matrix = np.array([
    [1, 0, 0, 2, 0],
    [3, 0, 0, 4, 0],
    [5, 0, 0, 6, 0]
], dtype=np.float32)

ARGS = {
    "matrix": matrix
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (3, 4) — shape (3, 4) 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
run_command Ran
ran; our contract draft was wrong, not the code
puraminy/MTO/mto/eval_seq2seq.py
pointer only (licence: MIT); the stored copy get_code serves, from rabeehk/compacter, is pointer only (licence: NONE) · get_code("44e48dfbdecee3da")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from rabeehk/compacter, and GitHub detected no licence in that repository 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.

text_to_image Ran
ran, honoured the contract we drafted
puraminy/MTO/mto/myutil.py
code served (permissive licence) · get_code("18d90843f701918c")
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 ndarray, ndim 3, dtype family float, shape (14, 92, 4) 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.

from io import BytesIO
from matplotlib.figure import Figure
import matplotlib.pyplot as plt

ARGS = {
    's': 'Hello, World!',
    'dpi': 100,
    'xpos': 10,
    'ypos': 0,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
matplotlib — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 3, dtype family float, shape (14, 92, 4) — shape (14, 92, 4) 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
trim_image Ran
ran; our contract draft was wrong, not the code
puraminy/MTO/mto/myutil.py
code served (permissive licence) · get_code("3febbffdd92c68c1")
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 Image. 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.

from PIL import Image
import numpy as np

# Create a simple test image with some content
# Make a 10x8 RGB image with a colored rectangle on a background
width, height = 10, 8
image_array = np.ones((height, width, 3), dtype=np.uint8) * 200  # light gray background
image_array[2:6, 3:7] = [100, 50, 150]  # colored rectangle in the middle

im = Image.fromarray(image_array, mode='RGB')

ARGS = {
    'im': im
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Image — a Image output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Image output the recorded ndim 3 and dtype family int 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
check_conflicts Not yet run
unverified (harvested, no recorded run)
puraminy/MTO/mto/conflicts.py
code served (permissive licence) · get_code("da0c0b7b9ed196b6")
How it ran

no invocation recorded.

get_full_tag Not yet run
unverified (harvested, no recorded run)
puraminy/MTO/mto/mylogs.py
code served (permissive licence) · get_code("fb6ae87d2715849e")
How it ran

no invocation recorded.

get_optimizer Not yet run
unverified (harvested, no recorded run)
puraminy/MTO/mto/optim.py
code served (permissive licence) · get_code("095c5aaac7bf1971")
How it ran

no invocation recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 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 8 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
run_command 3 other papers
3 dated earlier
2012.13255 (2020-12)
Intrinsic Dimensionality Explains the Effectiveness of Language Model Fine-Tuning
2106.04647 (2021-06)
Efficient Low-Rank Hypercomplex Adapter Layers
2302.03202 (2023-02)
Exploring the Benefits of Training Expert Language Models over Instruction 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-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

Prompt-based learning has emerged as a dominant paradigm in natural language processing. This study explores the impact of diverse pre-training objectives on the performance of encoder-decoder pre-trained language models across generation and question answering tasks, with a focus on commonsense knowledge retrieval and completion. We highlight the benefits of incorporating multiple objectives during both pre-training and fine-tuning stages. We introduce the Match Task to Objective (MTO) framework and methods for determining the appropriate objective for a given task. This framework offers automated methods to prepare task-related data for adaptation through unsupervised training, based on the identified objective. In the fine-tuning stage, we design novel templates that align with the objectives of the pre-training and adaptation stages. When aligned with task requirements, these strategies can achieve a performance gain of over 120% compared to conventional methods in few-shot settings. They significantly outperform related works in few-shot settings and exceed the baseline even in full-dataset scenarios. Furthermore, we extend this approach to include prompt-tuning methodologies, providing guidance for more effective soft prompt engineering and optimization. Our strategies significantly enhance prompt-tuning performance as well. These insights hold substantial value, precisely guiding the selection and optimization of models customized for specific tasks. Code is available at https://github.com/puraminy/MTO/

For agents

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

get_harvested_code_for_paper("2606.24841")
get_code_for_paper("2606.24841")
have("2606.24841")

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

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

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

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

Connect an agent — have() is free.