paper-with-me

Papers

AdaCoder: Adaptive Prompt Compression for Programmatic Visual Question Answering

2024-07-28 · Mahiro Ukai, Shuhei Kurita, Atsushi Hashimoto, Yoshitaka Ushiku, Nakamasa Inoue

Visual question answering aims to provide responses to natural language questions given visual input. Recently, visual programmatic models (VPMs), which generate executable programs to answer questions through large language models (LLMs), have attracted research interest. However, they often require long input prompts to provide the LLM with sufficient API usage details to generate relevant code. To address this limitation, we propose AdaCoder, an adaptive prompt compression framework for VPMs. AdaCoder operates in two phases: a compression phase and an inference phase. In the compression phase, given a preprompt that describes all API definitions in the Python language with example snippets of code, a set of compressed preprompts is generated, each depending on a specific question type. In the inference phase, given an input question, AdaCoder predicts the question type and chooses the appropriate corresponding compressed preprompt to generate code to answer the question. Notably, AdaCoder employs a single frozen LLM and pre-defined prompts, negating the necessity of additional training and maintaining adaptability across different powerful black-box LLMs such as GPT and Claude. In experiments, we apply AdaCoder to ViperGPT and demonstrate that it reduces token length by 71.1%, while maintaining or even improving the performance of visual question answering.

📄 PDF Abstract BibTeX arXiv:2407.19410

Code (0)

등록된 구현이 없습니다.

Tasks

Question AnsweringVisual Question Answering

Methods 이 논문이 사용한 방법론

Refunds@Expedia|||How do I get a full refund from Expedia? “How do I get a full refund from Expedia? How do I get a full refund from Expedia? – Call ☎️ +1-(888) 829 (0881) or +1-805-330-4056 or +1-805-330-4056 for Quick Help &…
Attention 설명 없음
SET Dynamic Sparse Training method where weight mask is updated randomly periodically
Cosine Annealing Cosine Annealing is a type of learning rate schedule that has the effect of starting with a large learning rate that is relatively rapidly decreased to a minimum value before…
Adam 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…

Similar Papers 제목 키워드 기반

Progressive Learning with Visual Prompt Tuning for Variable-Rate Image Compression

2023-11-23 · Shiyu Qin, Yimin Zhou, Jinpeng Wang, Bin Chen 외

In this paper, we propose a progressive learning paradigm for transformer-based variable-rate image compression. Our approach covers a wide range of compression rates with the assistance of the Layer-adaptive Prompt Modu…

DecoderImage CompressionVisual Prompt Tuning

PRISM: A Benchmark for Programmatic Spatial-Temporal Reasoning

2026-05-19 · Qiran Zhang, Yuheng Wang, Runde Yang, Lin Wu 외 arxiv

Programmatic video generation through code offers geometric precision and temporal coherence beyond pixel-level diffusion models, yet rigorously evaluating whether language models can produce spatially correct animated o…

Spatial ReasoningVideo GenerationCode Generation

Trust but Verify: Programmatic VLM Evaluation in the Wild

2024-10-17 · Viraj Prabhu, Senthil Purushwalkam, An Yan, Caiming Xiong 외

Vision-Language Models (VLMs) often generate plausible but incorrect responses to visual queries. However, reliably quantifying the effect of such hallucinations in free-form responses to open-ended queries is challengin…

BenchmarkingLanguage ModellingLarge Language Model

MetaPS: Adaptive Programmatic Strategy Selection for Market Agents

2026-06-21 · Jiaxiang Chen, Aotian Luo, Zhouyi Zheng, Weiyi Huang 외 arxiv

No single market strategy always wins: momentum, mean reversion, risk control,and event-driven rules can each succeed or fail as market conditions change.Rather than asking large language models to directly generate mark…

TACIT Benchmark: A Programmatic Visual Reasoning Benchmark for Generative and Discriminative Models

2026-02-27 · Daniel Nobrega Medeiros arxiv

Existing visual reasoning benchmarks predominantly rely on natural language prompts, evaluate narrow reasoning modalities, or depend on subjective scoring procedures such as LLM-as-judge. We introduce the TACIT Benchmark…

Visual Reasoning