SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2305.05140 · IJCAI · 2023

Linguistic More: Taking a Further Step toward Efficient and Accurate Scene Text Recognition

Yuxin Wang, Yongdong Zhang, Boqiang Zhang, Hongtao Xie, Jianjun Xu

arXiv · PDF · Open in the Atlas

Code that ran

10 of 12 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 6 have no contract verdict; 4 failures of our instrument; 2 no recorded run), measured 2026-11-23; 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/2305.05140.json · badge: /api/ran/2305.05140.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
CyrilSterling/LPV canonical (classifier label)
classifier basis: census
10 ran · 2 no recorded run
FunctionStatusWhere it lives
checkImageIsValid Ran
ran on a synthesized input
CyrilSterling/LPV/create_lmdb_dataset.py
code served (permissive licence) · get_code("c7b92e1633b0d2da")
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 bool, 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 cv2
import numpy as np

# Create a valid image in binary format
# Create a simple 10x8 grayscale image (10 height, 8 width)
img = np.random.randint(0, 256, size=(10, 8), dtype=np.uint8)
# Encode to PNG format (or any format that cv2.imdecode can read)
success, imageBin = cv2.imencode('.png', img)
imageBin = imageBin.tobytes()

ARGS = {
    "imageBin": imageBin
}
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 bool, 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
decoder_layer Ran
ran; our contract draft was wrong, not the code
CyrilSterling/LPV/modules/attention.py
code served (permissive licence) · get_code("138752fa9826a05c")
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 Sequential. 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)

ARGS = {
    'in_c': 3,
    'out_c': 16,
    'k': 3,
    's': 1,
    'p': 1,
    'mode': 'nearest',
    'scale_factor': 2,
    'size': None,
}
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 Sequential — a Sequential output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Sequential output the recorded ndim 1 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
drop_path Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
CyrilSterling/LPV/modules/svtr_backbone.py
code served (permissive licence) · get_code("ee6f01cbc95c7313")
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 Tensor, ndim 2, dtype family float, shape (2, 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 torch

torch.manual_seed(0)

# Create a small tensor with batch size 2 and feature dimension 4
x = torch.randn(2, 4, dtype=torch.float32)

# Define all parameters for drop_path function
ARGS = {
    "x": x,
    "drop_prob": 0.5,
    "training": True,
}
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 Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 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
encoder_layer Ran
ran; our contract draft was wrong, not the code
CyrilSterling/LPV/modules/attention.py
code served (permissive licence) · get_code("6d0a2c5e1e8c4121")
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 Sequential. 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)

ARGS = {
    "in_c": 3,
    "out_c": 64,
    "k": 3,
    "s": 2,
    "p": 1
}
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 Sequential — a Sequential output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Sequential output the recorded ndim 1 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
format_time Ran
ran on a synthesized input
CyrilSterling/LPV/train_final_dist.py
code served (permissive licence) · get_code("df68bb70a0fd2c06")
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 time
import datetime

# The function takes a single parameter 'time' which should be a numeric value (int or float)
# representing seconds. Looking at the function body:
# - It checks if time > 86400
# - It performs arithmetic operations (// and -)
# - It passes the result to datetime.datetime.utcfromtimestamp()
# - utcfromtimestamp expects a numeric value in seconds

# Test with a reasonable timestamp value that includes days
test_time = 90061  # This is 1 day + 1 hour + 1 minute + 1 second (86400 + 3661)

ARGS = {
    'time': test_time
}
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
get_args Ran
ran on a synthesized input
CyrilSterling/LPV/utils.py
code served (permissive licence) · get_code("c69f8ea0842e65be")
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 Namespace. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 argparse

torch.manual_seed(0)

ARGS = {
    'is_train': True,
}
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 Namespace — a Namespace output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Namespace 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_device Ran
ran on a synthesized input
CyrilSterling/LPV/utils.py
code served (permissive licence) · get_code("291192e39061a450")
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 device. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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)

