Elamur Research

Compressing Context to Enhance Inference Efficiency of Large Language Models

Paper · 2023 · Yucheng Li, Bo Dong, Frank Guerin et al.

Summary

A system asked to read a long document or continue an extended conversation must process the source before it can respond. The longer the input, the more memory and computation that can require. When the input exceeds the system’s context window, some of the text may be cut off. The authors propose Selective Context, a way to shorten the source by deciding which parts can most plausibly be spared. It works before the answering system receives the input and can be used without changing how that system computes attention. The paper studies this approach to compression for large language models.

Selective Context uses a smaller causal predictor to estimate how likely each piece of the original text was given what came before it. An unexpected piece gets a high score, called self-information or surprisal. The compressor can use those scores directly or add them together for larger pieces. The authors use spaCy to group noun phrases and NLTK to find sentence boundaries. A percentile calculated from the scores in the current source sets the dividing line between text to retain and text to drop. The granularity matters. In the reported comparison, phrase-level selection gives the strongest results, individual pieces come next, and deleting whole sentences is less consistent.

The authors test the method on excerpts from arXiv papers, whole BBC News articles, and ShareGPT conversations. They ask whether shortened sources can support reconstruction of the original text, a reply to the last turn of a conversation, text summarization, and question answering. Reconstruction is checked against the source itself. The other comparisons use responses produced with the full source as references. Guided deletion beats random deletion at the same tested reduction settings under greedy decoding. In the study where people judge the summaries, instruction-tuned Vicuna handles the pruned input better than base LLaMA, which frequently struggles to carry out the summarization instruction.

For a 50% reduction in context cost, the paper reports savings of 36% in inference memory and 32% in inference time. The sampled-output comparison at a reduction setting of 0.5 gives a reported BERTScore F1 drop of .023, a measure of how closely the answers match in meaning. A separate manual question-answering evaluation at that setting finds that .038 of the extracted claims lack support in the full-context reference answers. In an individual Vicuna summarization example, preparation of the shorter source takes 46.1 ms, and generation time falls from 110.8 to 76.3 ms per token. The results show where a shorter input can serve much the same purpose as the original and where information loss becomes visible. The authors identify two unresolved choices, how to handle phrase boundaries beyond noun phrases and how to select a pruning percentile for a particular task and source. They release the code and data with Selective Context.

Deep dive: Compressing Context to Enhance Inference Efficiency of Large Language Models

Selective Context shortens prompts by removing predictable text, and the paper tests how this affects inference cost and answer quality. · about 39 minutes to read

The problem and its context

The cost of carrying a source into an answer

A document and a question about it place distinct demands on a system. The question specifies what the answer should do. The document supplies material that might be needed to do it. Until the source is processed, its length contributes to the cost whether the answer ends up needing many of its details or only a few. The same applies to a conversation. A short final request can depend on exchanges spread throughout a long history, and the system has to handle that history to work out what the request means.

The paper traces part of the expense to dense attention. A calculation that represents relationships between positions in a matrix gets larger along both dimensions as more positions are added. The associated computation and memory therefore grow quadratically with sequence length in the account the authors give. Even a source that fits within a system’s allowed input can be costly. The authors connect that cost to the architecture described in the original attention paper. Transformer and attention · Attention Is All You Need

The other pressure is the context window, the bounded span of text a system can accept at once. The authors note that pretraining commonly used a fixed window. Once an input exceeds the available span, fitting it can mean cutting away some of the original. A positional cutoff can discard a passage even when that passage contains the answer. Selective Context starts from the possibility that a shorter input could instead be assembled from material spread throughout the source. It would still fit within a fixed window, with the space allocated according to a score for each piece of text.

Consider the introduction to a scientific article. It can contain a statement of the problem, background that helps situate it, a description of a proposed method, and an explanation of how the authors will test it. An answer about the proposed method may depend heavily on wording in a few places. A general account of the research may need to draw from all those parts at a higher level. In either case, processing the complete introduction charges the system for everything in it. The paper asks whether some of that cost can be avoided while preserving what the reader will need from the introduction.

Why predictability might help decide what to remove

The authors identify ordinary redundancy as a reason compression might work. In a conversation, an answer may repeat the action named in the question before confirming that it occurred. The repetition can be useful to a human listener. It supplies an explicit connection between the turns and makes the reply easier to interpret if part of the question was missed. When both turns are available to the system together, some of the repeated words may be recoverable from the exchange. Removing them could save space while leaving the exchange intelligible.

The other source of potential redundancy is knowledge the system already has from pretraining. The paper illustrates this with a passage about increasing the scale of large language models. After the sentence that states the premise of those efforts is removed, an answer still supplies the expected connection between greater scale and better performance. The illustration motivates a distinction between explicitly stating a premise in a particular prompt and making the premise available to the system. The result in the illustration could reflect prior knowledge, clues in the surrounding text, or both. The important observation for compression is that a response can express a point even when the most explicit statement of it has been deleted.

Recoverability and relevance are separate properties. A stock phrase can be easy to anticipate and carry little value for a given request. An equally familiar word can mark an exception that changes the answer. Conversely, an unfamiliar name may be hard to predict even when it is incidental to the request. The authors choose a score for predictability because it can be calculated before the answer is known. The study then asks how far that score can go as a guide to making the input useful at a smaller size.

That choice places the emphasis on the occurrence of a word in its surroundings. A term can be unexpectedly introduced in a sentence and then occur in an expression where it is easier to anticipate. A score that depends on the preceding words can distinguish these cases even though the term itself is identical. This is the connection between the paper’s account of redundancy and its procedure. Predictability changes with the evidence available before a piece of text, and a compressor can use those differences to decide which occurrences to retain.

Where earlier approaches saved computation

The authors discuss methods that reduce the expense of attention itself. They cite Sparse Transformers for sparse attention and Longformer for attention that is dense within local regions. In that account, the architecture changes which relationships between positions it computes. Selective Context intervenes earlier, by reducing the number of source positions presented for those computations. The authors consider the interventions potentially complementary. A source could be pruned before it reaches an architecture that already economizes on attention. Sparse Transformers · Longformer

The paper also places its work alongside learned context compression. It describes prior approaches in which soft prompts and distillation are used to obtain compact input representations for inference. A soft prompt encodes guidance in a learned representation. Selective Context produces ordinary text made up of surviving parts of the source. The learning on which it relies has already taken place in the causal predictor used to score those parts. This puts the burden of compression on deciding what can be removed and leaves the downstream system to interpret the resulting text. Learning to Compress Prompts with Gist Tokens · Adapting Language Models to Compress Contexts

