SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2404.17273 · 2024

3SHNet: Boosting Image-Sentence Retrieval via Visual Semantic-Spatial Self-Highlighting

arXiv · PDF · Open in the Atlas

Code that ran

10 of 10 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; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 9 failures of our instrument; 0 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/2404.17273.json · badge: /api/ran/2404.17273.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
xurige1995/3shnet canonical (classifier label)
classifier basis: census
10 ran · 0 no recorded run
FunctionStatusWhere it lives
compute_sim Ran
ran, honoured the contract we drafted
xurige1995/3shnet/lib/evaluation_rgn_seg_sp_se.py
code served (permissive licence) · get_code("92939f518491d46a")
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 (2, 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

np.random.seed(0)

# Create small image embeddings: shape (2, 4) - batch of 2, embedding dim 4
images = np.random.randn(2, 4).astype(np.float32)

# Create small caption embeddings: shape (3, 4) - batch of 3, embedding dim 4
captions = np.random.randn(3, 4).astype(np.float32)

ARGS = {
    "images": images,
    "captions": captions,
}
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 (2, 3) — shape (2, 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
default_collate_override Ran
ran; our contract draft was wrong, not the code
xurige1995/3shnet/eval_rgn_seg_sp_se.py
code served (permissive licence) · get_code("61e35a6b0af63e50")
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 list. 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
from torch.utils.data import dataloader

torch.manual_seed(0)

default_collate_func = dataloader.default_collate

def default_collate_override(batch):
    dataloader._use_shared_memory = False
    return default_collate_func(batch)

# Create a minimal batch of data
# A batch is typically a list of samples
batch = [
    (torch.randn(4, 3), torch.tensor(0)),
    (torch.randn(4, 3), torch.tensor(1))
]

ARGS = {
    "batch": batch
}
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 list — a list 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
encode_data Ran
ran; our contract draft was wrong, not the code
xurige1995/3shnet/lib/evaluation_rgn_seg_sp_se.py
code served (permissive licence) · get_code("56b228e2d72c6b46")
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 as nn
import numpy as np
from collections import OrderedDict
import logging

torch.manual_seed(0)

# Set up logging
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)

# Define a minimal model that satisfies the interface used by encode_data
class MinimalModel(nn.Module):
    def __init__(self):
        super(MinimalModel, self).__init__()
        self.logger = None
        self.linear_img = nn.Linear(4, 5)
        self.linear_cap = nn.Linear(4, 6)
    
    def val_start(self):
        """Called at the start of encode_data"""
        self.eval()
    
    def forward_emb(self, images, segmentations, cat_onehots, Unet_segs, captions, lengths, image_lengths=None):
        """
        Returns img_emb and cap_emb tensors.
        img_emb needs to be 2D: (batch_size, embedding_dim)
        cap_emb needs to be 2D: (batch_size, embedding_dim)
        """
        # Process images to get img_emb
        batch_size = images.size(0)
        img_emb = self.linear_img(images)  # (batch_size, 5)
        
        # Process captions to get cap_emb
        cap_emb = self.linear_cap(captions)  # (batch_size, 6)
        
        return img_emb, cap_emb
    
    def forward_loss(self, img_emb, cap_emb):
        """Called but result is not used"""
        pass

# Create a minimal data loader
# Each batch contains: (images, image_lengths, segmentations, cat_onehots, Unet_segs, captions, lengths, ids)
class MinimalDataset:
    def __init__(self, num_samples=4, batch_size=2):
        self.num_samples = num_samples
        self.batch_size = batch_size
    
    def __len__(self):
        return self.num_samples

class MinimalDataLoader:
    def __init__(self, num_samples=4, batch_size=2):
        self.dataset = MinimalDataset(num_samples, batch_size)
        self.batch_size = batch_size
        self.num_batches = (num_samples + batch_size - 1) // batch_size
    
    def __iter__(self):
        for batch_idx in range(self.num_batches):
            start_idx = batch_idx * self.batch_size
            end_idx = min(start_idx + self.batch_size, self.dataset.num_samples)
            batch_size = end_idx - start_idx
            
            images = torch.randn(batch_size, 4)
            image_lengths = torch.randint(1, 3, (batch_size,))
            segmentations = torch.randn(batch_size, 4)
            cat_onehots = torch.randn(batch_size, 4)
            Unet_segs = torch.randn(batch_size, 4)
            captions = torch.randn(batch_size, 4)
            lengths = torch.randint(1, 3, (batch_size,))
            ids = np.arange(start_idx, end_idx)
            
            yield (images, image_lengths, segmentations, cat_onehots, Unet_segs, captions, lengths, ids)
    
    def __len__(self):
        return self.num_batches

# Create instances
model = MinimalModel()
data_loader = MinimalDataLoader(num_samples=4, batch_size=2)

# Define the ARGS dictionary
ARGS = {
    'model': model,
    'data_loader': data_loader,
    'log_step': 1,
    'logging': logger.info,
    'backbone': False,
}
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 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
encode_data Ran
ran; our contract draft was wrong, not the code
xurige1995/3shnet/lib/evaluation_rgn_seg_sp_se_cross.py
code served (permissive licence) · get_code("a624aee24b1da924")
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 as nn
import numpy as np
from collections import OrderedDict
import logging

torch.manual_seed(0)

# Set up logging
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)

