Papers · 2024 (EMNLP 2025) · Reading: 21 min, plus 4 in closed details.
Paper · EMNLP 2025 (main, pages 9510 to 9536) · arXiv 2405.14862

Bitune: Leveraging Bidirectional Attention to Improve Decoder-Only LLMs (Bitune)

Dawid J. Kopiczko, Tijmen Blankevoort, Yuki M. Asano
v2: Fundamental AI Lab, University of Technology Nuremberg; Meta (Blankevoort). v1: Vrije Universiteit Amsterdam, Meta, University of Amsterdam · arXiv v1 23 May 2024 ("Bitune: Bidirectional Instruction-Tuning"); v2 28 August 2025; EMNLP November 2025

In one line: The causal mask is needed for generation but not, in principle, for reading a prompt that is already complete. Bitune reads the prompt twice (causal and bidirectional, each with its own adapter), mixes the two sets of keys and values per block with learned weights, and generates causally as usual: on five 2B to 8B models, +0.1 to +4.0 points over LoRA on a 5-task zero-shot average (3 seeds; largest on the smallest model), for about 3 times the finetuning time.

+4.0 points
Gemma-2B, average of 5 zero-shot tasks after instruction tuning
45.7 with LoRA to 49.7 with Bitune; Gemma-7B gains only +0.1 · Table 1
+4.3 points
GSM8K for Codestral-22B, LoRA against Bitune
69.3 to 73.6; the largest model tested, one task · Table 17
3.1× training time
Gemma-2B and Llama3-8B, one A100
and 9.3× the prefill time at inference (0.03 s to 0.28 s for 2,000 prompt tokens) · Table 14

How far to trust it: Believe the direction: the gains are measured over 3 seeds, survive the noise on most models and in a parameter-matched baseline, and the learning rate was tuned for the baseline, not for Bitune. Treat the size as model-dependent (from +4.0 points on Gemma-2B to +0.1 on Gemma-7B), the claim that every component is needed as not shown (two of the ten ablation gaps are inside the noise), and the cost as larger than "negligible" whenever prompts are long and answers short. The evidence, judged.

The idea in one sentence: a decoder reads its prompt through the causal mask although the whole prompt is already there, so Bitune prefills the prompt twice, once causally and once bidirectionally with its own adapter, mixes the two sets of keys and values in every block with learned weights, and then generates causally from that mixed cache as usual; on five 2B to 8B models this adds +0.1 to +4.0 points over LoRA on a 5-task zero-shot average, for about 3 times the finetuning time.