Using surviving text gives the approach a simple interface. The compressor takes a source passage or conversation history and yields another piece of text that can be supplied as context. The same interface also exposes what the method may lose. If words linking two ideas disappear, the surviving passage can leave their relationship implicit. It may still be cheaper to process, but making sense of it can require the downstream system to infer connections that were stated in the original. The paper’s experiment is about the balance between those costs and benefits.

The method, step by step

How the filter reads a passage

Suppose a passage about continual learning is about to be passed to a system that will answer a question or write a summary. Selective Context starts with the actual sentences. It divides the text into tokens, the pieces the predictor reads at successive positions. These pieces are the units over which the predictor assigns probabilities. For each position, the compressor asks how much probability the predictor placed on the piece that the author of the passage actually wrote. The next piece comes from the source throughout the scoring pass. This use of tokenization lets the compressor obtain a numerical score even for material it has no instructions to answer questions about.

A causal predictor conditions each estimate on the earlier part of the sequence. A common continuation receives relatively little surprise. A continuation the predictor considers unlikely receives more. This is a graded judgment. Even the most likely continuation can carry some surprise, and several moderately unexpected pieces can together make a span worth retaining. The probability used for a score comes from the predictor’s distribution over possible next pieces, a general property of a language model.

Next comes the choice of what can pass through the filter together. At the finest granularity, each token can be kept or removed on its own. At phrase granularity, constituents identified as noun phrases can be handled as groups. At sentence granularity, all the words in a detected sentence share a retention decision. Putting pieces in a group means adding their scores. A highly unexpected technical term can help the rest of its phrase survive, including words that on their own would rank lower.

The filter then compares the scores for the chosen kind of unit. Every source gets a cutoff calculated from its own distribution. Units that meet that cutoff survive, and their sequence follows the source. Thus ranking by surprise controls eligibility, while the original sequence still determines how one surviving piece follows another. The result can contain intact expressions next to fragments. It is the text the answering system receives when the task is run with Selective Context.

From the original source to a compressed context

The steps in order.

From the original source to a compressed contextStep 1: Read observed tokens with a causal predictor1. Read observed tokens with a causal predictorStep 2: Turn their assigned probabilities into surprisal scores2. Turn their assigned probabilities into surprisal scoresStep 3: Choose tokens, noun phrases, or sentences for filtering3. Choose tokens, noun phrases, or sentences for filteringStep 4: Add token scores within grouped units4. Add token scores within grouped unitsStep 5: Calculate the cutoff from this source’s scores5. Calculate the cutoff from this source’s scoresStep 6: Retain qualifying text in source order6. Retain qualifying text in source orderStep 7: Supply the shortened source for the downstream task7. Supply the shortened source for the downstream task

The compressor’s work ends before downstream generation. In a dialogue, this division is especially clear. The past exchanges are the material eligible for deletion, and the last user request is what the answering system must respond to. For a document task, the source is what gets shortened. Instructions to reconstruct it, summarize it, or answer a question specify the job to be done with the surviving text. The scoring rule itself makes no attempt to anticipate which of those jobs will require a given fact.

From probability to self-information

The paper uses self-information in its information-theoretic sense. An event with a high probability carries little surprise when observed. An event to which the predictor assigns a small probability carries more. In the method, the event is the observation of a particular token at its actual position. The paper introduces and then reuses the same conditional calculation, with different position letters. In the method’s indexing it can be written as follows.

I(xᵢ) = −log₂ P(xᵢ | x₀, x₁, …, xᵢ₋₁)

xᵢ denotes the token observed at position i. The sequence to the right of the vertical bar is the conditioning prefix. It starts at x₀, continues through x₁ and the intervening positions denoted by …, and stops at xᵢ₋₁, the preceding token. P supplies the conditional probability of xᵢ under the causal predictor. The subscript 2 sets the base of the logarithm, so the information is expressed in bits. The minus sign reverses the direction of the logarithm’s ordering. As the assigned probability becomes smaller, I(xᵢ), the self-information, becomes larger.

A word’s ordinary frequency offers only a partial guide to this score. The probability calculation asks which token the preceding words lead the predictor to expect. This can make a specialized expression easy to anticipate in a familiar construction. It can also make an ordinary word surprising in a particular sentence. For compression, the question is how much information that particular occurrence contributes under the predictor’s distribution.

The calculation also specifies what can make a token appear redundant. Evidence to its right has yet to enter the prefix. Evidence to its left can lower the score even if that evidence will itself be removed later. The compressor evaluates the positions of the original text before it knows which units will survive. Its scores therefore reflect predictability under the original wording available at scoring time.

To connect the score with common descriptions of predictability, the authors give an average for a sentence and show how it gives perplexity.

H(S) = (1 ÷ N) Σₜ I(xₜ)

S is the sentence and H(S) is what the paper calls its entropy. N is the number of positions included in the average. Σₜ directs the reader to sum across those positions, indexed by t. At each position, xₜ is the observed token and I(xₜ) its self-information. The factor 1 ÷ N turns the total into a mean, so H(S) describes the surprise per position over the observed sentence.

PP(S) = 2ᴴ⁽ˢ⁾

PP(S) denotes the perplexity of S, the sentence. The base is 2, and the superscript represents the previously defined mean H(S). Perplexity and the mean surprise thus express the same sentence-level predictability on different scales in these equations. The compressor will use totals over the chosen units when it decides what to keep.

How information adds up across a span

The basis for adding token scores is the chain rule for probabilities. The probability of seeing a pair in sequence is the probability of the initial token multiplied by the probability of the following token given the initial one. Applying the negative logarithm changes that product into a sum. The paper’s additivity calculation can be expressed as a single identity.

I(x₀, x₁) = −log₂ P(x₀, x₁) = −log₂ [P(x₀) × P(x₁ | x₀)] = −log₂ P(x₀) − log₂ P(x₁ | x₀)

x₀ denotes the initial token and x₁ the token that follows it. I(x₀, x₁) is the self-information of observing the ordered pair. P(x₀, x₁) is its joint probability. Inside the brackets, P(x₀) is the probability of observing the initial token, × denotes multiplication, and P(x₁ | x₀) is the probability of seeing the following token given the initial one. As before, log₂ uses base 2 and each leading minus sign gives the corresponding self-information. The last expression adds the surprise at the initial position to the surprise at the following position, with the latter conditioned on the former. The identity therefore accommodates dependence between tokens.