# Create a minimal model that satisfies the function's usage
class MinimalModel(nn.Module):
    def __init__(self):
        super(MinimalModel, self).__init__()
        self.logger = None
        self.linear_img = nn.Linear(4, 5)
        self.linear_cap = nn.Linear(4, 5)
    
    def val_start(self):
        self.eval()
    
    def forward_emb(self, images, segmentations, cat_onehots, Unet_segs, captions, lengths, image_lengths=None):
        # Return image embeddings and caption embeddings
        batch_size = images.size(0)
        img_emb = torch.randn(batch_size, 5, 3)  # 3D embedding
        cap_emb = torch.randn(batch_size, 5)     # 2D embedding
        return img_emb, cap_emb
    
    def forward_loss(self, img_emb, cap_emb):
        # Minimal loss computation
        return (img_emb.sum() + cap_emb.sum()).item()

# Create a minimal dataset
class MinimalDataset:
    def __init__(self, size=4, backbone=False):
        self.size = size
        self.backbone = backbone
    
    def __len__(self):
        return self.size

# Create a minimal data loader
class MinimalDataLoader:
    def __init__(self, size=4, batch_size=2, backbone=False):
        self.dataset = MinimalDataset(size, backbone)
        self.batch_size = batch_size
        self.backbone = backbone
        self._iter_count = 0
    
    def __iter__(self):
        self._iter_count = 0
        return self
    
    def __next__(self):
        if self._iter_count >= 2:  # 2 batches
            raise StopIteration
        
        self._iter_count += 1
        batch_size = self.batch_size
        ids = np.array([self._iter_count - 1, self._iter_count])
        
        images = torch.randn(batch_size, 4)
        segmentations = torch.randn(batch_size, 4)
        cat_onehots = torch.randn(batch_size, 4)
        Unet_segs = torch.randn(batch_size, 4)
        captions = torch.randn(batch_size, 4)
        lengths = torch.tensor([2, 3])
        
        if not self.backbone:
            image_lengths = torch.tensor([2, 3])
            return images, image_lengths, segmentations, cat_onehots, Unet_segs, captions, lengths, ids
        else:
            return images, segmentations, cat_onehots, Unet_segs, captions, lengths, ids
    
    def __len__(self):
        return (len(self.dataset) + self.batch_size - 1) // self.batch_size

# Build the arguments
model = MinimalModel()
data_loader = MinimalDataLoader(size=4, batch_size=2, backbone=False)

