Paper deep dive
Knowledge Acquisition During Pre-training? Large Language Models Learn Better With Auxiliary Views
Joseph Lee, Yidi Huang, Dokyoon Kim, Shu Yang, Li Shen
Intelligence
Status: succeeded | Model: Gemma-4-26B-A4B | Prompt: intel-v1 | Confidence: 94%
Last extracted: 9/5/2026, 2:12:37 AM
Summary
This study investigates how large language models (LLMs) acquire knowledge during pre-training, positing that 'auxiliary views'âreformulations of knowledge such as blogs, textbooks, and Q&Aâare causally helpful. Through controlled experiments on OLMo-2 models, the authors find that allocating token budget from document repetition to auxiliary views improves both factual recall and inference capabilities, even when the total token count is fixed. This benefit scales with model size and is not dependent on the strength of the teacher model generating the views. The findings suggest that conceptual diversity in data representation aids generalizable encoding of knowledge.
Entities (9)
Relation Signals (7)
OLMo 2 â usedfor â Knowledge Acquisition Experiments
confidence 98% ¡ We use the base OLMo-2 models (1B, 7B, 13B, and 32B) ... for training.
GPT-4.1 â generates â Paraphrases
confidence 95% ¡ Paraphrases are generated with GPT-4.1
GPT-5-mini â generates â Auxiliary Views
confidence 95% ¡ auxiliary and prerequisite views are generated with GPT-5-mini.
Auxiliary Views â improves â Knowledge Acquisition
confidence 95% ¡ allocating tokens from document repetition to auxiliary views improves learning, counterintuitively, even for factual recall.
Document Repetition â isnecessaryfor â Knowledge Acquisition
confidence 92% ¡ First, we confirm that repetition is necessary for acquisition
Factual Probes â measures â Factual Recall
confidence 92% ¡ factual probes, which measure recall of information stated explicitly in the text
Auxiliary Views â scaleswith â Model Size
confidence 90% ¡ the gap over the Source and Para. 9 conditions widens steadily through 7B, 13B, and 32B.
Cypher Suggestions (0)
No Cypher suggestions yet.
Abstract
Abstract:Gaps remain in our understanding of how large language models (LLMs) acquire knowledge during pre-training. We posit that auxiliary views, reformulations of knowledge, are causally helpful for learning. We design controlled experiments to isolate this. First, we confirm that repetition is necessary for acquisition and clarify that paraphrasing helps only at smaller batch sizes. Second, holding the token budget fixed, allocating tokens from document repetition to auxiliary views improves learning, counterintuitively, even for factual recall. Third, the effectiveness of auxiliary views is not contingent on the strength of the teacher model that generates them. Fourth, we identify forms of knowledge, contextual and foundational, that aid learning in the presence of prior knowledge gaps. Finally, we examine how these effects manifest mechanistically via layer-wise biases and compression. Together, our findings suggest that auxiliary representations of knowledge, which arise naturally in large pre-training corpora, are a key factor in the success of pre-training and offer a plausible explanation for why data diversity matters.
Tags
Links
- Source: https://arxiv.org/abs/2609.04180v1
- Canonical: https://arxiv.org/abs/2609.04180v1
Trouble viewing inline? Open PDF directly â
Full Text
94,570 characters extracted from source content.
Expand or collapse full text
Knowledge Acquisition During Pre-training? Large Language Models Learn Better With Auxiliary Views Joseph Lee, Yidi Huang, Dokyoon Kim, Shu Yang * , Li Shen * University of Pennsylvania, Philadelphia, PA, USA jiosephlee@gmail.com yidi.huang,dokyoon.kim,shu.yang,li.shen@pennmedicine.upenn.edu Abstract Gaps remain in our understanding of how large language models (LLMs) acquire knowl- edge during pre-training. We posit that auxil- iary views, reformulations of knowledge, are causally helpful for learning. We design con- trolled experiments to isolate this. First, we confirm that repetition is necessary for acquisi- tion and clarify that paraphrasing helps only at smaller batch sizes. Second, holding the token budget fixed, allocating tokens from document repetition to auxiliary views improves learn- ing, counterintuitively, even for factual recall. Third, the effectiveness of auxiliary views is not contingent on the strength of the teacher model that generates them. Fourth, we iden- tify forms of knowledge, contextual and foun- dational, that aid learning in the presence of prior knowledge gaps. Finally, we examine how these effects manifest mechanistically via layer-wise biases and compression. Together, our findings suggest that auxiliary representa- tions of knowledge, which arise naturally in large pre-training corpora, are a key factor in the success of pre-training and offer a plausible explanation for why data diversity matters. 1 Introduction Various aspects of data have been shown to be important in pre-training, including deduplica- tion (Raffel et al., 2020; Lee et al., 2021; Zhang et al., 2022), filtering (Weber et al., 2024; Li et al., 2024), coverage and depth (Kandpal et al., 2023), quality (Gunasekar et al., 2023; Longpre et al., 2024), and diversity (Chen et al., 2025; Zhang et al., 2025). However, these insights concern corpus characteristics, overlooking a fundamental ques- tion: how should knowledge be represented? The complexity of this question can vary. For atomic facts like biographical attributes, represen- tation is relatively trivial. But for complex domains * Corresponding authors 0.42 0.44 0.46 0.48 0.50 Accuracy Factual MCQAInference MCQA 020406080100 Training Step 18 16 14 12 Log Prob Factual Probes Source Para. 9 Para. 9 + Aux 020406080100 Training Step Inference Probes Figure 1: Three training mixes on OLMo-2-32B: Source, Para. 9, and Para. 9 + Aux. Across all metrics, paraphrases improve over source-only training, and auxiliary views yield substantially greater improvements. See Section 4 for full results. such as biomedicine or law, where knowledge is multifaceted and interdependent, formulation is far less obvious. This is becoming relevant as re- searchers adapt LLMs to specialized domains via continued pre-training (Bai et al., 2025; Sellergren et al., 2025; Wang et al., 2025a; Luo et al., 2025; Colombo et al., 2024; Singhal et al., 2025). Thus, for our experiments, we collect recent arXiv papers, legal opinions, and medical case studies to serve as self-contained domain knowl- edge. We continue pre-training on these texts and related formulations, to study the acquisition of complex knowledge that builds upon the LLMâs existing knowledge. In this setting, we study two research questions: RQ 1: How should knowledge be represented in natural language? RQ 2: What surrounding knowledge should be represented alongside it? Our experiments reveal four main findings. (1) Acquisition of new knowledge benefits from repe- tition, and paraphrasing further helps, but the ben- efits of paraphrasing diminish at larger batch arXiv:2609.04180v1 [cs.CL] 3 Sep 2026 sizes. (2) Holding the token budget fixed, allo- cating tokens from document repetition to aux- iliary views improves understanding and factual recall, inducing a distinct layer-wise bias and compression in how knowledge is encoded. (3) Furthermore, the effectiveness of these auxiliary views is not contingent on the strength of the teacher model that generates them. (4) Lastly, contextual and prerequisite knowledge aid learning in the presence of prior knowledge gaps. Together, these results lead us to a central con- jecture: during pre-training, LLMs benefit from auxiliary views (a web of explanations, analogies, and reformulations that humans generate as they learn and teach each other) and acquire a more gen- eralizable encoding of knowledge. Conceptually diverse views, not just linguistically, of the same knowledge improves learning: broader conceptual understanding facilitates the memorization of spe- cific facts better than brute memorization. More- over, this ability emerges more strongly with scale: larger models learn better by integrating diverse views more effectively, encoding them with greater parameter efficiency and redistributing learning to- ward the middle and final layers. Our findings provide a more operational ac- count of what âdiverseâ data can mean in pre- training. Rather than treating diversity solely as a corpus-level property, diversity can be constructed around individual knowledge, through complemen- tary views that help models form richer and more efficient representations. This offers principles for synthetic pre-training, especially in low-data do- mains, and explains why âdiverseâ data is helpful. 2 Related Works Pre-training. Model size and data scale are the primary determinants of LLM capabilities (Brown et al., 2020; Kaplan et al., 2020; Carlini et al., 2023; Tirumala et al., 2022; Hoffmann et al., 2022). The large-scale nature of pre-training has made the ex- act role of data difficult to understand. Existing studies, varying in corpora and models, often yield conflicting findings. Even the role of data repeti- tion remains debated (Lee et al., 2021; Taylor et al., 2022; Hernandez et al., 2022; Xue et al., 2023; Muennighoff et al., 2023). Knowledge Acquisition during Pre-training. We therefore build upon previous efforts that study how pre-training instills knowledge in a controlled manner. Allen-Zhu and Li (2024) show that para- phrased augmentation increases the memorization of biographical facts from 9.7% to 96.6%. They find that inserting QAs about facts during pre- training increases memorization of held-out facts, whereas inserting QAs during instruction tuning does not. This strongly suggests the importance of data formulation in pre-training. Further, Chang et al. (2024) intermittently injects fictional facts during pre-training, observing that knowledge is acquired incrementally upon each exposure and subject to decay, suggesting a grad- ual, not emergent, learning process. Confounding factors are controlled to clearly isolate the effect. A limitation of these prior works is that Chang et al. (2024) and Allen-Zhu and Li (2024) only use biographical facts; they also provide conflicting views on the benefits of paraphrasing. We focus on complex knowledge and offer an explanation for these reported differences. Domain Adaptation via Continued Pre- training. Teaching large language models (LLMs) a specific set of new knowledge via continued pre- training is difficult (Wang et al., 2021; Jang et al., 2021; Hu et al., 2023; Ovadia et al., 2024; Hoff- bauer et al., 2024). For instance, a 70B model continually pretrained on Wiki-style documents, despite sophisticated augmentation, only recalls 62.7% of facts (Jiang et al., 2024). In practice, con- tinued pre-training is adopted to varying degrees. For example, MedGemma (Sellergren et al., 2025) and TxGemma (Wang et al., 2025a) do not per- form any text-based continued pre-training, while Intern-S1 (Bai et al., 2025) does so for 5 trillion tokens. Thus, our study aims to provide practical takeaways that can make continued pre-training more reliable. 3 Experimental Setup Problem Formulation. The pre-training objec- tive for an autoregressive LM,fparameterized by θ, is next-token prediction. Given a corpusCof documentsd 1 ,...,d M , each a sequence of tokens (t m,1 ,...,t m,n m ), we minimize the loss function: L(θ) =â M X m=1 n m X i=1 logP (t m,i | t m,<i ;θ)(1) We denote knowledge abstractly asK, acces- sible through the sub-corpusC K = d i â C | d i contains information about K . BecauseKis acquired only through next-token prediction over Blog. Direct Preference Optimization (DPO) offers a neat change of perspective. Instead of treating reward modeling and policy optimization as separate steps, DPO re-parameterizes the reward class so [...] has a closed form. That lets you fit the policy directly to human comparisons with a simple classification loss â no RL required. Stack Exchange. Q: How exactly does the partition function cancel out in the DPO derivation? They say the partition function term β logZ(x) cancels â can someone show the algebraic steps explicitly? A: Short answer: because the partition function term in the reparameterization depends only on the prompt x, it is identical for both completions and therefore subtracts out when you form the [...] Textbook. The partition function term β logZ(x) depends only onx, so it cancels when forming differences. Preference models like BradleyâTerry depend only on reward differences, not on absolute reward values. Therefore the unknown normalization that made reward recovery hard is irrelevant to the likelihood of observed pairwise comparisons. This is precisely why we can reparameterize rewards in terms of [...] Table 1: We rewrite each document into three genres while preserving the underlying knowledge. The excerpts above illustrate an accessible, narrative blog; a question-and-answer Stack Exchange entry; and a formal textbook exposition. C K , the selection of tokens should matter. This mo- tivates our central question: how should knowledge be represented in text, or specifically how should we construct documentsdâC K to better learnK? Observation. Knowledge is rarely represented once in a corpus. Consider âAttention Is All You Needâ (Vaswani et al., 2017). This document is followed by a proliferation of others conveying the same knowledge: tutorials, blogs with intuitive ex- planations, and forums answering questions. Such texts are natural byproducts of societyâs collective effort to communicate and process knowledge. We term such manifestations of the same knowl- edge auxiliary views. We make this distinction because human-generated views are rarely para- phrases: they discuss the knowledge in diverse contexts (e.g., Transformersâ advantages over other architectures) and forms (e.g., blogs, forums), col- lectively providing a more complete, contextualized picture ofK. We suspect pre-training is replete with these views, explaining its effectiveness be- yond vague axes like quality or diversity. In our study, we frame paraphrasing as linguistic variation of a single view and set it as the control. We also investigate the knowledge represented aroundK. To acquireK, a model may need prior knowledge it does not yet possess. We examine two types: contextual knowledge, whichKreferences, and prerequisite knowledge, the foundational con- cepts that K presupposes. 3.1 Dataset Documents. We collect 36 documents across three domains to serve asK: twelve computer science papers from arXiv, twelve legal opinions from U.S. federal appellate courts, and twelve medical case reports from PubMed Central. To prevent leak- age from OLMo-2âs pre-training corpus, we select documents published after the cutoff date and ver- ify their absence through the Infini-gram API (Liu et al., 2024). Additional details are in Appendix A. Views. For each document, we synthetically generate auxiliary views via LLMs. Inspired by our earlier observation and prior work (Gunasekar et al., 2023; Allen-Zhu and Li, 2024; Jiang et al., 2024), we construct textbooks, Stack Exchangeâ style Q&A, and blogs (Table 1). Prerequisite knowledge is also generated as textbooks. Contex- tual knowledge is collected as cited arXiv papers and cited judicial opinions; medical case reports lack a citation structure, so we omit this domain. Paraphrases are generated with GPT-4.1, while aux- iliary and prerequisite views are generated with GPT-5-mini. Details on data collection, preprocess- ing, and prompts are in Appendix A. Probes. To measure learning, we adopt LAMA- style probes (Petroni et al., 2019; Jiang et al., 2020; Zhong et al., 2021), where the task is to predict a sentenceâs final word or, following Chang et al. (2024), a multi-word target. We design two probe types (Table 2): factual probes, which measure recall of information stated explicitly in the text, and inference probes, which require combining one or more facts to infer information not stated. To construct factual probes, we filter for knowledge-bearing sentences, generate QA pairs from each, and convert them into self-contained cloze statements; we automate this with GPT-5.4, having verified that it adequately understands the documents. The pipeline yields 6,435 factual and 430 inference probes, along with multiple-choice variants (4,515 factual and 322 inference MCQs), exceeding the scale of prior work (Chang et al., 2024). We manually validate 200 probes of each type. Full pipeline details are in Appendix F. Our dataset 1 and code 2 are publicly available. 1 https://huggingface.co/datasets/jiosephlee/ auxiliary-views-knowledge-acquisition 2 https://github.com/jiosephlee/ auxiliary-views-knowledge-acquisition Original sentenceThe added constraint is important, as it prevents the model from deviating too far from the distribution [...], as well as maintaining the generation diversity and [...] Factual probeIn the paper âDirect Preference Optimization [...],â the authors state that the added constraint in the reinforcement learning objective not only prevents the model from deviating too far from the distribution on which the reward model is accurate, but also maintains the generation diversity. Support sentences[...] still expensive to estimate the partition functionZ(x)[...] the Bradley-Terry model depends only on the difference of rewards [...] Substituting the reparameterization [...] into the preference model, the partition function cancels, and we can express the human preference probability in terms of only the optimal policy Ď â and reference policy [...] Inference probeAccording to the paper âDirect Preference Optimization [...],â the expensive quantity from the optimal-policy form that becomes unnecessary to estimate once DPO rewrites the BradleyâTerry preference model in terms of policies is the partition function. Table 2: The factual probe extracts questions from knowledge-bearing sentences, converts them into statements with answers at the end, and adds context. The inference probe combines knowledge from one or more support sentences to infer information not explicitly stated. Here, it integrates the facts thatZ(x)is expensive to estimate, that the BradleyâTerry model depends only on reward differences, and that the reparameterization causesZ(x)to cancel, thereby identifying the partition function as the quantity that no longer requires estimation. The target span of each probe is bolded. 3.2 Training Setup We use the base OLMo-2 models (1B, 7B, 13B, and 32B) (OLMo et al., 2024) for training. Following Chang et al. (2024), we employ single-batch knowl- edge injection: the documents fit in one forward pass, and the rest of the batch is filled with general data. We performN = 100injections in our main experiments. In Source, the original document is injected every batch. In Para. M, we cycle through the original document and itsMparaphrases, re- peating N M+1 times. In Para. M + Aux., auxiliary views are injected alongside the paraphrased doc- uments, with a blog, textbook chapter, and Stack Exchange Q&A inserted into every batch. To remove the number of knowledge-bearing tokens as a confound, we token-match all con- ditions: since Para. M + Aux. introduces addi- tional knowledge-bearing tokens, we upsample the chunks in Source and Para. M so that every condi- tion sees the same number of tokens pertaining to K. Consequently, Para. M + Aux. devotes fewer of its tokens to direct repetitions of the main docu- ment. Hyperparameters are in Appendix E. General Data. For general data replay, we stream tokens from the DCLM subset (Li et al., 2024) of OLMo-2âs pre-training corpus. Metrics. We evaluate the modelâs performance on our probes throughout training: â˘Log-Prob.: For cloze probes, we measure the joint log-probability of the target span. â˘Target Rank: We measure the vocabulary rank of the correct target token under teacher forcing. For multi-token targets, we report the worst rank across the span; lower is better. ⢠Multiple-Choice Accuracy:For MCQ probes, we use 5-shot prompting with general- knowledge examples and constrain decoding to the answer choices. 4 Large Language Models Learn Better with Auxiliary Views 4.1 The Benefit of Auxiliary Views Better Knowledge Acquisition. In Figure 1, even under a matched token budget, allocating tokens to auxiliary views substantially improves perfor- mance on both factual and inference probes. This pattern holds across all of our metrics, including log probability, MCQA, and target rank (Figure 8). Furthermore, the ordering Para. 9 + Aux.>Para. 9>Source is established early during training and holds until convergence, though Source learns faster on factual probes for the firstâź20 steps. We attribute this effect to auxiliary views as all other factors, including data ordering, are held constant. The injected auxiliary views merely replace a por- tion of the direct views or paraphrases of the source document. The improvement on inference is intuitive. Al- though source documents contain sufficient infor- mation to answer these probes, they offer only a single perspective. As Table 1 illustrates, auxil- iary views reformulate the knowledge in different styles and contexts, offering diverse perspectives on the material. Learning from these views should lead to a more generalizable understanding, whose benefits naturally emerge on inference probes. Generalization to Factual Recall. Counterintu- itively, auxiliary views also improve factual recall, even though every factual target span is a verba- tim phrase from the source. One would expect diverting tokens away from source to hinder di- 1B7B13B32B Model Size 16 15 14 13 12 11 10 Final Log Prob Factual Source Para. 9 Para. 9 + Aux. Probes MCQA 1B7B13B32B Model Size 16 15 14 13 12 11 Inference 1B7B13B32B Model Size 0.30 0.35 0.40 0.45 0.50 Final Accuracy Factual 1B7B13B32B Model Size 0.2 0.3 0.4 0.5 0.6 Inference Figure 2: Knowledge acquisition across model sizes under a fixed token budget. Auxiliary views (green) improve both factual recall and inference over Source (blue) and Para. 9 (orange); this advantage grows with model size. rect memorization, not help it. This suggests that auxiliary views encourage the model to encode the knowledge in a more generalized manner that, in turn, supports more effective factual recall (Spiro, 2017); we return to this in Section 4.3 by examin- ing how this effect emerges mechanistically. Model Size Effects. The benefit of auxiliary views further emerges with scale. As shown in Fig- ure 2, the 1B model derives little advantage from them, while the gap over the Source and Para. 9 conditions widens steadily through 7B, 13B, and 32B. This trend is largely consistent across all do- mains (Figure 7). We discuss this further in Sec- tion 4.3 in which larger models appear to unlock an advantage from auxiliary views that smaller models cannot. Which Auxiliary View? We again token-match every condition. Textbooks, blogs, and Stack Ex- change Q&A all perform similarly, with a slight benefit from mixing view types on factual recall (Table 8). Whether and how each view facilitates learning differently warrants further study. Measuring Lexical Bias. A possible confound- ing factor is that the synthetically generated auxil- iary views leak our probes, especially for inference probes where the target span, unlike factual probes, need not appear in the source. We address the ques- tion of lexical bias, whereby the model might favor particular phrases since auxiliary views and probes were produced by related model families (GPT-5- mini and GPT-5.4, respectively). We measure how often each probeâs target span occurs in the source, paraphrases, and auxiliary views. Table 3 reports both frequency and coverage. Across all metrics, auxiliary views contain the tar- get spans less frequently and with lower coverage than either the source or paraphrases. This strength- ens our findings: auxiliary views perform better on the probes despite stating the targets less often. Table 3: Frequency and coverage of our probe targets across documents. Freq. = occurrences per 1k tokens; Cover. = fraction of targets present at least once across the documents. Para. 49 averages Freq. over 49 para- phrased documents, while coverage records presence in any paraphrase. ProbesCorpusFull targetBigram Freq. Cover.Freq. Cover. Factual Source0.3910.70 0.8290.92 Para. 49 0.2220.60 0.6810.91 Aux.0.1120.33 0.4370.74 Inference Source1.2250.51 0.7030.71 Para. 49 1.1110.56 0.6050.78 Aux.1.0700.51 0.6280.77 Controlling for Upsampling. To test whether the density of duplicates introduced by token- matched upsampling of Source and Para. 9 explains some of the gap, we reduce the degree of upsam- pling. At scale 0.5, the inserted auxiliary-view bud- get and the matching upsampling are both halved. In the no-upsampling regime, Source and Para. 9 receive no upsampling at all; auxiliary views in- stead directly replace the document budget so that it sees the source document far less. We report each metricâs peak over the 100-step training window to reduce any disadvantage to the Source baseline from overfitting. The gap narrows, but auxiliary views retain their advantage in both regimes (Ta- ble 4). More importantly, Source never improves as duplication is reduced; its accuracy only declines. Thus, repetition helps, but reallocating that token budget to auxiliary views is more effective. MatchingConditionFactual Inference regimeMCQAMCQA 0.5 Source0.3820.444 Para. 90.3990.435 Auxiliary views0.4120.450 No upsampling Source0.3800.421 Para. 90.3890.415 Auxiliary views0.3920.424 Table 4: Token-matching upsampling. Peak MCQA accuracy when matching upsampling is halved or re- moved; in the latter, auxiliary views partially replace the original documents instead of upsampling source to match. Auxiliary views retain their advantage, and Source never improves with less duplication. 4.2 Broader Generalization Our findings generalize to a pre-training, human- written views, and another model family. A Pre-training-Faithful Setting. Our exper- iments so far use continued pre-training with a new learning-rate schedule and a smaller batch size. These choices may affect whether our findings generalize to the original pre-training regime. We therefore replicate our experiment in a pre-training- faithful setup and obtain the same ordering (Ta- ble 5; full setup details in Appendix E). ConditionFact.Fact.Inf.Inf. log prob. MCQA log prob. MCQA Pretrained model-16.300.343-14.790.413 Source (token-matched)-10.000.372-12.850.421 Para. 9 (token-matched)-10.330.375-12.530.417 Auxiliary views-9.560.403-10.820.492 Table 5: A Pre-training-Faithful Setting. Final metrics after resuming OLMo-2 7B from step 925,000 with its optimizer state, original data stream and schedule, and a global batch size of 1,024. Auxiliary views yield the largest gains. Human Auxiliary Views. To test whether our findings depend on synthetic text, we repeat the experiment with human-written auxiliary views collected from the open web. The benefit again grows with model size (Figure 3), mirroring the synthetic-view results. This experiment covers only two documents, so we treat it as suggestive rather than conclusive; nonetheless, it provides initial ev- idence that the effect is not merely an artifact of clean, synthetic text. Beyond OLMo-2. We repeat the main experi- ment on Qwen-2.5-7B, and auxiliary views again yield the largest gains (Table 11). 7B13B32B Model Size 0.00 0.05 0.10 0.15 0.20 0.25 â Final Log Prob. Factual Inference Figure 3: With human-written auxiliary views collected from the open web, the benefit grows with model size, consistent with our synthetic results.âfinal log prob. is the difference between training with human auxiliary views and the Para. 9 condition. Results are averaged over two documents. 4.3Mechanistic Signatures of Auxiliary Views Having established that auxiliary views improve knowledge acquisition, we ask how this phe- nomenon emerges mechanistically. We compare each trained modelâs feed-forward network (FFN) weights against the base model along two axes: the magnitude of change (relative delta norm and cosine distance) and its concentration across chan- nels (Gini coefficient), measured per layer and over training (Figures 10 and 9). Why MLP Channels? We focus our analy- sis on the feed-forward (MLP) layers for two rea- sons. First, they account for the majority of a transformerâs parameters, making them the natu- ral locus for studying where knowledge is written during training. Second, they have comparatively clean interpretations: Geva et al. (2021) show that individual channels in FFN layers operate as keyâ value memories. This channel-level view lets us read parameter change as movement in the modelâs memory rather than as an opaque aggregate. Compression: Learning More by Changing Less. Based on Figure 9, paraphrasing induces the largest parameter movement of the three condi- tions, in both norm and cosine distance, yet adding auxiliary views reduces this magnitude, though still more than source-only training. We interpret this as evidence that the two conditions learn differently. Paraphrasing supplies many surface-level variants of a single view, and the model appears to expend parameter change absorbing this lexical variation. Auxiliary views instead supply the knowledge in genuinely distinct framings, which the model can 0 10 20 30 gate_proj Layer 0 10 20 30 up_proj Layer FFN channel 0 10 20 30 down_proj Layer 6 4 2 0 2 4 6 (Aux. Views - Source) Cosine Distance from Base Model 1e5 Figure 4: Per-channel difference (Para. 9 + Aux. minus Source) in cosine distance from the base model across layers and FFN channels (gate, up, and down projec- tions). Red indicates channels that auxiliary views move more than source; blue indicates less movement. A neg- ative band around layers 16â24 shows that auxiliary views change the upper-middle layers less than source while affecting the middle and final layers more. apparently integrate with less weight movement. This is consistent with our conjecture that auxil- iary views enable a more generalizable encoding of knowledge: forming a more general, reusable representation requires overwriting fewer parame- ters than memorizing surface forms. Magnitude of change is not the same as quality of learning. Layer-wise Biases. Parameter change is not uniform across layers. All conditions concentrate change in the middle and final layers, with a pro- nounced dip in the upper-middle layers (Figure 10). Auxiliary views accentuate this structure. Rela- tive to source-only training, training with auxiliary views changes the middle and final layers more, but changes less in the upper-middle band (layers âź16â24). Figure 4 makes this bias visible: the delta in cosine distance (Para. 9 + Aux.âSource) is negative in a band around layers 16â24 and posi- tive elsewhere. Auxiliary views do not move more weight everywhere; they redistribute where learn- ing occurs. Model Size Effects. At 1B, where auxiliary views confer little benefit (Figure 2), the corre- sponding per-channel difference is almost uni- formly negative or zero across all layers and pro- jections (Figure 11), lacking the layer-wise biases seen at 7B. The mechanistic signature of auxiliary views therefore emerges only at scale. This sug- gests that larger models encode auxiliary views differently, enabling greater generalization. 5 Auxiliary Views Do Not Require a Strong Teacher Auxiliary views inherently require a teacher: some- one who understands the material and can commu- nicate it to others. Naturally, our results could hinge on the generatorâs strength, although our auxiliary text is generated by a relatively weak model, GPT-5-MINI. To examine the influence of the teacherâs capabilities, we regenerate aux- iliary views using eleven generator configurations spanning multiple model families, reasoning-effort levels, and sizes, while holding the training sched- ule and token budget fixed. Because generators that produce less auxiliary-view text require more repetition to match the token budget and may there- fore overfit, we compare each at its peak over the 100-step training window. Downstream factual accuracy is remarkably sta- ble across generators (0.405â0.422, all above the Para. 9 baseline of 0.396; Table 13). It is uncor- related with generator size (Pearsonr = â0.14, n = 6), as further corroborated by scaling within a model family (gpt-oss-20Bâ120B: 0.422â0.413; Gemma-4 12Bâ31B: 0.414â0.405), and likewise uncorrelated with the generatorâs own factual ac- curacy (r = â0.24,n = 10,p = 0.50). Notably, gpt-oss-20B has the least measured domain knowl- edge, yet its views teach best. However, the volume of generated view text, which does not measure teacher strength and can be controlled through prompting, does correlate with downstream accuracy (r = +0.62,pâ 0.04). Varying the reasoning effort of the same genera- tor likewise leaves downstream performance es- sentially unchanged, even though it changes the generatorâs own accuracy. Together, these results suggest that auxiliary views function as general data augmentation rather than as distillation from a strong teacher. The generator need only refor- mulate the provided text; stronger models do not necessarily perform better at this task, even in com- plex domains. 6 When Does Paraphrasing Help? Paraphrasing is known to aid knowledge acquisi- tion (Ovadia et al., 2024), but prior reports conflict on its effectiveness. We revisit this question to show that its benefit is conditional, and in doing so reconcile these reports. Paraphrasing prevents collapse. Repeated ex- posure improves performance only up toâź20 expo- 0255075100 Exposure # 13 12 11 10 Log Prob. Source 1B 7B 13B 32B 255075100 Exposure # Paraphrased 3264128256 Batch Size 13 12 11 10 9 Final Log Prob Factual Paraphrased Source 1B 7B 13B 32B 3264128256 Batch Size Inference Figure 5: (Left) Inference-probe log probability while training OLMo-2-7B with a batch size of 64 on Source versus Para. 9. (Right) Final probe log probabilities for Source versus Para. 9 across model sizes and batch sizes. This experiment uses six documents to examine dynamics at smaller batch sizes. sures, after which Source saturates and then sharply degrades as the model overfits (Figure 5, left). Para. 9 prevents this collapse, sustaining improvement throughâź40 exposures. As with auxiliary views, this benefit emerges only at 7B and above; at 1B, paraphrasing is slightly harmful. The benefit depends on batch size. However, we see that this advantage depends on batch size, likely because larger batches mix in more general data per step and this similarly suppresses overfit- ting. As batch size grows, Source becomes more stable and nearly matches Para. 9 by batch size 256, while Para. 9 stays roughly flat (Figure 5, rightmost). Paraphrasingâs inference gains thus come from preventing a degeneration that large batches also prevent; together, the two interven- tions become redundant. Factual acquisition behaves differently. At small batch sizes, paraphrasing improves factual learning at 7B and above, whereas Source sees almost no gain from larger batches (aside from a small im- provement at batch size 64 for 7B). We attribute this advantage to how paraphrasing semantically varies the facts: although factual probes are drawn explicitly from source sentences, they are recast as self-contained atomic statements, so Sourceâs verbatim memorization transfers less well. The ad- vantage shrinks at larger batches and reverses at batch size 256 (7B and 13B), likely because the increased general-data mixing dilutes the gradient signal from the paraphrased text. Table 5 supports this general interpretation at a batch size of 1,024: paraphrasing provides no con- sistent improvement over Source, while auxiliary views retain a substantial advantage. Reconciling Prior Works. This batch-size de- pendence reconciles conflicting prior work: Chang et al. (2024), at batch size 2048 with 2048-token chunks, reports degraded factual learning from paraphrasing, whereas Allen-Zhu and Li (2024), at batch size 96 with 512-token chunks, reports gains. The two sit at opposite ends of the regime we characterize here. 7 Prior Knowledge Matters ModelBaseCPT OLMo-2-0425-1B0.43800.5454 OLMo-2-1124-7B0.68590.7272 Table 6: The prior-knowledge gap. MCQA accuracy on prerequisite topics for each document, before (Base) and after (CPT ) continued pre-training on synthetic textbooks covering that foundational knowledge. Prior-Knowledge Gap. We first establish that the model lacks some of the foundational knowl- edgeKpresupposes. We generate MCQA pairs on prerequisite topics for each document and measure the base modelâs accuracy. As shown in Table 6, accuracy on this benchmark improves after contin- ued pre-training on synthetic textbooks covering this material, confirming a gap that domain adapta- tion must contend with. Recent work has studied how such gaps shape learning (Wang et al., 2025b; Gekhman et al., 2024; Yang et al., 2024), but the question remains open. Complementary Benefits. Table 9 reports the peak improvement over each runâs pretrained base- line. Relative to standard Para. 9, providing either contextual or prerequisite knowledge substantially improves acquisition. Under the stricter token- matched comparison, adding surrounding knowl- edge does not consistently surpass Para. 9. This is unsurprising; because contextual knowledge is largely tangential to the target material, allocat- ing a fixed token budget to variations of the target knowledge should be more effective. Nevertheless, surrounding knowledge yields improvements com- parable to adding paraphrases, which is a meaning- ful benefit. Furthermore, the two knowledge types exhibit distinct strengths: contextual knowledge drives larger factual gains across both domains, whereas prerequisite knowledge yields greater im- provements in inference. To ask whether these differences reflect surface overlap, we measure how often each probeâs target span appears in the inserted texts (Table 12). Cited works include factual targets about twice as often as prerequisite textbooks, so contextual knowledgeâs relative factual advantage may partly reflect lexical presence. However, lexical overlap cannot explain the inference result: prerequisite knowledge con- tains the inference targets no more often than con- textual knowledge, with lower bigram frequency, yet yields the larger inference improvement. This is consistent with prerequisite knowledge supplying foundations that support integration and inference. 8 Ablations Learning Rate. Across our experiments, we use a fixed peak learning rate of 4e-5. Following Par- mar et al. (2024), however, continued-pre-training recipes should inherit the base modelâs pre-training learning rate, and the 13B and 32B models were pre-trained at higher rates (9e-5 and 6e-5) than the 7B model (3e-5) (OLMo et al., 2024). Because learning rate strongly governs how much is learned, holding it fixed at 4e-5 may have caused us to un- derestimate the model-size effect and the overall effects of auxiliary views and paraphrasing. Con- sistent with this interpretation, the analysis in Fig- ure 12 shows that the advantages of auxiliary views and paraphrasing over source-only training widen as the learning rate increases. Order of Prior Knowledge. We vary whether prerequisite data appears at the beginning, middle, or end of training. No placement is consistently best across metrics (Table 10), and the differences are small. We leave a fuller investigation of cur- riculum effects to future work. 9 Discussion & Conclusion Auxiliary Views. To our knowledge, we are the first to isolate the significance of auxiliary views. The premise is intuitive: data augmentation can help, and diversity is an established principle in pre-training. However, diversity remains an under- specified principle that is difficult to operational- ize when constructing data from scratch amid data scarcity. This motivates a clearer account of how variation improves learning and why. Our study uncovers a phenomenon in which con- ceptual reformulations of a document, whether as a textbook or a blog, have an effect starkly dis- tinct from mere paraphrasing: they substantially improve learning and induce a distinct layer-wise bias and compression in how knowledge is encoded. More strikingly, they improve factual recall even though the model sees the original document, from which our probes are constructed, less frequently. This points to an underlying effect: a modelâs broader conceptual understanding directly facil- itates its ability to memorize specific facts. Furthermore, the modelâs ability to encode aux- iliary views effectively emerges only in our larger models and grows with model size. Larger mod- els learn better by integrating diverse views more effectively, encoding them with greater parameter efficiency by moving fewer weights and redistribut- ing learning toward the middle and final layers. Together, these results help explain the effective- ness of pre-training corpora beyond simple scale and provide a clearer mechanism for the commonly invoked notion of âgoodâ and âdiverseâ data. Practical Takeaways. We offer three recom- mendations for practitioners engaged in domain adaptation: (1) continue pre-training on prerequi- site knowledge to close foundational gaps (2) apply paraphrasing when data is scarce, while recogniz- ing that its benefit diminishes as batch size grows (3) and consider synthetic augmentation with aux- iliary views. We find the last point especially relevant for scientific domains. Open scientific corpora are constantly evolving, producing research that lacks the auxiliary views which surrounds established knowledge. Our results show that synthesizing such views is helpful for acquiring knowledge ef- fectively. However, whether this remains effective for specialized, long-tailed knowledge for which LLMs may lack the expertise to generate high- quality auxiliary views remains an open question. While the scope of this study may limit its gen- eralizability, we hope these insights prove valuable to practitioners in domain adaptation, encourage greater consideration of how knowledge is repre- sented, and provoke deeper discussion of the mech- anisms of knowledge acquisition in LLMs. Acknowledgements This work was supported in part by seed funding from the PSOM AI2D Center at Penn. Limitations Our analysis is restricted to three domains, which may introduce corpus-level biases. While our main results regarding auxiliary views were consistent across each domain, this is not the case for our secondary results regarding contextual and prereq- uisite knowledge. We acknowledge that this limits the generalization of our findings. Furthermore, the contextual-knowledge experi- ment covers only arXiv papers and legal opinions, because medical case reports lack an analogous citation structure. Its results establish different fac- tual and inference biases for contextual and prereq- uisite knowledge, but not a consistent advantage over token-matched paraphrasing. Our findings may also have limited generalizabil- ity to pre-training proper. While our pre-training- faithful control uses the original optimizer state, learning-rate schedule, and data at a batch size of 1,024, it is a 100-step experiment at a later check- point rather than pre-training from scratch. Furthermore, our investigation of generator strength may not generalize to low-resource, highly specialized domains, where even comprehending the source material may challenge the generator. In such settings, it remains unclear whether teacher- model strength is irrelevant. Finally, our results are constrained by the scale of the models we study (up to 32B). Because model scale is a primary determinant of LLM capabilities, our findings may not extend to substantially larger models. References Zeyuan Allen-Zhu and Yuanzhi Li. 2024. Physics of language models: Part 3.1, knowledge storage and extraction. In International Conference on Machine Learning, pages 1067â1077. PMLR. Lei Bai, Zhongrui Cai, Maosong Cao, Weihan Cao, Chiyu Chen, Haojiong Chen, Kai Chen, Pengcheng Chen, Ying Chen, Yongkang Chen, and 1 others. 2025. Intern-s1: A scientific multimodal foundation model. arXiv preprint arXiv:2508.15763. Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, and 1 others. 2020. Language models are few-shot learners. Advances in neural information processing systems, 33:1877â1901. Nicholas Carlini, Daphne Ippolito, Matthew Jagielski, Katherine Lee, Florian Tramer, and Chiyuan Zhang. 2023. Quantifying memorization across neural lan- guage models. In The Eleventh International Confer- ence on Learning Representations. Hoyeon Chang, Jinho Park, Seonghyeon Ye, Sohee Yang, Youngkyung Seo, Du-Seong Chang, and Min- joon Seo. 2024. How do large language models ac- quire factual knowledge during pretraining?Ad- vances in neural information processing systems, 37:60626â60668. Zhengyu Chen, Siqi Wang, Teng Xiao, Yudong Wang, Shiqi Chen, Xunliang Cai, Junxian He, and Jingang Wang. 2025. Revisiting scaling laws for language models: The role of data quality and training strate- gies. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Vol- ume 1: Long Papers), pages 23881â23899. Pierre Colombo, Telmo Pessoa Pires, Malik Boudiaf, Dominic Culver, Rui Melo, Caio Corro, Andre FT Martins, Fabrizio Esposito, Vera LĂşcia Raposo, Sofia Morgado, and 1 others. 2024. Saullm-7b: A pioneer- ing large language model for law. arXiv preprint arXiv:2403.03883. Zorik Gekhman, Gal Yona, Roee Aharoni, Matan Eyal, Amir Feder, Roi Reichart, and Jonathan Herzig. 2024. Does fine-tuning llms on new knowledge encourage hallucinations? In Proceedings of the 2024 Con- ference on Empirical Methods in Natural Language Processing, pages 7765â7784. Mor Geva, Roei Schuster, Jonathan Berant, and Omer Levy. 2021. Transformer feed-forward layers are key-value memories. In Proceedings of the 2021 Conference on Empirical Methods in Natural Lan- guage Processing, pages 5484â5495. Suriya Gunasekar, Yi Zhang, Jyoti Aneja, Caio CĂŠsar Teodoro Mendes, Allie Del Giorno, Sivakanth Gopi, Mojan Javaheripi, Piero Kauffmann, Gus- tavo de Rosa, Olli Saarikivi, and 1 others. 2023. Textbooks are all you need.arXiv preprint arXiv:2306.11644. Danny Hernandez, Tom Brown, Tom Conerly, Nova DasSarma, Dawn Drain, Sheer El-Showk, Nelson Elhage, Zac Hatfield-Dodds, Tom Henighan, Tris- tan Hume, and 1 others. 2022. Scaling laws and interpretability of learning from repeated data. arXiv preprint arXiv:2205.10487. Jan Hoffbauer, Sylwester Sawicki, Marc Ulrich, Tolga Buz, Konstantin Dobler, Moritz Schneider, and Ger- ard De Melo. 2024. Knowledge acquisition through continued pretraining is difficult: A case study on r/AskHistorians. In Proceedings of the 1st Work- shop on Towards Knowledgeable Language Models (KnowLLM 2024), pages 96â108, Bangkok, Thailand. Association for Computational Linguistics. Jordan Hoffmann, Sebastian Borgeaud, Arthur Mensch, Elena Buchatskaya, Trevor Cai, Eliza Rutherford, Diego de Las Casas, Lisa Anne Hendricks, Johannes Welbl, Aidan Clark, and 1 others. 2022. Training compute-optimal large language models. In Proceed- ings of the 36th International Conference on Neu- ral Information Processing Systems, pages 30016â 30030. Nathan Hu, Eric Mitchell, Christopher D Manning, and Chelsea Finn. 2023.Meta-learning online adaptation of language models.arXiv preprint arXiv:2305.15076. Joel Jang, Seonghyeon Ye, Sohee Yang, Joongbo Shin, Janghoon Han, Gyeonghun Kim, Stanley Jungkyu Choi, and Minjoon Seo. 2021. Towards contin- ual knowledge learning of language models. arXiv preprint arXiv:2110.03215. Zhengbao Jiang, Zhiqing Sun, Weijia Shi, Pedro Ro- driguez, Chunting Zhou, Graham Neubig, Xi Lin, Wen-tau Yih, and Srini Iyer. 2024. Instruction-tuned language models are better knowledge learners. In Proceedings of the 62nd Annual Meeting of the As- sociation for Computational Linguistics (Volume 1: Long Papers). Zhengbao Jiang, Frank F. Xu, Jun Araki, and Graham Neubig. 2020. How can we know what language models know? Transactions of the Association for Computational Linguistics, 8. Nikhil Kandpal, Haikang Deng, Adam Roberts, Eric Wallace, and Colin Raffel. 2023. Large language models struggle to learn long-tail knowledge. In International conference on machine learning, pages 15696â15707. PMLR. Jared Kaplan, Sam McCandlish, Tom Henighan, Tom B Brown, Benjamin Chess, Rewon Child, Scott Gray, Alec Radford, Jeffrey Wu, and Dario Amodei. 2020. Scaling laws for neural language models. arXiv preprint arXiv:2001.08361. Katherine Lee, Daphne Ippolito, Andrew Nystrom, Chiyuan Zhang, Douglas Eck, Chris Callison-Burch, and Nicholas Carlini. 2021. Deduplicating training data makes language models better. arXiv preprint arXiv:2107.06499. Jeffrey Li, Alex Fang, Georgios Smyrnis, Maor Ivgi, Matt Jordan, Samir Yitzhak Gadre, Hritik Bansal, Etash Guha, Sedrick Scott Keh, Kushal Arora, and 1 others. 2024. Datacomp-lm: In search of the next generation of training sets for language models. Ad- vances in Neural Information Processing Systems, 37:14200â14282. Jiacheng Liu, Sewon Min, Luke Zettlemoyer, Yejin Choi, and Hannaneh Hajishirzi. 2024. Infini-gram: Scaling unbounded n-gram language models to a tril- lion tokens. arXiv preprint arXiv:2401.17377. Shayne Longpre, Gregory Yauney, Emily Reif, Kather- ine Lee, Adam Roberts, Barret Zoph, Denny Zhou, Jason Wei, Kevin Robinson, David Mimno, and 1 others. 2024. A pretrainerâs guide to training data: Measuring the effects of data age, domain coverage, quality, & toxicity. In Proceedings of the 2024 Con- ference of the North American Chapter of the Asso- ciation for Computational Linguistics: Human Lan- guage Technologies (Volume 1: Long Papers), pages 3245â3276. Xiaoliang Luo, Akilles Rechardt, Guangzhi Sun, Kevin K Nejad, Felipe YĂĄĂąez, Bati Yilmaz, Kangjoo Lee, Alexandra O Cohen, Valentina Borghesani, An- ton Pashkov, and 1 others. 2025. Large language models surpass human experts in predicting neuro- science results. Nature human behaviour, 9(2):305â 315. Niklas Muennighoff, Alexander Rush, Boaz Barak, Teven Le Scao, Nouamane Tazi, Aleksandra Piktus, Sampo Pyysalo, Thomas Wolf, and Colin A Raffel. 2023. Scaling data-constrained language models. Advances in Neural Information Processing Systems, 36:50358â50376. Team OLMo, Pete Walsh, Luca Soldaini, Dirk Groen- eveld, Kyle Lo, Shane Arora, Akshita Bhagia, Yuling Gu, Shengyi Huang, Matt Jordan, and 1 others. 2024. 2 olmo 2 furious. arXiv preprint arXiv:2501.00656. Oded Ovadia, Menachem Brief, Moshik Mishaeli, and Oren Elisha. 2024. Fine-tuning or retrieval? com- paring knowledge injection in llms. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, pages 237â250. Jupinder Parmar, Sanjev Satheesh, Mostofa Patwary, Mohammad Shoeybi, and Bryan Catanzaro. 2024. Reuse, donât retrain: A recipe for continued pre- training of language models.arXiv preprint arXiv:2407.07263. Fabio Petroni, Tim Rocktäschel, Sebastian Riedel, Patrick Lewis, Anton Bakhtin, Yuxiang Wu, and Alexander Miller. 2019. Language models as knowl- edge bases?In Proceedings of the 2019 Confer- ence on Empirical Methods in Natural Language Pro- cessing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), Hong Kong, China. Association for Computational Linguistics. Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter J Liu. 2020. Exploring the lim- its of transfer learning with a unified text-to-text transformer. Journal of machine learning research, 21(140):1â67. Andrew Sellergren, Sahar Kazemzadeh, Tiam Jaroensri, Atilla Kiraly, Madeleine Traverse, Timo Kohlberger, Shawn Xu, Fayaz Jamil, CĂan Hughes, Charles Lau, and 1 others. 2025. Medgemma technical report. arXiv preprint arXiv:2507.05201. Karan Singhal, Tao Tu, Juraj Gottweis, Rory Sayres, Ellery Wulczyn, Mohamed Amin, Le Hou, Kevin Clark, Stephen R Pfohl, Heather Cole-Lewis, and 1 others. 2025. Toward expert-level medical ques- tion answering with large language models. Nature Medicine, 31(3):943â950. Rand J Spiro. 2017. Remembering information from text: The "state of schema" approach. In Schooling and the acquisition of knowledge, pages 137â165. Routledge. Ross Taylor, Marcin Kardas, Guillem Cucurull, Thomas Scialom, Anthony Hartshorn, Elvis Saravia, Andrew Poulton, Viktor Kerkez, and Robert Stojnic. 2022. Galactica: A large language model for science. arXiv preprint arXiv:2211.09085. Kushal Tirumala, Aram Markosyan, Luke Zettlemoyer, and Armen Aghajanyan. 2022. Memorization with- out overfitting: Analyzing the training dynamics of large language models. Advances in Neural Informa- tion Processing Systems, 35:38274â38290. 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. Cunxiang Wang, Pai Liu, and Yue Zhang. 2021. Can generative pre-trained language models serve as knowledge bases for closed-book qa? In Proceed- ings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pages 3241â3251. Eric Wang, Samuel Schmidgall, Paul F Jaeger, Fan Zhang, Rory Pilgrim, Yossi Matias, Joelle Barral, David Fleet, and Shekoofeh Azizi. 2025a. Txgemma: Efficient and agentic llms for therapeutics. arXiv preprint arXiv:2504.06196. Ziming Wang, Zeyu Shi, Haoyi Zhou, Shiqi Gao, Qingyun Sun, and Jianxin Li. 2025b.Towards objective fine-tuning:How llmsâ prior knowl- edge causes potential poor calibration? Preprint, arXiv:2505.20903. Maurice Weber, Dan Fu, Quentin Anthony, Yonatan Oren, Shane Adams, Anton Alexandrov, Xiaozhong Lyu, Huu Nguyen, Xiaozhe Yao, Virginia Adams, and 1 others. 2024. Redpajama: an open dataset for training large language models. Advances in neural information processing systems, 37:116462â116492. Fuzhao Xue, Yao Fu, Wangchunshu Zhou, Zangwei Zheng, and Yang You. 2023. To repeat or not to repeat: Insights from scaling llm under token-crisis. Advances in Neural Information Processing Systems, 36:59304â59322. Yushi Yang, Andrew M Bean, Robert McCraith, and Adam Mahdi. 2024. Fine-tuning large language mod- els with human-inspired learning strategies in medi- cal question answering. arXiv e-prints, pages arXivâ 2408. Chi Zhang, Huaping Zhong, Kuan Zhang, Chengliang Chai, Rui Wang, Xinlin Zhuang, Tianyi Bai, Qiu Jiantao, Lei Cao, Ju Fan, and 1 others. 2025. Har- nessing diversity for important data selection in pre- training large language models. In International Con- ference on Learning Representations, volume 2025, pages 72980â73003. Susan Zhang, Stephen Roller, Naman Goyal, Mikel Artetxe, Moya Chen, Shuohui Chen, Christopher De- wan, Mona Diab, Xian Li, Xi Victoria Lin, and 1 others. 2022. Opt: Open pre-trained transformer language models. arXiv preprint arXiv:2205.01068. Zexuan Zhong, Dan Friedman, and Danqi Chen. 2021. Factual probing is [mask]: Learning vs. learning to recall. In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Tech- nologies, pages 5017â5033. A Data A.1 Dataset Construction Document collection. The arXiv set was manu- ally collected. For medical documents, we use the NCBI E-utilities API to search PubMed Central for open-access case reports and download JATS XML. For legal documents, we use the CourtLis- tener REST API to search U.S. federal appellate opinions. Across domains, we filter candidate docu- ments to obtain twelve target documents of suitable length, e.g., court opinions longer than 4000 tokens were rejected to avoid awkward chunking. Pre-training corpus check. We check all 36 source documents against the Infini-gram API. For each document, we query the ti- tle and ten randomly sampled body sentences against the OLMo-2 pre-training mixture in- dex,v4_olmo-mix-1124_llama, and find zero matches. Cleaning. For arXiv papers, we clean the raw LaTeX by removing comments, figures, tables, presentation-only commands, unresolved includes, page breaks, and bibliography/appendix material; expanding simple macros; extracting title, abstract, and main body; resolving revision commands; and repairing erroneous line breaks while preserving LaTeX environments. Medical case reports are converted from JATS XML into sectioned plain text. Legal opinions require additional PDF/OCR cleanup: we remove page headers, docket/page ar- tifacts, decorative separators, extracted footnotes, and merge dangling sentences into paragraphs. Contextual Knowledge.In our study, contextual views are cited works associated with the source document. For arXiv documents, we resolve each paper to an arXiv identifier, retrieve reference meta- data using Semantic Scholar and OpenAlex, iden- tify references with arXiv identifiers, download their source packages, and clean them with the same arXiv cleaning procedure. For legal docu- ments, we use CourtListener citation links to col- lect cited judicial opinions and apply the same legal- opinion cleaning procedure. We do not construct contextual views for medical documents because case reports lack an analogous citation structure in our setup. A.2 Synthetic Data Generation Data statistics.Table 7 summarizes the artifacts used in our experiments. We generate 49 para- phrases per source document, yielding 1764 para- phrases in total. For auxiliary views,Ncounts the generated units obtained by splitting each view family into per-post blogs, per-question Stack Ex- change Q&A, and per-chapter textbooks. MaterialN Avg. Len. (tokens) Total Tokens Overall Source Documents365858210,888 Paraphrases1764618010,904,160 Blogs2251901427,632 Stack Exchange Q&A4531290584,392 Textbook Chapters2822239631,403 Prerequisite Chapters58242822,492,392 Contextual Documents639104166,655,888 Computer Science Source Documents1210550126,598 Paraphrases638110027,019,384 Blogs1051920201,648 Stack Exchange Q&A2421460353,321 Textbook Chapters1582872453,833 Prerequisite Chapters1874555851,724 Contextual Documents506107915,460,148 Medical Source Documents12376545,181 Paraphrases58838582,268,311 Blogs721979142,500 Stack Exchange Q&A1171068124,973 Textbook Chapters61140485,666 Prerequisite Chapters22045891,009,582 Contextual Documents0â Legal Source Documents12325939,109 Paraphrases58932741,928,141 Blogs48173983,484 Stack Exchange Q&A941129106,098 Textbook Chapters63145991,904 Prerequisite Chapters1753606631,086 Contextual Documents13389911,195,740 Table 7: Dataset statistics by text type and domain. Paraphrases. Paraphrases are generated from cleaned source documents on a paragraph-level basis.We preserve section headers verbatim and avoid paraphrasing LaTeX-only paragraphs. Domain-specific prompts are used for academic, legal, and medical text. The academic prompt pre- serves LaTeX formatting, equations, proper nouns, titles, section headers, and technical terminology; the legal prompt preserves legal meaning, party names, citations, quoted language, dates, docket numbers, and legal terms of art; and the medical prompt preserves diagnoses, medications, doses, routes, timelines, lab values, imaging findings, pro- cedures, outcomes, and clinical terminology. We use GPT-4.1 to generate paraphrases with a temper- ature of 1 and a top-p of 0.975. Auxiliary views. For each document, we gener- ate synthetic auxiliary views conditioned on the target document and intended to restate, explain, or pedagogically reorganize the same document-level content. The computer science setting generates textbook chapters for college students with a ba- sic machine-learning background, Stack Exchangeâ style questions from a confused student followed by grounded answers, and technical blog posts for a broader technical audience. The medical setting adapts these formats to clinical education: case- based textbook sections for medical students or residents, clinical teaching Q&A, and clinical blog posts. The legal setting uses casebook/treatise-style chapters for law students, Law Stack Exchangeâ style Q&A, and analytic legal commentary. For each view family, we first generate an outline, list of questions, or list of blog ideas and then generate the individual chapters, answers, or posts from that plan. We use GPT-5 to generate the outlines and GPT-5-mini to generate the contents of the chap- ters, questions, or posts. Prerequisite views. Prerequisite views are gen- erated separately from auxiliary views. For arXiv papers, we use a curriculum-design prompt to cre- ate prerequisite textbook chapters that teach the foundations needed to understand the paper while excluding the paperâs own novel ideas. For medi- cal case reports, the prompt asks for general med- ical backgroundâfor example relevant anatomy, pathophysiology, pharmacology, diagnostic in- terpretation, differential diagnosis, and standard managementâwhile explicitly forbidding patient- specific chronology, workup, treatment course, out- come, or novel observations from the source case. For legal opinions, the prompt similarly asks for doctrinal and procedural background while exclud- ing the source caseâs parties, facts, outcome, hold- ing, and novel reasoning. When useful for legal background, we additionally include landmark or doctrinally foundational cited opinions as context for the generated prerequisite chapters. We use GPT-5 to generate the outlines and GPT-5-mini to generate the contents of the chapters. B Probe Generation Our probe construction pipeline is adapted and re- fined for each domain (arXiv, legal, and medical). We present the pipeline for arXiv documents in Fig- ure 6; the full pipeline for all domains is available in our released code. A. Fact Probes B. Comprehension & Inference Probes Sentence 1 Sentence 2 . . . Sentence N 1 Sentence 1 Sentence 2 . . . Sentence N 2 Segment Multiple Filters Q 1 Q 2 . . . Q M 1 Generate Document Document Convert The added constraint is important, as it prevents the model from deviating too far from the distribution on which the reward model is accurate, as well as maintaining the generation diversity and preventing mode-collapse to single high-reward answers. In the paper 'Direct Preference Optimization: Your Language Model is Secretly a Reward Model', the authors state that the added constraint in the RL fine-tuning objective, the KL divergence term associated with the base reference policy (the SFT model), is important because it prevents the language model policy from deviating too far. Extract In the paper 'Direct Preference Optimization: Your Language Model is Secretly a Reward Model', the authors state that the added constraint in the RL fine-tuning objective, the KL divergence term $D_KL (Ď\| _ref)$ associated with the base reference policy $ _ref$ (the SFT model), is important because it prevents the language model policy from deviating too far. Refine Filter Question 1 Question 2 Question 3 Q: What does the added constraint prevent the model from doing? A: deviating too far Q: In the paper 'Direct Preference Optimization: Your Language Model is Secretly a Reward Model', the authors state that the added constraint in the RL fine-tuning objective (the KL divergence term that limits deviation from the base reference policy , i.e., the SFT model) is important. According to the authors, what does this added constraint prevent the language model policy from doing? A: deviating too far Contextualize Q: If the learned reward model were perfectly accurate but the KL penalty beta became extremely large, toward which distribution would the optimized policy converge? A: reference policy text_sentences: ['where β is a parameter controlling the deviation from the base reference policy _ref, namely the initial SFT model Ď^SFT.', 'The added constraint is important, as it prevents the model from deviating too far from the distribution on which the reward model is accurate, as well as maintaining the generation diversity and preventing mode-collapse to single high-reward answers.'] If the learned reward model were perfectly accurate but the KL penalty beta became extremely large, the optimized policy would converge toward the reference policy According to the paper 'Direct Preference Optimization: Your Language Model is Secretly a Reward Model', if the learned reward model were perfectly accurate but the KL penalty $β$ became extremely large, the optimized policy $ _θ$ would converge toward the reference policy ConvertRefine Q 1 Q 2 . . . Q M 1 Q 1 Q 2 . . . Q M 1 Probes set with trivial dropped Figure 6: Overview of the probe-generation pipeline for arXiv documents. (A) Factual probe generation: We generate probes sentence by sentence to keep their ground truth close to the source document.Preprocessing: We first remove sentences containing minimal knowledge (to prevent noise from structural comments, e.g., âLet us first discuss the following resultsâ). We then use heuristics to remove sentences likely to yield low-quality probes, such as those that are too short (e.g., âthe sweep has 22 runsâ) or contain excessive L A T E X code with no valid English extraction targets.Question extraction: From each remaining sentence, we extract 1â3 questions that capture its knowledge.Contextualization: Questions are made clear and self-contained while preserving the knowledge being tested.Cloze conversion: Questions are converted into cloze statements with answers at the end.Refinement: We ensure that all mathematical content is written in L A T E X and verify the preceding steps. (B) Compositional probe generation: Because not all atomic facts warrant a compositional probe, we employ a two-level approach. First, we divide the paper into sections and prompt an LLM to extract compositional questions. We define compositionality as either (1) inference, which reasons over supporting text to reach a new insight, or (2) synthesis, which combines several facts into a synthesized statement. We perform this process section by section for granularity, then repeat it with the entire paper to obtain more holistic questions.Cloze conversion: As in the factual pipeline, questions are converted into cloze statements with answers at the end.Refinement: Statements are formatted in L A T E X where needed and made self-contained by referencing the paper (e.g., âaccording to the paperâ).Filtering: Finally, we ask the LLM to identify questions that are too simple, imprecise, or confusing; this step removes 15% of probes on average. C Additional Plots 1B7B13B32B 16 15 14 13 12 11 Arxiv Final Log Prob Factual Probes 1B7B13B32B Inference Probes 1B7B13B32B 0.1 0.2 0.3 0.4 0.5 Final Accuracy Factual MCQA 1B7B13B32B Inference MCQA 1B7B13B32B 16 14 12 10 Legal 1B7B13B32B1B7B13B32B 0.3 0.4 0.5 0.6 0.7 1B7B13B32B 1B7B13B32B Model Size 14 13 12 11 10 9 Medical 1B7B13B32B Model Size 1B7B13B32B Model Size 0.3 0.4 0.5 0.6 0.7 1B7B13B32B Model Size Source Para. 9 Para. 9 + Aux. Figure 7: Under a fixed token budget, auxiliary views improve both factual recall and inference, and their effect size increases with model size. This pattern also holds when averaging by domain, with factual probes for medical documents as the sole exception. 1B7B13B32B Model Size 200 300 400 500 600 700 Final Target Rank Factual Probes Source Para. 9 Para. 9 + Aux. 1B7B13B32B Model Size Final Target Rank Inference Probes Figure 8: Under a fixed token budget, auxiliary views improve both factual recall and inference, and their effect size increases with model size. Lower ranks are better. 020406080100 0.000 0.001 0.002 0.003 0.004 0.005 gate_proj Relative delta norm Source. Para. 9 Para. 9 + Aux. 020406080100 0 2 4 6 8 1e5 Cosine distance 020406080100 0.000 0.025 0.050 0.075 0.100 0.125 0.150 Relative delta Gini 020406080100 0.00 0.05 0.10 0.15 0.20 0.25 0.30 Cosine distance Gini 020406080100 0.000 0.001 0.002 0.003 0.004 0.005 up_proj 020406080100 0 2 4 6 8 1e5 020406080100 0.00 0.02 0.04 0.06 0.08 0.10 0.12 020406080100 0.00 0.05 0.10 0.15 0.20 020406080100 Training step 0.000 0.001 0.002 0.003 0.004 0.005 down_proj 020406080100 Training step 0 2 4 6 8 1e5 020406080100 Training step 0.00 0.02 0.04 0.06 0.08 0.10 0.12 020406080100 Training step 0.0 0.2 0.4 0.6 0.8 1.0 Figure 9: FFN parameter change over training (OLMo-2-7B). Paraphrasing induces the largest parameter movement, while auxiliary views reduce this magnitude toward source-only training. Both the concentration of change (Gini) and downstream performance converge by stepâź50 (performance not shown), whereas magnitude (relative delta norm and cosine distance) continues to grow afterward; parameters keep drifting after learning has effectively converged. 0102030 0.004 0.005 0.006 0.007 gate_proj Relative delta norm Source. Para. 9 Para. 9 + Aux. 0102030 0.00004 0.00006 0.00008 0.00010 0.00012 0.00014 Cosine distance 0102030 0.06 0.08 0.10 0.12 0.14 Relative delta Gini 0102030 0.125 0.150 0.175 0.200 0.225 0.250 0.275 Cosine distance Gini 0102030 0.0035 0.0040 0.0045 0.0050 0.0055 0.0060 0.0065 up_proj 0102030 0.00004 0.00006 0.00008 0.00010 0102030 0.05 0.06 0.07 0.08 0.09 0.10 0.11 0102030 0.12 0.14 0.16 0.18 0.20 0102030 Layer 0.0035 0.0040 0.0045 0.0050 0.0055 0.0060 0.0065 down_proj 0102030 Layer 0.00004 0.00006 0.00008 0.00010 0.00012 0.00014 0102030 Layer 0.06 0.08 0.10 0.12 0.14 0.16 0102030 Layer 0.1 0.2 0.3 0.4 Figure 10: Per-layer FFN parameter change from the base model over training (OLMo-2-7B). Magnitude (relative delta norm and cosine distance) and concentration (Gini) are shown for the gate, up, and down projections. All conditions concentrate change in the middle and final layers with a dip in the upper-middle layers; auxiliary views increase change in the middle and final layers but reduce it relative to source in theâź16â24 band. 0 2 4 6 8 10 12 14 gate_proj Layer 0 2 4 6 8 10 12 14 up_proj Layer FFN channel 0 2 4 6 8 10 12 14 down_proj Layer 0.00006 0.00004 0.00002 0.00000 0.00002 0.00004 0.00006 â (Aux. Views - Source) Cosine Distance from Base Model Figure 11: The same per-channel difference in cosine distance from the base model (Para. 9 + Aux. minus Source) as Figure 4, but for the 1B model. Unlike the structured pattern at 7B, the difference is either blue (negative) or white, indicating that auxiliary views change parameters slightly less than source nearly everywhere, with no organized layer-wise band. The only exceptions are a few isolated channels in down_proj at the deepest layers. 2e-54e-58e-5 Learning Rate 15 14 13 12 11 10 Final Log Prob Factual Probes Source Para. 49 Para. 49 + Aux. 2e-54e-58e-5 Learning Rate 15 14 13 12 11 10 Inference Probes 2e-54e-58e-5 Learning Rate 0.36 0.38 0.40 0.42 0.44 0.46 0.48 0.50 Final Accuracy Factual MCQA 2e-54e-58e-5 Learning Rate 0.36 0.38 0.40 0.42 0.44 0.46 0.48 0.50 Inference MCQA Figure 12: Effect of peak learning rate (2e-5, 4e-5, and 8e-5) on knowledge acquisition for the 7B model. We report final log probability on factual and inference probes (left two panels) and final accuracy on factual and inference MCQA (right two panels), comparing source documents alone (Source), 49 paraphrases (Para. 49), and 49 paraphrases plus auxiliary views (Para. 49 + Aux.). Across all metrics, the advantages of auxiliary views and paraphrases grow with learning rate. D Additional Tables Auxiliary viewsFactualFactual Inference Inference log prob. MCQAlog prob.MCQA Textbooks-11.3580.394-12.2180.457 Stack Exchange-11.6420.398-12.2160.450 Blogs-11.5700.388-12.1890.447 Mixed-11.0870.398-11.6650.450 Table 8: Auxiliary-view families. Metrics for OLMo-2 7B after training on token-matched textbooks, Stack Exchangeâstyle Q&A, blogs, or their mixture. The fam- ilies perform similarly; mixing them performs best on both log-probability metrics and factual MCQA, while textbooks perform best on inference MCQA. Higher is better for every metric. Domain ConditionPeak factual â LP Peak inference â LP arXiv Para. 9 (standard)4.3442.575 Para. 9 (token-matched)7.1174.723 + Prerequisite6.6904.629 + Contextual6.8934.574 Legal Para. 9 (standard)3.8170.719 Para. 9 (token-matched)8.2222.049 + Prerequisite6.6632.331 + Contextual6.7682.184 All Para. 9 (standard)4.2312.028 Para. 9 (token-matched)7.3493.950 + Prerequisite6.6843.967 + Contextual6.8663.881 Table 9: Contextual and prerequisite knowledge. Peak improvement in log probability from each runâs pretrained baseline. The added-knowledge conditions and token-matched Para. 9 use the same inserted-token budget; standard Para. 9 is included as a non-token- matched reference. Adding surrounding knowledge yields improvements comparable to adding paraphrases. HigherâLP is better. Medical is omitted because case reports lack an analogous citation structure. Placement FactualFactualInferenceInference â LP â MCQAâ LPâ MCQA Front6.3200.0223.6390.068 Middle6.5910.0263.8470.053 End6.6800.0253.7060.053 Table 10: Prerequisite-knowledge ordering. Peak improvement from the pretrained baseline when pre- requisite data appears at the front, middle, or end of training. Higher is better for every metric, includingâ log probability. No placement is consistently best. ConditionFact.Fact.Inf.Inf. log prob. MCQA log prob. MCQA Pretrained model-15.310.440-15.020.478 Source-15.480.489-18.820.512 Para. 9-13.280.516-16.240.559 Auxiliary views-10.980.548-12.740.562 Table 11: Qwen-2.5-7B. Final metrics under the same injection setup as the main experiment. The advantage of auxiliary views generalizes to Qwen-2.5-7B. Table 12: Frequency and coverage of our probe targets across contextual and prerequisite knowledge. Freq. = occurrences per 1k (words for the full target, OLMo to- kens for bigrams); Cover. = fraction of targets present at least once (full target) or the mean fraction of a targetâs bigrams present (bigram). Prerequisites = generated textbook chapters; Cited Works = cited papers or legal opinions. ProbesCorpusFull targetBigram Freq. Cover.Freq. Cover. Factual Prerequisites 0.0310.12 0.1290.54 Cited Works0.0390.24 0.1410.72 Inference Prerequisites 0.8270.21 0.1540.47 Cited Works0.8380.25 0.0950.54 GeneratorGenerator factualParamsWordsDownstream factual MCQA acc.(B)(M)MCQA acc. None (pretrained OLMo-2 7B)â0.361 Para. 9 (token-matched baseline)â0.396 gpt-5-mini (original; mixed)â1.080.415 gpt-5-mini (low reasoning)0.657â1.040.419 gpt-5-mini (high reasoning)0.673â1.100.420 gpt-5.4-mini (low reasoning)0.718â0.840.416 gpt-5.4-mini (high reasoning)0.749â0.720.414 gpt-oss-20B (low reasoning)0.53920.90.720.422 gpt-oss-120B (low reasoning)0.599116.80.790.413 Gemma-4 12B IT0.565120.360.414 Gemma-4 31B IT0.662310.350.405 GLM-5 (high reasoning)0.7287440.660.406 GLM-5.2 (high reasoning)0.7587440.900.418 Table 13: Auxiliary-view generation. Peak factual MCQA accuracy after training OLMo-2 7B on views from different generators under the same schedule and token budget. Generator accuracy measures five-shot prior domain knowledge; Words (M) counts generated blogs, Stack Exchange posts, and textbooks. Downstream accuracy is uncorrelated with generator size among open-weight generators (Pearsonr =â0.14,n = 6) or generator accuracy (r =â0.24, n = 10), but correlates moderately with view-text volume (r = +0.62, n = 11, p = 0.042). E Hyperparameters for Replication and Details for Reproduction For training, we use the TRL library. Unless oth- erwise noted, our experiments use the following defaults: learning rate4Ă 10 â5 , context size 4096, batch size 256, weight decay 0.1, cosine decay scheduler with 0.1 warm-up ratio and minimum learning rate ratio of 0.1, seed 42, max gradient norm of 1, and the AdamW optimizer (β 1 = 0.9, β 2 = 0.999, Îľ = 10 â8 ) with BF16 training. Pre-training-faithful continuation. For the ex- periment in Table 5, we resume OLMo-2 7B from checkpoint step 925,000 using the OLMo frame- work. We restore the checkpointâs optimizer state and continue with the original pre-training data stream and learning-rate schedule, a global batch size of 1,024, and a sequence length of 4,096. We inject domain data for 100 optimizer steps using the same conditions as in the main experiments. F Prompts for Probe Construction (arXiv) We provide some of the prompts used in our pipeline to construct factual and inference probes for the arXiv documents. The complete set of prompts, adapted for each domain (legal and medi- cal), is available in our code. 1. Prompt to extract atomic facts from a para- graph: You will be given two inputs, a section of an academic paper for context and a single sentence drawn from that section. Papers often interweave various pieces of knowledge together in academic writing. While each sentence is interwoven with others, there is atomic knowledge that can be extracted from a particular sentence. Write questions that tests for this atomic knowledge. Specifically, your task is to extract questions from the provided sentence with clear answers, each 1 to 4 words long. Extract 1-3 questions from the sentence. ### Detailed Instructions Consider these instructions as you extract each question: - The question should be natural and meaningful, in which the answer is considered a main fact presented by the sentence. - The answer should be non-trivial and non-obvious. It should not be deducible from the sentence itself. - The answer to the question should be a meaningful, coherent phrase, 1-4 words long, taken from the sentence. Simplify the answer by stripping determiners such as "some" or "a" or "an" or "the" from the answer. Feel free to adjust the answer to fit the question, but the meaning should be the same. - The answer must *NOT* involve any *special characters* or * mathematical notation*. Again, any question with an answer that contains mathematical notation should not be used. - The question should have a a clear, single answer and *NOT* multiple valid answers. - Each question should be written separately and independently of the other questions, so don't reference other questions in the same question. ### Demonstration 1 Context: "\ Direct Preference Optimization: Your Language Model is Secretly a Reward Model \ Can DPO scale to real preference datasets? , we evaluate fine-tuning performance of DPO on summarization and single- turn dialogue. For summarization, automatic evaluation metrics such as ROUGE can be poorly correlated with human preferences ~ stiennon2022learning, and prior work has found that fine-tuning LMs using PPO on human preferences to provide more effective summaries. We evaluate different methods by sampling completions on the test split of TL;DR summarization dataset, and computing the average win rate against reference completions in the test set." Sentence: "We evaluate different methods by sampling completions on the test split of TL;DR summarization dataset, and computing the average win rate against reference completions in the test set." Questions: - "The authors evaluate DPO's fine-tuning performance against other methods on summarization by sampling completions on the test split of what dataset?", Answer: "TL;DR summarization" - "The fine-tuning performance of DPO and other methods on summarization are evaluated by sampling completions on the test split of the TL;DR summarization dataset and computing the average win rate against what?", Answer: "reference completions" ### Demonstration 2 Context: " Direct Preference Optimization: Your Language Model is Secretly a Reward Model large-scale unsupervised language models (LMs) learn broad world knowledge and some reasoning skills, achieving precise control of their behavior is difficult due to the completely unsupervised nature of their training. Existing methods for gaining such steerability collect human labels of the relative quality of model generations and fine-tune the unsupervised LM to align with these preferences, often with reinforcement learning from human feedback (RLHF)." Sentence: "Existing methods for gaining such steerability collect human labels of the relative quality of model generations and fine-tune the unsupervised LM to align with these preferences, often with reinforcement learning from human feedback (RLHF)." Questions: - "What do existing methods collect to steer unsupervised language models, ?", Answer: "human labels" - "Existing methods for steering unsupervised language models collect human labels of the quality of what?", Answer: " relative quality of model generations" - "Existing methods align unsupervised language models by fine- tuning on what?", Answer: "human preferences" - "Existing methods for steering unsupervised language models via fine-tuning on human preferences often use what?", Answer: "RLHF" 2. Prompt to extract atomic facts from a para- graph with context: You will be given two inputs, a section of an academic paper for context, a single sentence drawn from that section, and a question extracted from the sentence as well as its corresponding answer. Your task is to then turn the question into a self-contained, precise question. Approach this task step-by-step as outlined below. While you should use your expertise on this domain to handle and understand these texts, all information written into the questions and answers *MUST* originate from the provided context or sentence. Do not add, infer, or correct information using your internal knowledge. Every detail should be traceable back to the source text. As you write and rewrite the questions, also make sure to accurately represent the knowledge in the original sentence without distortion. Strive to use phrasing as close as possible to the original text, but prioritize clarity and self-containment. Lastly, the questions should be written well and clearly so that they are easy to read. ### Instructions The overall goal of this task is to make the questions clear by incorporating the relevant context. This ensures the question is unambiguous and doesn't require looking back to the source material. For each question: 1. Rewrite the question so that it starts with one of the following templates. - "In the paper'title', ..." - "According to the paper'title',..." - "In the paper'title', the authors remark that..." - "In the paper'title', the authors state that..." - "According to the paper'title', prior work has..." - "In the theoretical analysis of the paper "title"..." - "In the paper'title', the results suggest that..." This is a non-exhaustive list of templates, and you should use your own judgement to choose the most appropriate template or modify the template to fit the sentence. 2. Add sufficient context. Specifically, use the *provided context* to supply whatever information is needed to make the question self-contained and unambiguous. For instance, "Do humans and GPT4 agree often with each other?" should be clarified into "In the paper'...', did humans and GPT4 often agree or disagree with each other during the evaluation of DPO ?" if this notion was in the context of evaluating DPO in an academic paper. The goal is to ensure someone reading just the question would understand exactly what is being asked without needing additional context. 3. Clarify pronouns and referential terms. Check the sentence for pronouns (it, this, that, these, those) or demonstrative phrases (this equation, that method, these results) that refer to entities not explicitly defined within the sentence itself. Search the surrounding context to identify what these terms reference, then incorporate that clarifying information into the question to make it self-contained. 4. Clarify Context-Dependent Terms. Named entities (e.g., theorems, equations, proper nouns) do not need clarification. However, if there are unnamed or context-specific terms (e.g., $f$, "the model", "the loss"), clarify their full context. For instance, "the gradient" might refer to the general concept of a gradient or to the gradient of a specific function mentioned earlier in the context. 5. Disambiguate experiments. There are often numerous experiments in a paper, and so supply enough experimental context so that the question is about which experiment the question is asking about. 6. Handle acronyms. If the answer is an acronym and the acronym appears frequently in the context, feel free to leave it as an acronym without defining it. 7. Do not leak the answer. Please make sure that *the answer is not revealed* in the question. The answer should never appear in the question. 8. Maintain the essence of the original question during all of this. 9. Do not change the answer. Minor grammatical adjustments to the answer are allowed only if necessary to fit the restructured question (e.g., adjusting verb tense, determiners like "the"). 10. Avoid quoting the source sentence directly in the question. 11. Refine Question. The rewritten question can be broken up into multiple sentences if the question becomes verbose. Make sure the question is written clearly and grammatically correct. Do not put any of the context in parenthesis or followed after an "i.e.". Think carefully and critically through this task, following the step-by-step instructions outlined above. Then, provide the final output, listing each question and its corresponding answer. 3. Prompt to generate inference questions from the text: You have been given a section of an academic text. Your tasks is to test the reader's understanding of the text. However, you should not test anything that can be recalled from reading a single sentence. Create questions that integrate, connect, and synthesize information across several sentences and aim at measuring a deeper understanding. Your question must not be obvious from a single sentence already in the paper, and truly require several sentences to synthesize the answer. Lastly, the answer to the question must be a coherent phrase, from 1 to 5 words long. For each question, show me the sentences in the text that you' re pulling from to answer the question. The question should be non-obvious from these sentences and require composing information from all of them to answer the question. Provide the output in JSON format, as a dictionary with a single key "qa_items" which is a list of dictionaries with the following keys: - "question": (string) - "answer": (string) - "text_quotes": list of sentences from the text that you're pulling from to answer the question. GPrompts for Synthetic Data Generation (arXiv) 1. Prompt to synthesize Stack Exchangeâstyle questionâanswer pairs: Question generation: You are a confused student reading this research paper. You are struggling with specific concepts, details, and connections in this paper. Generate a list of several Stack Exchange style questions that you would ask to clarify your understanding. Your questions should: - Vary in levels of understanding, from misled to profound. - Vary in complexity, from simple to deep. - Vary in type, from conceptual to detail-specific. - Focus on clarifying the concepts and details of the paper. Do not ask tangential questions. As you generate the questions, please make sure to consider the following: - Make sure the questions are self-contained and unambiguous - Please write any mathematical notation in LaTeX only e.g. " $x^2$" or "$Ď$". Do not use unicode mathematical characters e.g. "pi". For each question, provide: - A`title` in Stack Exchange question format - The`question_body` with context and what specifically you' re confused about ## Example Question "How can Transformers handle arbitrary length input? The transformer, introduced in the paper Attention Is All You Need, is a popular new neural network architecture that is commonly viewed as an alternative to recurrent neural networks, like LSTMs and GRUs. However, having gone through the paper, as well as several online explanations, I still have trouble wrapping my head around how they work." ### Output Format Provide the output as a JSON object with a single key " questions", which is a list of question dictionaries. Example: "questions": [ "title": "Why does the partition function cancel out in DPO derivation?", "question_body": "I'm reading the DPO paper and I understand that they start with the KL-regularized objective, but I'm confused about how the partition function Z(x) cancels out when they move to pairwise preferences. Can someone explain this step intuitively?", ] Answer generation: A graduate student has asked a question about a research paper. Provide a clear, detailed Stack Exchange style answer that: - Thoroughly addresses their question - Don't make it too lengthy; it should be concise and to the point like a Stack Exchange answer - Write in prose rather than structured bullet points in one cohesive answer - Provides intuitive explanations alongside technical details - Connects to broader concepts when relevant - Is educational and accessible Please write any mathematical notation in LaTeX only e.g. "$x ^2$" or "$Ď$". Do not use unicode mathematical characters e. g. "pi". Also, please make sure that your answer is grounded in the paper; do not provide any information that is inconsistent with the paper. Again, please write all math in LaTeX. Format your response as a comprehensive Stack Exchange answer. ### Example Question: "I know that in the math on which the transformer is based there is no restriction on the length of input. But I still can't understand why we should fix it in the frameworks ( PyTorch). Because of this problem Transformer-XL has been created. Can you explain to me where this problem is hiding, please?" Answer: "The restriction in the maximum length of the transformer input is due to the needed amount of memory to compute the self-attention over it. The amount of memory needed by the self-attention in the Transformer is quadratic on the length of the input. This means that increasing the maximum length of the input, increases drastically the needed memory for self-attention. The maximum length is that which makes the model use up the whole memory of the GPU for at least one sentence (once the other elements of the model are also taken into account, like the embeddings which take a lot of memory). Transformer-XL is certainly a way to take into account as much context as possible in language modeling (its role is analogous to truncated back-propagation through time in LSTM language models). However, the gradients are not propagated through the attention over the memory segment, only through the current segment. There have been several architectural attempts to reduce the amount of memory needed by transformers, like using locality- constraints in the attention (Dynamic Convolutions model) or using locality-sensitive hashing (Reformer model). There have been other implementation attempts, like gradient checkpointing(e.g. this), which is a general technique to run computations that don't fit at once in the GPU memory" L A T E X formatting refinement: You will be given a text. Your only task is to correct any mathematical notation inside it to be valid LaTeX. You must not change any other part of the text. - Convert unicode math characters like'pi' to their LaTeX equivalent'$\Ď$'. - Ensure all mathematical expressions are enclosed in'$... $' for inline math or'$$...$$' for display math. - Return the full, corrected text. 2. Prompt to synthesize textbook-style expla- nations: Textbook outline generation: ### Instructions You will be given a research paper and your task is to create a detailed outline for a textbook that comprehensively explains the given research paper. But, it should go beyond mere explaining, and be a proper pedagogical textbook that aims to fully educate the reader on what the paper is about. The textbook should be aimed at college students who have a basic understanding of machine learning. The outline should: - Break down the paper into coherent chapters. - For each chapter, provide a: - title - description - list of subtopics to cover - Cover all key concepts, methods, and results from the paper. - Ensure a logical flow of information, from introduction to conclusion. - While the textbook should be comprehensive, it should also articulate and to the point. Don't create unnecessary chapters. ### Output Format Provide the output as a JSON object with a single key "outline ", which is a list of chapter objects. Each chapter object must have the following keys: - "chapter_title": A string for the title of the chapter. - "description": A string describing the chapter's content. - "subtopics": A list of strings, where each string is a subtopic. Chapter generation: ### Instructions You will be given a chapter title, description, and subtopics and, based on those topics, your job is to write a detailed, cohesive textbook chapter addressed to a college student who is learning this material for the first time. The chapter should be comprehensive and suitable for someone learning this material to understand research papers in the field. Don't just briefly describe the subtopics, but rather elaborate on the concepts at full length and explain them with a focus on intuition. Spell everything out clearly so there is no ambiguity. Dedicate multiple paragraphs to each subtopic but be articulate and concise when appropriate. Write in full prose, rather than bullet points. Most importantly, please make sure that your chapter is grounded in the paper; do not provide any information or details that is not from the paper. Start with the chapter title in the first line. Separate each subtopic with a section header "#". Also, please write all mathematical notation in LaTeX only e.g. "$x^2$" or "$Ď$". Do not use unicode mathematical characters e.g. "pi". Again, PLEASE write all math in LaTeX. 3. Prompt to synthesize blog-post-style expla- nations: Blog post idea generation: ### Instructions You are a creative tech blogger and content strategist. Based on the provided research paper, generate a list of a few blog posts that explain the paper in a way that is accessible to a wider audience. They should each focus on a different, main aspect of the paper. For each blog idea, provide: - A`title`. - A brief`description` of what the blog post will cover. ### Output Format Provide the output as a JSON object with a single key "blogs", which is a list of blog objects. Each blog object must have the following keys: - "title": A string for the title of the blog post. - "description": A string describing the blog post's content. Blog post generation: You will be given an academic paper and a blog post idea about the paper. Write a blog post based on the blog idea. As you write the blog post, please make sure to consider the following: - Write in a technical blog style. It should be less formal but not too informal. It should be concise and to the point. - Simplify complex concepts from the paper for a broader audience. - Write in full, complete sentences and prefer paragraphs over bullet points, but use bullet points when appropriate. - Keep all details grounded in the paper. Do not make up any information. - Please write any mathematical notation in LaTeX only e.g. " $x^2$" or "$Ď$". Do not use unicode mathematical characters e.g. "pi". Your output should be the full text of the blog post, starting with the blog title as a markdown header. Use'#' to denote the blog title,'##' to denote different sections, and so on. 4. Prompt to generate prerequisite-knowledge chapters: Prerequisite chapter-list generation: ### Instructions You are an expert curriculum designer. Based on the provided research paper, create a list of textbook chapters that would provide all the necessary prior knowledge to understand this paper. The chapters should not contain the novel ideas presented in the paper itself, but rather the foundational concepts upon which the paper is built. For each chapter, provide: - A`title`. - A general`description` of what the chapter covers. - A list of`subtopics` that should be included. ### Output Format Provide the output as a JSON object with a single key " chapters", which is a list of chapter dictionaries. Example: "chapters": [ "title": "Chapter 1: Introduction to Probability Theory", "description": "This chapter covers the basics of probability...", "subtopics": ["Random Variables", "Probability Distributions", "Bayes' Theorem"] ] Chapter generation: ### Instructions You will be given a chapter title, description, and subtopics and, based on those topics, your job is to write a detailed, cohesive textbook chapter addressed to a college student who is learning this material for the first time. The chapter should be comprehensive and suitable for someone learning this material to understand research papers in the field. Begin with an introduction to the chapter, then cover each subtopic in turn. Don't just briefly describe the subtopics, but rather elaborate on the concepts at full length and explain them with a focus on intuition. Spell everything out clearly so there is no ambiguity. Dedicate multiple paragraphs to each subtopic. Write in full prose, rather than bullet points. Separate each subtopic with a section header "#". Also, please write all mathematical notation in LaTeX only e.g. "$x^2$" or "$Ď$". Do not use unicode mathematical characters e.g. "pi".