For a unit inside a source, the method extends the addition across the positions that belong to the unit. It uses the values already assigned in the scoring pass. A phrase embedded within a sentence consequently benefits from the scoring context available at its positions. There is no need to present that phrase to the scorer in isolation and request a new probability.

I(u) = Σ[i = t … t + α] I(xᵢ)

u is the unit being considered for retention. Its first token lies at position t, and α is the offset from that position to the final token at t + α. i indexes the token positions, and Σ with the bracketed range means to add their scores from the start through the end, inclusive. I(xᵢ) is the score already assigned to the observed token xᵢ. I(u) is the resulting score for the entire unit.

By design, this total reflects length as well as predictability. Adding a token to a unit adds that token’s surprise to the total. A long piece with moderate scores can outrank a short piece that contains an especially surprising token. An average would express a different property, the surprise per token. Here the choice of a sum means that the compressor evaluates how much surprise is carried by the whole piece it has to keep or discard.

The authors use spaCy to merge noun chunks, usually expressions organized around a noun. This can keep a technical label together with the surrounding words that identify what the label denotes. They rely on NLTK’s sentence tokenizer for sentence-level filtering. Verb phrases are left unmerged because the authors found that grouping them can create lengthy units, and they also identify boundary detection for verb phrases as a difficulty. The resulting phrase procedure offers some protection to the way objects and concepts are named. The expression of an action or relationship can still be split across retention decisions.

A cutoff fitted to each source

Each scored passage has a distribution of unit scores. Selective Context ranks the units by those scores and uses a percentile of the distribution as a cutoff. Choosing a percentile makes the cutoff relative to the source. If an input contains many expressions that surprise the predictor, it can have a higher cutoff than another source under the same percentile setting. The procedure does not need a fixed information value that applies across news articles, research writing, and dialogue.

Iₚ = np.percentile([I(u₀), …, I(uₖ)], p)

p is the chosen percentile. u₀ through uₖ stand for the units in the list supplied to the percentile operation, with k indexing the final entry and … covering the ones in between. I(u₀) and I(uₖ) are the scores of the indicated units, and the brackets enclose the entire list of scores. np.percentile names the operation that obtains the percentile from the list. Its result, Iₚ, is an information score in the same units as the inputs.

C′ = (uᵢ | uᵢ ∈ C, I(uᵢ) ≥ Iₚ) in source order

C is the original context considered as an ordered sequence of units. uᵢ denotes the unit at index i, and ∈ expresses that it belongs to C. The vertical bar introduces the conditions for inclusion. I(uᵢ) is the unit’s score, and ≥ means it must equal or exceed the cutoff Iₚ. C′ is the shortened sequence formed from the qualifying units in the order they occupied in the original. Units at the cutoff qualify together, which matters when several receive the same score.

The decision is made over units. The budget of the answering system, however, concerns token positions. Those quantities come apart as soon as the units are allowed to have different lengths. In the continual-learning example, the authors set the phrase percentile to 50. The resulting passage retains 57.2% of its tokens, with a reported length saving of 42.8%. The percentile specifies where to divide the scores. How many token positions disappear depends on the lengths of the pieces below that division.

The example also shows what the output looks like. Terms associated with continual learning and several names of datasets remain recognizable, but some of the prose joining them is lost. Adjacent fragments can read abruptly when the material between them is removed. This is a direct consequence of making retention decisions over source spans. The shorter text preserves the words the procedure selects, leaving the downstream system to decide how the fragments fit together.

How the scoring procedure was run in the study

The authors describe GPT, OPT, and LLaMA as examples of causal predictors that could supply the token probabilities. In the study, LLaMA-7B handles scoring for LLaMA and Vicuna downstream systems. For the OpenAI systems, the scorer is curie, a smaller GPT-3 variant the authors access through an API. The same scoring principle applies to both groups, while the actual probabilities come from the predictor chosen for each. The procedure uses already trained predictors and defines selection directly with a formula and a cutoff. OPT · LLaMA

The authors observed that later material tended to receive lower scores when the scorer handled an entire source at once. For the experiments, they calculate the token probabilities separately within each sentence. This is a choice about the prefix supplied during scoring. It also applies when the filter works with tokens or phrases, so a sentence boundary can reset the scorer even when sentences are not the units being selected. After scoring, the filter uses the unit scores from the source to determine the percentile.

That separation illustrates the function of each stage. Sentence-by-sentence scoring controls how much text can shape each probability. The lexical unit controls which tokens stand or fall together. The percentile controls how much of the ranked material is eligible to remain. Finally, the downstream task provides the test of whether what remains is enough. By varying the latter stages, the authors can compare compression settings without learning a separate deletion rule for each task.

Experiments and results

Building a test around long sources

The authors wanted source material with enough detail that deleting parts of it would pose a meaningful test. They considered short, single-round question-answering benchmarks a poor fit for this purpose. Such a benchmark can measure performance on the question it presents while offering little scope to evaluate the effect of deleting pieces of an extended document or dialogue. The authors name MMLU and ARC as examples of existing benchmarks whose format motivated them to collect other material. MMLU · ARC

The arXiv collection includes 408 items in fields such as mathematics, physics, and computer science. The authors use the opening two sections of each paper, typically the introduction and background. The reported arXiv averages are 28.20 sentences, 514.55 phrases, and 864.85 tokens per item. These excerpts give the comparison sources that can establish a research problem, describe earlier approaches, and introduce the work under study. The evaluation concerns the selected sections of each paper.

The BBC collection contains 294 news articles. It includes topics such as business, technology, politics, and sports, and the authors use the full text of each selected article. The averages per article are 25.63 sentences, 523.96 phrases, and 732.54 tokens. An article of this sort can support both a general description of an event and questions about details within it. Those tasks give different meanings to the idea of preserving enough of the story.

ShareGPT supplies 470 conversations. Its averages are 27.35 sentences, 389.42 phrases, and 689.32 tokens per item. The collection covers different languages and uses, including help with coding, informal conversation, and assistance with writing. The unit considered as a source is a dialogue record. For a reply, the important evidence can be a topic introduced several exchanges back or a choice made by the user during the conversation.

For all the collections, the paper reports selecting material created after March 2023 to guard against contamination from training. When a system was continually updated, the authors chose its latest version released before 30 March 2023. They also excluded articles and conversations exceeding 2048 tokens because some of the evaluated systems had that maximum length. Keeping the original sources within reach of the tested systems makes the full-context comparison possible. It also means the study measures compression inside that sampling constraint.