ARGS = {
    'model': model,
    'data_loader': data_loader,
    'log_step': 1,
    'logging': logger.info,
    'backbone': False
}
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 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
func_attention Ran
ran; our contract draft was wrong, not the code
xurige1995/3shnet/lib/Crossmodal_Fusion4_sm.py
code served (permissive licence) · get_code("dd78f2924d527191")
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 numpy as np

torch.manual_seed(0)

# Construct valid arguments for func_attention
batch_size = 2
rgn_num = 3
embed_size = 4

# query: (bz, 1, d) - segmentation tensor
query = torch.randn(batch_size, 1, embed_size)

# context: (bz, rgn_num, d) - regions tensor
context = torch.randn(batch_size, rgn_num, embed_size)

# region_lens: tensor of region lengths per batch item
region_lens = torch.tensor([2, 3], dtype=torch.long)

# raw_feature_norm: not used in the function body, but required parameter
raw_feature_norm = None

# smooth: not used in the function body, but required parameter
smooth = None

# eps: default value is already set in function signature
eps = 1e-08

ARGS = {
    "query": query,
    "context": context,
    "region_lens": region_lens,
    "raw_feature_norm": raw_feature_norm,
    "smooth": smooth,
    "eps": eps
}
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 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
func_attention Ran
ran; our contract draft was wrong, not the code
xurige1995/3shnet/lib/Crossmodal_Fusion4_sp.py
code served (permissive licence) · get_code("9e0a6b0cf8aa2ef0")
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 numpy as np

torch.manual_seed(0)

# Based on the function signature and body:
# - query: (bz, reg_num, 128) - batch of region embeddings
# - context: (bz, c=128, h, w) - segmentation map with channel dimension
# - raw_feature_norm: used in function but not in the body shown, likely a flag/parameter
# - smooth: scalar multiplier for attention
# - eps: default parameter, not used in shown body

batch_size = 2
reg_num = 3
embed_size = 128
height = 4
width = 5

query = torch.randn(batch_size, reg_num, embed_size)
context = torch.randn(batch_size, embed_size, height, width)
raw_feature_norm = True  # appears to be a boolean flag
smooth = 1.0
eps = 1e-08

ARGS = {
    "query": query,
    "context": context,
    "raw_feature_norm": raw_feature_norm,
    "smooth": smooth,
    "eps": eps
}
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 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
i2t Ran
ran; our contract draft was wrong, not the code
xurige1995/3shnet/lib/evaluation_rgn_seg_sp_se.py
code served (permissive licence) · get_code("64aed5eaff276e96")
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, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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

# Set seed for reproducibility
np.random.seed(0)

# For COCO mode: npts images, each matched with 5 captions
npts = 3  # number of images
n_captions_total = npts * 5  # 15 captions total

# Create a similarity matrix (npts, 5*npts)
# Shape: (3, 15) - 3 images, 15 captions
sims = np.random.rand(npts, n_captions_total).astype(np.float32)

# Make it somewhat realistic: for each image, its 5 matching captions 
# should have higher similarity scores
for i in range(npts):
    for j in range(5):
        caption_idx = i * 5 + j
        sims[i, caption_idx] += 2.0  # boost the correct captions

ARGS = {
    'npts': npts,
    'sims': sims,
    'return_ranks': False,
    'mode': 'coco'
}
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 tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
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
l1norm Ran
ran; our contract draft was wrong, not the code
xurige1995/3shnet/lib/Crossmodal_Fusion4_sm.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from qinyang79/crcl, is pointer only (licence: NONE) · get_code("9bf455ab09372ab4")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from qinyang79/crcl, 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.

