SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2505.00275 · NeurIPS · 2025

AdCare-VLM: Towards a Unified and Pre-aligned Latent Representation for Healthcare Video Understanding

Tianming Liu, Yiwei Li, Asaduzzaman Jabin, Hanqi Jiang, Patrick Kaggwa, Eugene Douglass, Juliet Sekandi

arXiv · PDF · Open in the Atlas

Code that ran

3 of 10 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (1 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 2 failures of our instrument; 7 no recorded run), measured 2026-11-24; 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/2505.00275.json · badge: /api/ran/2505.00275.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
asad14053/AdCare-VLM marked official in Papers with Code
Papers with Code archive
3 ran · 7 no recorded run
FunctionStatusWhere it lives
LanguageBindImageTower Ran
ran on a synthesized input · constructed an object; no result was computed
asad14053/AdCare-VLM/videollava/model/language_model/llava_llama.py
code served (permissive licence) · get_code("07371c331d41d4c5")
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 an instance of its own class, LanguageBindImageTower: the run constructed the object and did not call it, so no result was computed. 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)

class DummyConfig:
    def __init__(self):
        self.hidden_size = 768
        self.image_size = 224
        self.patch_size = 16
        self.num_hidden_layers = 12

class DummyEmbeddings(nn.Module):
    def __init__(self):
        super().__init__()
        self.class_embedding = nn.Parameter(torch.randn(768))
    
    def forward(self, x):
        return x

class DummyVisionModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.embeddings = DummyEmbeddings()
        self.config = DummyConfig()
    
    def forward(self, x, output_hidden_states=False):
        batch_size = x.shape[0]
        seq_len = (224 // 16) ** 2 + 1
        hidden_states = [torch.randn(batch_size, seq_len, 768) for _ in range(12)]
        
        class Output:
            pass
        
        out = Output()
        out.hidden_states = hidden_states
        return out

class DummyLanguageBindImage(nn.Module):
    def __init__(self):
        super().__init__()
        self.vision_model = DummyVisionModel()
        self.config = DummyConfig()
    
    @classmethod
    def from_pretrained(cls, model_name, cache_dir=None):
        return cls()

class DummyLanguageBindImageProcessor:
    def __init__(self, config):
        self.config = config

class DummyLanguageBindImageConfig:
    def __init__(self):
        self.hidden_size = 768
        self.image_size = 224
        self.patch_size = 16
    
    @classmethod
    def from_pretrained(cls, model_name, cache_dir=None):
        return cls()

class DummyArgs:
    def __init__(self):
        self.mm_vision_select_layer = 11
        self.mm_vision_select_feature = 'patch'

# Monkey patch the imports in the module namespace
import sys
current_module = sys.modules[__name__]
current_module.LanguageBindImage = DummyLanguageBindImage
current_module.LanguageBindImageProcessor = DummyLanguageBindImageProcessor
current_module.LanguageBindImageConfig = DummyLanguageBindImageConfig

ARGS = {
    'image_tower': 'openai/clip-vit-base-patch32',
    'args': DummyArgs(),
    'delay_load': False,
    'cache_dir': './cache_dir'
}
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 LanguageBindImageTower — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a LanguageBindImageTower 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
build_video_tower Ran
ran; our contract draft was wrong, not the code
asad14053/AdCare-VLM/videollava/model/language_model/llava_llama.py
code served (permissive licence) · get_code("745b178342051072")
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 LanguageBindVideoTower. 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)

# Stand-in classes for LanguageBind components
class LanguageBindVideoConfig:
    def __init__(self):
        self.hidden_size = 768
        self.image_size = 224
        self.patch_size = 16
    
    @classmethod
    def from_pretrained(cls, model_name, cache_dir=None):
        return cls()

class ClassEmbedding(nn.Module):
    def __init__(self):
        super().__init__()
        self.embedding = nn.Parameter(torch.randn(1, 768))
    
    def forward(self, x):
        return x

class VisionEmbeddings(nn.Module):
    def __init__(self):
        super().__init__()
        self.class_embedding = nn.Parameter(torch.randn(1, 768))
    
    def forward(self, x):
        return x

class VisionModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.embeddings = VisionEmbeddings()
        self.config = LanguageBindVideoConfig()
    
    def forward(self, x, output_hidden_states=False):
        batch_size = x.shape[0]
        hidden_state = torch.randn(batch_size, 197, 768)
        
        class MockOutput:
            def __init__(self, hidden_states):
                self.hidden_states = hidden_states
        
        return MockOutput(hidden_states=[hidden_state, hidden_state, hidden_state])