What the generated responses are compared with

For reconstruction, the goal is to recover the original passage from its compressed version. The authors use the original text as the reference. This gives the experiment its most direct test of information lost at deletion. To score well, a reconstruction must bring back enough of the source’s content and expression to match the document from which the selection was made. A reasonable response to a question can leave most of the same material unspoken.

In summarization, the task is to write a compact account of the source. The comparison is between a summary produced with the compressed passage and a summary produced with the full passage. The second summary provides an example of what the system selects when all the evidence is available. The comparison can pick up changes in coverage and emphasis. It can also reflect legitimate differences in how the same subject is described, especially when generation is allowed to vary across runs.

For question answering, the authors first obtain questions and answers from the original source. They then present those questions with the shortened source and compare the resulting answers with the original-context answers. This setup tests whether the material retained by a general filter serves a request for specific evidence. A compressed passage could give an accurate account of the general subject while losing the detail needed for a particular answer. The separate manual analysis examines the claims made in some of these answers.

The conversation task asks for a reply to the last user query in a ShareGPT record. The compressor works on the turns that precede that query. The full-history response supplies the reference. This task measures the consequences of shortening naturally occurring exchanges, where part of the request’s meaning may come from the history and where there can be several reasonable responses to the same turn. It gives the evaluation a different use of context from reading a standalone document.

Systems and controls

The generating systems include GPT-3.5 and GPT-4 through an API. The authors also evaluate base LLaMA at 7B, 13B, and 30B parameters and instruction-tuned Vicuna at 7B and 13B. The sizes allow a comparison within each family, while the inclusion of Vicuna provides a comparison with systems adapted to follow instructions. Phrase filtering is the default in the reported results. Token and sentence filtering are used in the dedicated comparison of granularity.

The main sweep uses reduction settings of 0.2, 0.35, 0.5, 0.65, and 0.8. The full-source condition shows how outputs compare when all of the original evidence is available. Random deletion creates another comparison. It shortens the source without using token surprise to guide the choices. Any advantage for Selective Context over random deletion at the same setting is evidence about selection, whereas a comparison with full context is evidence about the effect of having less source available.

The paper uses both greedy and sampled decoding. In greedy decoding, generation repeatedly chooses the most probable next token, and a single full-context run provides the reference. In the sampled comparison, the temperature is 0.7 and the authors use 4 full-context reference answers to accommodate variation. The full-context scores under sampling can therefore fall short of perfect agreement. They reflect the similarity of outputs generated with the same source under that comparison protocol. The compressed rows add a change of source to a procedure in which outputs already vary.

What the metrics can distinguish

The authors use several ways of comparing generated and reference text. BLEU looks at precision over matching sequences of words. ROUGE measures recovery of material found in the reference through textual overlap. These scores are useful when a response is expected to share expressions or important wording with a reference. A change in the names, phrases, or details selected for a response can make the overlap fall. BLEU score · ROUGE

METEOR brings additional evidence such as stemming, synonymy, and word order into the matching procedure. BERTScore uses contextual representations of the generated and reference text and compares them by cosine similarity, which measures how closely the representations point in the same direction. BERTScore precision describes how well the generated content matches the reference, while recall describes how well the reference content is covered by the generation. The paper gives those components and their combined F1 score. These measures give a response some room to express related content with different wording. METEOR · Semantic similarity

The scores need to be interpreted in terms of the reference. A low overlap score may reflect a changed expression, a shift to other information from the source, or loss of content. An embedding-based score can remain high when two responses discuss similar material despite such differences. It gives a broader view of agreement, while the manual faithfulness study asks a more specific question about support for individual claims. Reading the measures together helps distinguish a response that has changed in wording from one that has changed in what it covers, even though no automatic score settles the status of each claim.

How agreement changes as more text is removed

The overview at temperature 0.7 reports averages across the generating systems. The context reduction settings follow an ordered pattern in the table. The lightest pruning keeps the outputs closest to their full-source references, and agreement falls as more units become eligible for removal. The chart follows BERTScore F1 over the sweep.

Sampled BERTScore F1 on arXiv, BBC News, and ShareGPT

Agreement with the references decreases as the filter removes more context.

Sampled BERTScore F1 on arXiv, BBC News, and ShareGPTFull context: .909Full context.909Selective Context at 0.2 (this paper): .902Selective Context at 0.2 (this paper).902Selective Context at 0.35: .897Selective Context at 0.35.897Selective Context at 0.5: .887Selective Context at 0.5.887Selective Context at 0.65: .877Selective Context at 0.65.877Selective Context at 0.8: .863Selective Context at 0.8.863
The numbers
System or settingBERTScore F1
Full context.909
Selective Context at 0.2 (this paper).902
Selective Context at 0.35.897
Selective Context at 0.5.887
Selective Context at 0.65.877
Selective Context at 0.8.863

At the 0.2 reduction setting, sampled BLEU is .295 against .347 for the full-context condition, while ROUGE-1 is .540 against .571. At 0.35 the compressed condition records .421 on METEOR and .504 on ROUGE-1. These settings preserve relatively strong agreement on BERTScore while showing larger moves in the overlap measures. A system can still discuss much the same subject even when it uses a different set of phrases or omits some of the details that the reference mentions.

The distinction becomes clearer at 0.5. The paper reports a drop of .023 in BERTScore F1 in its sampled comparison. The BLEU score is .179, with a reported drop of .17, and the ROUGE-1 score is .449, with a reported drop of .12. BERTScore precision is .893 and recall is .882. The results establish a more specific claim than a single statement about quality would. The compressed-input responses remain relatively close by the contextual similarity measure, while the matching of source-derived answers by common wording and coverage declines more visibly.

At the stronger settings, the table gives ROUGE-L of .287 for 0.65 and .225 for 0.8. BERTScore recall is .870 and .852, respectively. The table’s reported BERTScore F1 drops at those settings are .032 and .047. The overview prose and table are inconsistent about the size of the BERTScore decline at heavy pruning. The tabulated scores and drops supply the series here. They show a steady loss in agreement as the amount removed grows.

How much the scoring rule contributes

Random deletion makes it possible to ask whether a reduction setting alone explains the scores. Even an unscored selection keeps some useful information by chance. If many parts of a source carry the same message, the random condition can sometimes preserve enough for a good answer. The authors test whether the same reduction setting gives stronger results when selection is guided by surprisal. The comparison uses greedy decoding and its single full-context reference.