l2norm Ran
ran; our contract draft was wrong, not the code
xurige1995/3shnet/lib/Crossmodal_Fusion4_sm.py
code served (permissive licence) · get_code("be7c4a676b9f1e19")
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 (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 torch

torch.manual_seed(0)

# Create a small tensor for X: shape (4, 3) where dim 0 is batch-like and dim 1 is features
X = torch.randn(4, 3)

# The function uses X with torch.pow, sum, sqrt, and div operations
# It needs dim parameter to specify which dimension to normalize over
# eps is a small constant to avoid division by zero

ARGS = {
    "X": X,
    "dim": 1,
    "eps": 1e-08
}
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 (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
maxk_pool1d_var Ran
ran; our contract draft was wrong, not the code
xurige1995/3shnet/lib/encoders_rgn_seg_sp_se.py
code served (permissive licence) · get_code("84519de0fc36134e")
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)

# Construct valid arguments for maxk_pool1d_var
# x: tensor of shape (batch, seq_len, features)
# dim: dimension to apply maxk (should be 1 for seq_len dimension)
# k: number of top values to select
# lengths: tensor of actual lengths for each batch element

x = torch.randn(2, 5, 4)  # batch=2, seq_len=5, features=4
dim = 1  # dimension to pool over
k = 3  # select top 3
lengths = torch.tensor([5, 3])  # actual lengths for batch elements

ARGS = {
    "x": x,
    "dim": dim,
    "k": k,
    "lengths": lengths
}
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

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 4 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 0 the same month, 2 later) and 6 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
l1norm 12 other papers
9 dated earlier, 3 later · 3 only as an assembly brick
1803.08024 (2018-03)
Stacked Cross Attention for Image-Text Matching
2010.03403 (2020-10)
Universal Weighting Metric Learning for Cross-Modal Matching
2101.01368 (2021-01)
Similarity Reasoning and Filtration for Image-Text Matching
and 9 more not named here
l2norm 12 other papers
11 dated earlier, 1 later · 2 only as an assembly brick
1803.08024 (2018-03)
Stacked Cross Attention for Image-Text Matching
1904.01310 (2019-04)
DM-GAN: Dynamic Memory Generative Adversarial Networks for Text-to-Image Synthesis
2010.03403 (2020-10)
Universal Weighting Metric Learning for Cross-Modal Matching
and 9 more not named here
default_collate_override 1 other paper
1 dated earlier
1812.04948 (2018-12)
A Style-Based Generator Architecture for Generative Adversarial Networks
maxk_pool1d_var 1 other paper
1 dated earlier
2308.09911 (2023-08)
Noisy-Correspondence Learning for Text-to-Image Person Re-identification

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

In this paper, we propose a novel visual Semantic-Spatial Self-Highlighting Network (termed 3SHNet) for high-precision, high-efficiency and high-generalization image-sentence retrieval. 3SHNet highlights the salient identification of prominent objects and their spatial locations within the visual modality, thus allowing the integration of visual semantics-spatial interactions and maintaining independence between two modalities. This integration effectively combines object regions with the corresponding semantic and position layouts derived from segmentation to enhance the visual representation. And the modality-independence guarantees efficiency and generalization. Additionally, 3SHNet utilizes the structured contextual visual scene information from segmentation to conduct the local (region-based) or global (grid-based) guidance and achieve accurate hybrid-level retrieval. Extensive experiments conducted on MS-COCO and Flickr30K benchmarks substantiate the superior performances, inference efficiency and generalization of the proposed 3SHNet when juxtaposed with contemporary state-of-the-art methodologies. Specifically, on the larger MS-COCO 5K test set, we achieve 16.3%, 24.8%, and 18.3% improvements in terms of rSum score, respectively, compared with the state-of-the-art methods using different image representations, while maintaining optimal retrieval efficiency. Moreover, our performance on cross-dataset generalization improves by 18.6%. Data and code are available at https://github.com/XuriGe1995/3SHNet.

For agents

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

get_harvested_code_for_paper("2404.17273")
get_code_for_paper("2404.17273")
have("2404.17273")

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

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

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

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

Connect an agent — have() is free.