SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2312.17240 · 2023

LISA++: An Improved Baseline for Reasoning Segmentation with Large Language Model

arXiv · PDF · Open in the Atlas

Code that ran

6 of 14 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, 1 violated it and 0 have no contract verdict; 4 failures of our instrument; 8 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/2312.17240.json · badge: /api/ran/2312.17240.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
dvlab-research/lisa canonical (classifier label)
classifier basis: census
6 ran · 8 no recorded run
FunctionStatusWhere it lives
dice_loss Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
dvlab-research/lisa/model/LISA.py
code served (permissive licence) · get_code("a1c2083ec2eaeb22")
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 Tensor, 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 torch

torch.manual_seed(0)

# Create small tensors for inputs and targets
# inputs: predictions (arbitrary shape, will be flattened to (batch, features))
# targets: binary labels with same shape as inputs
batch_size = 2
height = 4
width = 3

inputs = torch.randn(batch_size, height, width)
targets = torch.randint(0, 2, (batch_size, height, width)).float()

# num_masks: number of masks (used for normalization)
num_masks = 2.0

# scale: scaling factor for normalization
scale = 1000

# eps: small epsilon for numerical stability
eps = 1e-06

ARGS = {
    "inputs": inputs,
    "targets": targets,
    "num_masks": num_masks,
    "scale": scale,
    "eps": eps,
}
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 Tensor, 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
load_image_from_base64 Ran
ran, honoured the contract we drafted
dvlab-research/lisa/model/llava/mm_utils.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from tencent/hunyuan3d-2, is pointer only (licence: NOASSERTION) · get_code("0dde2e782959c0bd")
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 tencent/hunyuan3d-2, and GitHub could not classify the licence of that repository (NOASSERTION). 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.