class LanguageBindVideo(nn.Module):
    def __init__(self):
        super().__init__()
        self.vision_model = VisionModel()
        self.config = LanguageBindVideoConfig()
    
    @classmethod
    def from_pretrained(cls, model_name, cache_dir=None):
        return cls()

class LanguageBindVideoProcessor:
    def __init__(self, config):
        self.config = config

# Mock the module-level classes
import sys
current_module = sys.modules[__name__]
setattr(current_module, 'LanguageBindVideo', LanguageBindVideo)
setattr(current_module, 'LanguageBindVideoConfig', LanguageBindVideoConfig)
setattr(current_module, 'LanguageBindVideoProcessor', LanguageBindVideoProcessor)

# Create args config object
class VideoTowerConfig:
    def __init__(self):
        self.mm_video_tower = 'LanguageBind_Video_merge'
        self.mm_vision_select_layer = 1
        self.mm_vision_select_feature = 'patch'

video_tower_cfg = VideoTowerConfig()

ARGS = {
    'video_tower_cfg': video_tower_cfg,
}
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 LanguageBindVideoTower — a LanguageBindVideoTower output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a LanguageBindVideoTower 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
build_vision_projector Ran
ran; our contract draft was wrong, not the code
asad14053/AdCare-VLM/videollava/model/language_model/llava_llama.py
code served (permissive licence) · get_code("ef4db0da176c674c")
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 Linear. 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)

class Config:
    def __init__(self, mm_projector_type, mm_hidden_size, hidden_size):
        self.mm_projector_type = mm_projector_type
        self.mm_hidden_size = mm_hidden_size
        self.hidden_size = hidden_size

# Test with 'linear' projector type
config_linear = Config(mm_projector_type='linear', mm_hidden_size=4, hidden_size=3)

ARGS = {
    'config': config_linear,
    'delay_load': False,
}
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 Linear — a Linear output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Linear 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
CLIPVisionTower Not yet run
unverified (harvested, no recorded run)
asad14053/AdCare-VLM/videollava/model/language_model/llava_llama.py
code served (permissive licence) · get_code("6422a6162a5e6169")
How it ran

no invocation recorded.

LanguageBindVideoTower Not yet run
unverified (harvested, no recorded run)
asad14053/AdCare-VLM/videollava/model/language_model/llava_llama.py
code served (permissive licence) · get_code("8e7e7423f1e4a61f")
How it ran

no invocation recorded.

LlavaLlamaForCausalLM Not yet run
unverified (harvested, no recorded run)
asad14053/AdCare-VLM/videollava/model/language_model/llava_llama.py
code served (permissive licence) · get_code("8bf0e6b04d962b11")
How it ran

no invocation recorded.

LlavaLlamaModel Not yet run
unverified (harvested, no recorded run)
asad14053/AdCare-VLM/videollava/model/language_model/llava_llama.py
code served (permissive licence) · get_code("b77d45f0407b91ff")
How it ran

no invocation recorded.

LlavaMetaForCausalLM Not yet run
unverified (harvested, no recorded run)
asad14053/AdCare-VLM/videollava/model/language_model/llava_llama.py
code served (permissive licence) · get_code("236fb9c779e786df")
How it ran

no invocation recorded.

LlavaMetaModel Not yet run
unverified (harvested, no recorded run)
asad14053/AdCare-VLM/videollava/model/language_model/llava_llama.py
code served (permissive licence) · get_code("e57c28d468e2fe09")
How it ran

no invocation recorded.

build_image_tower Not yet run
unverified (harvested, no recorded run)
asad14053/AdCare-VLM/videollava/model/language_model/llava_llama.py
code served (permissive licence) · get_code("408c940a53f97c09")
How it ran

