<?xml version="1.0" encoding="UTF-8"?>
<TEI xmlns="http://www.tei-c.org/ns/1.0" xml:lang="en">
  <teiHeader>
    <fileDesc>
      <titleStmt>
        <title>Stochastic Variational Inference</title>
        <author>Matthew D. Hoffman</author>
        <author>David M. Blei</author>
        <author>Chong Wang</author>
        <author>John Paisley</author>
      </titleStmt>
      <publicationStmt>
        <p>Tag layer of the DHSS Meta-Tagging Project. The article text is reproduced from the
           staged copy named in sourceDesc and is not altered; the tags are held separately in
           standOff so that overlapping and nested spans are preserved.</p>
      </publicationStmt>
      <sourceDesc>
        <bibl>
          <title>Stochastic Variational Inference</title>
          <date>2013</date>
          <publisher>Journal of Machine Learning Research / arXiv</publisher>
          
          <idno type="arXiv">1206.7051</idno>
          <idno type="record">hoffman2013-svi</idno>
          <note type="staged-file">hoffman2013-svi.txt, the project's staged copy</note>
          <note type="text-sha1">897dee8eaabeb6c2be3a635a9a4e6941e89a27b6</note>
          <note type="rights">arxiv-open</note>
        </bibl>
      </sourceDesc>
    </fileDesc>
    <profileDesc>
      <textClass><keywords><term>statistics</term></keywords></textClass>
      <particDesc>
        <person xml:id="paper"><p>the paper's own words</p></person>
        <person xml:id="tagger"><p>the tag layer; a sentence written by the tagger about the
          paper, always anchored to a quotation but not itself a quotation</p></person>
      </particDesc>
    </profileDesc>
    <revisionDesc>
      <change when="2026-10-06"
              who="build_paper_edition.py">0 spans located by searching the stored text for the quote's exact words, allowing any whitespace between them</change>
    </revisionDesc>
  </teiHeader>
  <standOff>
    <spanGrp type="tags">
      <span xml:id="t0" type="claim_type" ana="#claim_type" resp="#paper">
        <label>method</label>
        <note type="quotation-withheld">Quotation withheld because this record is not cleared for redistribution.</note>
      </span>
      <span xml:id="t1" type="phenomenon" ana="#phenomenon" resp="#paper">
        <label>scalable approximate posterior inference in hierarchical Bayesian models</label>
        <note type="quotation-withheld">Quotation withheld because this record is not cleared for redistribution.</note>
      </span>
      <span xml:id="t2" type="method" ana="#method" resp="#paper">
        <label>system-or-tool-building</label>
        <term>system-or-tool-building</term>
        <note type="quotation-withheld">Quotation withheld because this record is not cleared for redistribution.</note>
      </span>
      <span xml:id="t3" type="mechanisms" ana="#mechanisms[0]" resp="#tagger" cert="0.95">
        <label>mechanisms</label>
        <term>THREE SOURCES FOR A MODEL&#x27;S ASSUMPTIONS ARE NAMED, AND WHAT THEY ASSERT IS DECLARED UNOBSERVABLE IN THE SAME CLAUSE: we have assumptions to make - FROM SCIENCE, INTUITION, OR OTHER DATA ANALYSES - that involve STRUCTURES WE BELIEVE EXIST IN THE DATA BUT THAT WE CANNOT DIRECTLY OBSERVE. The provenance of the assumptions and the inaccessibility of their objects are stated together</term>
        <note type="quotation-withheld">Quotation withheld because this record is not cleared for redistribution.</note>
      </span>
      <span xml:id="t4" type="mechanisms" ana="#mechanisms[1]" resp="#tagger" cert="0.95">
        <label>mechanisms</label>
        <term>A FORMALISM IS DESCRIBED AS A LANGUAGE, AND THE INFERENCE PROCEDURE AS ITS READING: Quotation withheld ASSUMPTIONS about data and its HIDDEN STRUCTURE, and the corresponding algorithms LET US ANALYZE DATA UNDER THOSE ASSUMPTIONS, INFERRING THE HIDDEN STRUCTURE THAT BEST EXPLAINS OUR OBSERVATIONS. The notation is cast as a vocabulary and the computation as its interpretation</term>
        <note type="quotation-withheld">Quotation withheld because this record is not cleared for redistribution.</note>
      </span>
      <span xml:id="t5" type="mechanisms" ana="#mechanisms[2]" resp="#tagger" cert="0.95">
        <label>mechanisms</label>
        <term>THE PAPER&#x27;S OWN TASKS ARE SPLIT INTO TWO KINDS WITH DIFFERENT WARRANTS, AND THE UNOBSERVED PART IS PUT IN SCARE QUOTES: in DESCRIPTIVE tasks the models help EXPLORE the data with the hidden structure probabilistically FILLED IN; in PREDICTIVE tasks they FORM PREDICTIONS ABOUT NEW OBSERVATIONS. The same machinery serves two purposes that would be judged by different evidence</term>
        <note type="quotation-withheld">Quotation withheld because this record is not cleared for redistribution.</note>
      </span>
      <span xml:id="t6" type="mechanisms" ana="#mechanisms[3]" resp="#tagger" cert="0.95">
        <label>mechanisms</label>
        <term>A MODEL CLASS IS DEFINED BY WHAT IT COSTS RATHER THAN BY WHAT IT CONTAINS: NONCONJUGATE MODELS are MODELS WHERE A RICHER PRIOR IS USED AT THE EXPENSE OF MATHEMATICAL CONVENIENCE - and they HAVE EXPANDED THE SUITE of tools available. The category&#x27;s definition is a trade-off, with the thing traded away named explicitly</term>
        <note type="quotation-withheld">Quotation withheld because this record is not cleared for redistribution.</note>
      </span>
      <span xml:id="t7" type="mechanisms" ana="#mechanisms[4]" resp="#tagger" cert="0.95">
        <label>mechanisms</label>
        <term>ONE ALGORITHM IS RE-DESCRIBED AS ANOTHER, AND THE EQUIVALENCE IS STATED AS AN IDENTITY OF STEPS: the classical coordinate ascent algorithm CAN THUS BE INTERPRETED AS a projected natural gradient algorithm - and updating a parameter by taking a natural gradient step OF LENGTH ONE IS EQUIVALENT TO PERFORMING A COORDINATE UPDATE. Two names for one procedure, with the exchange rate given</term>
        <note type="quotation-withheld">Quotation withheld because this record is not cleared for redistribution.</note>
      </span>
      <span xml:id="t8" type="mechanisms" ana="#mechanisms[5]" resp="#tagger" cert="0.85">
        <label>mechanisms</label>
        <term>A FORMAL FACT IS GIVEN AN INTUITIVE ROUTE ALONGSIDE THE FORMAL ONE, AND BOTH ARE LABELLED: FORMALLY this is most easily seen via other perspectives, THOUGH IT CAN BE SEEN INTUITIVELY WITH the stick-breaking construction - and then THE INTUITION IS THAT more of the stick is absorbed in the first break locations. The paper marks which of its two explanations is which</term>
        <note>about this quote: RE-SLICED off an UNCLOSED OPENING BRACKET. The first cut ended &quot;...drawn from Beta(1&quot;, truncated inside a distribution&#x27;s argument list. An internal tool did NOT catch it: that tool looks for a CLOSER with nothing to close, and this is the mirror case - an OPENER with nothing closing it. A real gap in the guard, logged as its own question.</note>
        <note type="quotation-withheld">Quotation withheld because this record is not cleared for redistribution.</note>
      </span>
      <span xml:id="t9" type="mechanisms" ana="#mechanisms[6]" resp="#tagger" cert="0.95">
        <label>mechanisms</label>
        <term>THE EVALUATION CRITERION IS OPERATIONALISED AS A PROBABILITY ASSIGNED TO WITHHELD WORDS: under the predictive distribution, A BETTER MODEL WILL ASSIGN HIGHER PROBABILITY TO THE HELD-OUT WORDS - and the procedure divides each document into observed and held-out words, KEEPING THE SETS OF UNIQUE WORDS DISJOINT. What BETTER means is fixed by a number and a partition, and the partition rule is stated</term>
        <note type="quotation-withheld">Quotation withheld because this record is not cleared for redistribution.</note>
      </span>
      <span xml:id="t10" type="mechanisms" ana="#mechanisms[7]" resp="#tagger" cert="0.85">
        <label>mechanisms</label>
        <term>A PROCEDURE IS NAMED BY COMPOSING TWO EXISTING NAMES: interleaving the coordinate ascent updates with an update that increases the bound IS CALLED VARIATIONAL EXPECTATION-MAXIMIZATION - and the stochastic version is then described by what it does DIFFERENTLY, updating the two simultaneously. The name records its parentage and the variant is defined against it</term>
        <note>about this quote: RE-SLICED: the first cut ended &quot;we update alpha simultaneously with&quot;, dangling in front of a symbol the span does not include.</note>
        <note type="quotation-withheld">Quotation withheld because this record is not cleared for redistribution.</note>
      </span>
      <span xml:id="t11" type="limitations" ana="#limitations[0]" resp="#tagger">
        <label>The general algorithm is derived only for conjugate exponential-family models and does not cover nonconjugate models such as correlated or dynamic topic models.</label>
        <note>what this limits: the reach of the derivation: WE DEVELOPED OUR ALGORITHM WITH CONJUGATE EXPONENTIAL FAMILY MODELS, so nonconjugate models are outside it</note>
        <note type="quotation-withheld">Quotation withheld because this record is not cleared for redistribution.</note>
      </span>
      <span xml:id="t12" type="limitations" ana="#limitations[1]" resp="#tagger">
        <label>Convergence is only to a local optimum, and very small minibatches can lead to a poor one.</label>
        <note>what this limits: any solution the algorithm returns: IT IS GUARANTEED TO CONVERGE TO A LOCAL OPTIMUM BUT TAKING LARGE STEPS ON THE BASIS OF VERY FEW DATA POINTS MAY LEAD TO A POOR ONE</note>
        <note type="quotation-withheld">Quotation withheld because this record is not cleared for redistribution.</note>
      </span>
      <span xml:id="t13" type="limitations" ana="#limitations[2]" resp="#tagger">
        <label>The quality of the solution and speed of convergence depend on how the forgetting rate, delay and minibatch size are set.</label>
        <note>what this limits: the reported convergence behaviour: THE QUALITY OF THIS STATIONARY POINT AND THE SPEED OF CONVERGENCE MAY DEPEND ON HOW THESE PARAMETERS ARE SET</note>
        <note type="quotation-withheld">Quotation withheld because this record is not cleared for redistribution.</note>
      </span>
      <span xml:id="t14" type="limitations" ana="#limitations[3]" resp="#tagger" cert="1.0">
        <label>What is optimised is a bound standing in for a quantity the method cannot compute.</label>
        <note>what this limits: any model comparison made on this objective: the marginal probability cannot be computed exactly, so what is maximised is a fitted variational lower bound on it</note>
        <note type="quotation-withheld">Quotation withheld because this record is not cleared for redistribution.</note>
      </span>
      <span xml:id="t15" type="limitations" ana="#limitations[4]" resp="#tagger" cert="1.0">
        <label>A prior is made exchangeable for simplicity, and the paper notes the conditional then is not.</label>
        <note>what this limits: results depending on the Dirichlet prior here: the parameters are all set to the same value for simplicity, and the paper notes that conditioning makes the resulting conditional non-exchangeable</note>
        <note type="quotation-withheld">Quotation withheld because this record is not cleared for redistribution.</note>
      </span>
      <span xml:id="t16" type="limitations" ana="#limitations[5]" resp="#tagger" cert="1.0">
        <label>The evaluation is built from a split of each test document&#x27;s words, constructed to be disjoint.</label>
        <note>what this limits: the held-out probability figures reported here: each test document&#x27;s words are divided into observed and held-out sets, with the sets of unique words kept disjoint</note>
        <note type="quotation-withheld">Quotation withheld because this record is not cleared for redistribution.</note>
      </span>
      <span xml:id="t17" type="limitations" ana="#limitations[6]" resp="#tagger" cert="1.0">
        <label>How many topics a collection needs is answered by the model&#x27;s own posterior.</label>
        <note>what this limits: the number of topics reported for a collection: it is determined by the posterior distribution of the hidden structure under this model, not by anything independent of it</note>
        <note type="quotation-withheld">Quotation withheld because this record is not cleared for redistribution.</note>
      </span>
      <span xml:id="t18" type="transfers" ana="#transfers[0]" resp="#tagger" cert="0.9">
        <label>stochastic optimization following noisy gradient estimates, applied to the variational objective so inference need not pass over the whole data set each iteration</label>
        <note type="quotation-withheld">Quotation withheld because this record is not cleared for redistribution.</note>
      </span>
      <span xml:id="t19" type="transfers" ana="#transfers[1]" resp="#tagger" cert="0.85">
        <label>the natural gradient, which rescales the step by the Fisher information of the variational family rather than using the Euclidean gradient</label>
        <note type="quotation-withheld">Quotation withheld because this record is not cleared for redistribution.</note>
      </span>
      <span xml:id="t20" type="controls" ana="#controls[0]" resp="#tagger" cert="0.85">
        <label>a test set of 10,000 documents set aside per collection and explicitly withheld from the algorithms during training</label>
        <note>eliminates: a fitness figure earned on documents the model was fitted to, with the paper stating the withholding rather than leaving it implied · outcome (stated by the tagger, no quotation): held</note>
        <note type="quotation-withheld">Quotation withheld because this record is not cleared for redistribution.</note>
      </span>
      <span xml:id="t21" type="concepts" ana="#concepts[5]" resp="#paper">
        <label>topic</label>
        <term>topic</term>
        <note type="quotation-withheld">Quotation withheld because this record is not cleared for redistribution.</note>
      </span>
      <span xml:id="t22" type="concepts" ana="#concepts[6]" resp="#paper">
        <label>topic proportions</label>
        <term>topic proportions</term>
        <note type="quotation-withheld">Quotation withheld because this record is not cleared for redistribution.</note>
      </span>
      <span xml:id="t23" type="concepts" ana="#concepts[7]" resp="#paper">
        <label>evidence lower bound</label>
        <term>evidence lower bound</term>
        <note type="quotation-withheld">Quotation withheld because this record is not cleared for redistribution.</note>
      </span>
      <span xml:id="t24" type="concepts" ana="#concepts[8]" resp="#paper">
        <label>vocabulary</label>
        <term>vocabulary</term>
        <note type="quotation-withheld">Quotation withheld because this record is not cleared for redistribution.</note>
      </span>
      <span xml:id="t25" type="concepts" ana="#concepts[9]" resp="#paper">
        <label>natural gradient</label>
        <term>natural gradient</term>
        <note type="quotation-withheld">Quotation withheld because this record is not cleared for redistribution.</note>
      </span>
      <span xml:id="t26" type="unhoused_relations" ana="#unhoused_relations[0]" resp="#tagger">
        <label>optimized distribution → posterior</label>
        <note>THE INDEXING / PROXY RELATION - &#x27;from&#x27; STANDS IN FOR &#x27;to&#x27;. We have no type for it: &#x27;causes&#x27; asserts production, and &#x27;operationalised-as&#x27; says the authors CHOSE a measure, whereas a proxy claim says THIS STANDS IN FOR WHAT WE ACTUALLY CARE ABOUT AND WE KNOW IT IS NOT THE SAME THING. Measured at 8% of papers. The substitution at the centre of variational inference, stated in one line: &#x27;we use the optimized distribution as a proxy for the posterior&#x27;.</note>
        <note type="quotation-withheld">Quotation withheld because this record is not cleared for redistribution.</note>
      </span>
      <span xml:id="t27" type="senses" ana="#senses[0]" resp="#tagger" cert="1.0">
        <label>a topic - A WEIGHTED DISTRIBUTION OVER THE VOCABULARY: not a subject, a theme or an aboutness, but a probability vector over words, shown to a reader by printing its most frequent members - which is why a multi-word name has no way to stay together inside one</label>
        <note type="quotation-withheld">Quotation withheld because this record is not cleared for redistribution.</note>
      </span>
      <span xml:id="t28" type="senses" ana="#senses[1]" resp="#tagger" cert="1.0">
        <label>topic proportions - A DISTRIBUTION OVER TOPICS, so a distribution over distributions: the same word does duty at two levels in one sentence, and a document&#x27;s &#x27;topics&#x27; are weights on objects that are themselves weights on words</label>
        <note type="quotation-withheld">Quotation withheld because this record is not cleared for redistribution.</note>
      </span>
      <span xml:id="t29" type="senses" ana="#senses[2]" resp="#tagger" cert="1.0">
        <label>the ELBO - A LOWER BOUND SUBSTITUTED FOR THE THING WANTED: the algorithm maximises a bound on the log marginal probability rather than that probability, and the gap between them is not reported because computing it would require the quantity the bound exists to avoid</label>
        <note type="quotation-withheld">Quotation withheld because this record is not cleared for redistribution.</note>
      </span>
      <span xml:id="t30" type="claim_relations" ana="#claim_relations[0]" resp="#tagger">
        <label>extends → variational inference (Jordan et al.)</label>
        <note type="quotation-withheld">Quotation withheld because this record is not cleared for redistribution.</note>
      </span>
      <span xml:id="t31" type="claim_relations" ana="#claim_relations[1]" resp="#tagger">
        <label>builds-on → latent Dirichlet allocation (LDA)</label>
        <note type="quotation-withheld">Quotation withheld because this record is not cleared for redistribution.</note>
      </span>
      <span xml:id="t32" type="claim_relations" ana="#claim_relations[2]" resp="#tagger">
        <label>builds-on → Sato (2001), online/natural-gradient variational Bayes for EM-fittable models</label>
        <note type="quotation-withheld">Quotation withheld because this record is not cleared for redistribution.</note>
      </span>
      <span xml:id="t33" type="claim_relations" ana="#claim_relations[3]" resp="#tagger">
        <label>builds-on → the Robbins and Monro (1951) stochastic approximation method</label>
        <note type="quotation-withheld">Quotation withheld because this record is not cleared for redistribution.</note>
      </span>
      <span xml:id="t34" type="claim_relations" ana="#claim_relations[4]" resp="#tagger">
        <label>extends → the online LDA algorithm of Hoffman et al. (2010a)</label>
        <note type="quotation-withheld">Quotation withheld because this record is not cleared for redistribution.</note>
      </span>
      <span xml:id="t35" type="concept_edges" ana="#concept_edges[0]" resp="#tagger">
        <label>topic —operationalised-as→ vocabulary</label>
        <term>topic</term>
        <term>vocabulary</term>
        <note>strength of the relation: 1
Audit 2026-09-28: DOUBTFUL - read against its span and kept, but the span says each topic is a distribution over the vocabulary; operationalised-as is loose.</note>
        <note type="quotation-withheld">Quotation withheld because this record is not cleared for redistribution.</note>
      </span>
      <span xml:id="t36" type="content_tags" ana="#content_tags.quantities[0]" resp="#tagger">
        <label>300K / 1.8M / 3.8M — Nature, NYT, Wikipedia corpora analyzed</label>
        <note>about this quote: QUOTE RECOVERED FROM THE PAPER&#x27;S OWN CHARACTERS. The recorded quote was LETTERS-ONLY IDENTICAL to this stretch of the staged text but not an exact substring of it - spaces, hyphens, ligature glyphs or mathematical operators differed, so it could never anchor. This is the file&#x27;s own text between the same two letters: not produced by a rule about the damage, copied out of the file. Round-trip checked (the recovered span is letters-only equal to the original) and length-checked. The text as originally recorded is kept in evidence as extracted.</note>
        <note type="quotation-withheld">Quotation withheld because this record is not cleared for redistribution.</note>
      </span>
      <span xml:id="t37" type="content_tags" ana="#content_tags.quantities[1]" resp="#tagger">
        <label>2 million — scale of an example text archive</label>
        <note type="quotation-withheld">Quotation withheld because this record is not cleared for redistribution.</note>
      </span>
      <span xml:id="t38" type="content_tags" ana="#content_tags.quantities[2]" resp="#tagger">
        <label>2 — models used for demonstration (LDA, HDP)</label>
        <note type="quotation-withheld">Quotation withheld because this record is not cleared for redistribution.</note>
      </span>
      <span xml:id="t39" type="content_tags" ana="#content_tags.findings[0]" resp="#tagger">
        <label>SVI is a scalable algorithm for approximating posteriors</label>
        <note type="quotation-withheld">Quotation withheld because this record is not cleared for redistribution.</note>
      </span>
      <span xml:id="t40" type="content_tags" ana="#content_tags.findings[1]" resp="#tagger">
        <label>SVI handles large data and outperforms traditional VI</label>
        <note type="quotation-withheld">Quotation withheld because this record is not cleared for redistribution.</note>
      </span>
      <span xml:id="t41" type="content_tags" ana="#content_tags.findings[2]" resp="#tagger">
        <label>the Bayesian nonparametric model beats its parametric counterpart</label>
        <note type="quotation-withheld">Quotation withheld because this record is not cleared for redistribution.</note>
      </span>
      <span xml:id="t42" type="content_tags" ana="#content_tags.findings[3]" resp="#tagger">
        <label>SVI enables complex Bayesian models on massive data sets</label>
        <note type="quotation-withheld">Quotation withheld because this record is not cleared for redistribution.</note>
      </span>
      <span xml:id="t43" type="content_tags" ana="#content_tags.variables[0]" resp="#tagger">
        <label>posterior distribution</label>
        <term>posterior distribution</term>
        <note type="quotation-withheld">Quotation withheld because this record is not cleared for redistribution.</note>
      </span>
      <span xml:id="t44" type="content_tags" ana="#content_tags.variables[2]" resp="#tagger">
        <label>topic model</label>
        <term>topic model</term>
        <note type="quotation-withheld">Quotation withheld because this record is not cleared for redistribution.</note>
      </span>
      <span xml:id="t45" type="content_tags" ana="#content_tags.variables[3]" resp="#tagger">
        <label>probabilistic graphical models</label>
        <term>probabilistic graphical models</term>
        <note type="quotation-withheld">Quotation withheld because this record is not cleared for redistribution.</note>
      </span>
      <span xml:id="t46" type="content_tags" ana="#content_tags.definitions[0]" resp="#tagger">
        <label>stochastic variational inference</label>
        <term>stochastic variational inference</term>
        <note type="quotation-withheld">Quotation withheld because this record is not cleared for redistribution.</note>
      </span>
      <span xml:id="t47" type="content_tags" ana="#content_tags.definitions[1]" resp="#tagger">
        <label>probabilistic modeling</label>
        <term>probabilistic modeling</term>
        <note type="quotation-withheld">Quotation withheld because this record is not cleared for redistribution.</note>
      </span>
      <span xml:id="t48" type="content_tags" ana="#content_tags.definitions[2]" resp="#tagger">
        <label>probabilistic graphical models</label>
        <term>probabilistic graphical models</term>
        <note type="quotation-withheld">Quotation withheld because this record is not cleared for redistribution.</note>
      </span>
      <span xml:id="t49" type="content_tags" ana="#content_tags.statistics[0]" resp="#tagger">
        <label>Bayesian</label>
        <term>Bayesian</term>
        <note type="quotation-withheld">Quotation withheld because this record is not cleared for redistribution.</note>
      </span>
      <span xml:id="t50" type="content_tags" ana="#content_tags.statistics[2]" resp="#tagger">
        <label>mean</label>
        <term>mean</term>
        <note type="quotation-withheld">Quotation withheld because this record is not cleared for redistribution.</note>
      </span>
      <span xml:id="t51" type="content_tags" ana="#content_tags.statistics[3]" resp="#tagger">
        <label>regression</label>
        <term>regression</term>
        <note>about this quote: QUOTE REPAIRED: the extractor split a hyphen-space and the quote was recorded faithfully with the damage in it, which made it unanchorable. The repaired string is an EXACT SUBSTRING of the staged text - that is why it was accepted, not because a rule produced it. The text as originally recorded is kept in evidence as extracted.</note>
        <note type="quotation-withheld">Quotation withheld because this record is not cleared for redistribution.</note>
      </span>
      <span xml:id="t52" type="content_tags" ana="#content_tags.statistics[4]" resp="#tagger">
        <label>sample-size</label>
        <term>sample-size</term>
        <note type="quotation-withheld">Quotation withheld because this record is not cleared for redistribution.</note>
      </span>
      <span xml:id="t53" type="content_tags" ana="#content_tags.statistics[5]" resp="#tagger">
        <label>variance</label>
        <term>variance</term>
        <note type="quotation-withheld">Quotation withheld because this record is not cleared for redistribution.</note>
      </span>
    </spanGrp>
  </standOff>
  <text>
    <body>
      <p><note type="rights">The full text of this article is not redistributable, so it is
      not included here. The evidence sentences are withheld with it; the tag layer and its
      grounding status remain. The article itself is at https://arxiv.org/abs/1206.7051.</note></p>
    </body>
  </text>
</TEI>
