<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>ConText-LE: Cross-Distribution Generalization for Longitudinal Experiential Data via Narrative-Based LLM Representations</title></titleStmt>
			<publicationStmt>
				<publisher>Association for Computational Linguistics</publisher>
				<date>01/01/2025</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10666442</idno>
					<idno type="doi">10.18653/v1/2025.findings-emnlp.830</idno>
					
					<author>Ahatsham Hayat</author><author>Bilal Khan</author><author>Mohammad Rashedul Hasan</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[Longitudinal experiential data offers rich insights into dynamic human states, yet building models that generalize across diverse contexts remains challenging. This paper addresses how to best represent multi-modal longitudinal experiential data as text and formulate prediction tasks to maximize large language model (LLM) cross-distribution generalization. We propose ConText-LE, a framework grounded in linguistic and cognitive theories of contextual meaning-making, which systematically investigates text representation strategies and output formulations for robust behavioral forecasting. Our novel Meta-Narrative representation synthesizes complex temporal patterns into semantically rich narratives, while Prospective Narrative Generation reframes prediction as a generative task aligned with LLMs' inherent contextual understanding capabilities. Through comprehensive experiments on three diverse longitudinal datasets, we address the critical but underexplored challenge of cross-distribution generalization in mental health and educational behavior forecasting. We demonstrate that combining Meta-Narrative input with Prospective Narrative Generation significantly outperforms existing LLM-based approaches, achieving up to 12.28% improvement in out-of-distribution accuracy and up to 11.99% improvement in F1 scores over binary classification methods. Bidirectional evaluation and architectural ablation studies confirm the robustness of our approach, establishing ConText-LE as an effective framework for developing reliable behavioral forecasting systems across temporal and contextual shifts.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1">Introduction</head><p>Longitudinal experiential (LE) data, collected through Experience Sampling Methods (ESM) <ref type="bibr">(Larson and Csikszentmihalyi, 1983)</ref>, Ecological Momentary Assessment (EMA) <ref type="bibr">(Stone and Shiffman, 1994;</ref><ref type="bibr">Shiffman et al., 2008)</ref>, and passive sensing <ref type="bibr">(Mohr et al., 2017;</ref><ref type="bibr">Kumar et al., 2015)</ref>, offers unprecedented opportunities to understand and predict dynamic human states in real-world contexts. By capturing both subjective reports (e.g., mood, stress) and objective measurements (e.g., activity, sleep patterns), LE data holds immense promise for personalized interventions in mental health <ref type="bibr">(Xu et al., 2021a;</ref><ref type="bibr">Mohr et al., 2021)</ref> and education <ref type="bibr">(Wang et al., 2014)</ref>.</p><p>However, despite this potential, a fundamental challenge remains largely unaddressed: crossdistribution generalization. Models trained on LE data from one cohort, time period, or context often exhibit dramatic performance degradation when applied to different populations or temporal periods <ref type="bibr">(Xu et al., 2023a,b)</ref>. This generalization failure represents a critical barrier to real-world deployment, as evidenced by the limited success of existing approaches when evaluated across distribution shifts. For instance, traditional machine learning approaches on the GLOBEM dataset achieve only 52.80% &#177; 0.024 out-of-distribution accuracy <ref type="bibr">(Xu et al., 2023b)</ref>, barely exceeding random chance.</p><p>We hypothesize that this generalization challenge stems from the inherently contextual and situated nature of LE data. Unlike traditional time series <ref type="bibr">(Zhong et al., 2025)</ref>, LE data carries implicit contextual meaning where the significance of behavioral patterns depends heavily on individual circumstances and broader social contexts. For instance, a university student showing decreased activity and increased sleep during final exams exemplifies this complexity, as these patterns might indicate depression in other contexts but represent adaptive responses to academic stress in this specific situation.</p><p>Traditional machine learning approaches treat behavioral features as context-independent variables with fixed meanings <ref type="bibr">(Xu et al., 2019;</ref><ref type="bibr">Saeb et al., 2015;</ref><ref type="bibr">Wang et al., 2018)</ref>. This limitation parallels early word embedding models that treated words as static vectors, before contextualized representations revolutionized NLP <ref type="bibr">(Devlin et al., 2019;</ref><ref type="bibr">Peters et al., 2018)</ref>. We propose that large language models (LLMs), with their pre-trained under-standing of human behavior and contextual reasoning <ref type="bibr">(Brown et al., 2020;</ref><ref type="bibr">Bommasani et al., 2022)</ref>, offer unique capabilities for interpreting LE data within appropriate contexts.</p><p>However, existing LLM applications to LE data <ref type="bibr">(Kim et al., 2024;</ref><ref type="bibr">Hayat et al., 2024a;</ref><ref type="bibr">Thach et al., 2025)</ref> have not systematically investigated cross-distribution generalization. They primarily employ simple text encodings (e.g., structured value lists, statistical summaries) paired with binary classification, overlooking how representation strategies and output formulations impact generalization performance. In our cross-distribution evaluation, these approaches show substantial performance drops, highlighting critical gaps in leveraging LLMs for robust behavioral modeling.</p><p>ConText-LE Framework: We introduce ConText-LE, a novel framework for generalizable LLM-based LE data modeling that systematically investigates the impact of textual representations and output formulations on cross-distribution performance. ConText-LE explores four distinct input representations:</p><p>&#8226; Three existing approaches: Complete Sequence <ref type="bibr">(Hayat et al., 2024a)</ref>, Statistical Summary <ref type="bibr">(Thach et al., 2025)</ref>, and Natural Language String <ref type="bibr">(Kim et al., 2024)</ref> &#8226; Our novel Meta-Narrative: High-level interpretative narratives that synthesize complex temporal patterns into semantically rich, contextually grounded summaries emphasizing feature relationships and potential real-world interpretations</p><p>We also compare two output formulations: traditional Binary Classification versus our proposed Prospective Narrative Generation, which reframes prediction as generating descriptive narratives about future states. This generative approach better aligns with LLMs' inherent capabilities and allows for more nuanced expression of contextual predictions.</p><p>Through comprehensive experiments on three diverse datasets (GLOBEM <ref type="bibr">(Xu et al., 2023a)</ref>, <ref type="bibr">LifeSnaps (Yfantidou et al., 2022)</ref>, and MFAFY <ref type="bibr">(Hayat et al., 2024a,b;</ref><ref type="bibr">Thach et al., 2025)</ref>) focusing specifically on cross-distribution generalization, an underexplored but critical challenge, we show that combining Meta-Narrative input with Prospective Narrative Generation achieves superior performance. Our approach improves out-of-distribution accuracy by up to 12.28% and F1 scores by up to 11.99% compared to binary classification, establishing new benchmarks for robust behavioral forecasting across temporal and contextual shifts.</p><p>Our main contributions include: &#8226; The ConText-LE framework for systematic investigation of textual representations and output formulations in LLM-based LE data modeling, addressing the critical challenge of crossdistribution generalization. &#8226; Meta-Narrative representation, a novel twostage technique that synthesizes complex temporal patterns into semantically rich narratives, and Prospective Narrative Generation, which reframes prediction as a generative task aligned with LLMs' contextual reasoning capabilities. &#8226; Comprehensive empirical evaluation demonstrating substantial improvements (up to 12.28% accuracy, 11.99% F1) over existing approaches across three diverse datasets, establishing the first systematic benchmarks for cross-distribution behavioral forecasting. &#8226; Architectural ablation studies establishing the critical importance of instruction tuning and context length for behavioral pattern interpretation, providing practical guidance for LLM selection in sensitive applications.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2">Related Work</head><p>Modeling LE Data: Longitudinal experiential data has been modeled using various traditional ML and deep learning approaches for healthcare <ref type="bibr">(Wang et al., 2018;</ref><ref type="bibr">Xu et al., 2021a;</ref><ref type="bibr">Nemati et al., 2022)</ref> and education <ref type="bibr">(Wang et al., 2016;</ref><ref type="bibr">Li et al., 2020)</ref>. These methods often struggle with generalizability across domain shifts <ref type="bibr">(Xu et al., 2023b)</ref> and inadequately handle missing data <ref type="bibr">(Xu et al., 2021a;</ref><ref type="bibr">Arnold and Pistilli, 2012)</ref>. Recent work has begun exploring LLMs for LE data forecasting <ref type="bibr">(Kim et al., 2024;</ref><ref type="bibr">Hayat et al., 2024a;</ref><ref type="bibr">Thach et al., 2025)</ref>, but primarily focuses on within-dataset evaluation rather than cross-distribution generalization.</p><p>NLP Foundations: The evolution from static word embeddings <ref type="bibr">(Mikolov et al., 2013)</ref> to contextualized representations <ref type="bibr">(Devlin et al., 2019)</ref> has revolutionized NLP by capturing how meaning changes with context. Recent advances in prompting strategies <ref type="bibr">(Wei et al., 2023;</ref><ref type="bibr">Kojima et al., 2023)</ref> have enhanced LLMs' reasoning capabilities. Our work builds on these developments by treating multi-dimensional LE data as complex semantic structures requiring contextual interpretation, while leveraging findings that generative formulations often enable more effective reasoning than discriminative approaches.</p><p>Cross-Modal Applications: Recent work has explored adapting structured data for LLM processing through serialization or textual descriptions <ref type="bibr">(Sun et al., 2023;</ref><ref type="bibr">Jin et al., 2023)</ref>, with applications to human-centric data <ref type="bibr">(Kim et al., 2024)</ref>. Most approaches use simple encoding strategies, while our work investigates semantically rich narrative representations that better align with findings on how LLMs process contextual relationships <ref type="bibr">(Wang et al., 2022a;</ref><ref type="bibr">Shwartz et al., 2020)</ref>. A detailed review of related work is given in Appendix A.10.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3">The ConText-LE Framework</head><p>ConText-LE is a systematic framework for leveraging LLMs' contextual understanding capabilities to achieve robust cross-distribution generalization in LE data. Figure <ref type="figure">1</ref> illustrates the overall architecture, highlighting the interplay between textual representation strategies and output formulations.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.1">Problem Formulation</head><p>Given LE data collected from N individuals over K weeks, we define feature vectors x i,j &#8712; R d for individual i at time step j, where d represents the dimensionality of multi-modal features (e.g., activity, sleep, mood, social interactions). Using a sliding window approach, we segment data into overlapping k-week sequences.</p><p>For cross-distribution generalization, we partition data into training period T and testing period T &#8242; , where T &#8242; represents a different temporal period, cohort, or contextual setting. The model receives textual representation X text i,s:s+k-1 of each k-week sequence and predicts either a binary label y binary i,s+k &#8712; {0, 1} or narrative forecast y narrative i,s+k for week s + k.</p><p>The core challenge lies in achieving robust performance when P (X, Y |T ) &#824; = P (X, Y |T &#8242; ), where distribution shifts may involve temporal changes (e.g., different academic semesters), demographic variations (e.g., different student cohorts), or contextual differences (e.g., pre/post-pandemic periods). Formal details are in Appendix A.1.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2">Textual Representation Strategies</head><p>ConText-LE investigates four distinct approaches for transforming raw LE data into textual inputs, each designed to capture different aspects of temporal and contextual information.</p><p>Baseline Representations We implement three existing approaches from prior work:</p><p>Complete Sequence <ref type="bibr">(Hayat et al., 2024a)</ref>: Direct verbalization of detailed temporal sequences. Example: "Monday Jan 5: steps=8, <ref type="bibr">245, heart_rate=72bpm, sleep=7.2hrs, mood=3/5. Tuesday Jan 6: steps=6,891, heart_rate=68bpm..." Statistical Summary (Thach et al., 2025)</ref>: Aggregate statistics for each feature over the k-week period. <ref type="bibr">Example: "Steps: mean=7,834, std=2,451, min=1,023, max=15,672. Sleep: mean=7.1hrs, std=1.2hrs..." Natural Language String (Kim et al., 2024)</ref>: Structured listing of feature values over time. <ref type="bibr">Example: "Steps: [8245,</ref><ref type="bibr">6891,</ref><ref type="bibr">NaN,</ref><ref type="bibr">9156,</ref><ref type="bibr">...];</ref><ref type="bibr">Sleep: [7.2,</ref><ref type="bibr">6.8,</ref><ref type="bibr">NaN,</ref><ref type="bibr">8.1,</ref><ref type="bibr">...];</ref><ref type="bibr">Mood: [3,</ref><ref type="bibr">4,</ref><ref type="bibr">NaN,</ref><ref type="bibr">2,</ref><ref type="bibr">..</ref></p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>.]"</head><p>Meta-Narrative Representation (Novel) Our proposed Meta-Narrative approach generates highlevel interpretative narratives that synthesize complex temporal patterns into semantically rich, contextually grounded summaries. This representation is motivated by frame semantics theory <ref type="bibr">(Fillmore, 2006)</ref>, which suggests that meaning emerges from situating experiences within appropriate interpretive frameworks.</p><p>The Meta-Narrative is generated through a novel two-stage prompting process using <ref type="bibr">GPT-4o (Ope-nAI, 2024)</ref>:</p><p>Stage 1 -Feature Pattern Analysis: Identifies significant patterns in each behavioral dimension using statistical analysis and trend detection.</p><p>Stage 2 -Contextual Narrative Synthesis: Integrates individual patterns into a coherent narrative emphasizing inter-feature relationships, potential contextual interpretations, and global behavioral themes.</p><p>Example Meta-Narrative: "This university student demonstrated consistent baseline activity patterns during the first three weeks, averaging 8,000 daily steps with regular 7-hour sleep cycles. However, week 4 marked a significant behavioral shift coinciding with the final examination period: activity decreased by 43% while sleep duration increased to over 9 hours nightly. Social interactions declined substantially from 8 to 2 weekly events. Despite these changes, self-reported mood remained stable at 'tired but OK,' suggesting adaptive rather than pathological responses to academic stress." ing with cross-entropy loss on generated tokens. Binary Classification uses standard cross-entropy loss on predicted labels. This systematic approach enables fair comparison across all framework components.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.5">Evaluation Framework</head><p>Cross-Distribution Protocol Design Our evaluation protocol specifically targets cross-distribution generalization scenarios. We partition data into distinct temporal periods T (training) and T &#8242; (testing), ensuring no individual appears in both periods to prevent data leakage. This temporal splitting simulates realistic deployment scenarios where models must generalize to future time periods or different populations.</p><p>Evaluation Metrics We report standard binary classification metrics: accuracy, precision, recall, and F1-score, with primary focus on out-ofdistribution performance. For narrative outputs, binary forecasts are extracted using GPT-4o with carefully designed prompts that maintain consistency across evaluations.</p><p>Baseline Establishment Strategy Given limited prior work on cross-distribution LE data generalization, we establish comprehensive baselines by reimplementing existing LLM approaches and adapting them for cross-distribution evaluation. Complete implementation details are provided in the experimental section.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4">Experiments and Results</head><p>4.1 Experimental Design Datasets and Distribution Shifts We evaluate on three diverse LE datasets representing different types of distribution shifts: GLOBEM (Xu et al., 2023a): Mental health prediction across 661 participants over 4 years. Crosstemporal shift: Years 1-2 (n=344, 2226 LE sequences) &#8594; Years 3-4 (n=317, 2023 LE sequences). Features include activity, sleep, communication patterns, and mood assessments. Target: depression risk prediction. LifeSnaps (Yfantidou et al., 2022): Anxiety prediction across 39 participants over 4 months. Cross-temporal shift: First 2 months (n=26, 112 LE sequences) &#8594; Last 2 months (n=13, 64 LE sequences). Features include physiological signals, activity patterns, and self-reports. Target: anxiety episode prediction.</p><p>MFAFY <ref type="bibr">(Hayat et al., 2024a)</ref>: Academic engagement prediction across 96 participants over 2 years. Cross-temporal shift: Year 1 (2 semesters) (n=61, 610 LE sequences) &#8594; Year 2 (1 semester) (n=35, 350 LE sequences). Features are qualitative self-reports of study behaviors and emotional states. Target: academic engagement level.</p><p>These datasets provide diverse modalities (structured sensors, physiological signals, unstructured text), scales (39-661 participants), and shift types (cohort changes, temporal dynamics, academic contexts), enabling robust evaluation of generalization capabilities. Detailed dataset information is in Appendix A.9.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.2">Implementation and Evaluation Protocol</head><p>Implementation Details All experiments use Llama 3.1 8B Instruct <ref type="bibr">(Grattafiori et al., 2024)</ref> with LoRA fine-tuning. Models are trained separately for each textual representation and output formulation combination. Textual representations and extractions use <ref type="bibr">GPT-4o (OpenAI, 2024)</ref>. Complete implementation details are in Appendix A.8.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Evaluation Metrics and Protocol</head><p>We report accuracy, precision, recall, and F1-score, with primary focus on out-of-distribution (OOD) performance. Data is partitioned into distinct temporal periods T (training: 85% train, 15% validation) and T &#8242; (testing: 100% OOD test), ensuring no individual appears in both periods. For narrative outputs, binary forecasts are extracted using GPT-4o with structured prompts.</p><p>Baseline Establishment We establish comprehensive baselines across two categories to thoroughly evaluate our approach. First, within the LLM framework, we re-implement three established textualization methods: Complete Sequence <ref type="bibr">(Hayat et al., 2024a</ref><ref type="bibr">), Statistical Summary Encoding (Thach et al., 2025)</ref>, and Natural Language String Encoding <ref type="bibr">(Kim et al., 2024)</ref>. Second, to contextualize the effectiveness of LLM-based approaches, we compare against established non-LLM time series models: PatchTST <ref type="bibr">(Nie et al., 2022)</ref> and iTransformer <ref type="bibr">(Liu et al., 2024b)</ref>, which represent state-of-the-art methods for temporal pattern modeling. For GLOBEM, we also compare against the published cross-distribution baseline of 52.80% accuracy <ref type="bibr">(Xu et al., 2023b)</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.3">Main Results: Cross-Distribution</head><p>Performance We present results in two phases: first comparing our approach against LLM-based baselines to isolate the contributions of our representational innovations, then contextualizing these results against non-LLM methods to establish the broader effectiveness of the ConText-LE framework.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.3.1">LLM-Based Comparison</head><p>Table 1 presents comprehensive results across all datasets and configurations, showing consistent patterns supporting ConText-LE's effectiveness within the LLM framework. Key Performance Patterns Consistent Meta-Narrative Superiority: Across all datasets and output formulations, Meta-Narrative achieves the highest OOD performance. Improvements over best baselines: GLOBEM (+12.28% accuracy), LifeSnaps (+7.81% accuracy), MFAFY (+4.00% accuracy). Narrative Generation Advantages: Prospective Narrative Generation consistently outperforms Binary Classification across all input representations. The largest improvement occurs on GLOBEM (69.40% vs 57.53% F1), demonstrating that generative formulations better leverage LLMs' contextual reasoning capabilities. Published Benchmark Comparison: Our best GLOBEM configuration (67.40% OOD accuracy) substantially outperforms the published baseline (58.50% accuracy), representing a meaningful advancement in cross-distribution generalization for behavioral forecasting. Analysis Input Representation Impact. Within the Prospective Narrative Generation formulation, Meta-Narrative consistently outperforms alternatives. Improvements over the next-best input representation: GLOBEM (+0.90% F1), LifeSnaps (+8.66% F1), MFAFY (+3.53% F1). The particularly strong improvement on LifeSnaps suggests contextual narratives are especially beneficial for physiological and psychological data requiring sophisticated temporal pattern interpretation. Output Formulation Analysis. The advantage of narrative generation is most pronounced with Meta-Narrative inputs. While other representations show 2-8% F1 improvements with narrative generation, Meta-Narrative shows 8-12% improvements, suggesting synergistic alignment with LLM capabilities.</p><p>Generalization Robustness. To assess generalization stability, we analyze ID-OOD performance gaps. Meta-Narrative with Narrative Generation maintains small gaps in F1 scores across datasets (GLOBEM: 4.47%, LifeSnaps: 1.34%, MFAFY: -1.64%), while some baselines show large drops (e.g., Statistical Summary on LifeSnaps binary classification: 54.70% gap), indicating superior robustness against distribution shifts.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Bidirectional Validation</head><p>To rigorously validate the robustness of our approach, we perform comprehensive bidirectional evaluation, training models in both directions (T &#8594; T &#8242; and T &#8242; &#8594; T ) across all datasets. While the primary results for the forward direction (T &#8594; T &#8242; ) are detailed in Section 4.3, Table <ref type="table">2</ref> offers a concise summary of performance statistics across both directions for Meta-Narrative input with both output formulations. The complete results for the reverse direction (T &#8242; &#8594; T ) are in Appendix A.11.</p><p>The bidirectional analysis illustrates remarkable consistency patterns that strengthen our conclusions. GLOBEM exhibits exceptional stability, with Binary Classification showing virtually identical performance across directions (55.10 &#177; 0.02% accuracy), though F1 scores exhibit higher variance (53.91 &#177; 3.62%). For Prospective Narrative Generation, both accuracy and F1 remain highly consistent (68.08 &#177; 0.67% and 67.92 &#177; 1.48%, respectively), indicating robust bidirectional generalization.</p><p>LifeSnaps exhibits the strongest overall performance with Prospective Narrative Generation, achieving 69.31 &#177; 2.12% accuracy and remarkably stable F1 scores (68.94 &#177; 0.29%). The low F1 variance suggests excellent precision-recall balance across different temporal contexts. Interestingly, Binary Classification shows moderate directional sensitivity (57.87 &#177; 1.51% accuracy), indicating that the choice of training direction matters more for discriminative than generative formulations.</p><p>MFAFY presents the most complex bidirectional behavior, with Binary Classification showing significant directional asymmetry (64.53 &#177; 3.67% accuracy) but highly consistent F1 scores (65.28 &#177; 0.32%). This pattern reflects the temporal structure differences between one-semester (Year 2) and two-semester (Year 1) periods. Models trained on the more constrained Year 2 data Table <ref type="table">2</ref>: Average (&#181;) and standard deviation (&#963;) of OOD generalization performance across bidirectional experiments (T &#8594; T &#8242; and T &#8242; &#8594; T ) for Meta-Narrative input.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>GLOBEM LifeSnaps MFAFY</head><p>Output Formulation</p><p>Binary Classification 55.10 &#177; 0.02 53.91 &#177; 3.62 57.87 &#177; 1.51 58.66 &#177; 1.99 64.53 &#177; 3.67 65.28 &#177; 0.32 Prospective Narrative Gen. 68.08 &#177; 0.67 67.92 &#177; 1.48 69.31 &#177; 2.12 68.94 &#177; 0.29 67.67 &#177; 2.81 64.07 &#177; 0.07 achieve better generalization to Year 1 than vice versa, suggesting that training on focused, shortterm data may lead to more transferable patterns. Despite this asymmetry, Prospective Narrative Generation maintains strong bidirectional performance (67.67 &#177; 2.81% accuracy) with exceptional F1 consistency (64.07 &#177; 0.07%).</p><p>These bidirectional results provide compelling evidence that ConText-LE's improvements stem from capturing fundamental data relationships rather than exploiting direction-specific biases. The systematic advantages of narrative generation across all datasets and directions, combined with Meta-Narrative's consistent superiority, demonstrate robust generalization capabilities essential for real-world deployment where models must perform reliably across diverse temporal contexts.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.3.2">Contextualization Against Non-LLM Methods</head><p>To validate that our improvements stem from methodological innovations rather than simply using LLMs, we compare against traditional time series models. Table <ref type="table">3</ref> presents performance metrics for PatchTST and iTransformer across all datasets. Our LLM-based approaches substantially out- </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.4">LLM Architecture Ablation Study</head><p>To understand factors contributing to ConText-LE's success, we conduct systematic ablation studies examining different LLM architectures' impact on cross-distribution generalization. Our study isolates two critical factors: (1) instruction tuning versus base language modeling, and (2) architectural differences across model families.</p><p>We evaluate four strategically selected LLMs on GLOBEM using our optimal configuration (Meta-Narrative + Prospective Narrative Generation). To isolate instruction tuning effects, we compare Llama 3.1 8B Instruct against its base counterpart Llama 3.1 8B <ref type="bibr">(Grattafiori et al., 2024)</ref>, holding architecture constant while varying only the fine-tuning approach. To assess cross-architecture generalization, we include Mistral-7B-Instruct-v0.3 (Mistral AI, 2024) (instruction-tuned with different architectural optimizations) and Falcon-7B <ref type="bibr">(Almazrouei et al., 2023</ref>) (base model with traditional transformer design). This design enables assessment of both instruction tuning impact within the same architecture and architectural differences across model families. All models undergo identical fine-tuning procedures as detailed in Appendix A.8.</p><p>Table <ref type="table">4</ref> presents comprehensive performance metrics across ID and OOD settings, highlighting several critical insights:</p><p>&#8226; Instruction Tuning Impact Within Architec-ture: The direct comparison between Llama 3.1 8B Instruct and Llama 3.1 8B Base shows instruction tuning's dramatic impact (+9.49% OOD F1), demonstrating that instruction tuning is essential for interpreting contextual behavioral narratives effectively, independent of architectural differences.</p><p>&#8226; Cross-Architecture Instruction Tuning Benefits: Both instruction-tuned models (Llama 3.1 Instruct: 69.40% F1, Mistral-7B: 66.88% F1) substantially outperform base models (Llama 3.1 Base: 59.91% F1, Falcon-7B: 59.66% F1), confirming instruction tuning's importance across different architectures. &#8226; Architectural Advantages: Among instructiontuned models, Llama 3.1's extended context (128K tokens) and diverse training data provide advantages over Mistral-7B's 32K context, suggesting that context length benefits long-term temporal pattern understanding in Meta-Narratives. &#8226; Generalization Stability: Interestingly, base models show smaller ID-OOD gaps (Llama 3.1 Base: 3.44%, Falcon-7B: 5.02%) compared to their instruction-tuned counterparts, but at much lower absolute performance levels. This suggests that instruction tuning trades some stability for substantial performance gains that are crucial for practical applications. &#8226; Base Model Architectural Differences: The comparison between Llama 3.1 8B Base (59.91% F1) and Falcon-7B (59.66% F1) shows minimal performance differences, indicating that base architectural variations have limited impact compared to instruction tuning effects.</p><p>These results confirm instruction tuning as the most critical factor for cross-distribution performance, followed by context length and training data diversity. The substantial performance gap between instruction-tuned and base models (+9.49% F1) underscores the importance of alignment training for complex narrative understanding tasks in behavioral forecasting.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.5">Key Findings</head><p>Our comprehensive evaluation establishes several critical findings:</p><p>I. Meta-Narrative Superiority: Consistently outperforms alternative text representations across all datasets and output formulations, with F1 improvements ranging from 0.90% (GLOBEM) to 8.66% (LifeSnaps) over the next-best input representation. II. Generative Formulation Advantages: Prospective Narrative Generation systematically outperforms Binary Classification across all configurations. The benefits are most pronounced with Meta-Narrative inputs, showing 11.87% (GLOBEM) to 11.99% (LifeSnaps) F1 improvements. III. Cross-Distribution Robustness: Meta-Narrative with Narrative Generation maintains small ID-OOD gaps (1.34% to 4.47% F1) and achieve consistent bidirectional performance, validating that improvements capture fundamental behavioral relationships rather than temporal artifacts. IV. Foundation Model Dependencies: LLM architecture choice markedly impacts generalization performance. Instruction tuning provides substantial benefits (+7.22% to +9.74% F1), while extended context length and diverse pre-training enhance temporal pattern interpretation. V. Benchmark Advancement: Achieves substantial improvements over published baselines (e.g., +14.90% accuracy over GLOBEM's published OOD baseline), showing practical viability for reliable crossdistribution behavioral forecasting. These findings position ConText-LE as a significant advancement in generalizable LE data modeling, providing both theoretical insights into LLMbased contextual representation learning and practical improvements for behavioral prediction systems deployed across diverse temporal and demographic contexts.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5">Discussion</head><p>Our comprehensive evaluation across LLM-based approaches, traditional time series methods, and architectural variations provides deeper insights into why contextual narrative representations fundamentally improve cross-distribution generalization in longitudinal experiential data modeling.</p><p>The substantial performance gap between LLMbased and traditional approaches validates a key theoretical premise: behavioral forecasting benefits from models with pre-existing knowledge of human contexts and social patterns. Unlike the PatchTST and iTransformer, which learn temporal relationships from scratch, LLMs bring rich priors about human behavior that prove essential for interpreting the situated meaning of behavioral changes. This finding has broader implications for temporal modeling tasks where context matters more than pure statistical patterns.</p><p>The success of Meta-Narrative representations connects to fundamental principles in cognitive linguistics about how humans construct meaning from complex information <ref type="bibr">(Lakoff and Johnson, 1980;</ref><ref type="bibr">Fillmore, 2006)</ref>. By synthesizing multidimensional behavioral data into coherent narratives that highlight relationships and contextual interpretations, we align the input format with how LLMs process and understand information during pre-training. This alignment principle extends beyond our specific task to other domains requiring contextual understanding of complex temporal data.</p><p>Most importantly, the dramatic impact of instruction tuning (+9.49% F1 in controlled comparison) highlights a critical but underappreciated factor in applying LLMs to specialized domains. Base language models, despite their sophisticated architectures, lack the alignment necessary for interpreting domain-specific contextual cues. This finding suggests that successful deployment of LLMs in sensitive applications requires careful consideration of instruction tuning strategies tailored to the specific interpretive demands of the domain.</p><p>The synergistic effects between representation and output formulation point to a broader design principle: maximizing the alignment between all components of the modeling pipeline and the LLM's inherent capabilities. This holistic approach to LLM adaptation may prove valuable for other complex reasoning tasks requiring contextual understanding.</p><p>These insights advance our understanding of how to effectively leverage pre-trained language models for complex temporal reasoning tasks, with immediate applications for improving behavioral prediction systems in critical domains like mental health and education.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6">Limitations and Future Work</head><p>While ConText-LE achieves significant advances in cross-distribution generalization for longitudinal experiential data, several important limitations point to valuable directions for future research.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6.1">Current Limitations</head><p>External LLM Dependency A critical limitation is the reliance on GPT-4o for Meta-Narrative generation, target creation, and prediction extraction. This dependency creates deployment challenges:</p><p>(1) external API costs and latency constraints, (2) potential quality variations across LLM versions, (3) limited control over representation consistency, and (4) barriers for privacy-sensitive or resourceconstrained environments.</p><p>Failure Mode Analysis Qualitative analysis reveals systematic failure patterns: (1) over-reliance on recent temporal patterns without broader contextual integration, (2) difficulty resolving conflicting behavioral signals (e.g., high stress but stable mood), (3) limited domain-specific knowledge affecting interpretation of context-dependent events (e.g., academic examination periods, clinical interventions).</p><p>Computational Requirements Despite using LoRA for efficient fine-tuning, the approach requires substantial computational resources for both training and inference. The multi-stage processing pipeline introduces latency that may limit real-time deployment scenarios, while GPU requirements may restrict accessibility for practitioners with limited resources.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Limited Mechanistic Understanding</head><p>The "black-box" nature of LLMs limits insight into causal mechanisms behind improved generalization. This constrains systematic improvement based on principled understanding rather than empirical exploration, and prevents clear identification of which narrative components most critically contribute to performance.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Domain and Scale Limitations</head><p>Evaluation focuses on mental health and education domains with moderate-scale datasets. Generalizability to other LE data contexts (e.g., physical health, workplace performance), larger datasets, or more severe distribution shifts (e.g., cross-cultural generalization) remains unverified.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6.2">Future Research Directions</head><p>Reducing External Dependencies Priority should be given to developing self-contained approaches that eliminate GPT-4o dependency. Promising directions include:</p><p>(1) training specialized distilled models for representation generation <ref type="bibr">(Hinton et al., 2015)</ref>, (2) end-to-end architectures incorporating representation learning directly into forecasting models through multi-task objectives <ref type="bibr">(Collobert and Weston, 2008)</ref>, (3) domain-specific pre-training strategies for LE data <ref type="bibr">(Gururangan et al., 2020)</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Interpretability and Mechanistic Understanding</head><p>Future work should incorporate systematic interpretability analyses to understand generalization mechanisms: (1) ablation studies varying narrative components systematically, (2) attention flow analyses tracking information propagation (Abnar and Zuidema, 2020), (3) probing studies identifying linguistic features correlating with performance (Hewitt and Manning, 2019), (4) development of more transparent models maintaining contextual benefits while offering interpretability.</p><p>Computational Efficiency Research should explore efficiency optimizations specifically for LE data: (1) knowledge distillation for model compression <ref type="bibr">(Hinton et al., 2015)</ref>, (2) adaptive architectures combining lightweight and powerful components, (3) quantization and pruning techniques <ref type="bibr">(Dettmers et al., 2022;</ref><ref type="bibr">Frankle and Carbin, 2019)</ref>, (4) specialized hardware-software co-design for behavioral forecasting workloads.</p><p>Broader Evaluation and Robustness Extending evaluation scope is crucial: (1) diverse LE data domains and larger datasets, (2) cross-cultural and cross-demographic generalization studies, (3) more severe distribution shifts and longer temporal gaps, (4) comprehensive comparisons with multimodal approaches and specialized time series architectures.</p><p>Ethical and Privacy Considerations Future development must integrate ethical considerations:</p><p>(1) privacy-preserving narrative representations minimizing identifiable information, (2) fairness analysis across demographic groups, (3) bias mitigation in cross-population generalization, (4) clear guidelines for appropriate use cases and consent frameworks, (5) interdisciplinary collaboration with domain experts and ethicists.</p><p>Narrative Quality and Consistency Systematic approaches to narrative optimization should be developed: (1) specialized metrics for narrative quality in behavioral contexts, (2) consistency checking mechanisms detecting spurious correlations, (3) fact verification techniques adapted for behavioral narratives <ref type="bibr">(Thorne et al., 2018)</ref>, (4) coherence modeling for temporal behavioral descriptions <ref type="bibr">(Iter et al., 2020)</ref>.</p><p>Despite these limitations, ConText-LE represents a significant step toward more generalizable LE data modeling by demonstrating the effectiveness of contextual narrative representations. The identified limitations offer concrete directions for advancing the field toward more reliable, efficient, and ethically sound behavioral forecasting systems.</p><p>Gao. 2021b. Listen2cough: Leveraging end-to-end deep learning cough detection model to enhance lung health assessment using passively sensed audio. Proc. ACM Interact. Mob. Wearable Ubiquitous Technol., 5(1). Xuhai Xu, Han Zhang, Yasaman Sefidgar, Yiyi Ren, Xin Liu, Woosuk Seo, Jennifer Brown, Kevin Kuehn, Mike Merrill, Paula Nurius, Shwetak Patel, Tim Althoff, Margaret E. Morris, Eve Riskin, Jennifer Mankoff, and Anind K. Dey. 2023b. Globem dataset: Multi-year datasets for longitudinal human behavior modeling generalization. Preprint, arXiv:2211.02733. Hao Xue and Flora D. Salim. 2023. PromptCast: A New Prompt-based Learning Paradigm for Time Series Forecasting. arXiv preprint. ArXiv:2210.08964 [cs, math, stat]. Sofia Yfantidou, Christina Karagianni, Stelios Efstathiou, and 1 others. 2022. Lifesnaps, a 4-month multi-modal dataset capturing unobtrusive snapshots of our lives in the wild. Scientific Data, 9(1):663. Siru Zhong, Weilin Ruan, Ming Jin, Huan Li, Qingsong Wen, and Yuxuan Liang. 2025. Time-vlm: Exploring multimodal vision-language models for augmented time series forecasting. Preprint, arXiv:2502.04395. Kaiyang Zhou, Ziwei Liu, Yu Qiao, Tao Xiang, and Chen Change Loy. 2022. Domain generalization: A survey. IEEE Transactions on Pattern Analysis and Machine Intelligence, page 1-20. Tian Zhou, PeiSong Niu, Xue Wang, Liang Sun, and Rong Jin. 2023. One fits all:power general time series analysis by pretrained lm. Preprint, arXiv:2302.11939.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A Appendix</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A.1 Detailed Problem Formulation</head><p>This section provides a more detailed and formal specification of the problem formulation for generalizable LE data forecasting within the ConText-LE framework, expanding upon Section 3. We consider LE data collected from a set of N individuals over a total observation period T , spanning K weeks. Data is recorded at a daily granularity, resulting in T total daily time steps, where</p><p>For each individual i &#8712; {1, . . . , N } and each daily time step j &#8712; {1, . . . , T total }, we have a feature vector x i,j &#8712; R D , where D is the total number of features. These features x i,j encompass diverse modalities and types (e.g., numerical sensor readings, categorical logs, free-text self-reports).</p><p>The forecasting task is framed using a sliding window approach with a window size of k weeks. For each individual i, we extract overlapping input sequences. An input sequence starting at week s (where s &#8712; {1, . . . , K -k}) corresponds to the raw data {x i,j } for all daily time steps j within the period spanning week s through week s+k-1. Let J s,s+k-1 denote the set of daily time step indices corresponding to weeks s through s + k -1. The raw data for an input sequence is thus {x i,j | j &#8712; J s,s+k-1 }.</p><p>This raw data sequence is transformed into a textual representation, denoted as X text-rep i,s...s+k-1 . This transformation is performed using one of the four strategies detailed in Section ??: Complete Sequence, Statistical Summary Encoding, Natural Language String Encoding, or Meta-Narrative. The specific format of X text-rep i,s...s+k-1 depends on the chosen strategy.</p><p>The target for the forecasting task is defined for the week immediately following the input window, i.e., week s + k. We investigate two output formulations:</p><p>1. Binary Label Target (y binary i,s+k ): A binary value indicating a specific state (e.g., depression: high/low; engagement: yes/no) for individual i at week s + k, i.e., y binary i,s+k &#8712; {0, 1}.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.">Prospective Narrative Target (y text</head><p>i,s+k ): A natural language sequence describing or aligned with the actual state of individual i at week s + k; used as the target for text generation.</p><p>The problem is to train an LLM to learn a mapping function f from the textual input representation X text-rep i,s...s+k-1 to either the binary label target y binary i,s+k (for the Binary Classification formulation) or the prospective narrative target y text i,s+k (for the Prospective Narrative Generation formulation):</p><p>(binary classification)</p><p>The primary objective is to learn an f that exhibits strong generalization performance when applied to data from a distinct period or cohort (T &#8242; ) not seen during training on data from source period T . Evaluation metrics (Accuracy, Precision, Recall, F1) are computed based on the binary forecast extracted from the model's output (either directly from the classification head or inferred from the generated narrative).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A.2 Examples of Textual Representations</head><p>This section provides illustrative examples of the four textual representation strategies discussed in Section 3. For demonstration purposes, we use a simplified hypothetical k-week input sequence involving a few representative features (e.g., Steps, Sleep Duration, Mood). Note that actual generated texts using GPT-4o may vary in phrasing but adhere to the defined format and content goals for each strategy.</p><p>Hypothetical k-week Raw Data Excerpt (Imagine raw data for 2 weeks, with daily values for Steps, Sleep, and Mood)</p><p>&#8226; Complete Sequence Example: Week 1 started with the user taking 500 steps on Day 1, followed by 1200 steps on Day 2. Sleep was 7 hours on Day 1 and 8.5 hours on Day 2. Mood was reported as 3 on both days. Day 3 data is missing for all features. Day 4 had 800 steps, 7.8 hours of sleep, and mood was 4... The second week began with 1500 steps on Day 8, sleep was 7.2 hours, and mood was 3, continuing through Day 14...</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>&#8226; Statistical Summary Encoding Example:</head><p>Statistical summary over the k-week period:</p><p>Steps: "avg": 1050, "std": 350, "min": 500, "max": 1500 steps. Sleep Duration: "avg": 7.5, "std": 0.6, "min": 6.0, "max": 8.5 hours.</p><p>Mood: "avg": 3.5, "std": 0.5, "min": 3, "max": 4 out of 5.</p><p>&#8226; Natural Language String Encoding Example: Steps: ["500", "1200", "300", "800", ..., "1500", ...]. Sleep Duration: <ref type="bibr">["7.0", "8.5", "400", "7.8", ..., "7.2", ...]</ref>. Mood: <ref type="bibr">["3", "3", "500", "4", ..., "3", ...]</ref>. (Note: Specific formatting like brackets, and commas, representation may vary slightly based on prompt design, but the core structure of listing values chronologically per feature is consistent.) &#8226; Meta-Narrative Example: Over the past k weeks, the user's activity levels showed moderate fluctuation with an overall increasing trend towards the end of the period. Sleep patterns remained relatively stable, averaging around 7.5 hours per night, though some variability was noted. Mood reports were generally consistent, hovering between 3 and 4, without significant sharp declines or improvements.</p><p>These examples illustrate the different ways each strategy encodes the same underlying LE data into a textual format for processing by the LLM. The Complete Sequence offers maximal detail, Statistical Summary provides aggregates, Natural Language String gives a structured temporal listing, and the Meta-Narrative provides a high-level interpretation.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A.3 Output Formulations for Forecasting</head><p>ConText-LE investigates two distinct ways to formulate the prediction target and task for the LLM, hypothesizing that a generative narrative output aligns better with LLMs' core capabilities for generalizable LE data modeling than traditional classification.</p><p>Binary Classification Formulation In this traditional formulation, the prediction target is a single binary label y binary i,s+k (e.g., 0 or 1, representing "low depression" or "high depression"). We adapt a pre-trained LLM by replacing its original language modeling head with a Sequence Classification head. The model is fine-tuned in a supervised manner, mapping the textual input representation (X text-rep i,s...s+k-1 ) directly to the binary target label (y binary i,s+k ). The loss function is cross-entropy, calculated between the predicted binary label distribution and the one-hot encoded true label. During inference, the fine-tuned LLM outputs a probability distribution over the two classes, and the class with the highest probability is taken as the final forecast.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Prospective Narrative Generation Formulation</head><p>In this formulation, inspired by cognitive processes of integrated forward-looking assessment <ref type="bibr">(Moulton and Kosslyn, 2009;</ref><ref type="bibr">Schacter et al., 2008)</ref>, the forecasting task is reframed as a language generation problem. The prediction target is a natural language text sequence, the prospective narrative y text i,s+k , which implicitly encodes the predicted future state for week s + k. The pre-trained LLM is fine-tuned using a causal language modeling objective to generate this target narrative based on the textual input representation (X text-rep i,s...s+k-1 ). This approach builds on recent findings in NLP that generative formulations can be more effective than discriminative ones for complex reasoning tasks <ref type="bibr">(Wei et al., 2023;</ref><ref type="bibr">Kojima et al., 2023;</ref><ref type="bibr">Wang et al., 2022a)</ref>. By allowing the model to generate a narrative prediction rather than forcing a binary decision, we enable it to articulate subtle contextual relationships and degrees of certainty that might be lost in classification. For LE data in particular, where interpretation depends heavily on contextual factors beyond statistical patterns, this generative approach may better leverage LLMs' pre-trained understanding of how features interact in complex human behaviors.</p><p>To obtain these training targets (y text i,s+k ), we leverage GPT-4o. For each k-week input sequence from the training data, paired with its ground truth actual state or outcome for the subsequent week (y actual i,s+k ), GPT-4o is prompted to generate a narrative reflection on the past k-week trajectory that aligns with or anticipates the known actual state for week s + k. This process is detailed in Appendix A.5. During inference, the fine-tuned LLM generates a prospective narrative based on the input.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A.4 Input Textualization Prompts</head><p>LLM Prompt for Summary This prompt guides the model to generate a concise, human-like behavioral interpretation that highlights key psychological trends-such as shifts in motivation, confidence, and future orientation-across a 4-week period. Rather than quoting student responses, it encourages abstraction and synthesis, allowing the model to infer meaningful behavioral patterns.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>System Prompt -Statistical Summary</head><p>You are an expert in behavioral analysis. Your task is to generate a concise, natural-sounding 3-4 line summary of a student's 4-week behavioral log. The log reflects the student's motivation, attitude, confidence, and future orientation. Identify high-level trends and patterns in their reflections without quoting directly. Focus on behaviorally meaningful changes or consistencies.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>LLM Prompt for Complete Sequence</head><p>This prompt presents the model with a detailed, temporally structured sequence of student reflections organized by week and day. It preserves the full chronology of responses, allowing the model to track behavioral progression over time and identify week-to-week shifts in motivation, engagement, or outlook based on the specific timing and context of student inputs.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>System Prompt -Complete Sequence</head><p>You are an expert in prompt engineering and behavioral analysis. You are given a student's 4-week chronological reflection log, structured by week and day (e.g., "Week 1:", "Monday:"), with entries for pre-lecture anticipation, postlecture reflection, confidence, and future orientation. Your task is to write a clear and effective system prompt that can be used to instruct a language model to analyze this type of structured input and identify behavioral trends over time.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>System Prompt Design for Natural Language</head><p>String This prompt was developed to reflect the flattened, theme-based organization of the input, where responses are grouped by behavioral dimensions such as confidence or motivation rather than by time. The instruction explicitly mentions that each segment is prefixed by a label indicating its thematic category. The prompt guides the model to interpret patterns across these categories without being constrained by temporal order, and to infer meaningful behavioral shifts or consistencies across the entire 4-week period based on thematic clustering rather than day-to-day variation.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>System Prompt -Natural Language String</head><p>You are an expert in prompt engineering and behavioral interpretation. You are provided with a theme-based summary of student reflections over four weeks. Each segment is labeled by behavioral category (e.g., confidence, motivation, peer comparison). Your task is to generate a system prompt that can instruct a language model to interpret this type of grouped input and produce a behavioral analysis based on observed trends across these categories.</p><p>LLM Prompt for Textual Meta-Narrative Generation For the Meta-Narrative approach specifically, we implement a two-stage prompting process inspired by recent advances in multi-step reasoning techniques <ref type="bibr">(Wei et al., 2023;</ref><ref type="bibr">Kojima et al., 2023)</ref>:</p><p>1. Feature Pattern Analysis: First, GPT-4o analyzes each feature's temporal trajectory separately, identifying significant patterns, trends, and anomalies. The prompt includes domain-specific context (e.g., university student behaviors, mental health indicators) to guide interpretation. This step leverages the LLM's ability to detect statistical patterns within individual features, similar to how contextualized language models learn to represent individual tokens within their local context <ref type="bibr">(Peters et al., 2018)</ref>.</p><p>2. Contextual Narrative Synthesis: Second, GPT-4o integrates these individual feature analyses into a coherent narrative that emphasizes interfeature relationships and contextual interpretations grounded in human behavior patterns. This step parallels how contextualized language models integrate token-level representations into coherent sentence-level semantics <ref type="bibr">(Devlin et al., 2019;</ref><ref type="bibr">Liu et al., 2024a)</ref>. This two-stage process transforms multidimensional time-series data into contextually rich narratives, effectively capturing cross-feature dependencies and temporal dynamics that might be lost in simpler representations. The Meta-Narrative approach is designed to leverage LLMs' pre-trained understanding of how events and behaviors relate to each other in meaningful ways, creating inputs that are semantically coherent and contextually grounded. The LLM prompt is give below.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>System Prompt -Meta-Narrative</head><p>You are an expert behavioral analyst tasked with evaluating a student's weekly behavioral reflections over a 4-week course. The data includes daily pre-and post-lecture thoughts, confidence levels, peer comparisons, and future-oriented reflections. Your objective is to analyze the evolution of the student's behavior and mindset across the 4 weeks. In your response:</p><p>&#8226; Identify and describe specific behavioral trends, such as shifts in confidence, motivation, or engagement.</p><p>&#8226; Reference specific weeks (e.g., "In Week 1. . . ", "By Week 3. . . ").</p><p>&#8226; Use precise language to describe changes, such as "X increased by Week 2", "Y decreased from Week 1 to Week 4", or "Z remained consistent until Week 3".</p><p>&#8226; Avoid vague terms like "overall" or "in general" to ensure analytical precision.</p><p>&#8226; Provide a concise, natural, and evidencebased analysis in 3-4 sentences.</p><p>&#8226; Exclude any personal or identifying information from the response.</p><p>A.5 LLM Prompt for Prospective Narrative Generation System Prompt -Prospective Narrative Generation You are an expert behavioral analyst. A student's weekly behavioral reflections over a 4week course are provided below, including daily pre-and post-lecture thoughts, confidence levels, peer comparisons, and future-oriented reflections: {input_text} The student's behavior is labeled as '{output_label}'. Write a clear, natural-language expert explanation -just a single 3-4 sentence paragraph explaining the behavioral trends that support the label. Be concise and insightful, as if communicating with another expert. Avoid vague terms like "overall" or "in general," and exclude any personal or identifying information. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A.7 Design Principles for Contextual Understanding</head><p>The ConText-LE framework's design is guided by three core principles from NLP research on contextual representation learning:</p><p>&#8226; Semantic Coherence: The Meta-Narrative representation transforms discrete time-series data into a coherent narrative with integrated semantic meaning. This approach draws on findings that LLMs perform better when information is presented in coherent, semantically rich formats <ref type="bibr">(Wang et al., 2022a;</ref><ref type="bibr">Shwartz et al., 2020)</ref>. By constructing a narrative that emphasizes relationships between features, we better leverage LLMs' pre-trained understanding of how elements gain meaning through their context.</p><p>&#8226; Generative Expression: The Prospective Narrative Generation formulation aligns with recent work showing that generative approaches often outperform discriminative ones for complex reasoning tasks <ref type="bibr">(Wei et al., 2023;</ref><ref type="bibr">Kojima et al., 2023)</ref>. By generating narratives rather than binary labels, the model can express nuanced predictions with implicit uncertainty and conditional reasoning that better captures the complexity of human behavioral forecasting.</p><p>&#8226; Hierarchical Processing: The two-stage process for Meta-Narrative generation applies the hierarchical processing principles from successful NLP architectures. Similar to how models like BERT <ref type="bibr">(Devlin et al., 2019</ref>) build higher-level representations from lower-level ones, our approach first analyzes individual features before synthesizing them into an integrated narrative, enabling better capture of both local patterns and global relationships.</p><p>These design principles are motivated by the observation that LLMs excel at tasks when the repre-sentation and processing align with how they were pre-trained to understand language. By structuring both input representations and output formulations to leverage LLMs' core capabilities in contextual understanding and narrative generation, we hypothesize improved cross-distribution robustness compared to approaches that treat LE data as simple statistical patterns.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A.8 Implementation Details</head><p>External LLM Usage (GPT-4o) ConText-LE leverages the advanced capabilities of <ref type="bibr">GPT-4o (OpenAI, 2024)</ref> for several crucial steps in the pipeline, particularly during data preparation for training and output processing for evaluation. These steps are performed via API calls using carefully designed prompts.</p><p>&#8226; Textual Representation Generation: GPT-4o transforms raw k-week LE data sequences into two textual representation strategies-Statistical Summary and Meta-Narrativeas described earlier. For the Meta-Narrative specifically, this involves a two-stage process: Feature Pattern Analysis followed by Contextual Narrative Synthesis, implemented through sequential prompting with context carried forward between steps.</p><p>&#8226; Target Prospective Narrative Generation: For the Prospective Narrative Generation formulation, GPT-4o generates the target narrative texts (y text i,s+k ) during training data preparation. The prompt includes the input sequence and ground truth outcome, instructing GPT-4o to generate a narrative that contextually aligns with that outcome.</p><p>&#8226; Forecast Extraction from Narratives: For evaluation of the Prospective Narrative Generation formulation, GPT-4o extracts binary forecasts from generated narratives. This enables quantitative comparison with ground truth labels and other methods. To ensure consistency, we use structured zero-shot prompting with explicit instructions to identify the implied prediction within the generated narrative.</p><p>The reliance on this external LLM for these processing steps represents a practical consideration in our current implementation and is discussed as a limitation in Section 6.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Fine-tuning Process</head><p>We employ parameterefficient fine-tuning (PEFT) using LoRA <ref type="bibr">(Hu et al., 2021)</ref> to adapt the LLM while keeping most of its parameters frozen. This approach reduces computational requirements while allowing the model to adapt to the specialized LE data domain. The fine-tuning process differs based on the output formulation in Binary Classification and Prospective Narrative Generation. Detailed fine-tuning hyperparameters for both formulations are provided in Appendix A.8.</p><p>Inference Process During inference on unseen k-week data sequences, the same input transformation pipeline is applied using the chosen textual representation strategy. The fine-tuned LLM then processes this textual input.</p><p>&#8226; Binary Classification: The LLM with the classification head directly outputs the predicted binary label (0 or 1).</p><p>&#8226; Prospective Narrative Generation: The LLM generates a sequence of tokens constituting the predictive prospective narrative. For this formulation, we use a temperature of 0.7 and top-p sampling with p=1.0 to balance deterministic prediction with narrative richness. We set a maximum generation length of 300 tokens and apply a frequency penalty of 0.5 to avoid redundant text.</p><p>For quantitative evaluation, the predictive narrative output from the Prospective Narrative Generation formulation requires an additional step to obtain a binary forecast comparable to ground truth. We use GPT-4o to extract a textual binary label from the predictive narrative, using a carefully designed prompt that focuses on identifying the implied forecast within the generated text. The prompt used for this extractive task is given in Appendix A.6.</p><p>LLM Fine-tuning Configuration For all experiments, we utilize Llama 3.1 8B Instruct <ref type="bibr">(Grattafiori et al., 2024)</ref> as the base LLM, selected for its strong performance on language understanding and generation tasks while remaining computationally efficient. We employ parameter-efficient fine-tuning (PEFT) using LoRA <ref type="bibr">(Hu et al., 2021)</ref> to adapt the LLM while keeping most of its parameters frozen. This approach reduces computational requirements while allowing the model to adapt to the specialized LE data domain. The fine-tuning process differs based on the output formulation:</p><p>&#8226; Binary Classification: The LLM is fine-tuned with a Sequence Classification head added on top of its last hidden state. LoRA is applied to the query, key, and value projection matrices in each transformer layer, with a rank of 8. The model learns to map the input sequence to the binary label.</p><p>-Parameter-efficient fine-tuning: LoRA <ref type="bibr">(Hu et al., 2021)</ref>  &#8226; Prospective Narrative Generation: The LLM is fine-tuned using a causal language modeling objective. LoRA is applied to the same projection matrices but with a rank of 16 to accommodate the more complex generation task. The model learns to generate the output narrative token by token.</p><p>&#8226; Parameter-efficient fine-tuning: LoRA <ref type="bibr">(Hu et al., 2021)</ref> with:</p><p>-Rank: 32 -Alpha: 16 -Target modules: All attention modules in the language model</p><p>&#8226; Training objective: Causal language modeling with teacher forcing</p><p>&#8226; Optimizer: paged-AdamW-8bit</p><p>&#8226; Learning rate: 1e-5 with cosine decay schedule</p><p>&#8226; Warmup-ration: 0.1</p><p>&#8226; Batch size: 8</p><p>&#8226; Training epochs: 20</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>&#8226; Mixed precision: bfloat16</head><p>Training Hardware Training was conducted on 8 &#215; NVIDIA A40 GPUs (48GB each) with distributed data parallelism.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A.9 Datasets</head><p>We utilize the following LE datasets, selected for their relevance to health and behavioral forecasting and their suitability for evaluating challenging generalization across different cohorts and time periods:</p><p>&#8226; GLOBEM <ref type="bibr">(Xu et al., 2023a)</ref>: This is a widely used benchmark for longitudinal human behavior modeling and generalization. It comprises data collected from 497 unique participants across two institutions over four years (Year 1 &amp; 2 from Institution A, Year 3 &amp; 4 from Institution B), resulting in 661 person-years of data after initial preprocessing steps. Institutions A (pre-COVID) and B (post-COVID) represent distinct cohorts and time periods, with surveys including PHQ-4, BDI-II, and PANAS for depression assessment. We utilize a subset of 15 features based on prior work <ref type="bibr">(Xu et al., 2023a;</ref><ref type="bibr">Thach et al., 2025;</ref><ref type="bibr">Kim et al., 2024)</ref>, derived from mobile sensing data sources, including Location (variance, entropy, travel distance, duration of stay), Phone Usage (unlock counts, stats), Bluetooth (scan counts, unique devices), Call (duration stats, missed call count), Physical Activity (steps, active/sedentary duration), and Sleep (duration, episode stats). For the main evaluation, we use data from Years 1 &amp; 2 from Institution A (344 person-years) for training and data from Years 3 &amp; 4 from Institution B (317 person-years) for cross-cohort and crosstemporal generalization testing. Each personyear of data represents a 10-week observation period from which 6 sequences are generated using a 4-week sliding window predicting the subsequent week. This results in a training set of approximately 2226 sequences and a test set of approximately 2023 sequences. The task is binary mental health prediction based on a threshold applied to survey scores, resulting in a nearly balanced distribution.</p><p>&#8226; LifeSnaps <ref type="bibr">(Yfantidou et al., 2022)</ref>: This is a multi-dimensional LE dataset initially collected from 71 participants over 4 months, capturing unobtrusive snapshots of real-world human behavior in the wild. Data sources include Fitbit sensing data (e.g., activity, sleep, stress, heart rate), EMAs (e.g., mood, context), and validated surveys (e.g., psychological traits). The dataset includes over 35 distinct data types. For this work, we use a subset of relevant features from these modalities to predict a binary anxiety level in the week subsequent to a k=1 week observation window. After initial preprocessing steps, including filtering participants with significant missing values, a subset of participants was used for the evaluation splits. The specific cross-distribution split for evaluation involves training on data from 26 participants collected during the first 2 months of the study period and testing on data from 13 disjoint participants collected during the last 2 months, assessing cross-temporal and cross-participant generalization within the study cohort. Using a k=1 week window over these approximately 8-week periods yields a training set of approximately 112 sequences and a test set of approximately 64 sequences. This dataset serves to further validate cross-study generalization within the mental health domain using a different dataset structure, population, and data collection protocol.</p><p>&#8226; MFAFY <ref type="bibr">(Hayat et al., 2024a,b;</ref><ref type="bibr">Thach et al., 2025)</ref>: The Messages From A Future You (MFAFY) dataset captures aspects of first-year college students' academic journey over three consecutive semesters spanning two academic years (Year 1: Semesters 1 &amp; 2; Year 2: Semester 3). It is a high-dimensional dataset comprising non-cognitive (28 dimensions, qualitative, e.g., motivation, engagement), cognitive (41 dimensions, quantitative, e.g., assessment scores), and background factors (9 dimensions, static qualitative, e.g., academic meta-information). For forecasting student behavioral engagement, we predict a student's lecture-related engagement status (binary: high-/low) in the subsequent week, using a k=4 week observation window. Input features use only relevant non-cognitive dimensions. The binary target is derived by comparing the average of relevant non-cognitive features during weeks s through s + k -1 with their average during week s + k. This task results in a nearly balanced binary distribution. For evaluation, the cross-year generalization split consists of a training set using data from 61 subjects in Year 1 (Semesters 1 &amp; 2) and a test set using data from 35 subjects in Year 2 (Semester 3). Each subject-year/semester of data represents a 15-week observation period from which 10 sequences are generated using a 4-week sliding window predicting the subsequent week. This results in a training set of approximately 610 sequences and a test set of approximately 350 sequences.</p><p>For all datasets, train/test splits are carefully created to ensure strict separation of data from different cohorts or time periods for generalization evaluation, with 15% of the data from the training period (T ) reserved as an in-distribution test set and 100% of the data from the distinct period (T &#8242; ) used as the OOD test set.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A.10 Related Work</head><p>Our work intersects several key areas of research in machine learning, natural language processing, and human-computer interaction. This section reviews relevant literature in modeling LE data, generalization techniques, and the application of LLMs to sequential and structured data, including humancentric applications.</p><p>Modeling LE Data Modeling complex, multimodal LE data is a critical area for diagnostic and prognostic applications in diverse domains, including behavioral and physical health <ref type="bibr">(Nemati et al., 2022;</ref><ref type="bibr">Rabbi et al., 2019;</ref><ref type="bibr">Bae et al., 2017;</ref><ref type="bibr">Xu et al., 2021b)</ref>, mental health <ref type="bibr">(Wang et al., 2018;</ref><ref type="bibr">Xu et al., 2021a</ref><ref type="bibr">Xu et al., , 2019;;</ref><ref type="bibr">Chikersal et al., 2021;</ref><ref type="bibr">Wahle et al., 2016;</ref><ref type="bibr">Farhan et al., 2016;</ref><ref type="bibr">Canzian and Musolesi, 2015;</ref><ref type="bibr">Wang et al., 2022b;</ref><ref type="bibr">Xu et al., 2023a)</ref>, and education <ref type="bibr">(Wang et al., 2016;</ref><ref type="bibr">Li et al., 2020)</ref>. Traditional machine learning and deep learning approaches applied to this data, such as time series models or methods based on hand-engineered features, exhibit critical limitations. They often prioritize performance on in-distribution data and struggle significantly with generalizability across datasets exhibiting domain shifts, a challenge notably highlighted by the GLOBEM benchmark <ref type="bibr">(Xu et al., 2023b)</ref>. Furthermore, they often lack adequate exploration of missing data impact <ref type="bibr">(Xu et al., 2021a;</ref><ref type="bibr">Arnold and Pistilli, 2012)</ref> and may not fully capture the complex co-occurrence and relational structure across multi-dimensional LE features <ref type="bibr">(Xu et al., 2019)</ref>. Training deep neural models on typically limited LE datasets also presents significant challenges <ref type="bibr">(Xu et al., 2023a)</ref>.</p><p>More recently, the potential of LLMs has been explored specifically for LE data forecasting and prediction. <ref type="bibr">Kim et al. (Kim et al., 2024)</ref> investigate the capacity of LLMs, using prompting and fine-tuning techniques on multiple health datasets including GLOBEM, to make inferences for various health prediction tasks from wearable sensor data combined with contextual information. While demonstrating promising in-distribution performance and the benefits of context enhancement, their work primarily focuses on within-dataset evaluation and does not extensively study generalizability across datasets or time periods. In parallel, Hayat et al. <ref type="bibr">(Hayat et al., 2024a,b)</ref> explore LLM-based LE data forecasting using the MFAFY dataset and diverse LLM architectures. However, consistent with Kim et al., their evaluation focuses on within-dataset performance rather than extensive study of cross-dataset or cross-temporal generalizability. <ref type="bibr">Similarly, Thach et al. (Thach et al., 2025)</ref> propose MuHBoost, a multi-label boosting method leveraging LLMs in a zero-shot fashion for predicting multiple health and well-being outcomes using ubiquitous health data, including datasets like GLOBEM and MFAFY. Their work addresses aspects like feature types and missing data, but their evaluation does not specifically investigate the generalizability of the zero-shot LLM approach across different datasets or time periods with domain shifts. While these recent LLM-based studies show the growing interest in applying foundation models to LE data, they expose a critical unmet need for methods specifically designed and evaluated for robust cross-dataset generalizability under domain shifts, which is a central focus of our ConText-LE framework.</p><p>Generalization in Machine Learning Domain adaptation (Pan and Yang, 2010) and domain generalization <ref type="bibr">(Zhou et al., 2022)</ref> are key areas in machine learning aiming to improve model performance on target distributions different from the training distribution. While techniques like invariant representation learning, meta-learning, and data augmentation have been explored, their success in complex longitudinal human behavioral data, characterized by multifaceted and often subtle shifts across cohorts and contexts, has been limited <ref type="bibr">(Xu et al., 2023a)</ref>. In NLP, approaches to improve cross-domain generalization include continued pretraining on domain-specific data <ref type="bibr">(Gururangan et al., 2020)</ref>, domain-adaptive fine-tuning <ref type="bibr">(Howard and Ruder, 2018)</ref>, and prompt-based adaptation <ref type="bibr">(Lu et al., 2022)</ref>. Our work builds on these insights but focuses specifically on the unique challenges of generalizing across LE data distributions using LLMs as the foundation.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Contextual Representation Learning in NLP</head><p>The evolution of contextual representation learning in NLP provides important foundations for our work. Early word embedding approaches like word2vec <ref type="bibr">(Mikolov et al., 2013)</ref> offered static representations of words, while later models like ELMo <ref type="bibr">(Peters et al., 2018)</ref> and BERT <ref type="bibr">(Devlin et al., 2019)</ref> revolutionized NLP by introducing dynamic, contextualized representations that capture how a word's meaning changes based on its surrounding context. Recent research has explored how these contextual representation capabilities extend to more complex semantic structures, including frame semantics <ref type="bibr">(Baker et al., 1998)</ref> and narrative comprehension <ref type="bibr">(Sap et al., 2019;</ref><ref type="bibr">Liu et al., 2024a)</ref>. Our ConText-LE framework leverages these advances by treating multi-dimensional LE data as a complex semantic structure requiring contextual interpretation. The Meta-Narrative approach specifically draws inspiration from how contextualized models integrate local features into a coherent global representation, addressing the need for both local feature analysis and global contextual synthesis when interpreting complex human behavior patterns.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Prompting Strategies and Reasoning in LLMs</head><p>Recent advances in prompting strategies have significantly enhanced LLMs' reasoning capabilities. Chain-of-thought prompting <ref type="bibr">(Wei et al., 2023)</ref> and similar approaches that break down complex reasoning into intermediate steps have shown remarkable improvements on tasks requiring multi-step inference. Zero-shot reasoning techniques <ref type="bibr">(Kojima et al., 2023)</ref> further demonstrate that wellstructured prompts can elicit sophisticated reasoning abilities from LLMs without task-specific examples. Our two-stage prompting approach for generating Meta-Narratives builds on these insights, structuring the analysis process into sequential steps of feature analysis followed by contextual synthesis. This approach parallels how humans process complex data-first analyzing individual components before integrating them into a cohesive interpretation-and leverages LLMs' pretrained understanding of how elements gain meaning through their relationships with other elements.</p><p>The Prospective Narrative Generation formulation similarly builds on findings that generative formulations often allow LLMs to express complex reasoning more effectively than discriminative ones <ref type="bibr">(Wei et al., 2023;</ref><ref type="bibr">Kojima et al., 2023)</ref>.</p><p>Large Language Models for Sequential and Structured Data LLMs have shown remarkable capabilities not only in natural language processing but also in processing and reasoning about other data modalities when appropriately structured. Approaches for general time series forecasting using LLMs often involve adapting time series data into a format suitable for LLM inputs, such as serialization into sequences of tokens or explicit textual descriptions, followed by fine-tuning or prompting <ref type="bibr">(Sun et al., 2023;</ref><ref type="bibr">Jin et al., 2023;</ref><ref type="bibr">Chang et al., 2023;</ref><ref type="bibr">Gruver et al., 2023;</ref><ref type="bibr">Zhou et al., 2023;</ref><ref type="bibr">Cao et al., 2023;</ref><ref type="bibr">Xue and Salim, 2023;</ref><ref type="bibr">Liu et al., 2023)</ref>. These methods demonstrate LLMs' potential to capture temporal dependencies and patterns, although challenges remain, particularly with handling the multidimensional nature of data and processing long sequences <ref type="bibr">(Liu et al., 2024a)</ref>.</p><p>In parallel, LLMs have been applied to humancentric data, leveraging pre-trained knowledge for tasks like health prediction based on textual health records or summarized sensor data <ref type="bibr">(Kim et al., 2024)</ref>. Most approaches focus on simple encoding strategies like direct verbalization or statistical summarization, while our work explores more sophisticated narrative-based representations. The narrative format aligns with recent findings showing that LLMs perform better when information is presented in coherent, semantically rich formats that leverage their pre-trained understanding of contextual relationships <ref type="bibr">(Wang et al., 2022a;</ref><ref type="bibr">Shwartz et al., 2020)</ref>. Our ConText-LE framework extends this line of research by developing a specific, structured textual encoding strategy to represent complex, multi-dimensional LE data as a coherent narrative, allowing us to leverage the powerful contextual understanding capabilities of LLMs while preserving the rich semantic relationships between features that might be lost in simpler encoding approaches.</p><p>Multimodal Learning for Human Data Multimodal learning, which combines information from different data types or modalities, is increasingly explored for understanding complex human behavior. While some recent work explores multimodal representations for time series or human data by converting them into visual formats and leveraging vision-language models (VLMs) <ref type="bibr">(Zhong et al., 2025)</ref>, our ConText-LE framework explores an alternative multimodal perspective. By translating multi-dimensional LE data into a textual modality, ConText-LE creates a novel cross-modal learning problem where structured behavioral data in one modality is represented and processed using models designed for another (language). This approach aligns with recent work on cross-modal transfer learning <ref type="bibr">(Artetxe et al., 2020)</ref> and allows us to investigate the benefits of leveraging the rich semantic space and generalizable patterns learned by LLMs on massive text corpora, applied to the distinct domain of human behavioral sequences.</p><p>In summary, while existing work has explored modeling LE data and applying LLMs to time series and human data, achieving robust crossdataset generalization remains a significant challenge, particularly for complex LE data with its inherent multi-dimensionality and domain shifts. Our ConText-LE framework addresses this gap by proposing a novel approach that leverages the contextual representation capabilities of LLMs through a semantically rich narrative representation of multi-dimensional LE sequences, explicitly focusing on improving generalizability across different data distributions.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A.11 Bidirectional Generalization Results</head><p>In the main paper, we presented results for the T &#8594; T &#8242; generalization direction, where models were trained on data from the source period (T ) and evaluated on data from the target period (T &#8242; ). In this appendix, we present the complete results for the reverse direction (T &#8242; &#8594; T ), where models are trained on data from the target period (T &#8242; ) and evaluated on data from the source period (T ).</p><p>This bidirectional evaluation is crucial for understanding the robustness and symmetry of generalization capabilities. If a method performs well in both directions, it suggests that the approach captures fundamental patterns that are consistent across different contexts, rather than simply exploiting biases specific to a particular generalization direction.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>GLOBEM T &#8242; &#8594; T Results</head><p>Table 5 presents the T &#8242; &#8594; T generalization results for the GLOBEM mental health forecasting task (Year 3&amp;4 &#8594; Year 1&amp;2). For GLOBEM, the T &#8242; &#8594; T results exhibit con-sistent superiority of the Meta-Narrative approach across both output formulations. With Binary Classification, Meta-Narrative achieves the highest OOD performance (55.08% accuracy, 50.30% F1), though the margin over other approaches is relatively modest (1.80-2.25% accuracy improvement). Notably, while Meta-Narrative maintains the best overall performance, the precision scores are more competitive across input strategies, with Natural Language String achieving 51.35% precision versus Meta-Narrative's 51.32%. With Prospective Narrative Generation, the advantages become more pronounced. Meta-Narrative achieves 68.75% OOD accuracy and 66.43% F1, representing a substantial 13.67% absolute accuracy improvement over the same approach with Binary Classification. Natural Language String Encoding shows particularly strong performance in this setting (66.12% accuracy, 66.23% F1), demonstrating that narrative formulations can enhance even simpler representations. The consistent superiority of Prospective Narrative Generation across all input strategies confirms that generative formulations better leverage LLMs' contextual understanding capabilities. LifeSnaps T &#8242; &#8594; T Results Table 6 presents the T &#8242; &#8594; T generalization results for the LifeSnaps anxiety forecasting task (Last 2 Months &#8594; First 2 Months). The LifeSnaps T &#8242; &#8594; T results indicate striking patterns that emphasize the importance of appropriate representation strategies. With Binary Classification, Statistical Summary encoding experiences catastrophic failure on in-distribution data (28.57% F1), highlighting its inability to capture meaningful patterns in the LifeSnaps dataset's specific structure. In contrast, Meta-Narrative achieves robust performance (70.00% ID accuracy, 56.36% OOD accuracy), maintaining the smallest ID-OOD performance gap among all approaches.</p><p>Prospective Narrative Generation dramatically transforms the performance landscape. Meta-Narrative achieves exceptional results with perfect balanced performance on ID data (80.00% across all metrics) and strong OOD generalization (71.43% accuracy, 69.23% F1). The 15.07% absolute improvement in OOD accuracy over Binary Classification represents the largest single improvement observed across all datasets and directions. Natural Language String Encoding also benefits substantially from narrative generation, improving from 52.68% to 68.75% OOD accuracy, demonstrating the broader applicability of generative formulations beyond the Meta-Narrative approach.</p><p>MFAFY T &#8242; &#8594; T Results Table <ref type="table">7</ref> presents the T &#8242; &#8594; T generalization results for the MFAFY educational engagement forecasting task (Year 2 &#8594; Year 1). The MFAFY T &#8242; &#8594; T results exhibit interesting asymmetries compared to the forward direction. With Binary Classification, Meta-Narrative achieves the strongest OOD performance (68.20% accuracy, 65.60% F1), notably outperforming the forward direction results (60.86% accuracy, 64.96% F1). This 7.34% accuracy improvement suggests that models trained on the more constrained Year 2 data (one semester) may learn more transferable patterns than those trained on the longer Year 1 period (two semesters).</p><p>With Prospective Narrative Generation, Meta-Narrative maintains its leadership (70.49% accuracy, 64.00% F1), though Natural Language String Encoding shows competitive performance (68.85% accuracy, 68.33% F1). A notable observation is that the F1 scores remain remarkably consistent across directions for Meta-Narrative (64.14% vs. 64.00%), indicating stable precision-recall balance despite different training contexts. The consistent strong performance across both directions reinforces that Meta-Narrative representations capture domain-invariant educational engagement patterns.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Discussion of Bidirectional Generalization</head><p>The bidirectional generalization results provide compelling evidence for the robustness of the ConText-LE framework. Our analysis underscores several key insights:</p><p>Consistent Meta-Narrative Superiority: Across all datasets and directions, Meta-Narrative input consistently achieves the highest OOD performance, with improvements ranging from 1.80% (GLOBEM Binary) to 15.07% (LifeSnaps Narrative) in absolute accuracy. The approach demonstrates particular strength in challenging scenarios where other methods fail completely (e.g., Statistical Summary on LifeSnaps).</p><p>Asymmetric Generalization Patterns: While generalization improvements from narrative ap- proaches are consistent, the magnitude varies significantly by dataset and direction. MFAFY shows better performance in the T &#8242; &#8594; T direction, potentially due to the temporal structure differences between one-semester and two-semester periods. This asymmetry suggests that training data characteristics significantly influence cross-temporal generalization capabilities.</p><p>Robust Narrative Generation Benefits: Prospective Narrative Generation consistently outperforms Binary Classification across all datasets and directions, with improvements ranging from 13.67% (GLOBEM) to 15.07% (LifeSnaps). This systematic advantage validates our hypothesis that generative formulations better align with LLMs' inherent capabilities for contextual understanding and reasoning.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Context-Dependent Strategy Effectiveness:</head><p>The relative performance of different input strategies varies significantly by dataset context. For instance, Natural Language String Encoding performs competitively with narrative generation on MFAFY (qualitative data) but struggles on LifeSnaps (mixed modal data), suggesting that optimal representation strategies may depend on the underlying data characteristics.</p><p>The remarkable consistency of these patterns across bidirectional evaluations suggests that ConText-LE improvements stem from capturing fundamental data relationships rather than exploiting direction-specific biases. This bidirectional robustness is crucial for practical deployment, where models must perform reliably across diverse temporal contexts and application scenarios.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A.12 Pairwise T-Test Analysis of</head><p>Meta-Narrative Performance To rigorously evaluate the performance of the Meta-Narrative representation against baseline input representations, we conducted pairwise t-tests comparing Meta-Narrative to Complete Sequence, Statistical Summary, and Natural Language String across the GLOBEM, LifeSnaps, and MFAFY datasets. The null hypothesis posits that ConText-LE with Meta-Narrative does not significantly outperform these baselines.</p><p>We performed paired t-tests on per-instance binary correctness (1 for correct, 0 for incorrect) using the full test sets for each dataset (sample sizes: GLOBEM ID=334, OOD=2023; LifeSnaps ID=17, OOD=64; MFAFY ID=92, OOD=350). The variance is computed over the differences in binary correctness values, forming the basis for the t-statistic and reported significance levels.</p><p>Table <ref type="table">8</ref> presents the results, with significance indicated by * (p &lt; 0.05) and ** (p &lt; 0.001). Nonsignificant results (p &#8805; 0.05) are indicated by "-". Note that these represent uncorrected p-values across multiple comparisons. </p></div></body>
		</text>
</TEI>
