SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2601.05508 · 2026

Enabling Stroke-Level Structural Analysis of Hieroglyphic Scripts without Language-Specific Priors

Yang Liu, Peng Li, Xiaolong Wang, Ziyue Wang, Fuwen Luo, Lin Xu, Zihao Wan, Yaluo Liu, Pau Tong, Xuanjia Qiao

arXiv · PDF

Code that ran

4 of 8 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; 3 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 1 failure of our instrument; 4 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/2601.05508.json · badge: /api/ran/2601.05508.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
THUNLP-MT/HieroSA canonical (classifier label)
classifier basis: census
4 ran · 4 no recorded run
FunctionStatusWhere it lives
base64_to_image Ran
ran, honoured the contract we drafted
THUNLP-MT/HieroSA/src/reward_func.py
code served (permissive licence) · get_code("daefd3037fa4d788")
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 int, shape (4, 3) 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
import base64
import struct

# Create a simple test image: 4x3 binary image
h, w = 4, 3
image_data = np.random.randint(0, 2, size=(h, w), dtype=np.uint8)

# Pack the image data
bits = np.packbits(image_data.flatten(), bitorder='little')
header = struct.pack('>II', h, w)
encoded = header + bits.tobytes()
str_base64 = base64.b64encode(encoded).decode('utf-8')

ARGS = {
    'str_base64': str_base64
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
cv2, 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 int, shape (4, 3) — shape (4, 3) 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
crop_and_add_axis Ran
ran, honoured the contract we drafted
THUNLP-MT/HieroSA/src/utils.py
code served (permissive licence) · get_code("f3f2ccda1d1af91b")
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 JpegImageFile. 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 PIL.Image
import numpy
import io
import tempfile
import os

# Create a small test image and save it to a temporary file
# The function requires a valid image path
temp_dir = tempfile.gettempdir()
image_path = os.path.join(temp_dir, "test_image_crop_axis.png")

# Create a simple test image with some content
# Create a PIL image with a simple pattern
test_image = PIL.Image.new('RGB', (100, 100), color='white')
# Add some black pixels to create content that will have a non-None bbox
pixels = test_image.load()
for i in range(20, 80):
    for j in range(20, 80):
        pixels[i, j] = (0, 0, 0)

test_image.save(image_path)

ARGS = {
    'image_path': image_path,
    'pad': 0.15,
    'w_axis': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, matplotlib, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type JpegImageFile — a JpegImageFile output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a JpegImageFile 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
generate_config_from_args Ran
ran; our contract draft was wrong, not the code
THUNLP-MT/HieroSA/verl/model_merger/base_model_merger.py
pointer only (licence: MIT); the stored copy get_code serves, from LeapLabTHU/OPDVR, is pointer only (licence: NONE) · get_code("8896f4e2bafe8abc")
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 LeapLabTHU/OPDVR, 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.

get_dynamic_pipeline_shards Ran
ran, honoured the contract we drafted
THUNLP-MT/HieroSA/verl/model_merger/megatron_model_merger.py
pointer only (licence: MIT); the stored copy get_code serves, from LeapLabTHU/OPDVR, is pointer only (licence: NONE) · get_code("94209884dcb2308e")
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 LeapLabTHU/OPDVR, 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.

get_stroke_poly_seg Not yet run
unverified (harvested, no recorded run)
THUNLP-MT/HieroSA/src/reward_func.py
code served (permissive licence) · get_code("1a030219743352f2")
How it ran

no invocation recorded.

get_weight_loader Not yet run
unverified (harvested, no recorded run)
THUNLP-MT/HieroSA/verl/models/weight_loader_registry.py
code served (permissive licence) · get_code("acf240079d434746")
How it ran

no invocation recorded.

get_weight_saver Not yet run
unverified (harvested, no recorded run)
THUNLP-MT/HieroSA/verl/models/weight_loader_registry.py
pointer only (licence: MIT); the stored copy get_code serves, from mit-han-lab/SMEPO, is pointer only (licence: NONE) · get_code("2aeadc44472f2c85")
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 mit-han-lab/SMEPO, 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. No invocation recorded.

reward_func_stroke Not yet run
unverified (harvested, no recorded run)
THUNLP-MT/HieroSA/src/reward_func.py
code served (permissive licence) · get_code("b5f11882d5eedb9c")
How it ran

no invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 4 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 3 the same month, 4 later) and 4 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
get_weight_loader 58 other papers
10 dated earlier, 4 the same month, 42 later, 2 undated
2409.19256 (2024-09)
HybridFlow: A Flexible and Efficient RLHF Framework
2505.14362 (2025-05)
DeepEyes: Incentivizing "Thinking with Images" via Reinforcement Learning
2505.20046 (2025-05)
REARANK: Reasoning Re-ranking Agent via Reinforcement Learning
and 55 more not named here
generate_config_from_args 57 other papers
3 dated earlier, 4 the same month, 47 later, 3 undated
2410.02992 (2024-10)
Learning to Better Search with Language Models via Guided Reinforced Self-Training
2509.25787 (2025-09)
Self-Evolving Vision-Language Models for Image Quality Assessment via Voting and Ranking
2510.08630 (2025-10)
ExPO-HM: Learning to Explain-then-Detect for Hateful Meme Detection
and 54 more not named here
get_dynamic_pipeline_shards 52 other papers
3 dated earlier, 3 the same month, 44 later, 2 undated
2410.02992 (2024-10)
Learning to Better Search with Language Models via Guided Reinforced Self-Training
2509.25787 (2025-09)
Self-Evolving Vision-Language Models for Image Quality Assessment via Voting and Ranking
2510.08630 (2025-10)
ExPO-HM: Learning to Explain-then-Detect for Hateful Meme Detection
and 49 more not named here
get_weight_saver 8 other papers
7 later, 1 undated
2602.03143 (2026-02)
Self-Hinting Language Models Enhance Reinforcement Learning
2602.03190 (2026-02)
PrAg-PO: Prompt Augmented Policy Optimization for Robust and Diverse Mathematical Reasoning
2602.05897 (2026-02)
Stop Rewarding Hallucinated Steps: Faithfulness-Aware Step-Level Reinforcement Learning for Small Reasoning Models
and 5 more not named here

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

Hieroglyphs, as logographic writing systems, encode rich semantic and cultural information within their internal structural composition. Yet, current advanced Large Language Models (LLMs) and Multimodal LLMs (MLLMs) usually remain structurally blind to this information. LLMs process characters as textual tokens, while MLLMs additionally view them as raw pixel grids. Both fall short to model the underlying logic of character strokes. Furthermore, existing structural analysis methods are often script-specific and labor-intensive. In this paper, we propose Hieroglyphic Stroke Analyzer (HieroSA), a novel and generalizable framework that enables MLLMs to automatically derive stroke-level structures from character bitmaps without handcrafted data. It transforms modern logographic and ancient hieroglyphs character images into explicit, interpretable line-segment representations in a normalized coordinate space, allowing for cross-lingual generalization. Extensive experiments demonstrate that HieroSA effectively captures character-internal structures and semantics, bypassing the need for language-specific priors. Experimental results highlight the potential of our work as a graphematics analysis tool for a deeper understanding of hieroglyphic scripts. a a Code: https://github.com/THUNLP-MT/HieroSA.

For agents

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

get_harvested_code_for_paper("2601.05508")
get_code_for_paper("2601.05508")
have("2601.05508")

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

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

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

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

Connect an agent — have() is free.