Greedy BERTScore F1 for guided and random deletion on arXiv, BBC News, and ShareGPT

The guided filter preserves more agreement at each paired reduction setting.

Greedy BERTScore F1 for guided and random deletion on arXiv, BBC News, and ShareGPTRandom deletion at 0.20: 0.899Random deletion at 0.200.899Selective Context at 0.20 (this paper): 0.931Selective Context at 0.20 (this paper)0.931Random deletion at 0.35: 0.886Random deletion at 0.350.886Selective Context at 0.35: 0.915Selective Context at 0.350.915Random deletion at 0.50: 0.873Random deletion at 0.500.873Selective Context at 0.50: 0.900Selective Context at 0.500.900Random deletion at 0.65: 0.860Random deletion at 0.650.860Selective Context at 0.65: 0.881Selective Context at 0.650.881Random deletion at 0.80: 0.847Random deletion at 0.800.847Selective Context at 0.80: 0.866Selective Context at 0.800.866
The numbers
System or settingBERTScore F1
Random deletion at 0.200.899
Selective Context at 0.20 (this paper)0.931
Random deletion at 0.350.886
Selective Context at 0.350.915
Random deletion at 0.500.873
Selective Context at 0.500.900
Random deletion at 0.650.860
Selective Context at 0.650.881
Random deletion at 0.800.847
Selective Context at 0.800.866

The overlap metrics also favor the guided procedure when the reduction settings match. Greedy ROUGE-1 at 0.35 is 0.679 with Selective Context and 0.629 with random deletion. At 0.65 the corresponding BLEU scores are 0.244 and 0.210. At the strongest setting, the size of the advantage depends on the metric. For BLEU at 0.80, Selective Context records 0.160 and random deletion records 0.156. With relatively little text left, the guided procedure still scores higher in this comparison, though the values on that overlap metric are close.

Comparing across settings reveals a different point. Selective Context at 0.50 and random deletion at 0.20 have close BERTScore F1 values in the greedy comparison, in spite of the different degrees of pruning. For ROUGE-1, the corresponding values are 0.642 and 0.666. The evidence that the scoring rule allows substantially more removal for a similar score is strongest for particular measures. The pairs at matching settings give the direct result that guided deletion yields responses closer to the references than random deletion does.

What a single resource measurement looks like

The case study has Vicuna summarize the introduction of a paper about autonomous driving. The authors give resource measurements for the original source and for Selective Context at a reduction ratio of 0.5. The latency measure concerns the generation of each output token. It is distinct from the initial work of choosing and constructing the shorter context.

Vicuna-13B latency in the autonomous-driving summarization case

The run with compressed context spends less time generating each output token.

Vicuna-13B latency in the autonomous-driving summarization caseOriginal context: 110.8Original context110.8Selective Context at 0.5 (this paper): 76.3Selective Context at 0.5 (this paper)76.3
The numbers
System or settingms/token
Original context110.8
Selective Context at 0.5 (this paper)76.3

CUDA memory in that example is reported as 77,695 MB with the original and 61,885 MB with the compressed source. The one-time preparation of the shorter source takes 46.1 ms and includes the self-information calculation and the division into units. These figures describe separate parts of the procedure. The first pair reports device memory, the second comparison concerns time per generated token, and the preparation time concerns the input as a whole.

The authors report a 50% reduction in context cost alongside 36% lower inference memory and 32% lower inference time in their headline account. The memory statement in the case-study discussion is inconsistent with the two printed CUDA readings if interpreted as the relative change between them. The case is most clearly described by giving the recorded measurements directly. They show lower memory use and faster token generation for that example, with the measured cost of preprocessing reported alongside them.

The texts of the summaries show what that savings can mean for the answer. With the full input, Vicuna sets up the research by describing the role of machine learning in autonomous driving. With the compressed input, it begins closer to the methods for avoiding collisions. The shorter source also leads the response to mention particular parts of the proposed network that the fuller-source summary passed over, including its upsampling and attention components. The authors report finding no factual error in the compressed-source summary.

They also ask directly about the research background with the compressed input still in place. Vicuna produces an account linking the research to autonomous driving, the use of artificial intelligence, and vehicle safety. The contrast between that reply and the summary is informative. The general summarization instruction leads the system to start with a different set of details after compression. A focused question can still elicit some of the broader setting. The case therefore illustrates a change in what is volunteered as well as the possibility of inferring part of what the filter removed.

What the ablations show

Intermediate units work best in the reported comparison

The clearest ablation varies what the compressor treats as a removable piece. The probability and information calculation still start at the token level. The choice is whether the threshold acts on a token, a phrase, or an entire sentence. The authors compare these configurations through BERTScore F1. Phrase filtering consistently gives the best performance among them, with token filtering next. Sentence filtering is comparatively unstable. This result is the reason the rest of the reported experiments use phrases.

Consider a sentence that names a technique and gives an account of when it was used. At token granularity, each piece of the name is exposed to a separate deletion decision. Losing a seemingly predictable piece can make the surviving name harder to identify. Keeping a recognized noun phrase together can avoid that problem at the cost of retaining some tokens that would score poorly on their own. At sentence granularity, the choice concerns an even larger span. The filter can retain the technique and everything said around it, or remove that occurrence of the technique altogether.

That is one explanation for the ordering the authors observe. Grouping by noun phrase protects useful local expressions without forcing a decision about every clause in a sentence at once. There is also a numerical consequence of changing the unit. A sum of token scores over a sentence has a different distribution from the scores of the phrases or tokens it contains. The same percentile at different granularities can yield a different number of retained tokens, as the phrase example already suggests. The ablation establishes a preference among the actual filtering configurations. It does not isolate boundary quality from the associated changes in score distributions and retained length.

Sentence filtering also brings a distinct risk for downstream tasks. A sentence may state a fact once, in a form that scores poorly relative to its neighbors. Discarding that unit eliminates the entire occurrence. Finer units offer a chance to preserve an entity or a key expression even when the rest is predictable. The benefit then depends on whether the surviving pieces still tell the reader what happened. The aggregate advantage for phrases indicates that the tested systems could frequently use that intermediate amount of structure.

Different tasks expose different losses

The task breakdown provides another controlled comparison across reduction settings. Original-context reconstruction declines most steeply as the ratio rises. The source is the reconstruction reference, so the evaluation is directly sensitive to what the compressor removes and what the downstream system can bring back. The authors observe relatively high ROUGE below 0.5 and interpret it as evidence that much of the important material can survive at those settings. The steep decline at higher ratios shows the difficulty of restoring more of the original once larger portions are gone.