ARGS = {
    'verbose': True
}
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 device — a device output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a device 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
isless Ran
ran on a synthesized input
CyrilSterling/LPV/dataset.py
code served (permissive licence) · get_code("8f99ed40edd07e1e")
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 bool, 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 numpy as np

ARGS = {
    "prob": 0.5
}
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 bool, 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
multi_head_attention_forward Ran
ran; our contract draft was wrong, not the code
CyrilSterling/LPV/modules/transformer.py
code served (permissive licence) · get_code("0ca1572c9755ffd9")
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 tuple. 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.functional as F

torch.manual_seed(0)

# Dimensions
L = 3  # target sequence length
S = 4  # source sequence length
N = 2  # batch size
E = 8  # embedding dimension
num_heads = 2
head_dim = E // num_heads

# Create query, key, value tensors
# Shape: (L, N, E), (S, N, E), (S, N, E)
query = torch.randn(L, N, E)
key = torch.randn(S, N, E)
value = torch.randn(S, N, E)

# Projection weights and biases
# in_proj_weight combines q, k, v projections: shape (3*E, E)
in_proj_weight = torch.randn(3 * E, E)
in_proj_bias = torch.randn(3 * E)

# Output projection
out_proj_weight = torch.randn(E, E)
out_proj_bias = torch.randn(E)

# Bias for key and value
bias_k = None
bias_v = None

# Key padding mask: (N, S)
key_padding_mask = torch.zeros(N, S, dtype=torch.bool)
key_padding_mask[0, -1] = True  # mask last position in first batch

# Attention mask: 2D (L, S)
attn_mask = torch.zeros(L, S)

# Static key and value (not used if None)
static_k = None
static_v = None

# Separate projection weights
q_proj_weight = None
k_proj_weight = None
v_proj_weight = None

