Honeybee: Locality-Enhanced Projector for Multimodal LLM
Paper · 2024 · Junbum Cha, Wooyoung Kang, Jonghwan Mun et al.
Summary
A system asked where an object is in a photograph may need evidence from a small part of the image. Whether that evidence reaches the component that writes the answer depends partly on the visual projector. This connector takes features produced by an image encoder and turns them into visual tokens that a large language model can read alongside a text instruction. Passing along a token for every encoded region preserves the layout of those features but can make the input expensive to process. Passing along a shorter summary saves work, but the summary may favor the most conspicuous parts of the scene. Honeybee asks whether a projector can shorten the sequence while keeping evidence distributed across the image.
The authors develop two projectors that build spatial organization into the way they gather features. C-Abstractor combines neighboring features with convolution and uses pooling to set the size of its output grid. D-Abstractor gives each output query a reference point on the feature map and lets it learn where nearby to sample. The authors also study how to train the resulting system to follow instructions. Their recipe combines conversation data with examples from several vision and language tasks, uses wording tailored to individual datasets, and groups questions about the same image while removing repeated targets.
On selected spatial tasks from MME, MMBench and SEED-Bench, C-Abstractor scores 56.3 on the normalized average at 256 visual tokens, compared with 52.6 for a linear projector at the same token count. C-Abstractor at 144 tokens also scores above the linear baseline while requiring 2.23 seconds per pretraining step, compared with 3.04 seconds. In the broader comparisons, the default 7B Honeybee leads the comparable systems on the benchmarks tested apart from the image-only split of SEED-Bench. Raising the visual token count to 256 takes its score on that split to 65.5, the highest among the 7B systems compared. The 13B Honeybee leads the paper’s main benchmark comparisons.
The training experiments help explain what those headline results include. Different sources support different kinds of performance. Existing question-answering datasets contribute to the fixed-answer tests, while caption and instruction data help on the test of written responses. The controlled projector comparisons support the architectural argument. The overall benchmark rankings reflect the projector, the training recipe and the configuration used together.
Deep dive: Honeybee: Locality-Enhanced Projector for Multimodal LLM
Honeybee studies how a visual projector can shorten the image input to a language system while retaining the details needed for spatial reasoning. · about 34 minutes to read
The problem and its context
Getting an image into a language system
Visual instruction tuning turns answering a question about a picture into a form of instruction following. The user can ask for a description, request an explanation, or refer to something in the image. The system receives the image and the instruction together and produces an answer in text. This is a broader interface than a system trained to produce a caption in a predetermined setting. The Honeybee paper points to requests for stories, poems and other kinds of writing as examples of what an instruction-following interface makes possible. Visual Instruction Tuning
Combining an image encoder with an existing language backbone makes that interface possible without having to learn visual and linguistic representations from the beginning. An image encoder produces a spatially organized set of features. Each feature describes a region in a form useful to the vision network. The language backbone, meanwhile, expects a sequence of vectors in its own input space. The projector converts one representation into the other. The resulting vectors occupy positions in the input sequence and are called visual tokens because the language backbone processes them alongside the vectors for text. A visual token can carry information about a region or a group of regions. It need not correspond to a word.
The authors place Honeybee in a line of work that already showed how pretrained language backbones could be adapted to visual tasks. They cite Flamingo and BLIP-2 for their ability to handle tasks in settings where the system must generalize without task-specific examples or can use examples supplied in context. More recent systems, in the paper’s account, drew on visual instruction data to cover a wider range of requests. Some also trained on data designed for grounding, where the answer must connect an expression to a particular part of the image. This history matters because Honeybee examines one component within an established approach. The paper’s question is how much information that component carries forward and how much work it creates for the rest of the system. Flamingo, BLIP-2
Why the connector affects both detail and cost
A linear projector gives every input feature its own output position. Geometrically, it changes the vector that represents a location and carries that location forward in the sequence. That makes it a straightforward way to preserve the organization already present in the encoder’s output. With a larger feature map, however, the same rule creates a longer visual sequence. A projector made more expressive by applying a small neural network at each position has the same length constraint as long as it keeps the one-to-one mapping.
An abstractor treats output length as a design choice. A resampler or Q-former, for example, can use a set of learned queries to gather information from the visual features. A query is a vector that determines what evidence to collect. Cross-attention lets a query combine information from positions in the image feature map, with weights that depend on the query and the features. The number of queries determines how many vectors reach the language backbone. The designer can therefore change the sequence length without requiring the image encoder to return a different number of regions. Transformer and attention
That freedom leaves open a question about coverage. An unrestricted query can find evidence anywhere, but the architecture gives separate queries no particular reason to start from distinct neighborhoods. If several concentrate on a prominent subject, details elsewhere may have weak representation in the output. The authors illustrate the concern with an attention map in which the resampler concentrates on a person. Food, cups and people farther back in the scene receive less attention. A representation that emphasizes the central subject may work for a broad description of the photograph. A question about a cup or a background figure depends on evidence the same summary may have treated as secondary.
The cost of passing every position forward is also unevenly distributed across the architecture. A visual projector may run quickly and still produce a sequence that takes substantial work for the language backbone to process. The authors treat that backbone as the main consumer of computation and memory in their setup. This makes the visual token budget important even when the projector itself contributes few parameters. Larger images and inputs containing multiple images motivate the concern. The experiments principally test image inputs and vary the visual sequence passed downstream.
How training data became part of the same question
The authors describe two established sources of instruction data. One source uses a capable language system such as GPT-4 to help construct examples of requests and responses, including descriptions and more open-ended writing. The other starts from datasets built for specific vision and language tasks and converts their examples into instruction format. A record containing an image, a question and a known answer can then be presented in the same general interface as a conversational request. The paper calls this conversion instructization. GPT-4 Technical Report, Improved Baselines with Visual Instruction Tuning
These sources supply different kinds of practice. A conversation can specify the form, purpose or level of detail of a reply. A dataset designed around an existing task can offer many examples with relatively precise targets, such as a selected answer or a location. Mixing sources does not by itself determine how much practice the system gets from each one, or whether the wording makes their target conventions clear. In the authors’ account, those choices had received less attention than assembling larger collections of examples.
The paper also distinguishes fixed-answer evaluation from judging written responses. Yes-or-no and multiple-choice tests make it possible to measure a broad set of perceptual and reasoning tasks against predetermined answers. Prompts that call for a free-form reply have to be assessed differently. The earlier work the authors discuss includes judging such replies with a language system. Honeybee uses both kinds of evidence because recognizing the right answer to a visual question and fulfilling a request in a useful form place different demands on the system. G-Eval
The method, step by step
From the image and instruction to a reply
The route through Honeybee can be understood by following the inputs to a single question. The image goes to the vision encoder, which returns region features. Although those features can be stored as a sequence, their positions correspond to a spatial grid. The projector uses them to construct the visual sequence. The text instruction goes through its own input encoding and becomes a sequence of text tokens. The language backbone receives both sequences and generates the response a token at a time. When it chooses the next token, it can use the user’s instruction, the image representation and the part of its answer it has already written.
How Honeybee answers a visual instruction
The steps in order.
The formal description starts by specifying the response as a sequence.
Y = (wᵢ)ᵢ₌₁,…,L
Here Y is the response, wᵢ is its token at position i, and L is the number of response tokens. The notation enumerates positions from the first to the last. The order matters because a later choice is conditioned on the earlier choices.
p(Y | X_img, X_text) = ∏ᵢ₌₁,…,L p(wᵢ | X_img, X_text, w₍<ᵢ₎)
Here p denotes a probability and the vertical bar introduces the information on which it is conditioned. X_img is the sequence of image tokens supplied by the projector, and X_text is the sequence of instruction tokens. Y, wᵢ, i and L have the meanings just given. w₍<ᵢ₎ denotes the response tokens at all positions before i. The product sign ∏ multiplies the conditional probability of each successive token across the response. This is the sense in which generation is autoregressive. During generation, the next prediction uses the preceding text, including text the system has itself produced.
The architectural intervention concerns X_img. A shorter or better organized sequence changes what evidence is available at every step of the reply. The factorization places no special condition on the way the image projector obtains that sequence. A linear projection, a resampler or either Honeybee abstractor can occupy the same role, provided its output is in the input space expected by the language backbone. This common interface is what makes comparisons across projectors meaningful.
Set the number of visual tokens
The authors use N for the number of visual features supplied by the image encoder and M for the number of visual tokens delivered to the language backbone. The one-to-one connector has the following constraint.
M = N
M counts the output sequence positions and N counts the input region features. The equality comes from applying the projection independently to every region. An abstractor can instead use a shorter sequence.
M < N
Here M and N refer to the same output and input counts. The inequality describes the usual efficiency setting, in which the connector summarizes more input positions into fewer visual tokens. The paper also describes configurations that match the original count. For C-Abstractor, the output grid can even be larger than the input feature grid. Its flexibility is the ability to specify the output size through the architecture.
At this point the problem becomes spatial. An output vector can summarize a group of features, but deciding how to define that group determines whether the resulting sequence covers the image. C-Abstractor uses the geometry of a grid to make the groups locally structured. D-Abstractor uses spatial coordinates to give queries distinct starting locations while making their actual sampling patterns learnable.
C-Abstractor builds a new grid out of the old one
C-Abstractor begins with convolutional processing on the encoder’s feature grid. A convolution applies a learned operation over nearby positions. Its outputs depend on the features in a neighborhood, so the projector can incorporate local context before it combines positions into a shorter sequence. The authors implement this part with ResNet bottleneck blocks that include squeeze-excitation. They compare alternative convolution blocks in the architectural ablations.
Adaptive average pooling then sets the dimensions of the output grid. The operation summarizes parts of the incoming grid by averaging features into a specified spatial shape. Its output size is set explicitly, so the number of output positions is determined by the desired grid even if the encoder grid has different dimensions. The architecture described in the paper uses square outputs, which makes the available sequence lengths square counts. Pooling maintains an ordered arrangement of regions while aggregating their feature values.
A further stack of ResNet blocks operates after pooling. The locations at this point are on the new grid. Neighboring positions now represent adjacent portions of the pooled image representation, so the second stack can combine information at the resolution chosen for the visual sequence. The paper denotes by L the number of blocks in each of the two convolutional stacks. The implementation uses L = 3 in this architectural notation. This use of L counts projector blocks and is separate from the response-length symbol in the generation formula.
The order of these operations explains the difference between sub-sampling a feature map and building visual tokens with C-Abstractor. Before pooling, a local operation can bring together evidence spread across nearby encoder regions. The pooled grid retains a sequence of spatial positions. After pooling, convolution can work with relationships among the newly summarized regions. A token can consequently contain information from a neighborhood larger than an individual input feature while still having a place in the output grid.
An output grid with more positions is also possible in the implementation. Those positions are derived from the same encoder features. Increasing their number gives the connector more positions in which to convey existing information. The encoder’s image resolution still determines the visual input from which that information can be obtained. For the efficiency experiments, the useful case is ordinarily a grid small enough to reduce the downstream sequence.
D-Abstractor learns where to sample around each reference point
D-Abstractor starts from the idea of one query per output token. Its change to an ordinary resampler is to organize feature gathering around reference coordinates. A query has a reference point on the image feature map and uses offsets to specify the positions from which it gathers evidence. An offset is a displacement from the reference point. Each sampled feature also receives a weight. The query’s output is the weighted combination of those samples.
The paper expresses the update for an individual query as follows.
zˡ⁺¹ = ∑ₖ₌₁,…,K Aₖˡ · X_feat(p + Δoₖˡ)
zˡ⁺¹ is the updated representation of the query following attention layer l, with the superscript indicating the next layer’s representation. The superscript glyph ˡ denotes the layer index l. K is the number of sampling offsets associated with a reference point, and k indexes those offsets. Aₖˡ is the attention weight for sample k in that layer. X_feat is the input feature map, and X_feat(…) means the feature sampled at the coordinate inside the parentheses. p is the query’s reference point, a coordinate with a horizontal and vertical component. Δoₖˡ is the learned displacement for the sample. Addition gives its location relative to p, the dot scales the sampled feature by its weight, and ∑ adds the weighted features over the samples. The p in this formula is a point, distinct from the probability symbol in the response formula.
In the deformable attention mechanism described by the authors, the reference points, offsets and weights are obtained through learned linear projections of the queries. The important choice is to parameterize the sampling location relative to a reference. A query can gather evidence from a particular part of the image and adapt which positions within or around that part contribute to its output. The paper does not put a fixed neighborhood boundary into the formula. Its locality bias comes from the coordinate-based sampling scheme and the way the queries and reference points are initialized.
The authors change the initialization in two ways. They use adaptively pooled image features to initialize the query representations in their visual-pooling variant. This gives queries a starting representation derived from the image. They also lay out the initial reference points uniformly across the feature map. This manual placement gives different parts of the image coverage at the start of the sampling procedure. The learned offsets then let queries adjust where they sample instead of making every query apply the same spatial stencil.
The D-Abstractor implementation uses L = 6 in the architecture notation, where L counts its attention blocks. The two projectors share the objective of distributing evidence across output positions, but they achieve it through different operations. C-Abstractor imposes the structure through convolutions and a pooled grid. D-Abstractor starts from distributed points and can change the sample locations as a function of its queries. The latter is the authors’ alternative for cases where the fixed neighborhood structure of convolution might be too restrictive.
Align the visual input with the language backbone
Honeybee starts with an existing image encoder and an existing language backbone. The visual features are taken from the second-last layer of CLIP ViT-L/14, the encoder used in the experiments. The language backbone is Vicuna-v1.5. The main 7B setup uses images at 224 resolution, and the 13B setup uses 336. The authors omit special boundary tokens that would mark off the visual sequence within the input. CLIP
The first training stage concentrates on the newly introduced projector. The vision encoder and language backbone are frozen, which means their parameters are held fixed. The projector learns to turn image features into a representation that the fixed language backbone can use when predicting text paired with the image. The alignment data come from COYO100M and BlipCapFilt, mixed at a 1:1 ratio in pretraining. Those pairs supply a connection between visual content and text before the system is asked to follow a wide range of visual instructions. BLIP
In the second stage, the authors update both the projector and the language backbone. This is the stage in which the system learns the requested forms of response. The paper uses full fine-tuning of the language backbone in the final recipe. It uses a short schedule for most controlled experiments, with 50k pretraining steps and 4k instruction-tuning steps. The longer schedule for the final configurations has 200k pretraining steps and 10k instruction-tuning steps. Keeping the two stages explicit is useful because an extra pretraining step updates a different part of the architecture from an extra step of instruction tuning.
For most experiments the authors use a single node with A100 80GB accelerators, with the hardware count specified as 8. They use DeepSpeed ZeRO-2 and FlashAttention-2. The long pretraining stage uses a multi-node setup. These choices give context to the reported runtime comparisons, which measure a stage of training in the authors’ implementation. The paper accompanies Honeybee with publicly released code and trained weights. FlashAttention-2
Turn varied tasks into a common instruction interface
The instruction stage uses LLaVA and ShareGPT for conversational instruction following. Their original instructions and responses are kept. Other sources supply task examples. For open-ended question answering, a target may be a short answer drawn from a visual question dataset. The authors use datasets covering different kinds of evidence, including scene questions in GQA, reading in OCRVQA and spatial relations in VSR. Existing visual question-answering data give the system practice on questions with specific expected answers. GQA, VQA
Multiple-choice examples offer a defined set of candidate answers, as in ScienceQA and A-OKVQA. Captioning examples train the system to write a description of the image. Referring-expression examples connect text to parts of an image. Depending on the task direction, the system may locate something described by text or provide a description grounded in a specified region. For these tasks the authors draw on data including Visual Genome and the RefCOCO collections. Visual Genome
The templates adapt the original records to their new role. In captioning, the authors use the caption as the target without adding an instructional phrase. For visual questions and referring expressions, they use wording tailored to the individual dataset. The VSR conversion illustrates the operation. In a hypothetical scene where a caption says that a cat is inside a refrigerator and the relation is labeled false, the training record becomes a yes-or-no question about the relation. Its target is a negative answer. The visual evidence and intended judgment stay the same while the form of the input changes.
For examples involving bounding boxes, the paper uses normalized coordinates.
[x_min, y_min, x_max, y_max]
x_min and x_max specify the minimum and maximum horizontal coordinates. y_min and y_max specify the corresponding bounds on the vertical axis. The square brackets enclose the ordered coordinate list. Normalization expresses bounds relative to the image dimensions. The representation lets a location appear as a structured part of the instruction or target text.
The authors also use the distinction between an input distribution and an answer distribution to explain why they prefer dataset-specific wording.
p(X_img, X_text)
Here p is a probability distribution over the visual input X_img and text input X_text taken together. The conditional distribution of the response given those inputs is the left side of the response-generation formula. The authors point to RefCOCO and RefCOCO+ as cases where the inputs can look similar while expected answers can differ. Dataset-specific wording can then give the language backbone information about the intended target convention. Rephrasing the same instruction in many ways serves a different purpose from making that convention explicit.
Decide which examples to draw and which turns to keep
A mixture of datasets is also a sampling policy. A small dataset can be repeated many times if it is drawn as frequently as a much larger one. A large dataset can dominate if every record across the collection is equally likely to be drawn. The authors tune the sampling proportions on short runs, aiming to limit repetition of small sources while giving important datasets enough representation during the available instruction-tuning steps. In that short-schedule criterion they cap VSR, ShareGPT and ScienceQA at 3 epochs. They report a sampling ratio of 5.1% for OCRVQA and VG, chosen from their ablation experiments.
When several question-and-answer pairs share the same picture, the authors concatenate them into one example with successive turns. The image then supplies common context for a conversation-like input. The risk is that questions with the same target can make a later answer available from an earlier turn. Their implementation retains a single pair from pairs with duplicate targets within an example. This is the operational check described in the appendix. It addresses repeated answer cues in the constructed conversation while keeping the other turns tied to the same visual context.
BlipCapFilt serves in the alignment stage and is left out of the final instruction stage for computational resource reasons. The authors report that adding it there had little effect on average performance in their comparison. More broadly, the final data recipe is the combination of task coverage, sampling, wording and turn construction selected in the ablations. These choices shape what the language backbone learns to do with the visual representation supplied by the projector.
Experiments and results
What the main evaluations measure
The authors use MME for yes-or-no visual questions and focus their main comparisons on its perception portion, denoted MMEᴾ. They use the development split of MMBench, abbreviated MMB, and the image-only split of SEED-Bench, denoted SEEDᴵ. These latter tests ask the system to choose among alternatives. Together the fixed-answer benchmarks cover broad judgments about images and questions that depend on finer visual evidence or reasoning. The split names matter because the results apply to the selected portions of those benchmarks.
LLaVA-Bench (In-the-Wild), abbreviated LLaVAᵂ, evaluates written replies with GPT-4 as the judge. This gives the authors evidence about how well a response addresses the prompt and conveys relevant content in natural language. The judge’s score is the benchmark’s way of assessing a reply without a single predetermined wording. Its meaning differs from success on a fixed set of answer choices.
The paper uses the official implementation and metric for each benchmark by default. It also reports Avgᴺ, a normalized average. To form it, the authors normalize scores by their respective upper bounds before averaging. This allows benchmarks with different score scales to contribute to the same comparison. The label also appears for a separate spatial evaluation, where the inputs to the average are selected tasks. The benchmark or task set named alongside Avgᴺ thus determines what the average summarizes.
Compare projectors on spatial questions
The targeted projector test draws position questions from MME. From MMBench it chooses spatial relationship, object localization and physical relation questions. From SEED-Bench it chooses spatial relation and instance location questions. These are tasks for which the location of evidence or the relationship between parts of a scene matters. The baselines are a linear projector and a resampler. The linear baseline gives each encoder feature an output position. The resampler can change the number of positions through its query count.
At the same visual sequence length of 256 tokens, the linear projector scores 52.6 on Avgᴺ for the selected spatial tasks, and C-Abstractor scores 56.3. Holding sequence length at that value makes the result informative about the way the connector assembles its representation. The convolutional projector can use its neighborhood processing without an advantage in the number of positions passed to the language backbone.
Projectors at 256 visual tokens on the normalized spatial task average for MME, MMBench and SEED-Bench
The convolutional projector scores higher at the matched visual token count.
The numbers
| System or setting | Avgᴺ score |
|---|---|
| Linear projector | 52.6 |
| C-Abstractor (this paper) | 56.3 |
The shorter C-Abstractor uses 144 visual tokens. The authors report its spatial average as +0.9 point relative to the linear baseline at 256. The accompanying step times are 2.23 seconds for that C-Abstractor setting and 3.04 seconds for the linear baseline. The result gives a concrete case in which a shorter sequence improves the measured speed while still carrying enough task-relevant evidence to improve the spatial score.
The efficiency appendix reports a complementary comparison. The resampler has 105M parameters, and the linear projector has 4M parameters. With 144 visual tokens, the resampler takes 2.28 seconds per pretraining step. The longer linear sequence takes 3.04 seconds per step. The resampler brings more parameters to the projector but less input to the language backbone. Its speed result supports the authors’ argument about the importance of sequence length in the complete system. Its spatial performance is weaker in the projector analysis, which is why the authors examine speed and score together.
Pre-training step time for projectors at their tested visual token counts
The convolutional abstractor has the shortest step time among these settings.
The numbers
| System or setting | s/step |
|---|---|
| Linear projector, 256 tokens | 3.04 |
| Resampler, 144 tokens | 2.28 |
| C-Abstractor, 144 tokens (this paper) | 2.23 |
The charts answer different questions. The spatial chart fixes the output length and tests the quality of the representation. The runtime chart compares settings the authors actually use to study efficiency, so the sequence lengths differ. The paper’s broader efficiency analysis places the convolutional abstractor on the favorable performance frontier among the tested projectors. In that comparison, improving one of the measured properties beyond a given frontier point entails accepting a tradeoff in the other.
Compare complete Honeybee configurations
The final comparisons use the longer training schedule and the data recipe chosen through the ablations. Among comparable 7B systems, the default Honeybee leads on MMEᴾ, MMB and LLaVAᵂ. Its exception is SEEDᴵ. The authors emphasize the configurations of Qwen-VL and LLaVA-1.5 because the visual budgets are different. Qwen-VL uses a ViT-bigG encoder, images at 448 resolution and 256 visual tokens. LLaVA-1.5 uses images at 336 resolution and 576 visual tokens in the comparison. The default 7B Honeybee uses ViT-L/14 at 224 resolution with 144 visual tokens. LLaVA-1.5
When the authors raise the 7B Honeybee sequence length to 256 visual tokens, it scores 65.5 on the image-only SEED-Bench split. This is the leading result among the 7B systems in the paper’s comparison for that split. The authors describe SEED-Bench as often depending on small regions of an image. More output positions can give the connector more room to represent details from those regions. This result identifies a concrete case where the default visual budget leaves performance available at a greater processing cost.
The default 13B Honeybee uses images at 336 resolution and 256 visual tokens. The paper reports that it surpasses the earlier systems compared on all the main benchmarks. This configuration changes the language backbone size, image resolution and visual token budget together relative to the default 7B configuration. It is a comparison of complete systems. The more direct evidence for the role of projector design remains the experiment that matches the output length across connectors.
The authors also test longer visual sequences that match the sizes a linear projector would produce. Within those experiments, raising the output count improves the measured performance and increases the pretraining step time. Choosing 144 tokens for the default 7B setting and 256 for the default 13B setting expresses the paper’s aim of balancing performance and efficiency. The results with longer sequences address what can be gained when the efficiency budget is relaxed.
Test other kinds of visual performance
For ScienceQA, the authors compare Honeybee on the test split with systems that received further task-specific tuning. The comparison also includes a LLaVA procedure that consults GPT-4 when LLaVA and GPT-4 give different answers, then asks GPT-4 to decide between the outcomes. Honeybee with C-Abstractor and Vicuna-13B exceeds that comparison result while answering without GPT-4 assistance and without a separate ScienceQA-only tuning stage. ScienceQA still forms part of the general instruction mixture. The result compares a generalist training procedure with specialist procedures on that test.
The appendix extends the comparison to MM-Vet and MMMU for visual understanding and reasoning, and POPE for object hallucination. Object hallucination here refers to answers that assert the presence of objects without support in the image. The authors report strong comparative results on MM-Vet and MMMU. On POPE, 7B Honeybee falls slightly behind LLaVA-1.5, and the 13B configuration at 336 resolution is competitive. The results broaden the evaluation while showing that the rankings depend on the capability and configuration being tested.
What the ablations show
Position information helps most when it changes how features are gathered
The authors first explore changes that leave the broad structure of an existing connector in place. In the one-to-one family, a 2-layer multilayer perceptron marginally improves the overall score over the single linear projection. A 6-layer multilayer perceptron gives a slight drop when the stack is deepened further. These variants can change what information is encoded at each output position, but each still returns a position for each input feature. They address the expressiveness of the mapping while retaining its original sequence length.
Adding positional embeddings to the resampler produces little improvement in the reported comparison. Such embeddings give the query mechanism information about where features occur. The unrestricted attention operation can still assign weight mainly to a subset of positions. The result motivates the authors’ next step of changing the collection operation itself. Convolution builds a neighborhood into the computation. Deformable attention makes the sampled positions relative to a reference coordinate.
For C-Abstractor, the paper compares a ResNet bottleneck with squeeze-excitation, a ConvNext block and a standard convolution block using a 3×3 convolution. The ResNet option performs best of those variants and becomes the basis of C-Abstractor. The comparison narrows the claim to the implemented choices. Local aggregation is the shared architectural idea, while the result determines which convolutional block the authors use in their experiments.
For D-Abstractor, initializing the queries from pooled visual features improves overall performance in the authors’ tests. Distributing the initial reference points over the feature map also improves it. The two modifications address distinct parts of the sampling process. Pooled features give a query content derived from the image. The distributed points provide a location from which that query starts gathering evidence. Either choice can affect the output while leaving the number of queries fixed.
The paper visualizes attention for the queries of a 144-token resampler and D-Abstractor. In the illustrated comparison, resampler queries emphasize salient portions of the image, while the D-Abstractor queries gather features locally from different parts of the map. This is evidence about where the systems collect their inputs in the examples visualized. The selected spatial benchmarks add behavioral evidence about the usefulness of the resulting representations. The attention view gives the authors’ interpretation a concrete mechanism, even though a weight map alone says little about which specific details survive in a final answer.
The mix needs several kinds of variation
To test variety within a task, the authors compare the full instruction mixture with a mixture using a single dataset for each task group. The smaller selection still includes a representative of each group. Its overall performance is lower. The change therefore bears on diversity within tasks as well as on how many task labels appear in the training mixture. Datasets that share a broad task can still expose the system to different kinds of images, questions or target conventions.
A separate set of runs removes task groups from instruction tuning in turn. The authors associate open-ended visual question answering most clearly with MME performance. Multiple-choice question answering helps MMB and SEEDᴵ. Captioning and instruction-following data contribute to LLaVAᵂ, where the system needs to produce a written response that meets a request. Each of these results comes from changing what examples the system sees and observing which benchmark scores change under the authors’ training setup.
The removal of existing vision and language task data causes significant decreases on MME, MMB and SEEDᴵ in the paper’s comparisons. Those datasets contribute evidence and answer targets that an instruction conversation collection alone covers less effectively in these runs. The reverse side of the mixture is illustrated with examples from OwlEval. Honeybee trained without the LLaVA and ShareGPT instruction data can identify objects in an image, but its responses in the examples tend to be short or miss what the instruction asks it to do. The system trained with those data more often supplies the requested detail and form. The paper uses these examples to illustrate response behavior alongside its benchmark scores.
The authors also compare ways of drawing samples. Uniform per-dataset sampling gives every source equal standing at the dataset level. Uniform per-task sampling does this at the task level, which changes the balance when tasks contain different numbers of datasets. The per-sample-100k strategy samples from examples after capping the size of individual datasets at 100k. Finally, the tuned per-dataset mixture adjusts the dataset-level distribution according to observations from the short training runs. The authors find their tuned choice effective and describe uniform per-dataset sampling as a reliable alternative when manual tuning is unavailable.
The short schedule makes these differences consequential. Increasing sampling from one source within a fixed training budget changes what the system sees from other sources and how frequently small datasets repeat. The authors’ manual mixture uses that fact to limit repetition while preserving opportunities to learn from important sources. The resulting comparison supports tuning the mixture in this setting. It does not isolate a universal contribution from each record or establish that a specific ratio would transfer to a different training collection.
Specific instructions are more useful than extra phrasings in these runs
One experiment compares template-based instruction formatting with a multitask approach that supplies simple task identifiers. The template approach performs better in the authors’ setting. A natural-language instruction can specify the requested behavior directly, including what should appear in the output. A task identifier provides a cue that the system has to associate with its training examples. This comparison tests the effect of replacing a terse identifier with an explicit instruction while keeping the task examples as the basis of training.
Another comparison varies how widely the instruction wording is shared. The fine-grained setting assigns wording to each dataset. The coarse setting shares a template across sources in the same task category. Fine-grained templates do better on all the benchmarks in that ablation. The paper uses referring-expression datasets to explain the possible source of the gain. Similar-looking image and text inputs can carry different conventions for the intended answer. A more specific instruction helps the system select the output behavior appropriate to the example.
The diversity ablation asks a separate question. It compares a single template per dataset with 10 templates per dataset, then tests a version that inverts 3 out of 10 templates. Inversion exchanges parts of the input and target. A question-answering example can become an example in generating a question from the image and an answer. Added wording variation and inverted tasks do not reliably improve benchmark results. The authors’ chosen recipe keeps dataset-specific instructions with a single template. Its diversity comes from combining tasks and datasets as well as from the conversational instruction sources already in the mixture.
The multi-turn experiment studies sequences assembled from examples about the same picture. Grouping the pairs provides a way to train on successive requests in shared visual context. De-duplication further improves the results in the paper’s comparison. The authors interpret this as evidence consistent with reducing shortcut learning. When a target already appears in the preceding dialogue, autoregressive training gives the system a source for its next answer in the transcript. Removing recurring targets reduces this particular source of clues and makes the remaining conversation more dependent on the image and the questions.
Several implementation choices matter within the tested setup
The authors test visual boundary tokens and obtain better performance when they omit them. These tokens would explicitly set off the visual part of the input sequence. The ablation compares the marker choice within Honeybee’s formatting and training setup. A related test chooses the layer of the CLIP encoder supplying the region features. The second-last layer gives stronger results than the last layer, and becomes the default feature source. This test changes which representation the projector receives while leaving its role as a connector intact.
A language-backbone comparison finds similar results for LLaMA-2-chat and Vicuna-v1.5, with a small advantage for Vicuna in the tests. The authors also compare full language tuning with a particular use of LoRA. LoRA learns low-rank parameter updates as a way to adapt a pretrained network. In this experiment it is applied to the query and value layers of attention. Full tuning performs better. The choice of where to apply the updates is part of the tested configuration. LoRA
Finally, the authors vary the amount of training. Extending alignment pretraining while keeping the language backbone frozen brings marginal improvements. Extending instruction tuning changes the language backbone as well as the projector. The authors find that sufficiently long runs become counterproductive and identify around 10k iterations as their most effective instruction-tuning setting. They raise the possibility that prolonged updating can erode abilities acquired in the language backbone’s earlier training. The experiment identifies a useful stopping region for their configuration. It does not attribute every score change to the loss of a particular ability.
Limitations
Limits identified by the authors
The authors deliberately prioritize MME perception. In their inspection of the cognition portion, they find that three out of four task types are oriented towards text, including code reasoning, calculation and translation. They also observe that the translation questions concern Chinese and English. Those characteristics make the cognition portion comparatively sensitive to the choice of language backbone. The decision gives the main MME comparison a clearer connection to the visual projector, while leaving its conclusions narrower than a claim about the full benchmark.
SEED-Bench exposes a limit of the default compact setting. In the examples examined by the authors, the correct answer can depend on a small region. The default 7B Honeybee falls short of the leading comparison on the image-only split, and increasing its visual sequence improves that result. The appropriate output size can therefore depend on the granularity of the intended task. The authors’ design gives them a way to vary it, with a measured cost when they increase it.
The authors leave further convolutional architectures for later investigation. They also say that they did not explore broader or higher-rank applications of LoRA. Their full-tuning decision follows from the variant they evaluated. Finally, they attribute the omission of BlipCapFilt from the instruction mixture to resources and report little average effect when they test its inclusion. That choice was made within a particular training budget, alongside many other sources of caption and instruction data.
Limits of the experimental comparisons
The strongest evidence about the projector comes from controlled comparisons of a common task set and, in the matched-count case, a common number of visual tokens. The complete-system comparisons involve changes in vision encoder, image resolution, language backbone and training mixture. Those rankings show what configurations can achieve together. They cannot isolate the projector’s contribution to the difference between Honeybee and an independently trained system. Similarly, the default 7B-to-13B comparison varies several characteristics at once, so it cannot identify which one explains the improvement on any individual benchmark.
The reported timing metric is seconds per pretraining step. It directly supports claims about that part of the authors’ implementation. A complete deployment comparison would require measurements appropriate to its own workload, including the sizes of the image input and generated reply and the way requests are batched. The paper’s motivation mentions large or multiple images, while its main headline experiments concern the tested settings for image input. The runtime numbers therefore give a measured training comparison and evidence for the importance of the token budget within it.
The qualitative attention examples have a similar boundary. The positions from which D-Abstractor samples can explain how it achieves coverage, but they do not measure whether any particular object attribute remains recoverable from the resulting visual tokens. Conversely, a linear projector’s one-to-one correspondence preserves positions without directly establishing that every detail from the encoder is usable by the language backbone. The behavioral tests evaluate particular consequences of the representation, such as answering a location question. They leave the full information content of the visual sequence unmeasured.
The data experiments also depend on how the training budget is allocated. Removing a task group changes the composition of the mixture and the kinds of instructions seen during a short run. That establishes the value of the group in the tested recipe more directly than it establishes what the group would contribute with new source sizes, additional training or a different backbone. De-duplication catches identical targets within a constructed example. Different wording can still express related answers, and equal targets can arise from legitimate questions about distinct parts of a scene. The paper tests the practical rule and reports its aggregate effect.
Finally, the evaluation formats support different claims. Fixed-answer tests can measure whether the system selected or affirmed the expected answer. They leave room for multiple routes to that answer, including reliance on cues other than those the benchmark designer intended. The LLaVAᵂ comparison uses one judging procedure for written responses. The qualitative samples illustrate differences in instruction following, but do not constitute a separate controlled measurement of human preference. Taken within those scopes, the results support the value of locality-aware projection and the training choices evaluated with it.
What came after
Spatial structure in video and documents
VideoLLaMA 2 cites Honeybee in work on spatial and temporal processing for video and on audio understanding. The spatial part connects most directly to Honeybee’s question of how evidence from different parts of an image reaches a language system. Video adds another dimension to that question because an answer can require relating what is visible at different moments. The audio focus further broadens the kinds of evidence the system must use. The citation connects these concerns to Honeybee’s study of the visual interface. It does not by itself establish adoption of either Honeybee projector.
mPLUG-DocOwl 1.5 brings the discussion to structure learning for document understanding without a separate optical character recognition stage. A document makes the distinction between identifying content and locating it particularly clear. The position of a phrase can help determine what item it describes, and nearby features can matter to whether a system treats pieces of a page as related. Honeybee examines the importance of preserving localized evidence in general visual tasks. The later work’s stated focus is the role of structure in the document setting.
mPLUG-DocOwl2 treats compression as part of understanding high-resolution, multi-page documents without a separate optical character recognition stage. This puts the visual budget at the center of the problem. More than one page must be represented, yet the evidence needed for a question might occupy a small area of a single page. Honeybee’s controlled comparisons offer a related way to think about the cost of representing dense images. The later work places that tradeoff in a task where the number of pages, as well as the detail on each page, is part of the stated challenge.
Resolution and the size of the visual sequence
InternLM-XComposer2-4KHD cites Honeybee while addressing a broad range of image resolutions. Its title identifies the range as 336 Pixels to 4K HD. The connection is the need to accommodate detailed visual inputs while controlling how much the language component has to process. Honeybee separates image-feature count from projector-output count, then varies the latter in its experiments. A system organized around a broad input-resolution range makes the relation between these two quantities an even more prominent design question.
HiRED addresses efficient inference with high-resolution visual inputs through attention-guided token dropping. Its stated mechanism reduces the sequence by selecting which tokens to keep. Honeybee’s convolutional approach reduces the sequence by constructing a smaller grid of combined features, and its deformable approach constructs output tokens by sampling relative to reference points. These mechanisms place the choice about what reaches the language component at different stages. This is the clearest connection between HiRED’s stated topic and Honeybee’s separation of visual detail from the cost of processing every output position.
Vision architecture, transfer and training resources
Cambrian-1 cites Honeybee in a broader, open exploration centered on vision. Honeybee isolates a question that belongs within that wider scope. The encoder can provide a useful region representation, yet the interface to the language backbone still determines which aspects of it are available during a reply. The controlled projector comparisons give evidence for treating that interface as a design choice when studying the contribution of the vision side. The later work’s stated scope extends beyond that individual connector question.
PaliGemma is framed around a versatile 3B system for transfer. Transfer shifts attention toward what an existing vision and language system can support when put to new uses. Honeybee’s sequence of alignment followed by instruction tuning raises a related question about which parts of an existing system must adapt to different visual demands. Its task-mixture ablations describe preparation for several response formats. PaliGemma’s stated focus is the versatility of a system intended for transfer, a wider question than the spatial comparisons of a single connector.
Molmo and PixMo cites Honeybee in work whose stated contributions include open weights and open data for vision and language. This connection bears most directly on Honeybee’s experiments with training sources. Honeybee shows that which sources are mixed, how often they are sampled and what format their examples take can affect different evaluations. A later effort centered on both weights and data puts the materials for investigating those choices within the scope of its contribution. The citation alone leaves the relationship between individual training recipes open.
Cite
Cite as Junbum Cha, Wooyoung Kang, Jonghwan Mun and Byungseok Roh. 2024. Honeybee: Locality-Enhanced Projector for Multimodal LLM. IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings - IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings.
@inproceedings{cha2024honeybee,
title = {{Honeybee: Locality-Enhanced Projector for Multimodal LLM}},
author = {Junbum Cha, Wooyoung Kang, Jonghwan Mun and Byungseok Roh},
booktitle = {IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings - IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings},
year = {2024},
doi = {10.1109/cvpr52733.2024.01311},
eprint = {2312.06742},
archivePrefix = {arXiv},
url = {https://doi.org/10.1109/cvpr52733.2024.01311}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/cha-2024-honeybee-locality-enhanced-projector-multimodal/