Summarization and question answering decline more gradually in the task curves. Their BERTScore traces remain above those for reconstruction and conversation in the reported comparison. Each task gives the responding system a way to make effective use of partial evidence. A summary can organize the points available across the source. A question identifies the information of interest and can elicit a focused answer from a passage that would be insufficient to recreate the document.

Conversation tests a different kind of continuity. An earlier turn may establish that the user chose an option, corrected a detail, or changed the request. The wording carrying that choice could be ordinary, even when the consequence for the final reply is substantial. Other dialogue can be repetitive enough that parts of the history are easy to spare. The task curve combines those situations into an answer-similarity measure. It shows how the tested conversations behave in aggregate while leaving individual sources of success or failure for further analysis.

The comparison helps explain why the paper avoids prescribing one percentile for all tasks. Recovering a research passage, summarizing it, answering a question about it, and replying to a conversation all apply different tests to the fragments that remain. The same shorter source can contain enough to support one purpose and leave another unresolved. The relatively gradual decline for question answering and summarization is a result about the requests, sources, and references the authors used.

Unsupported claims, omissions, and refusals

The manual faithfulness analysis uses outputs from gpt-3.5-turbo. The authors examine 1000 question-answer pairs, with 200 for each tested reduction setting. They extract OpenIE tuples from the compressed-source answers. A tuple puts a claim into a structured form so it can be judged separately from the other statements in the response. A human judges whether the corresponding full-context answer entails the tuple, meaning that the reference supports what the tuple says. The test takes its inspiration from earlier work on factual consistency. Information extraction · Asking and Answering Questions to Evaluate the Factual Consistency of Summaries

The study treats an explicit refusal as a separate outcome. An answer that acknowledges it lacks information provides fewer claims to check, but the absence of an unsupported assertion offers little help to a user who wanted the missing answer. Both outcomes matter when judging the effect of removing evidence. Tracking refusal counts alongside the tuple judgments gives the study a way to show when the system stops attempting some of the questions.

At 0.2, the table records 0 refusals and an unfaithfulness rate of .027. At 0.35, it gives 6 refusals and .050. At 0.5, the count is 4 and the unfaithfulness rate is .038. The paper describes the latter value as 3.8% of extracted tuples being unsupported by the reference answer. At 0.65, refusals reach 19 and tuple unfaithfulness is .051. At 0.8, the table records 27 refusals and .086 unfaithfulness. The rates fluctuate at lighter settings, with the most refusals and the highest unfaithfulness value both occurring at the heaviest reduction.

Answer length supplies another part of the picture. The full-source answers average 160.3 tokens in the table. Compressed-source answers average 140.2 tokens at 0.5 and 103.7 at 0.8. Shorter answers may omit details whose evidence has become difficult to recover. When evaluating claims that the system did make, a concise but incomplete answer can perform reasonably well because the missing material generates no tuple to judge. The manual results therefore describe several possible responses to compression, including saying less, declining a request, and making an assertion unsupported by the reference.

The abstract describes .038 as a drop in faithfulness. In the analysis that supplies the value, .038 is the measured unfaithfulness rate of the compressed answers at 0.5, and the table supplies no comparable full-context rate. The evidence supports reporting .038 as a level under the manual protocol. That interpretation makes clear both what was measured and why a proportional change in faithfulness cannot be inferred from that table.

Size and instruction following

The human summarization check asks three college students to judge 1150 generated summaries from LLaMA and Vicuna. The authors describe the allocation as about 55 outputs per system and ratio. The judgment is whether the output is a reasonable summary. Acceptance can reflect whether the response follows the request and presents the source coherently, including cases where irregular output makes an overlap score difficult to interpret on its own.

Within the tested sizes, the study finds no clear pattern in which larger systems handle compressed source text better. Vicuna at 7B and 13B has similar summarization performance under this judgment. The LLaMA comparisons likewise give no consistent increase in robustness with size. This addresses an empirical question specific to the study. An increase in parameter count within these families did not produce an orderly improvement in how people rated the summaries from shortened sources.

The family comparison gives a clearer difference. Vicuna summaries are accepted more frequently with Selective Context, and the authors observe that base LLaMA often fails to carry out the requested instruction. They take this as evidence that instruction tuning can help a system work with compressed text. The interpretation connects prompt reading with the task that follows. A compressor can leave enough recognizable evidence for a summary, but the downstream system still has to turn the surviving fragments into the requested kind of response.

The lexical-unit and family comparisons therefore illuminate different parts of the pipeline. The unit experiment changes the form of the evidence passed downstream. The human study compares the behavior of systems that receive compressed evidence and have to act on an instruction. Observed failures can involve lost facts, difficult joins between fragments, or failure to summarize. The paper provides evidence that both the form of the source and the behavior of the reader affect the outcome.

Limitations

Limits identified by the authors

The authors first point to how phrase boundaries are found. Their implementation groups noun phrases using spaCy and leaves verb phrases unmerged. Some verb phrases could make for long units, and the authors identify the lack of a satisfactory way to tokenize them as a problem. There is a practical cost in both directions. A very large unit can force the compressor to keep too much material with a useful statement, while a narrow unit can preserve the names in a statement and lose the action connecting them. The authors suggest that dependency parsing could help define units using relationships between the words. Their experiments evaluate the original grouping procedure.

The other stated limitation concerns finding the right pruning percentile. The authors expect it to vary with the text and the task. A passage with repetition may have a substantial supply of material that can be removed while leaving the same points available. A passage where several facts are stated only once may lose crucial evidence under the same setting. The percentile adapts the numerical score cutoff to the distribution in each source, but it does not determine the level of compression that is most appropriate for a particular use. The authors identify automatic threshold selection as a direction for improving the method.

Limits visible in the evaluation

The full-context answer is a practical reference for measuring whether a response changes after compression. Its suitability for claims about correctness depends on the source task. A full-context summary may omit a detail included in an equally reasonable compressed-context summary. A full-context answer can also make a mistake that the answer with fewer words repeats. Both can yield misleading impressions if agreement is treated as independent verification. The manual analysis improves the resolution of the comparison by judging claims separately, while retaining the generated answer as the basis for entailment.