ARGS = {
    "query": query,
    "key": key,
    "value": value,
    "embed_dim_to_check": E,
    "num_heads": num_heads,
    "in_proj_weight": in_proj_weight,
    "in_proj_bias": in_proj_bias,
    "bias_k": bias_k,
    "bias_v": bias_v,
    "add_zero_attn": False,
    "dropout_p": 0.0,
    "out_proj_weight": out_proj_weight,
    "out_proj_bias": out_proj_bias,
    "training": True,
    "key_padding_mask": key_padding_mask,
    "need_weights": True,
    "attn_mask": attn_mask,
    "use_separate_proj_weight": False,
    "q_proj_weight": q_proj_weight,
    "k_proj_weight": k_proj_weight,
    "v_proj_weight": v_proj_weight,
    "static_k": static_k,
    "static_v": static_v,
}
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 tuple — a tuple output has no array shape of its own; none is 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
tensor2im Ran
ran on a synthesized input
CyrilSterling/LPV/dataset.py
code served (permissive licence) · get_code("b78e81e855133e45")
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 int, shape (4, 3, 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 torch
import numpy as np

torch.manual_seed(0)

# Create a small image tensor with shape (C, H, W)
# Using shape (1, 4, 3) - 1 channel, 4 height, 3 width
# Values in range [-1, 1] as expected by the function
image_tensor = torch.randn(1, 4, 3)

ARGS = {
    "image_tensor": image_tensor,
    "imtype": np.uint8
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — 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 int, shape (4, 3, 3) — shape (4, 3, 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
svtr_small Not yet run
unverified (harvested, no recorded run)
CyrilSterling/LPV/modules/svtr_backbone.py
code served (permissive licence) · get_code("eabefe1dad92dc05")
How it ran

no invocation recorded.

svtr_tiny Not yet run
unverified (harvested, no recorded run)
CyrilSterling/LPV/modules/svtr_backbone.py
code served (permissive licence) · get_code("583c2d0c52e9b1ee")
How it ran

no invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 8 are also present in other papers whose code we hold (8 with at least one paper dated earlier, 0 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
encoder_layer 5 other papers
3 dated earlier, 2 later
2103.06495 (2021-03)
Read Like Humans: Autonomous, Bidirectional and Iterative Language Modeling for Scene Text Recognition
136880442 (2022 (year only))
Multi-modal Text Recognition Networks: Interactive Enhancements between Visual and Semantic Features
aaai_19971 (2022 (year only))
Visual Semantics Allow for Textual Reasoning Better in Scene Text Recognition
and 2 more not named here
decoder_layer 4 other papers
2 dated earlier, 2 later
136880442 (2022 (year only))
Multi-modal Text Recognition Networks: Interactive Enhancements between Visual and Semantic Features
aaai_19971 (2022 (year only))
Visual Semantics Allow for Textual Reasoning Better in Scene Text Recognition
2307.09749 (2023-07)
Towards Robust Scene Text Image Super-resolution via Explicit Location Enhancement
and 1 more not named here
tensor2im 4 other papers
4 dated earlier
1811.00751 (2018-11)
Show, Attend and Read: A Simple and Strong Baseline for Irregular Text Recognition
1904.01906 (2019-04)
What Is Wrong With Scene Text Recognition Model Comparisons? Dataset and Model Analysis
1906.01502 (2019-06)
How multilingual is Multilingual BERT?
and 1 more not named here
checkImageIsValid 3 other papers
3 dated earlier
1811.00751 (2018-11)
Show, Attend and Read: A Simple and Strong Baseline for Irregular Text Recognition
1904.01906 (2019-04)
What Is Wrong With Scene Text Recognition Model Comparisons? Dataset and Model Analysis
2207.04675 (2022-07)
COO: Comic Onomatopoeia Dataset for Recognizing Arbitrary or Truncated Texts
drop_path 3 other papers
1 dated earlier, 2 later · 1 only as an assembly brick
2301.07945 (2023-01)
PDFormer: Propagation Delay-Aware Dynamic Long-Range Transformer for Traffic Flow Prediction
2408.10269 (2024-08)
OpenCity: Open Spatio-Temporal Foundation Models for Traffic Prediction
2602.19113 (2026-02)
Learning from Complexity: Exploring Dynamic Sample Pruning of Spatio-Temporal Training
multi_head_attention_forward 2 other papers
1 dated earlier, 1 later
2103.06495 (2021-03)
Read Like Humans: Autonomous, Bidirectional and Iterative Language Modeling for Scene Text Recognition
2307.09749 (2023-07)
Towards Robust Scene Text Image Super-resolution via Explicit Location Enhancement
get_device 1 other paper
1 dated earlier
1904.01906 (2019-04)
What Is Wrong With Scene Text Recognition Model Comparisons? Dataset and Model Analysis
isless 1 other paper
1 dated earlier
1904.01906 (2019-04)
What Is Wrong With Scene Text Recognition Model Comparisons? Dataset and Model Analysis

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

Vision model have gained increasing attention due to their simplicity and efficiency in Scene Text Recognition (STR) task. However, due to lacking the perception of linguistic knowledge and information, recent vision models suffer from two problems: (1) the pure vision-based query results in attention drift, which usually causes poor recognition and is summarized as linguistic insensitive drift (LID) problem in this paper. ( 2) the visual feature is suboptimal for the recognition in some vision-missing cases (e.g. occlusion, etc.). To address these issues, we propose a Linguistic Perception Vision model (LPV), which explores the linguistic capability of vision model for accurate text recognition. To alleviate the LID problem, we introduce a Cascade Position Attention (CPA) mechanism that obtains high-quality and accurate attention maps through step-wise optimization and linguistic information mining. Furthermore, a Global Linguistic Reconstruction Module (GLRM) is proposed to improve the representation of visual features by perceiving the linguistic information in the visual space, which gradually converts visual features into semantically rich ones during the cascade process. Different from previous methods, our method obtains SOTA results while keeping low complexity (92.4% accuracy with only 8.11M parameters). Code is available at https://github.com/CyrilSterling/LPV.

For agents

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

get_harvested_code_for_paper("2305.05140")
get_code_for_paper("2305.05140")
have("2305.05140")

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

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

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

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

Connect an agent — have() is free.