[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-684322-105":59,"doc-detail-684322-en":130,"doc-similar-684322":158},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","end-to-end-test-time-training-for-long-context","End-to-End Test-Time Training for Long Context","","Long-context language modeling is reframed as continual learning rather than as an architectural change. A baseline Transformer with sliding-window attention is kept, while the model continues learning at test time via next-token prediction over the provided context, compressing the read context into its weights. Test-time learning is enabled by meta-learning-based initialization during training. Extensive scaling experiments show TTT-E2E matches full-attention scaling for 3B models at 164B tokens, while other methods fail; inference latency remains constant, yielding 2.7× faster prefill at 128K on H100. Code is publicly available.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":40,"@type":76,"position":81},"https://docshare.wps.com/document/research-report/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/end-to-end-test-time-training-for-long-context/684322/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/end-to-end-test-time-training-for-long-context/684322.png","ImageObject",300,407,{"name":92,"@type":93},"Kyle","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-12","2026-11-06",true,{"@type":102,"interactionType":103,"userInteractionCount":14},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What problem does the paper address for long-context language modeling?","Question",{"text":112,"@type":113},"It treats long-context language modeling as continual learning, focusing on how to improve performance without relying on full attention over the entire history.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How does the method perform learning at test time?",{"text":117,"@type":113},"At test time, it continues training using next-token prediction on the given context, compressing the information it reads into the model’s weights.",{"name":119,"@type":110,"acceptedAnswer":120},"What is the role of meta-learning in the approach?",{"text":121,"@type":113},"Meta-learning is used to prepare the model’s initialization so that it can learn effectively during test-time training, reducing the mismatch between training and post-TTT loss.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},684322,1794004474,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":14,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":139,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":129,"read_time":144,"preview_page_count":81,"preview_urls":145},3985741905716,"https://ap-avatar.wpscdn.com/davatar_994ba38a5ba835b3df7d355c54d3ed8d","arXiv :2512 .23675v2 [ cs .LG] 31 Dec 2025  \nEnd-to-End Test-Time Training for Long Context  \nArnuv Tandon∗1,3 , Karan Dalal ∗1,4 , Xinhao Li ∗5, Daniel Koceja∗3, Marcel Rød∗3, Sam Buchanan4 , Xiaolong Wang5 , Jure Leskovec3 , Sanmi Koyejo3 , Tatsunori Hashimoto3 , Carlos Guestrin3 , Jed McCaleb1 , Yejin Choi2 , Yu Sun∗2,3  \n1 Astera Institute 2 NVIDIA 3 Stanford University 4 UC Berkeley 5 UC San Diego  \nAbstract  \nWe formulate long-context language modeling as a problem in continual learning rather than architecture design. Under this formulation, we only use a standard architecture – a Transformer with sliding-window attention. However, our model continues learning at test time via next-token prediction on the given context, compressing the context it reads into its weights. In addition, we improve the model’s initialization for learning at test time via meta-learning at training time. Overall, our method, a form of Test-Time Training (TTT), is End-to-End (E2E) both at test time (via next-token prediction) and training time (via meta-learning), in contrast to previous forms. We conduct extensive experiments with a focus on scaling properties. In particular, for 3B models trained with 164B tokens, our method (TTT-E2E) scales with context length in the same way as Transformer with full attention, while others, such as Mamba 2 and Gated DeltaNet, do not. However, similar to RNNs, TTT-E2E has constant inference latency regardless of context length, making it 2.7× faster than full attention for 128K context. Our code is publicly available.  \nLoss with full attention  \n0.05  \n0.04  \n0.03  \n0.02  \n0.01  \n0.00  \n~~ ~~ 0.01  \n8K 16K 32K 64K 128K  \nContext length  \nLatency (sec per 1 k tokens) for prefill  \n0.07  \n0.06  \n0.05  \n0.04  \n0.03  \n0.02  \n\n| | \u003Cbr>\u003Cbr>|\n| --- | --- |\n\n8K 16K 32K 64K 128K  \nContext length  \nFigure 1 . Scaling with context length, in terms of test loss (left) and latency (right) . Left: Our method (TTT-E2E) turns the worst line (green) into the best (blue) at 128K context length. Loss ∆ (↓), the y-value, is computed as (loss of the reported method) − (loss of Transformer with full attention), so loss ∆ of full attention itself (orange) is the flat line at y = 0 . While other methods produce worse loss ∆ in longer context, TTT-E2E maintains the same advantage over full attention. All models have 3B parameters and are trained with 164B tokens. Right: Similar to SWA and the RNN baselines, TTT-E2E has constant inference latency regardless of context length, making it 2.7× faster than full attention for 128K context on an H100 .  \n∗ Core contributors. See statement of contributions before references.  \nCorrespondence to: [arnuv@stanford. edu](arnuv@stanford. edu), [kdalal@berkeley. edu](kdalal@berkeley. edu), [yusun@cs. stanford. edu](yusun@cs. stanford. edu).  \n1 Introduction  \nHumans are able to improve themselves with more experience throughout their lives, despite their imperfect recall of the exact details. Consider your first lecture in machine learning: You might not recall the instructor’s first word during the lecture, but the intuition you learned is probably helping you understand this paper, even if that lecture happened years ago.  \nOn the other hand, Transformers with self-attention still struggle to efficiently process long context equivalent to years of human experience, in part because they are designed for nearly lossless recall. Self-attention over the full context, also known as full attention, must scan through the keys and values of all previous tokens for every new token. As a consequence, it readily attends to every detail, but its cost per token grows linearly with context length and quickly becomes prohibitive.  \nAs an alternative to Transformers, RNNs such as Mamba 2 [32] and Gated DeltaNet [104] have constant cost per token, but become less effective in longer context, as shown in Figure 1. Some modern architectures approximate full attention with a sliding window [1, 107], or stack atte","cbCaijmjB8VCnQuD","https://ap.wps.com/l/cbCaijmjB8VCnQuD","pdf",1009536,29,"English","# Abstract\n# Introduction\n## Motivation: continual learning view of long context\n## Baseline and missing piece\n## Test-Time Training and meta-learning initialization\n## End-to-end optimization summary","[{\"question\":\"What problem does the paper address for long-context language modeling?\",\"answer\":\"It treats long-context language modeling as continual learning, focusing on how to improve performance without relying on full attention over the entire history.\"},{\"question\":\"How does the method perform learning at test time?\",\"answer\":\"At test time, it continues training using next-token prediction on the given context, compressing the information it reads into the model’s weights.\"},{\"question\":\"What is the role of meta-learning in the approach?\",\"answer\":\"Meta-learning is used to prepare the model’s initialization so that it can learn effectively during test-time training, reducing the mismatch between training and post-TTT loss.\"}]","End-to-End Test-Time Training for Long Context | PDF",73,[146,150,154],{"page_no":8,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/bdc64c1f5423262f0640516388ec64ae.webp",983,1272,{"page_no":14,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/9fbb4a06253ed48ece8ae770306286c0.webp",982,1270,{"page_no":81,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/78b9a209601dd7ed1467db76082fb822.webp",981,1269,{"list":159,"token":66},[160,166,173,180,187,193,199,206,213,220],{"doc_id":161,"doc_title":162,"file_type":137,"home_preview_img_url":163,"slug":164,"view_count":19,"category_name":40,"create_tm":165},699361,"DeepSeek-V2 - A Strong, Economical, and Efficient Mixture-of-Experts Language Model","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230010907901/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109899&Signature=L5Mt2FBK57PskGqLJwFQZDuixiQ%3D","deepseek-v2-a-strong-economical-and-efficient-mixture-of-experts-language-model",1794465276,{"doc_id":167,"doc_title":168,"file_type":137,"home_preview_img_url":169,"slug":170,"view_count":171,"category_name":40,"create_tm":172},82340,"Self-Guided Test-Time Training for Long-Context LLMs","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808733484/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109899&Signature=ANEeNr15WoJfQV7aUFuCDknSd5I%3D","self-guided-test-time-training-for-long-context-llms",22,1784179755,{"doc_id":174,"doc_title":175,"file_type":137,"home_preview_img_url":176,"slug":177,"view_count":178,"category_name":40,"create_tm":179},81600,"Untied Ulysses: Memory-Efficient Context Parallelism via Headwise Chunking","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808460841/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109899&Signature=Tz%2Bvn5JpnRtEfmE%2F7cauFWMjhGQ%3D","untied-ulysses-memory-efficient-context-parallelism-via-headwise-chunking",31,1784174632,{"doc_id":181,"doc_title":182,"file_type":137,"home_preview_img_url":183,"slug":184,"view_count":185,"category_name":40,"create_tm":186},82501,"Beyond Perplexity: A Behavioral Evaluation Framework for Deployment-Memory Claims in LLM Test-Time Training","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808751393/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109899&Signature=lg4EHxN%2BjtmnS4dccLSv7XAxjh4%3D","beyond-perplexity-a-behavioral-evaluation-framework-for-deployment-memory-claims-in-llm-test-time-training",26,1784180959,{"doc_id":188,"doc_title":189,"file_type":137,"home_preview_img_url":190,"slug":191,"view_count":19,"category_name":40,"create_tm":192},684328,"Titans: Learning to Memorize at Test Time - NeurIPS 2025 Paper","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000059278/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109899&Signature=tBrh%2FlV1aO8dAcNKdexIWQw5KTM%3D","titans-learning-to-memorize-at-test-time-neurips-2025-paper",1794004489,{"doc_id":194,"doc_title":195,"file_type":137,"home_preview_img_url":196,"slug":197,"view_count":56,"category_name":40,"create_tm":198},273529,"PTXBench - Benchmark and Adapt LLMs for GPU Kernel Optimization - with Architecture-specific PTX","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229899946380/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109899&Signature=igcASXf6p%2F5rJJQo5Gthkxm7xeE%3D","ptxbench-benchmark-and-adapt-llms-for-gpu-kernel-optimization-with-architecture-specific-ptx",1789471907,{"doc_id":200,"doc_title":201,"file_type":137,"home_preview_img_url":202,"slug":203,"view_count":204,"category_name":40,"create_tm":205},657743,"Complexion time-temperature-transformation (TTT) diagrams: Opportunities and challenges","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975167788/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109899&Signature=Tegq8ugEYmtjRWPjktlMqN4sa%2Fg%3D","complexion-time-temperature-transformation-ttt-diagrams-opportunities-and-challenges",15,1792987727,{"doc_id":207,"doc_title":208,"file_type":137,"home_preview_img_url":209,"slug":210,"view_count":211,"category_name":40,"create_tm":212},82330,"Mach Mind 4 Flash Technical Report","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808732569/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109899&Signature=UqEhIOi6sMWgnMvDQYwk%2B0cHcLA%3D","mach-mind-4-flash-technical-report",27,1784179675,{"doc_id":214,"doc_title":215,"file_type":137,"home_preview_img_url":216,"slug":217,"view_count":218,"category_name":40,"create_tm":219},455438,"Asymptotic theory of in-context learning by linear attention","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229925071859/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109899&Signature=wCY8sb%2FMCQREaEOnLcUlgdJ0sHQ%3D","asymptotic-theory-of-in-context-learning-by-linear-attention",11,1790742918,{"doc_id":221,"doc_title":222,"file_type":137,"home_preview_img_url":223,"slug":224,"view_count":171,"category_name":40,"create_tm":225},85216,"Context by Distinct Information An Auditable Dirichlet Process Working Memory for Long Redundant Context Streams","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809295635/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109899&Signature=OUV%2FfDQqHM%2B%2FH%2F7akEtvpklIy%2BQ%3D","context-by-distinct-information-an-auditable-dirichlet-process-working-memory-for-long-redundant-context-streams",1784201805]