Even when both answers are acceptable, compression can change how useful they are. In the autonomous-driving case, the compressed summary gives more space to some technical components and less to the broad setting. A reader who wants to know the research background may find the second emphasis less helpful. Someone looking for implementation detail may value what the compressed response adds. The authors’ follow-up question shows that the system can infer background when explicitly asked in that example. Whether inference restores an exact qualification or an uncommon fact is a separate question.

The score is calculated without looking at the eventual request for a particular fact. Its usefulness depends on how frequently surprise lines up with what the task needs. Consider a source that describes an established procedure and then adds a familiar phrase indicating that the researchers made an exception. The technical terms might score highly while the wording that signals the exception scores lower. What the answering system then needs is the relationship expressed by the deleted words. The paper’s results average across its chosen inputs and questions. They leave open performance when a test deliberately depends on low-surprisal evidence.

There is also a difference between the evidence available for scoring and the evidence available for answering. The scoring pass operates over original sentences. A piece can receive a low score because earlier words provide a strong clue. If those words also disappear, the answering system has less basis for inferring the omitted piece than the score suggests. Sentence-by-sentence scoring also discards cues from earlier sentences when estimating probability. The authors give a reason for choosing it, the lower scores they observed for later material in whole-source scoring. The comparisons do not isolate the effect of that reset on final response quality.

The document-length restriction matters for the claim that compression can extend the amount of source text a system handles. The authors omit sources exceeding 2048 tokens and use opening sections for arXiv. Their design supports side-by-side runs with both the original and the shortened versions. It supplies indirect evidence for fitting additional material into the same window, since the compressed versions occupy fewer positions. A direct test of the benefit beyond the window would compare with what happens when the original is too long to use in full, including which passages a truncation policy would discard. That situation lies outside the reported length-controlled comparison.

The tests cover several downstream systems, with a scorer chosen for each group. They leave room for differences among scoring predictors, for costs that depend on the platform, and for variation across sources within each collection. ShareGPT, for example, contains dialogue in different languages and settings. The reported aggregates do not show whether the phrase procedure or the answering systems handle those groups equally well. The human comparison between Vicuna and base LLaMA suggests a role for instruction tuning, but comparing the families as deployed cannot determine how much of the gap is due to instruction tuning alone.

Finally, resource use and quality are reported at different levels of detail. The authors give broad headline resource savings and show concrete timings and GPU memory for an individual summary. Preprocessing happens before generation, and its cost can matter differently for a short response and a long one. The example gives a one-time cost and separate per-token measurements. It leaves the range of end-to-end costs across the sources and system families unresolved. Likewise, a nominal reduction setting describes where the filter is applied, while the actual room gained in the context window depends on which units survive.

What came after

Compression as an operation on the prompt

LongLLMLingua takes up prompt compression for long-context scenarios, with acceleration and improved behavior as stated aims. That places it on the same side of the inference problem as Selective Context, where the length and composition of the prompt are choices made before the answer is generated. The original paper makes those choices with a general predictability score and evaluates their consequences afterward. LongLLMLingua’s long-context framing carries forward the question of what information a shortened prompt must retain if the reduction is to improve the experience of using a long source. LongLLMLingua

LLMLingua-2 approaches efficient, task-agnostic prompt compression through data distillation, with faithfulness among its stated objectives. This shifts attention toward the way a compressor acquires its judgments about removable text. Selective Context borrows a score from next-token prediction. A distillation approach makes the data used to teach compression part of the answer to what survives. Their shared task-agnostic framing makes preservation across different downstream uses important. The original study illustrates that demand by applying the same selection principle to reconstruction, summaries, responses, and answers. LLMLingua-2

Concept rather than Document takes the information-measure idea toward concepts through AMR-based conceptual entropy. The unit whose information matters is central to that direction. In Selective Context, a unit is drawn from the surface wording and aggregates the surprises assigned to its constituent tokens. In the conceptual approach, the stated focus is the meaning expressed through the semantic representation. This extends a question raised by the phrase ablation. The definition of a removable unit determines which connections can persist intact after compression. Concept rather than Document

Where long-context computation can be reduced

MInference 1.0 approaches long input through dynamic sparse attention in pre-filling, the stage in which the source prompt is processed before response generation. Its intervention concerns the attention computation performed on the input. Selective Context changes the text that needs to be processed in the first place. The citation connects two ways of reducing the work prompted by a long source. This is the complementarity the original paper anticipated when it situated input pruning beside earlier sparse-attention methods. MInference 1.0

Discovering the Gems in Early Layers connects early internal processing with input-token reduction for long-context acceleration. Its point of contact with Selective Context is the prospect of saving work by identifying tokens that can be dropped. The title places the study of those tokens in the early layers. The original procedure makes all of its choices with a separate causal scoring pass before downstream processing starts. The later direction asks what the early processing of a long input may reveal about which of its positions are worth carrying onward. Discovering the Gems in Early Layers

Evidence selected for a request

CompAct applies active compression to retrieved documents for question answering. Retrieval provides material for a particular request, so choosing what to compress is closely tied to the evidence that request needs. Selective Context’s document filter derives its decisions from the source’s predictability, and the question-answering experiment then checks whether the selected material suffices. CompAct’s stated setting puts the question and its retrieved evidence together at the center of the compression problem. CompAct

Hierarchical Document Refinement addresses long-context retrieval-augmented generation by making document organization part of refinement. Selective Context compares lexical granularities, with each configuration applying its decision rule to the units defined at that granularity. A hierarchical framing makes the relation between larger document structures and smaller pieces of evidence part of the problem. A section can situate a topic, while a passage inside it supplies the detail that resolves a question. Compressing retrieved context then involves how those levels contribute to the answer. Hierarchical Document Refinement

NovelQA follows the long-document problem through evaluation. It benchmarks answers from documents exceeding 200K tokens. The sources admitted to the Selective Context experiments had to fit within the study’s stated length constraint so they could also be run in full. NovelQA’s scope makes a related question concrete at far greater document lengths. When an answer depends on evidence somewhere in an extensive source, the ability to preserve and use that evidence is part of what a benchmark can measure. NovelQA

What to keep through reasoning and repeated actions

TokenSkip directs controllable compression towards chains of thought, where the text being shortened expresses steps in a reasoning process. Selective Context removes words from a source that precedes the requested response. A reasoning chain has a different dependency: one surviving step may rely on a condition or result established earlier in the chain. The later work carries the question of controlled deletion into the intermediate sequence on which the eventual result depends. TokenSkip

