Papers › LaSagnA: Language-based Segmentation Assistant for Complex Queries

LaSagnA: Language-based Segmentation Assistant for Complex Queries

12 Apr 2024arXiv:2404.08506archive 2025-07-28

Cong Wei, Haoxian Tan, Yujie Zhong, Yujiu Yang, Lin Ma

Recent advancements have empowered Large Language Models for Vision (vLLMs) to generate detailed perceptual outcomes, including bounding boxes and masks. Nonetheless, there are two constraints that restrict the further application of these vLLMs: the incapability of handling multiple targets per query and the failure to identify the absence of query objects in the image. In this study, we acknowledge that the main cause of these problems is the insufficient complexity of training queries. Consequently, we define the general sequence format for complex queries. Then we incorporate a semantic segmentation task in the current pipeline to fulfill the requirements of training data. Furthermore, we present three novel strategies to effectively handle the challenges arising from the direct integration of the proposed format. The effectiveness of our model in processing complex queries is validated by the comparable results with conventional methods on both close-set and open-set semantic segmentation datasets. Additionally, we outperform a series of vLLMs in reasoning and referring segmentation, showcasing our model's remarkable capabilities. We release the code at https://github.com/congvvc/LaSagnA.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2404.08506")

Code

Syntology Ran 10 of 16 code samples harvested from 1 repository linked to this paper; 6 have no recorded run. Of those that ran: 3 ran · honoured contract; 3 ran · fixture could not drive it; 4 ran with no contract checked.

By repository: official repository: 16 samples from 1 repository, 10 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

congvvc/lasagna officialmentioned in papermentioned on GitHubpytorchApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

16 samples harvested; 10 ran; 3 honoured the contract we drafted; 6 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

3ran · honoured contract
3ran · fixture could not drive it
4ran
6unverified

Licence: 0 of the 16 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from congvvc/lasagna. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

box_cxcywh_to_xyxy congvvc/lasagna/model/matcher.py official repository ran · honoured contract fingerprinted Apache-2.0 (permissive) · e0a06ded5d4f6c3c · report
box_iou congvvc/lasagna/model/matcher.py official repository ran · honoured contract fingerprinted Apache-2.0 (permissive) · ce749f837424dd8c · report
box_xywh_to_cxcywh congvvc/lasagna/utils/box_ops.py official repository ran fingerprinted Apache-2.0 (permissive) · 34b5a8556963145a · report
box_xyxy_to_cxcywh congvvc/lasagna/utils/box_ops.py official repository ran · honoured contract fingerprinted Apache-2.0 (permissive) · 031b02fb990284ba · report
dice_loss congvvc/lasagna/model/LaSagnA.py official repository ran · fixture could not drive it fingerprinted Apache-2.0 (permissive) · a1c2083ec2eaeb22 · report
generalized_box_iou congvvc/lasagna/model/matcher.py official repository ran · fixture could not drive it fingerprinted Apache-2.0 (permissive) · dc8fb9b6fb48ac37 · report
list_of_str congvvc/lasagna/train_ds.py official repository ran fingerprinted Apache-2.0 (permissive) · dfaf6628e326c423 · report
parse_args congvvc/lasagna/merge_lora_weights_and_save_hf_model.py official repository ran Apache-2.0 (permissive) · 52a717cc8a70608b · report
process_images congvvc/lasagna/model/llava/mm_utils.py official repository ran Apache-2.0 (permissive) · 1df990c375318896 · report
sigmoid_ce_loss congvvc/lasagna/model/LaSagnA.py official repository ran · fixture could not drive it fingerprinted Apache-2.0 (permissive) · a9292f5d89194794 · report
build_sam_vit_b congvvc/lasagna/model/segment_anything/build_sam.py official repository unverified Apache-2.0 (permissive) · 3f50fb8374909f5f · report
build_sam_vit_h congvvc/lasagna/model/segment_anything/build_sam.py official repository unverified Apache-2.0 (permissive) · bf61a91555ac5280 · report
build_sam_vit_l congvvc/lasagna/model/segment_anything/build_sam.py official repository unverified Apache-2.0 (permissive) · e2ae4c696b8c968c · report
load_image_from_base64 congvvc/lasagna/model/llava/mm_utils.py official repository unverified Apache-2.0 (permissive) · 0dde2e782959c0bd · report
pretty_print_semaphore congvvc/lasagna/model/llava/utils.py official repository unverified Apache-2.0 (permissive) · 37899f22fb191b37 · report
violates_moderation congvvc/lasagna/model/llava/utils.py official repository unverified Apache-2.0 (permissive) · f9939a84b9a65279 · report

Tasks

SegmentationSemantic Segmentation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections