Auto-generated Document Summaries Using Abstractive Summarization

google · Tech · 2022 · source Agentic: no · promotional bias: low · source-backed · extracted with prompt 0.5.4 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: Tech

Google Docs wanted to suggest concise document summaries while preserving writer control over whether to accept, edit, or ignore the suggestion.

Constraints:

Architecture

Google Docs auto-generated summaries use a Pegasus-based abstractive summarization pipeline adapted for product serving. The design starts from self-supervised Pegasus pre-training, fine-tunes on a cleaned and consistent summary corpus, distills the large model into a Transformer-encoder/RNN-decoder hybrid for lower latency and memory footprint, serves inference on TPUs, and exposes suggestions under writer control so users can accept, edit, or ignore model output.

Diagram confidence: explicit (topology described by the source).

flowchart LR
  document-text-input["document-text-input"]
  pegasus-summarization-model["pegasus-summarization-model"]
  curated-finetuning-corpus["curated-finetuning-corpus"]
  distilled-serving-model["distilled-serving-model"]
  tpu-inference-service["tpu-inference-service"]
  summary-confidence-gate["summary-confidence-gate"]
  summary-suggestion-ui["summary-suggestion-ui"]
  writer-control-loop["writer-control-loop"]
  document-text-input --> pegasus-summarization-model
  curated-finetuning-corpus --> pegasus-summarization-model
  pegasus-summarization-model --> distilled-serving-model
  distilled-serving-model --> tpu-inference-service
  distilled-serving-model --> summary-confidence-gate
  tpu-inference-service --> summary-suggestion-ui
  summary-confidence-gate --> summary-suggestion-ui
  summary-suggestion-ui --> writer-control-loop
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
document-text-input provides the body text to be summarized pegasus-summarization-model
pegasus-summarization-model large abstractive summarization model pretrained with gap sentence prediction curated-finetuning-corpus, distilled-serving-model
curated-finetuning-corpus consistent manually generated summaries used to adapt the model to the product domain pegasus-summarization-model
distilled-serving-model efficient Transformer-encoder/RNN-decoder model distilled from Pegasus for production serving tpu-inference-service, summary-confidence-gate
tpu-inference-service serves summarization inference with speedups and higher per-machine request handling distilled-serving-model, summary-suggestion-ui
summary-confidence-gate limits suggestions to documents where the model is confident summary-suggestion-ui
summary-suggestion-ui shows the generated summary to writers for accept, edit, or ignore decisions writer-control-loop
writer-control-loop keeps the human writer in control of final document summaries and supplies future feedback signals summary-suggestion-ui

Data flow

Document text enters a summarization model that generates a one-to-two sentence suggestion only when confidence is sufficient. Pegasus pre-training supplies summarization-oriented language capabilities; cleaned fine-tuning data adapts the model to Google Docs-style summaries; knowledge distillation creates a lighter serving model; the UI displays the suggestion to the document writer for final control.

3 supporting quotes
“generates a 1-2 sentence natural language description of the document content”article, stated
“We carefully cleaned and filtered the fine-tuning data to contain training examples that were more consistent and represented a coherent definition of summaries.”article, stated
“Document writers can then view, edit, or ignore the suggested document summary.”article, stated

Why this architecture

The production architecture balances research quality, data quality, serving efficiency, and user control. Pegasus gives a summarization-specific pre-training objective, cleaned fine-tuning data prevents the model from learning inconsistent summary styles, distillation and TPUs address decoder latency/memory costs, and confidence gating plus writer control handles unsuitable or ambiguous documents.

3 supporting quotes
“The intuition is to make the pre-training as close as possible to the summarization task.”article, stated
“it was better to have a smaller, high quality dataset, than a larger, high-variance dataset.”article, stated
“The resulting model had significant improvements in latency and memory footprint while the quality was still on par with the original model.”article, stated

Models used: Pegasus · Transformer encoder / RNN decoder distilled model

Scale

Alternatives considered (roads not taken)

Use early inconsistent fine-tuning data as-is

Rejected because: The corpus mixed document and summary styles so heavily that the model struggled to learn a coherent relationship.

“This led to a model that was easily confused because it had been trained on so many different types of documents and summaries”article, stated

Prefer more supervised data over cleaner data

Rejected because: Google reduced the data volume but improved consistency, which produced a higher-quality model.

“Despite the fact that we reduced the amount of training data, this led to a higher quality model.”article, stated

Serve the original large Pegasus-style Transformer decoder directly

Rejected because: Transformer decoding was inefficient for production, so Google distilled into a more efficient hybrid architecture.

“it can be inefficient and impractical to serve in real-world applications.”article, stated
“of a Transformer encoder and an RNN decoder. To improve efficiency we also reduced the number of RNN decoder layers.”article, stated

Automatically overwrite document summaries

Rejected because: The product leaves writers in control by letting them accept, edit, or ignore suggestions.

“the document writer maintains full control — accepting the suggestion as-is, making necessary edits to better capture the document summary or ignoring the suggestion altogether.”article, stated

Patterns

fine-tuning-adaptation (model-operations)

The model was fine-tuned on manually generated summaries consistent with Google Docs use cases.

“We fine-tuned early versions of our model on a corpus of documents with manually-generated summaries that were consistent with typical use cases.”article, stated

data-quality-loop (data)

Google cleaned and filtered the fine-tuning data for consistency, improving quality despite reducing volume.

“We carefully cleaned and filtered the fine-tuning data to contain training examples that were more consistent and represented a coherent definition of summaries.”article, stated

human-in-the-loop-gate (product)

The generated summary remains a suggestion controlled by the document writer.

“Document writers can then view, edit, or ignore the suggested document summary.”article, stated

Tradeoffs

Prioritize fine-tuning data consistency over dataset size.

Chose cleaned and filtered lower-volume fine-tuning data over more varied but inconsistent supervised data.

Rationale: The source says reducing data volume while improving consistency led to a higher-quality model.

“Despite the fact that we reduced the amount of training data, this led to a higher quality model.”article, stated

Gotchas (what bit them)

A broad, inconsistent summary corpus confused the model.

Root cause: The training data mixed many document types and summary styles.

Resolution: Google narrowed and cleaned the fine-tuning set for a coherent definition of summaries.

“This led to a model that was easily confused because it had been trained on so many different types of documents and summaries that it struggled to learn the relationships between any of them.”article, stated

Evaluation

The source refers to model quality improvement from data curation but does not give a detailed evaluation protocol.

Outcomes

The feature is user-facing inside Google Docs.

“While all users can add summaries, auto-generated suggestions are currently only available to Google Workspace business customers.”article, stated