Memory as Action frames context curation as an autonomous action during long-horizon agent tasks. In the original study, a history or document is available at the time of a request and is compressed for the response that follows. In an extended task, curation can recur as the record grows. The importance of a detail then depends in part on what a later action may require. This shifts the evaluation question from how a compressed source affects the current reply toward how choices about retained context affect an ongoing task. Memory as Action

Beyond the Context Window also addresses extended agent work, framing compression as something optimized end to end in agentic reinforcement learning. Selective Context computes a source-based score before evaluating its downstream consequences. End-to-end optimization places the consequences for the broader task within the stated objective of compression. The connection preserves the distinction at the heart of the original experiments. Reducing the amount of text yields room and saves work, while the value of the remaining context is determined by the answers and actions it can still support. Beyond the Context Window

 Institutions

 Fields, topics and concepts

Appears in

Mentioned in articles aboutManchester

Cite

Cite as Yucheng Li, Bo Dong, Frank Guerin and Chenghua Lin. 2023. Compressing Context to Enhance Inference Efficiency of Large Language Models. Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2023.emnlp-main.391

@inproceedings{li2023compressing,
  title = {{Compressing Context to Enhance Inference Efficiency of Large Language Models}},
  author = {Yucheng Li, Bo Dong, Frank Guerin and Chenghua Lin},
  booktitle = {Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.emnlp-main.391},
  url = {https://doi.org/10.18653/v1/2023.emnlp-main.391}
}

References

21 references, 14 of them with a card of ours. Each entry links to our card when we hold the work, else to OpenAlex and Google Scholar searches for it.

  1. Satanjeev Banerjee and Alon Lavie. 2005. Meteor: An automatic metric for mt evaluation with improved correlation with human judgments. In Proceedings of the acl workshop on intrinsic and extrinsic evaluation measures for machine translation and/or summarization, pages 65–72.
  2. Iz Beltagy, Matthew E Peters, and Arman Cohan. 2020. Longformer: The long-document transformer. arXiv preprint arXiv:2004.05150.
  3. Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. 2020. Language models are few-shot learners. Advances in neural information processing systems, 33:1877–1901.
  4. Sébastien Bubeck, Varun Chandrasekaran, Ronen Eldan, Johannes Gehrke, Eric Horvitz, Ece Kamar, Peter Lee, Yin Tat Lee, Yuanzhi Li, Scott Lundberg, et al. 2023. Sparks of artificial general intelligence: Early experiments with gpt-4. arXiv preprint arXiv:2303.12712.
  5. Razvan Bunescu and Oseremen O Uduehi. 2022. Distribution-based measures of surprise for creative language: Experiments with humor and metaphor. In Proceedings of the 3rd Workshop on Figurative Language Processing (FLP), pages 68–78. OpenAlex ↗ · Scholar ↗
  6. Alexis Chevalier, Alexander Wettig, Anirudh Ajith, and Danqi Chen. 2023. Adapting language models to compress contexts. arXiv preprint arXiv:2305.14788.
  7. Wei-Lin Chiang, Zhuohan Li, Zi Lin, Ying Sheng, Zhanghao Wu, Hao Zhang, Lianmin Zheng, Siyuan Zhuang, Yonghao Zhuang, Joseph E. Gonzalez, Ion Stoica, and Eric P. Xing. 2023. Vicuna: An open-source chatbot impressing gpt-4 with 90%* chatgpt quality. OpenAlex ↗ · Scholar ↗
  8. Rewon Child, Scott Gray, Alec Radford, and Ilya Sutskever. 2019. Generating long sequences with sparse transformers. arXiv preprint arXiv:1904.10509.
  9. Peter Clark, Isaac Cowhey, Oren Etzioni, Tushar Khot, Ashish Sabharwal, Carissa Schoenick, and Oyvind Tafjord. 2018. Think you have solved question answering? try arc, the ai2 reasoning challenge. ArXiv, abs/1803.05457.
  10. Dan Hendrycks, Collin Burns, Steven Basart, Andy Zou, Mantas Mazeika, Dawn Xiaodong Song, and Jacob Steinhardt. 2020. Measuring massive multitask language understanding. ArXiv, abs/2009.03300.
  11. Chin-Yew Lin. 2004. Rouge: A package for automatic evaluation of summaries. In Text summarization branches out, pages 74–81.
  12. Jesse Mu, Xiang Lisa Li, and Noah Goodman. 2023. Learning to compress prompts with gist tokens. arXiv preprint arXiv:2304.08467.
  13. Kishore Papineni, Salim Roukos, Todd Ward, and Wei-Jing Zhu. 2002. Bleu: a method for automatic evaluation of machine translation. In Proceedings of the 40th annual meeting of the Association for Computational Linguistics, pages 311–318.
  14. Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, Ilya Sutskever, et al. 2019. Language models are unsupervised multitask learners. OpenAI blog, 1(8):9. OpenAlex ↗ · Scholar ↗
  15. Claude E Shannon. 1948. A mathematical theory of communication. The Bell system technical journal, 27(3):379–423. OpenAlex ↗ · Scholar ↗
  16. Hugo Touvron, Thibaut Lavril, Gautier Izacard, Xavier Martinet, Marie-Anne Lachaux, Timothée Lacroix, Baptiste Rozière, Naman Goyal, Eric Hambro, Faisal Azhar, et al. 2023. Llama: Open and efficient foundation language models. arXiv preprint arXiv:2302.13971.
  17. Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. 2017. Attention is all you need. Advances in neural information processing systems, 30.
  18. Alex Wang, Kyunghyun Cho, and Mike Lewis. 2020. Asking and answering questions to evaluate the factual consistency of summaries. ArXiv, abs/2004.04228. OpenAlex ↗ · Scholar ↗
  19. EC Wit and Marie Gillette. 1999. What is linguistic redundancy. University of Chicago. OpenAlex ↗ · Scholar ↗
  20. Susan Zhang, Stephen Roller, Naman Goyal, Mikel Artetxe, Moya Chen, Shuohui Chen, Christopher Dewan, Mona Diab, Xian Li, Xi Victoria Lin, et al. 2022. Opt: Open pre-trained transformer language models. arXiv preprint arXiv:2205.01068.
  21. Tianyi Zhang, Varsha Kishore, Felix Wu, Kilian Q Weinberger, and Yoav Artzi. 2019. Bertscore: Evaluating text generation with bert. arXiv preprint arXiv:1904.09675. OpenAlex ↗ · Scholar ↗

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/li-2023-compressing-context-enhance-inference-efficiency/