no invocation recorded.

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, 10 are also present in other papers whose code we hold (10 with at least one paper dated earlier, 1 the same month, 3 later) and 0 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
build_vision_projector
brick of this paper's assembly: helper
17 other papers
15 dated earlier, 2 later · 13 only as an assembly brick
2301.12597 (2023-01)
BLIP-2: Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language Models
2304.08485 (2023-04)
Visual Instruction Tuning
2402.18695 (2024-02)
Grounding Language Models for Visual Entity Recognition
and 14 more not named here
LlavaLlamaModel
brick of this paper's assembly: model
13 other papers
9 dated earlier, 3 later, 1 same year, order not determinable · 3 only as an assembly brick
2304.08485 (2023-04)
Visual Instruction Tuning
2404.05673 (2024-04)
CoReS: Orchestrating the Dance of Reasoning and Segmentation
2405.14974 (2024-05)
LOVA 3 : Learning to Visual Question Answering, Asking and Assessment
and 10 more not named here
CLIPVisionTower
brick of this paper's assembly: helper
9 other papers
7 dated earlier, 1 the same month, 1 later · 7 only as an assembly brick
2301.12597 (2023-01)
BLIP-2: Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language Models
2304.08485 (2023-04)
Visual Instruction Tuning
2402.18695 (2024-02)
Grounding Language Models for Visual Entity Recognition
and 6 more not named here
LlavaLlamaForCausalLM
brick of this paper's assembly: entry
3 other papers
3 dated earlier
2304.08485 (2023-04)
Visual Instruction Tuning
2405.14974 (2024-05)
LOVA 3 : Learning to Visual Question Answering, Asking and Assessment
2410.06234 (2024-10)
TEOChat: A Large Vision-Language Assistant for Temporal Earth Observation Data
build_video_tower
brick of this paper's assembly: model
2 other papers
2 dated earlier
2311.10122 (2023-11)
Video-LLaVA: Learning United Visual Representation by Alignment Before Projection
2406.14477 (2024-06)
SafeSora: Towards Safety Alignment of Text2Video Generation via a Human Preference Dataset
LanguageBindImageTower
brick of this paper's assembly: helper
1 other paper
1 dated earlier · 1 only as an assembly brick
2410.06234 (2024-10)
TEOChat: A Large Vision-Language Assistant for Temporal Earth Observation Data
LanguageBindVideoTower
brick of this paper's assembly: helper
1 other paper
1 dated earlier · 1 only as an assembly brick
2410.06234 (2024-10)
TEOChat: A Large Vision-Language Assistant for Temporal Earth Observation Data
LlavaMetaForCausalLM
brick of this paper's assembly: helper
1 other paper
1 dated earlier · 1 only as an assembly brick
2410.06234 (2024-10)
TEOChat: A Large Vision-Language Assistant for Temporal Earth Observation Data
LlavaMetaModel
brick of this paper's assembly: helper
1 other paper
1 dated earlier
2410.06234 (2024-10)
TEOChat: A Large Vision-Language Assistant for Temporal Earth Observation Data
build_image_tower
brick of this paper's assembly: model
1 other paper
1 dated earlier
2406.14477 (2024-06)
SafeSora: Towards Safety Alignment of Text2Video Generation via a Human Preference Dataset

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-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Chronic diseases, including diabetes, hypertension, asthma, HIV/AIDS, epilepsy, and tuberculosis, necessitate rigorous adherence to medication to avert disease progression, manage symptoms, and decrease mortality rates. Adherence is frequently undermined by factors including patient behavior, caregiver support, elevated medical costs, and insufficient healthcare infrastructure. We propose AdCare-VLM, a specialized LLaVA-based multimodal large vision language model (LVLM) by introducing a unified visual latent space with pre-alignment to facilitate visual question answering (VQA) concerning medication adherence through patient videos. We employ a private dataset comprising 806 custom-annotated tuberculosis (TB) medication monitoring videos, which have been labeled by clinical experts, to fine-tune the model for adherence pattern detection. We present LLM-TB-VQA, a detailed medical adherence VQA dataset that encompasses positive, negative, and ambiguous adherence cases. Our method identifies correlations between visual features, such as the clear visibility of the patient's face, medication, water intake, and the act of ingestion and their associated medical concepts in captions. This facilitates the integration of aligned visual-linguistic representations and improves multimodal interactions. Experimental results indicate that our method surpasses parameter efficient fine-tuning (PEFT) enabled VLM models, such as LLaVA-V1.5 and Chat-UniVi, with absolute improvements ranging from 3.1% to 3.54% across pre-trained, regular, and low-rank adaptation (LoRA) configurations. Comprehensive ablation studies and attention map visualizations substantiate our approach, enhancing interpretability.

For agents

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

get_harvested_code_for_paper("2505.00275")
get_code_for_paper("2505.00275")
have("2505.00275")

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

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

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

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

Connect an agent — have() is free.