preprocess Ran
ran; our contract draft was wrong, not the code
dvlab-research/lisa/chat.py
code served (permissive licence) · get_code("77ff24f1cbcb4f2d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned Tensor, ndim 3, dtype family float, shape (3, 1024, 1024) 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 input tensor with shape (C, H, W)
# Using distinct dimensions: 3 channels, height=5, width=7
x = torch.randn(3, 5, 7)

# Default pixel_mean and pixel_std are already provided in the function signature
# They have shape (3, 1, 1) for broadcasting
pixel_mean = torch.Tensor([123.675, 116.28, 103.53]).view(-1, 1, 1)
pixel_std = torch.Tensor([58.395, 57.12, 57.375]).view(-1, 1, 1)

# img_size is the target square size
img_size = 1024

ARGS = {
    'x': x,
    'pixel_mean': pixel_mean,
    'pixel_std': pixel_std,
    'img_size': img_size
}
Setup block drafted by
a language model, Claude Sonnet 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 Tensor, ndim 3, dtype family float, shape (3, 1024, 1024) — shape (3, 1024, 1024) 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
process_images Ran
ran; our contract draft was wrong, not the code
dvlab-research/lisa/model/llava/mm_utils.py
code served (permissive licence) · get_code("1df990c375318896")
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 4, dtype family float, shape (2, 3, 4, 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
import torch.nn as nn

torch.manual_seed(0)

# Create a minimal image processor stand-in
class MockImageProcessor:
    def __call__(self, images, return_tensors=None):
        # The function calls this with images and return_tensors='pt'
        # It expects a dict with 'pixel_values' key containing a tensor
        if isinstance(images, list):
            # Stack list of images into batch
            stacked = torch.stack(images)
        else:
            stacked = images
        
        return {
            'pixel_values': stacked
        }

# Create minimal model config (unused in function body, but required parameter)
model_cfg = {}

# Create sample images - batch of 2, with shape (3, 4, 4) for RGB images of size 4x4
images = [
    torch.randn(3, 4, 4),
    torch.randn(3, 4, 4)
]

# Create image processor
image_processor = MockImageProcessor()

ARGS = {
    'images': images,
    'image_processor': image_processor,
    'model_cfg': model_cfg
}
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 4, dtype family float, shape (2, 3, 4, 4) — shape (2, 3, 4, 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
sigmoid_ce_loss Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
dvlab-research/lisa/model/LISA.py
code served (permissive licence) · get_code("a9292f5d89194794")
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 Tensor, 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 torch
import torch.nn.functional as F

torch.manual_seed(0)

# Create small tensors for inputs and targets
# inputs: predictions (logits) - arbitrary shape, will be flattened in loss computation
# targets: binary labels (0 or 1) - same shape as inputs
batch_size = 2
height = 4
width = 3

inputs = torch.randn(batch_size, height, width, dtype=torch.float32)
targets = torch.randint(0, 2, (batch_size, height, width), dtype=torch.float32)

# num_masks: a float representing the number of masks
num_masks = 2.0

ARGS = {
    "inputs": inputs,
    "targets": targets,
    "num_masks": num_masks,
}
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 Tensor, 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
violates_moderation Ran
ran, violated the contract we drafted
dvlab-research/lisa/model/llava/utils.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from Mi3-Lab/doScenes-VLM-Planning, is pointer only (licence: AGPL-3.0) · get_code("f9939a84b9a65279")
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 Mi3-Lab/doScenes-VLM-Planning, and AGPL-3.0, as GitHub detects it on that repository, is not in the permissive set Syntology serves inline. 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.

build_sam_vit_b Not yet run
unverified (harvested, no recorded run)
dvlab-research/lisa/model/segment_anything/build_sam.py
code served (permissive licence) · get_code("3f50fb8374909f5f")
How it ran

no invocation recorded.

build_sam_vit_h Not yet run
unverified (harvested, no recorded run)
dvlab-research/lisa/model/segment_anything/build_sam.py
code served (permissive licence) · get_code("bf61a91555ac5280")
How it ran

no invocation recorded.

build_sam_vit_l Not yet run
unverified (harvested, no recorded run)
dvlab-research/lisa/model/segment_anything/build_sam.py
code served (permissive licence) · get_code("e2ae4c696b8c968c")
How it ran

no invocation recorded.

get_default_conv_template Not yet run
unverified (harvested, no recorded run)
dvlab-research/lisa/utils/conversation.py
code served (permissive licence) · get_code("245343ff311f6219")
How it ran

no invocation recorded.

parse_args Not yet run
unverified (harvested, no recorded run)
dvlab-research/lisa/merge_lora_weights_and_save_hf_model.py
code served (permissive licence) · get_code("1496505dfa11cab2")
How it ran

no invocation recorded.

parse_args Not yet run
unverified (harvested, no recorded run)
dvlab-research/lisa/chat.py
code served (permissive licence) · get_code("58e2ab5845d98f4c")
How it ran

no invocation recorded.

parse_args Not yet run
unverified (harvested, no recorded run)
dvlab-research/lisa/train_ds.py
code served (permissive licence) · get_code("a0d5897eb3717c5c")
How it ran

no invocation recorded.

pretty_print_semaphore Not yet run
unverified (harvested, no recorded run)
dvlab-research/lisa/model/llava/utils.py
code served (permissive licence) · get_code("37899f22fb191b37")
How it ran

no invocation recorded.

Also present in other papers' code

Of 14 samples lifted from this paper's linked repositories, 14 carry a function identity and 0 do not. Of the 14 distinct functions with an identity, 11 are also present in other papers whose code we hold (8 with at least one paper dated earlier, 10 the same month, 11 later) and 3 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
load_image_from_base64 85 other papers
9 dated earlier, 6 the same month, 70 later
2112.05682 (2021-12)
Self-attention Does Not Need $O(n^2)$ Memory
2308.10253 (2023-08)
StableLLaVA: Enhanced Visual Instruction Tuning with Synthesized Image-Dialogue Data
2309.07120 (2023-09)
Sight Beyond Text: Multi-Modal Training Enhances LLMs in Truthfulness and Ethics
and 82 more not named here
violates_moderation 56 other papers
11 dated earlier, 3 the same month, 42 later
2106.06909 (2021-06)
GigaSpeech: An Evolving, Multi-domain ASR Corpus with 10,000 Hours of Transcribed Audio
2308.03279 (2023-08)
UniversalNER: TARGETED DISTILLATION FROM LARGE LANGUAGE MODELS FOR OPEN NAMED ENTITY RECOGNITION
2308.13437 (2023-08)
Position-Enhanced Visual Instruction Tuning for Multimodal Large Language Models
and 53 more not named here
pretty_print_semaphore 54 other papers
10 dated earlier, 2 the same month, 42 later
2106.06909 (2021-06)
GigaSpeech: An Evolving, Multi-domain ASR Corpus with 10,000 Hours of Transcribed Audio
2308.13437 (2023-08)
Position-Enhanced Visual Instruction Tuning for Multimodal Large Language Models
2309.07120 (2023-09)
Sight Beyond Text: Multi-Modal Training Enhances LLMs in Truthfulness and Ethics
and 51 more not named here
build_sam_vit_h 37 other papers
12 dated earlier, 4 the same month, 21 later · 2 only as an assembly brick
2304.06790 (2023-04)
Inpaint Anything: Segment Anything Meets Image Inpainting
2304.12306 (2023-04)
Segment Anything in Medical Images
2305.01586 (2023-05)
An Alternative to WSSS? An Empirical Study of the Segment Anything Model (SAM) on Weakly-Supervised Semantic Segmentation Problems
and 34 more not named here
build_sam_vit_b 34 other papers
12 dated earlier, 4 the same month, 18 later
2304.06790 (2023-04)
Inpaint Anything: Segment Anything Meets Image Inpainting
2304.12306 (2023-04)
Segment Anything in Medical Images
2305.01586 (2023-05)
An Alternative to WSSS? An Empirical Study of the Segment Anything Model (SAM) on Weakly-Supervised Semantic Segmentation Problems
and 31 more not named here
build_sam_vit_l 34 other papers
12 dated earlier, 4 the same month, 18 later
2304.06790 (2023-04)
Inpaint Anything: Segment Anything Meets Image Inpainting
2304.12306 (2023-04)
Segment Anything in Medical Images
2305.01586 (2023-05)
An Alternative to WSSS? An Empirical Study of the Segment Anything Model (SAM) on Weakly-Supervised Semantic Segmentation Problems
and 31 more not named here
sigmoid_ce_loss 17 other papers
3 the same month, 14 later · 1 only as an assembly brick
2312.02228 (2023-12)
PixelLM: Pixel Reasoning with Large Multimodal Model
2312.10103 (2023-12)
GSVA: Generalized Segmentation via Multimodal Large Language Models
2312.15715 (2023-12)
Segment Every Reference Object in Spatial and Temporal Spaces
and 14 more not named here
dice_loss 16 other papers
1 dated earlier, 3 the same month, 12 later · 1 only as an assembly brick
2311.05348 (2023-11)
u-LLaVA: Unifying Multi-Modal Tasks via Large Language Model
2312.02228 (2023-12)
PixelLM: Pixel Reasoning with Large Multimodal Model
2312.10103 (2023-12)
GSVA: Generalized Segmentation via Multimodal Large Language Models
and 13 more not named here
process_images 15 other papers
3 dated earlier, 2 the same month, 10 later
2309.07120 (2023-09)
Sight Beyond Text: Multi-Modal Training Enhances LLMs in Truthfulness and Ethics
2311.16208 (2023-11)
InstructMol: Multi-Modal Integration for Building a Versatile and Reliable Molecular Assistant in Drug Discovery
2311.18445 (2023-11)
VTimeLLM: Empower LLM to Grasp Video Moments
and 12 more not named here
preprocess 4 other papers
4 later
2407.17035 (2024-07)
Q-Ground: Image Quality Grounding with Large Multi-modality Models
2409.19603 (2024-09)
One Token to Seg Them All: Language Instructed Reasoning Segmentation in Videos
2508.00518 (2025-08)
Fine-grained Spatiotemporal Grounding on Egocentric Videos
and 1 more not named here
get_default_conv_template 3 other papers
2 the same month, 1 later
2312.01052 (2023-12)
SCTc-TE: A Comprehensive Formulation and Benchmark for Temporal Event Forecasting
2312.09818 (2023-12)
SMILE: Multimodal Dataset for Understanding Laughter in Video with Language Models

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

While LISA effectively bridges the gap between segmentation and large language models to enable reasoning segmentation, it poses certain limitations: unable to distinguish different instances of the target region, and constrained by the pre-defined textual response formats. In this work, we introduce LISA++, an update to the existing LISA model, focusing on improving core functionalities while keeping the base architecture intact. The main enhancements in LISA++ include: \textbf{1) Enhanced Segmentation}: The instance segmentation ability has been added, providing a more detailed scene analysis along with the existing multi-region semantic segmentation. \textbf{2) More Natural Conversation}: Improved capability for multi-turn dialogue, with the ability to incorporate segmentation results directly into text responses, i.e., Segmentation in Dialogue (SiD). These improvements are achieved by curating the existing samples of generic segmentation datasets, aimed specifically at enhancing the segmentation and conversational skills without structural change and additional data sources. Comparative analysis with the original LISA model shows significant advancements in these areas, positioning LISA++ as a notable upgrade in visual understanding and interaction. LISA++'s adaptability and improved features highlight the versatility of the mask-as-embedding paradigm proposed by LISA, and the potential as a foundational model for diverse applications.

For agents

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

get_harvested_code_for_paper("2312.17240")
get_code_for_paper("2312.17240")
have("2312.17240")

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

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

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

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

Connect an agent — have() is free.