You need: the causal and bidirectional masks and the prefix LM (Families and objectives), why a KV cache exists (The transformer from zero, section 9), and LoRA (PEFT); this page is the paper. New terms: instruction features (the paper's name for the prompt's keys and values in every block); causal and bidirectional pass (the two prefills, each with its own adapter); αk, αv (the learned share of bidirectional keys and values in each block); LoRA16 (the rank-16 baseline with Bitune's parameter count); Naive Bidir. (the mask simply switched off over the prompt: a prefix LM made from a pretrained decoder).

Authors, versions and venue

Dawid J. Kopiczko, Tijmen Blankevoort, Yuki M. Asano. arXiv 2405.14862: v1 on 23 May 2024 as "Bitune: Bidirectional Instruction-Tuning" (Vrije Universiteit Amsterdam, Meta, University of Amsterdam); v2 on 28 August 2025 under the current title (Fundamental AI Lab, University of Technology Nuremberg; Blankevoort at Meta). Published at EMNLP 2025, main conference, pages 9510 to 9536. Project page. Added to this knowledge base on 2026-09-01 from a blog entry. Topics: llm-architecture, llm-training-and-post-training.

Two passes over the prompt meet only in the cache; the answer is generated the ordinary causal way
Left, prefilling: the prompt 'Eddie can bake 3 pies a day...' goes through causal attention with weights W_c, giving keys and values K_c, V_c in red, and through bidirectional attention with weights W_B, giving K_B, V_B in blue; the two are added into one row of mixed red-blue instruction features. Right, decoding: the LLM generates 'Eddie bakes 3 x 7 =' with causal attention and W_c, reading the mixed instruction features plus the red features of the tokens it has generated
Notice that only the prompt (the instruction features) is mixed: the generated tokens' own keys and values stay purely causal, and the decoder that reads them is the usual one, so generation code does not change; the price is a second prefill pass and a second set of weights. Figure 1 of the paper (arXiv 2405.14862v2), by Kopiczko, Blankevoort and Asano, CC BY 4.0; swipe sideways on a phone.

Problem: the prompt is read through a mask meant for generation

§1, §2

An instruction-tuned model prefills the whole instruction at once, storing every token's keys and values in every block (the instruction features), then decodes the answer token by token against that cache: p(a|q) = Πi p(ai | a1, ..., ai−1, q) (§2). Decoder-only models apply the causal mask to both phases. It exists for generation, but the prefilled prompt is already fully available, so every prompt token's features are computed from the tokens to its left only. Click a token in the explorer beside this to see what it can attend to, in the paper's own prompt template.

The two phases as §2 states them

An instruction-tuned model answers in two phases (§2). Prefilling runs the whole instruction through the model at once and stores, for every token and every block, its key and value vectors (the KV cache; the paper calls them instruction features). Decoding then generates the answer one token at a time, each new token attending to that cache and to the answer so far. The answer is conditional on the instruction from its very first token. Decoder-only models apply the causal mask everywhere, prompt included. The mask exists for generation: a token being predicted must not see the future. When the prompt is prefilled it is already fully available, so masking it throws information away.

Under the causal mask, which part of this prompt can the first answer token attend to?

Bidirectional encoders (BERT, T5's encoder) and decoders turned into embedding models (LLM2Vec, NV-Embed) already read their input both ways (§1; the masks and families compared: Families and objectives). Bitune asks a narrower question: can a pretrained decoder get that benefit for ordinary instruction following, without changing the pretrained model or the way it generates?

The evidence for the weakness the paper cites

BERTBASE was sized to match OpenAI's GPT and scored 79.6 against GPT's 75.1 on the GLUE average (BERT Table 1), and T5 and BERT both use bidirectional attention over the input (§1). Work that turns decoder LLMs into text encoders switches the mask off: LLM2Vec enables bidirectional attention as its first step (LLM2Vec), and NV-Embed removes "the causal attention mask of LLMs during contrastive training" (NV-Embed).

The ARC template of Appendix A.10 filled with the ARC example of Appendix A.9; one word per token for readability (a real tokenizer splits finer).

Idea: read the prompt twice, mix the two caches, generate as usual

Figure 1, Algorithm 1

The figure at the top is the whole method (Figure 1, Algorithm 1). The one design choice it does not show is why the two passes have different weights: so the model can learn to produce and read bidirectional features differently, instead of pushing them through weights trained on causal ones (the ablations below test exactly this).

The five steps as the paper lists them
  1. A causal pass over the prompt, exactly as now: the features the pretrained model was trained to consume.
  2. A bidirectional pass over the same prompt with no mask, so every prompt token sees the whole instruction.
  3. Two sets of weights. The two passes use different weights, so the model can learn to produce and read the two kinds of features differently instead of pushing bidirectional features through weights trained on causal ones.
  4. Mixing. In every block the two sets of keys and values are averaged with learned weights, and the result becomes the KV cache.
  5. Generation is unchanged: strictly causal, with the original weights, reading the mixed cache. The answer tokens' own keys and values are ordinary causal ones.

Fig. 2 runs it on this page's trained toy (a 3-block decoder with 4 heads, explained below), with the shipped seed-0 models computing every bar in your browser. The prompt is "<bos> Eve Max Ada Xan Ivy ? chess"; only Ada is in the chess club, and the toy learned each membership with the club named first. A glass plate is one pass's attention in block 1, averaged over the 4 heads: rows are the query tokens (back to front), columns the tokens they read, bar height the weight. Orange is causal and blue bidirectional, as in the paper's Figure 1.

  1. The prompt. Eight tokens: five people, then the question "? chess". Only Ada is a member.
  2. Pass 1: causal, the default adapter. Exactly the standard prefill, giving the features the pretrained model expects (Kc, Vc). The shaded cells are the mask: each row reads only the columns to its left, so no person token can see "chess", and none of their keys and values can say "member of the club being asked about".
  3. Pass 2: bidirectional, its own adapter. No mask: every row may read every column. The person rows now put of their block-1 attention on "?" and "chess" to their right (the flowing dots), so from block 2 on each person's keys and values can carry whether that person is a member (Kb, Vb).
  4. Two caches. Each pass leaves one key and one value per prompt token and block, 8 tokens × 3 blocks each. The two passes ran side by side through the whole network; they meet only here.
  5. Mix, block by block. K = Kc(1 − αk) + Kbαk, the same for V, with one learned αk and one αv per block (this toy learned αk and αv ; the dots' density is each side's share). The mixed cache keeps the usual size.
  6. One entry up close. Ada's key in block 2, 32 numbers as signed bars: the causal key, the bidirectional key and their mix with αk = . Block 2 is the first whose keys can carry context from the right, because block 1's keys are projections of the token embeddings (Method).
  7. The answer, generated causally. ":" reads the mixed cache with the ordinary causal weights (the dots' density is its attention to each token, averaged over blocks and heads); its own key and value are plain causal ones appended to the cache, and every later token (here <eos>) is generated as before. Probability on Ada: , against after plain LoRA.

Computed live by the toy in your browser (the same forward pass as Run Bitune, checked against PyTorch). Block evaluations are tokens × blocks per pass. Drag the figure to turn it.

Method

§2, Eq. 1 to 8

Two sets of features per block (Eq. 1, 2): causal Kc = XcWkc, Vc = XcWvc, and bidirectional Kb = XbWkb, Vb = XbWvb. Xc and Xb are each pass's own input to the block: the token embeddings in the first block, then the previous block's output of the same pass. So the two passes run through the whole network side by side; they meet only in the cache. One consequence: in the first block the keys and values are projections of the token embeddings, computed before any attention, so the mask cannot change them there; bidirectional context first reaches the cache in the second block's keys and values (with separate adapters, the first block's still differ by the adapters). Attention is the usual softmax(QKT/√dk + M)V (Eq. 3) with Mc(i, j) = −∞ for future tokens and Mb = 0 everywhere (Eq. 4, 5).

KBitune = Kc(1 − αk) + Kb αk,   VBitune = Vc(1 − αv) + Vb αv,   αj = |θj| / (θinit + |θj|)
Eqs. 6 to 8: a convex combination per block, with one learnable θ for keys and one for values in every block (the authors' code: pass_scale_k, pass_scale_v; repository). θinit = 0.01 (Table 9).

Two details of Eq. 8 that the paper leaves implicit (the code initialises θ to θinit, in PassScale, variant 607): α starts at exactly 0.5, an even mix, whatever θinit is, and θinit sets only how fast α can move. Try it in the explorer beside this.

In the experiments the bidirectional pass has its own LoRA adapter on every linear layer of attention and MLP, not only on the key and value projections that Eqs. 1 and 2 name; training back-propagates the answer's loss through both caches into both adapters and the θs, three forward passes where standard instruction tuning needs one (§2, Limitations).

Implementation details: which weights are separate, training, starting generation, fp32 mixing, several turns

Which weights are separate. Eqs. 1 and 2 name only the key and value projections, but "the components of the model, other than the key and value projections, can have their own separate sets of weights as well" (§2), and in the experiments they do: the bidirectional pass runs with its own LoRA adapter on every linear layer of attention and MLP (the code's prefill adapter), the causal pass and the answer with the other (default). With full weights that would mean a second copy of the model, impractical for large models, so the default is LoRA (§2, Parameter Efficient Fine-tuning); full finetuning with two full weight sets is tested too (Table 7).

Training (Algorithm 2): the causal pass and the bidirectional pass over the instruction, the mix, then the answer through the causal weights over the mixed cache; the loss on the answer back-propagates through both caches into both adapters and the θs. Standard instruction tuning does this in one forward pass; Bitune's needs three (Limitations).

Starting generation. Decoding needs at least one query token after the cache. The paper moves the last token of the instruction template (the ":" of "Answer:") to the start of the answer, rather than adding a new learnable separator (§3.1). The mixing runs in 32-bit floating point while the rest is bfloat16, because "minor numerical inaccuracies in the learnable coefficients ... may lead to significant deviations in the model's behavior".

Several turns (Appendix A.8, not tested): either recompute the whole history's cache bidirectionally every round, or alternate: prefill each new instruction with both masks and append it, generate with causal features only, repeat.

Experiments

§3.1, Appendix A.2, A.3
  • Data. Instruction tuning on a subset of cleaned UltraFeedback: GPT-4's completions only, samples over 512 tokens dropped to fit one GPU, about 10,000 samples (§3.1). A second dataset, cleaned Alpaca (50,000 samples), in Appendix A.6.
  • Models. Gemma 2B and 7B, Llama2 7B, Llama3 8B, Phi-2 (2.7B), through Hugging Face Transformers; Codestral 22B on GSM8K only (Appendix A.7).
  • Baselines. The pretrained model; LoRA rank 8 on every linear layer of attention and MLP (Hugging Face PEFT, alpha 1); and LoRA16, rank 16, which matches Bitune's parameter count because Bitune has two rank-8 adapters.
  • Tuning. The learning rate was tuned for the LoRA baseline over 1e-4, 3e-4, 1e-3, 3e-3 and then reused for every method, which "potentially puts our method at a disadvantage"; 3 seeds per number.
    The training recipe

    AdamW, linear schedule, no weight decay, batch 10 (10 accumulation steps), 10% warmup; 3 epochs (3,000 updates) on UltraFeedback; seeds 42, 43, 44 (Tables 9 to 12).

  • Evaluation. Zero-shot multiple choice with the Language Model Evaluation Harness: each choice's log-likelihood is compared. Commonsense: PIQA, CommonsenseQA (CSQA), ARC-Challenge, SIQA; language understanding: MMLU. Every number is the mean of 3 seeds (§3.1).
  • Two more settings. Training separately on each task's training set (adding GSM8K, which needs a generated, step-by-step answer extracted with a regular expression; §3.2), and training on chain-of-thought traces distilled from GPT-4.1 for PIQA, ARC, CSQA and GSM8K, so the models generate their reasoning before the answer (§3.3). The authors argue the custom format also lowers the risk that gains come from test sets seen in pretraining.

Results

Tables 1 to 3, 6, 7, 16, 17

Instruction tuning (Table 1). Over LoRA, the 5-task average rises by +4.0 points on Gemma-2B (and +9.3 over the pretrained model), +2.3 on Llama3-8B, +1.4 on Llama2-7B, +0.9 on Phi-2, and only +0.1 on Gemma-7B, the one model where every finetuning method lowered MMLU below the pretrained model's 59.0. Against the parameter-matched LoRA16 the gains are similar (+4.3, +1.8, +1.4, +1.0, +0.5): extra parameters alone do not explain them, because LoRA16 lands within half a point of LoRA on every model. Averages, with ±1 standard error from the three seeds:

Trained on each task (Table 2): smaller average gains (+1.4 Gemma-2B, +0.6 Llama3-8B and Phi-2, +0.1 Gemma-7B and Llama2-7B), and on SIQA Bitune trails the better of the two LoRA baselines on all five models. The consistent win is GSM8K, the one generative task: +2.8 (Gemma-2B), +3.0 (Llama3-8B), +0.9, +0.6, +0.3. Chain of thought (Table 3): +2.4 on Gemma-2B and +1.3 on Llama3-8B, ahead on every task, with the largest step on GSM8K (+3.4 and +3.2). Codestral-22B on GSM8K: 69.3 to 73.6, +4.3, "even for larger models, which already have strong performance" (Table 17; one task, one model). Alpaca: +3.4 and +1.0 (Table 16).

Other ways to update the weights (Table 6, Table 7): with DoRA +4.0 and +1.6, with IA3 +2.4 and +1.0 (Gemma-2B and Llama3-8B), and with full finetuning of two full weight sets on Gemma-2B 47.5 to 49.3 (+1.8). The paper writes "gains ranging from +1.6% to +4.0%"; recomputed from its own table, the range is +1.0 to +4.0 (checks).

From Table 1, Table 2 and the seed spreads in Tables 21 and 22 (the error bar of an average treats the 5 tasks as independent: an approximation). Per task, and against LoRA16 or the pretrained model: the tables tab.

Ablations: which part does the work?

§3.5, Tables 5, 8, 15

Four variants, each answering one question (§3.5), on Gemma-2B and Llama3-8B:

  • Naive Bidir.: just drop the mask over the prompt; one set of weights, no mixing. This is turning a pretrained decoder into a prefix-LM.
  • No Mixing: only bidirectional features, but from their own weights.
  • Only Causal: two passes and mixing, both causal: is it the second set of weights, not the bidirectionality?
  • Shared Weights: both passes with the same adapter.
The simplest variant, Naive Bidir., just switches the prompt's mask off in a model pretrained with it on. Against plain LoRA on the same data, does it help or hurt?

The second pass's mask (Table 8): causal 46.9 / 71.1, anti-causal (each token sees only what follows it) 46.7 / 71.4, bidirectional 49.7 / 72.7 (Gemma-2B / Llama3-8B). "Combining causal and anti-causal features independently does not lead to the same high performance": each token has to see both sides in the same pass.

The mixing coefficient's start (Table 15): θinit 0.1, 0.01, 0.001 give 49.4, 49.7, 47.2 on Gemma-2B and 72.7, 72.7, 72.3 on Llama3-8B. Read from the vector data of Figures 2 and 3, the trained Llama3-8B ends at α ≈ 0.32 on average with θinit 0.01: about two thirds causal, one third bidirectional, every block between 0.06 and 0.55 (rebuilt). The trained model does not abandon its causal features; it adds some bidirectional ones.

The 5-task averages of Table 5, with ±1 standard deviation of the average from Table 23 (tasks treated as independent). Bitune's lead over the best ablation is 0.8 points (No Mixing, 1.6 standard errors) on Gemma-2B and 0.4 (Shared Weights, 1.5 standard errors) on Llama3-8B. The toy's panel (axis from 80%): the same variants on this page's toy task, mean ± SD of 3 seeds (Run Bitune).

Cost

§3.4, Table 4, Appendix A.4

Training (Table 14): 3.1 times the time (1.0 to 3.1 hours on Gemma-2B, 1.7 to 5.3 on Llama3-8B, one A100) and 16% to 33% more peak memory (14.9 to 19.8 GB, 26.6 to 30.8 GB). The implementation runs the two prompt passes one after the other and "has not been optimized".

Inference: the prompt is processed twice, so prefill does two passes' work; the cache that decoding reads is one mixed cache of the usual size, so decoding costs the same. Measured on Gemma-2B with a 2,000-token instruction (Table 4): prefill 0.03 s against 0.28 s, 9.3 times longer, then 2,000 generated tokens in about 62 s either way.

Bitune's prefill took 9.3 times as long. For that 2,000-token prompt plus 2,000 generated tokens, how much longer is the whole request?

Two more costs follow from the design, though the paper does not discuss them (beyond the paper; our reasoning): a bidirectional prompt cache cannot be shared between requests that start with the same text, because every token's keys and values now depend on what comes after it, so serving engines' prefix caching (vLLM's automatic prefix caching; how prefix caching works: Batching, KV cache and scheduling in depth) no longer applies to it; and LoRA can usually be merged into the base weights for free serving (PEFT), while Bitune needs two different weight sets at prefill time, so it keeps one adapter live or holds two merged copies.

Illustrative: a straight-line extension of the one measurement in Table 4 (Gemma-2B, one A100; 0.015 ms per prompt token for LoRA, 0.14 for Bitune, 31.1 ms per generated token, assumed the same for both; measured, Bitune's 2,000 tokens took 62.28 s against 62.15 s). Real prefill cost grows faster than linearly at long context, so long prompts are, if anything, underestimated. Measured, in the v1 paper's appendix: a 200-token prompt with a 50-token answer took 11.5% longer on Gemma-2B and 14.2% on Llama3-8B; a 50-token prompt with a 200-token answer 6.5% and 1.5% (v1 Appendix 6.4; all cost tables).

A toy where the mechanism is visible

The paper reports benchmark averages; it does not show when bidirectional prompt features should matter. This page's toy is built to make that visible (Run Bitune has all of it). 48 people and 32 clubs, with a fixed random membership table. A tiny decoder (3 blocks, width 32, 4 heads, 41,472 parameters) is pretrained causally on two kinds of text: facts stated club first ("chess Ada yes"), and questions asked before the list ("? chess Ada Ben Cy : Ben"). Then it is instruction-tuned, with rank-4 LoRA on every linear layer, on a new template that asks the question after the list, the way a document followed by a question does:

<bos> Ada Ben Cy Dee ? chess  →  : Ben <eos>
Exactly one listed person is in the club. Under the causal mask no person token can see "chess", so the knowledge the model has about each person cannot be applied where that person is read.
Same data, same learning rate (tuned for LoRA, as in the paper), 3 seeds each. Which finetuning reaches the highest held-out accuracy on the question-last template?

How much of this to believe

Tables 1 to 8, Appendix A.4 to A.13

What holds up. Every number is the mean of three seeds, and the appendix prints their standard deviations, which most finetuning papers do not (Tables 21 to 25). Against LoRA, 14 of the 25 task-level gains in Table 1 are more than 2 standard errors, and the 5-task average gains are 2.99 to 7.6 standard errors on four of five models (the tasks treated as independent; gains with noise). The baselines are fair or better than fair: LoRA16 matches the parameter count, and the learning rate was tuned for LoRA and reused for Bitune, a disadvantage the authors state. The direction repeats across five models, three settings (instruction tuning, per-task, chain of thought), three PEFT methods, full finetuning, a second dataset and a 22B model. The authors state the training cost themselves (Limitations, Table 14), which counts in their favour.

What is weaker, concretely:

  • model-dependent size From +4.0 (Gemma-2B) to +0.1 (Gemma-7B, 0.22 standard errors, and below LoRA on PIQA and MMLU). The gain shrinks with the stronger models in Table 2 too (+0.1 on Gemma-7B and Llama2-7B). The paper says the effect "depends on the specific model used" but gives no account of why (§3.2).
  • components not all shown necessary "each component contributes" rests on gaps of 0.8 (Gemma-2B, No Mixing) and 0.4 (Llama3-8B, Shared Weights) points, 1.6 and 1.5 standard errors, on two models (Table 5, Table 23). That Bitune is never worse than its ablations holds; that every part is needed does not follow.
  • cost described as negligible True when answers are long (+0.6%, Table 4). The v1 appendix measured +11.5% and +14.2% for 200-token prompts with 50-token answers, a table v2 dropped. Training takes 3.1 times as long. One timing measurement per setting.
  • evaluation by log-likelihood Four of five instruction-tuning tasks are multiple choice scored by comparing the choices' log-likelihoods (§3.1): a cleaner probe of the prompt's encoding than of generation. The generative evidence is GSM8K (Tables 2, 3, 17), where the gains are largest.
  • short prompts only UltraFeedback was cut at 512 tokens and the benchmarks are short; nothing tests long documents, multi-turn chat (A.8 is a proposal) or models above 22B.
Two smaller points: slips in the text, the showcased sample
  • small slips in the text Llama3-8B's "1.8 pp" is against LoRA16 while the other models' numbers are against LoRA (against LoRA it is 2.3); the PEFT range "+1.6% to +4.0%" is +1.0 to +4.0; Gemma-7B is not "a single case" of the pretrained model winning a task (Phi-2 on ARC, 67.3 against 67.2); Figure 2's axis says % but plots fractions (all checks). None changes the conclusion.
  • the showcased sample v1's qualitative table showed one GSM8K question where Bitune was right and LoRA wrong. Graded here, the 20 samples of Appendix A.13 give LoRA 9 and Bitune 10 correct, and that question is the only one where they differ (graded).

Verdict. Believe the direction: reading the prompt bidirectionally, with separate weights, makes instruction-tuned decoders measurably better on short-prompt reasoning and multiple-choice tasks, and the evidence is better controlled than most finetuning papers'. Treat the size as model-dependent and mostly a small-model effect in these experiments, the necessity of every component as unproven, and "negligible" cost as true only when the answer is much longer than the prompt.

What it takes to use this

  • Code. dkopi/bitune: research code "sufficient to reproduce the results", with modified Hugging Face model classes for Gemma, Llama and Phi and a patched copy of the evaluation harness, pinned to transformers 4.38.2 and peft 0.11.1. It has no licence file, so no rights to reuse are granted (its state as last checked: the dated block below).
  • Hardware and time. Everything ran on one A100; budget 3 times your LoRA finetuning time and 16% to 33% more memory (Table 14). Two adapters, so twice LoRA's trainable parameters.
  • What worked. Models of 2B to 8B parameters, plus Codestral-22B on GSM8K; LoRA, DoRA, IA3 and full finetuning; θinit 0.01 (0.001 hurt Gemma-2B: 47.2 against 49.7). The largest gains were on the smallest model and on generated reasoning (GSM8K).
  • When it pays. Short prompts with longer answers, where the doubled prefill is noise, and models in the 2B range. When it buys little. Gemma-7B-like cases (+0.1), long prompts with short answers (prefill-bound serving), anything that relies on prefix caching, and multi-turn chat until someone tests A.8's schemes.

Why it matters (beyond the paper)

The useful idea is smaller than "bidirectional attention is back": the causal mask over the prompt is a legacy of the generation objective, not a requirement of it, and its cost is measurable after pretraining. Prefix LMs made the same observation years earlier, as a pretraining choice (Families and objectives owns them). Bitune's contribution is doing it to an already-pretrained decoder without retraining it, and showing that the bidirectional features need their own weights and a mix with the causal ones: simply converting to a prefix-LM ("Naive Bidir.") gains less and, on Alpaca, can hurt.

The prefix-LM lineage, with sources

Introduced by Liu et al. (2018), compared by T5, which found the prefix-LM beat a plain decoder-only model on both its training objectives (T5; the paper's §4), used by UniLM's sequence-to-sequence mask (UniLM) and folded into UL2's mixture of denoisers. Those were all pretraining choices.

The same diagnosis drives a line of work that repurposes decoders: echo embeddings repeat the input so the second copy sees all of the first, with no training (Springer et al. 2024); LLM2Vec and NV-Embed switch the mask off to make embedding models; Encoder-Decoder Gemma adapts a pretrained decoder into a bidirectional encoder plus a causal decoder (Zhang et al. 2025; KB page). Caveats: the gains are consistent in direction but not transformational; the two-pass design doubles prompt-processing work, a real cost at long context, while the paper's setting is short instructions. Read it for the diagnosis more than the recipe.

Since the paper (sources read 3 October 2026)
  • The repository's README jokingly strikes through "Spaghetti" in its own overview, and "a clean repo for Bitune in the near future", promised since May 2024, has not appeared (checked 3 October 2026).
  • Whether frontier labs use anything like it is not documented in any model card or report we know of (unconfirmed, as of 3 October 2026).

Connections