RetailAgent: Structured Adverse Timing in Self-Conditioned Multimodal LLM Trading Agents
Analyze & explore related research in Conceptio
Connect this record directly into your research workflow or AI agent. Explore citations across open repositories, query full text, and export structured proof bundles.
RetailAgent: Structured Adverse Timing in Self-Conditioned Multimodal LLM Trading Agents
Yupeng Zhang1∗
arXiv:2608.28399v1 [cs.AI] 28 Aug 2026
1
Liuyuan Jiang2∗
Hongyi Huang1
Bingheng Li3
Lisha Chen2†
University of Wisconsin–Madison 2 University of Rochester 3 Michigan State University yupeng.zhang@wisc.edu ljiang24@ur.rochester.edu hhuang377@wisc.edu libinghe@msu.edu lisha.chen@rochester.edu ∗
Abstract In financial markets, a sequential policy that reacts systematically to price movements may become predictable to other market participants. This paper studies whether large language model (LLM) agents exhibit such directional structure through RetailAgent, an experimental framework in which an LLM observes anonymized intraday equity price histories and permitted state, then repeatedly chooses long (hold the stock) or flat (stay out) before the subsequent interval return is revealed. We compare returns during long and flat intervals along the same stock’s intraday path after removing the overall fraction of long decisions. This exposure-matched measure reveals persistent negative timing across modality, horizon, state, and model family. Shuffling saved action sequences substantially attenuates the effect, showing that alignment between actions and subsequent returns drives the negative score. Feeding self-authored memories into decisions further increases policy persistence, while timing becomes more negative among stockdays on which the agent uses both actions. These results reveal stable, recoverable directional structure in sequential LLM financial decisions and a behavioral signal for studying how another participant could respond to a predictable policy.
1
Introduction
Financial-market theory shows that prices can aggregate dispersed information and that order flow, the sequence of submitted trades, can reveal information to other market participants [Grossman and Stiglitz, 1980, Kyle, 1985]. A policy that responds systematically to salient price movements can therefore be anticipated even when each action sounds plausible in isolation. Evidence connects individual trading to attention, past returns, market displays, feedback, overconfidence, and costly turnover [Barber and Odean, 2000, 2008, 2013, Benamar, 2019, Statman et al., 2006, Ben-David et al., 2018]. Stocks favored by small traders have also displayed subsequent underperformance in historical samples [Hvidkjaer, 2008]. The top panel of Figure 1 illustrates how systematic price-conditioned reactions create behavior that other Figure 1: Top: price-conditioned behavior may invite a counter-response market participants can anticipate. in an interactive market. Bottom: ReLarge language odel (LLM) agents offer a controlled setting tailAgent isolates one such decision for studying such behavior because they make sequential policy, chooses a binary action from permitted state, and is evaluated on ∗∗ Equal contribution. † Corresponding author. subsequently revealed returns. Preprint.
decisions conditioned on prior actions, stored memories, and self-generated interpretations [Park et al., 2023, Liu et al., 2024]. The bottom panel of Figure 1 isolates one such policy. An aggregate task score can combine irregular mistakes with a repeated tendency to choose the wrong side of subsequent returns. We isolate that repeated tendency under a fixed information boundary. The agent receives permitted price history and endogenous state generated by earlier decisions. The principal numerical protocol conceals stock identity, calendar date, absolute price, news, fundamentals, cross-sectional ranks, and future outcomes. The appendix records the separate input provenance of visual and learned conditions. This design evaluates the long/flat policy on a controlled market path [Aher et al., 2023, Argyle et al., 2023, Hu et al., 2026b]. Building on this controlled setup, we make the following contributions, summarized as C1–C3. C1) RetailAgent framework. We propose RetailAgent, a controlled multimodal framework for tracing sequential LLM decisions and self-authored memory under that boundary (Section 2). As illustrated in the bottom panel of Figure 1 and detailed in Figure 2, the agent receives an anonymized rolling intraday price history and permitted endogenous state through multimodal pathways, then chooses long or flat. At each interval, the framework records the observation, endogenous state, action, any self-authored memory, and subsequently revealed return. RetailAgent therefore provides a controlled behavioral proxy with a limited price-only interface. We ask whether sequential LLM decisions exhibit stable directional structure. The experiments identify a persistent wrong-signed component: C2) Verified structured adverse timing. We establish consistently negative within-stock timing across 14 standard configurations and use trajectory shuffling, the complementary schedule, and signal-overlap tests to make this directional structure explicit (Section 3). Across all 14 standard configurations spanning modality, decision horizon, account state, and model family under a shared protocol, within-stock timing is negative, indicating systematically wrongsigned entry and exit relative to each stock’s own path (Section 3.2.1). In the principal 10-minute Qwen3.5 experiments [Qwen Team, 2026], numerical-text, chart-only, and joint text+chart inputs score −45.7 bps per stock-day on 13,710 stock-days, −29.9 on 14,937, and −48.9 on 14,438. These panels use different sampling frames. The repeated negative sign is the robust claim, and magnitude comparisons use matched panels. Trajectory shuffling substantially attenuates the effect. Randomly permuting actions while preserving the overall long fraction yields −3.5 bps under global shuffling and −8.7 under same-day shuffling, compared with −45.7 for the intact schedule. Sequential alignment between actions and subsequent returns therefore accounts for most of the intact estimate. The complementary schedule, formed by exchanging long and flat actions, reverses the timing sign by construction and serves as a sign diagnostic. Under research-return labels, the trajectory carries recoverable directional structure. Section 3.2.2 shows that projections onto the tested GRU, GBDT, and reversal signals leave substantial residual structure in the inverted schedule. C3) Self-conditioning amplifies persistence and adverse timing. We show that exposing one earlier self-authored memory reduces action switching and makes within-stock timing more negative among stock-days that contain both actions (Section 3.2.3). Along the dashed route in Figure 2, the agent writes a memory for its future self and includes that language in the next decision context. The memory window w counts how many earlier self-authored memories are visible at decision time. Among scored stock-days with both actions, moving from w = 0 (current memory only) to w = 1 (one prior memory also visible) shifts timing from −62.8 to −74.1 bps and position changes from 2.5 to 1.7 per stock-day. Across all attempted stock-days, the corresponding action traces also show greater persistence under w = 1. Continuous embedding state provides a complementary comparison by conditioning the frozen model through price-derived soft tokens. Section 3.3 characterizes the resulting directional structure through the complementary schedule and the timing left after removing fitted linear price-signal components. 1.1
Related work
Financial LLM research spans domain models, benchmarks, and methods for business reasoning, financial mathematics, market-movement prediction, expert search, and verbal price-series analysis [Wu et al., 2023, Liu et al., 2023, Krumdick et al., 2024, Xie et al., 2024, Zhao et al., 2024, 2
Figure 2: RetailAgent architecture. The locally cached Qwen/Qwen3.5-9B processor handles price text, account state, and charts through its text and vision pathways [Qwen Team, 2026, Bai et al., 2025]. The dashed route carries self-authored memory into later decisions. The learned branch maps seven price features through a VICReg-pretrained GRU encoder [Bardes et al., 2021, Cho et al., 2014] and low-rank adapter into two continuous embeddings [Li and Liang, 2021, Lester et al., 2021] on a 92-word basis. The frozen LLM chooses long or flat before the return is revealed. Saqur et al., 2025, Hu et al., 2026a, Koa et al., 2026]. Trading agents add memory, reflection, and specialized roles across sequential decisions [Yu et al., 2025, 2024, Xiao et al., 2024]. Related work also studies LLMs as experimental agents and conditions frozen models with learned prompts [Park et al., 2023, Liu et al., 2024, Aher et al., 2023, Argyle et al., 2023, Hu et al., 2026b, Li and Liang, 2021, Lester et al., 2021]. RetailAgent complements these lines by auditing a fixed-path long/flat action trace, varying visible self-authored memory within the same policy, and comparing linguistic conditioning with price-derived soft tokens. Exposure-matched within-stock timing and persistence reveal predictable directional structure beyond aggregate task and portfolio outcomes.
2
Methodology
This section defines the timing metrics and how RetailAgent constructs sequential decisions under a fixed information boundary. Section 2.1 introduces the preliminary knowledge and settings, and Sections 2.2–2.3 describe the decision loop and conditioning channels. 2.1
Setting and metrics
RetailAgent operates on anonymized equity price paths over an intraday session. The experimental unit is a stock-day pair (i, d), where i indexes the anonymized stock and d the trading date. Each scored intraday grid contains T sequential decision intervals, indexed by t ∈ {1, . . . , T }. At the start of interval t, the agent observes condition-specific price history and chooses a binary action pidt ∈ {0, 1}, where 1 denotes long (hold over the next interval) and 0 denotes flat (stay out). The immediately following interval has research-return label ridt , which is the relative price change over that interval. The principal numerical protocol reveals this label after the action and conceals stock identity, calendar date, absolute price level, news, fundamentals, and cross-sectional ranks. One basis point (bp) equals 0.01%. Exposure p̄id is the fraction of intervals on the stock-day in which the agent is long. For a stock-day with T decision intervals and return vector rid = (rid1 , . . . , ridT ), timing alpha is the exposure-matched within-stock timing Aid (p, r) =
X
(pidt − p̄id ) ridt ,
t
p̄id = T −1
X t
3
pidt .
(1)
After removing average exposure, Aid measures whether the agent is long during relatively favorable intervals on the same stock-day. The same definition implies the decomposition X X pidt ridt = p̄id ridt + Aid (p, r), (2) t
t
so long-only cumulative return on the stock-day equals passive exposure to the return path plus the centered timing term. Thus, positive task-level return can coexist with systematically adverse timing. Primary metric. We report the mean of Aid in bps per stock-day. Sign. Positive values indicate directionally aligned timing, values near zero indicate noise-like timing, and negative values indicate wrong-signed timing. A policy that is always long scores zero by construction. Sign diagnostic. The complementary schedule qidt = 1 − pidt satisfies Aid (q, r) = −Aid (p, r) by definition. Example. On a saved trajectory with one earlier self-authored memory visible (w = 1), longinterval return of +359.4 bps coexists with timing alpha of −867.3 bps, while flat intervals return +1,404.0 bps. The agent remained flat through much of a strong rise and entered before comparatively weaker intervals. This trace shows how a positive long-only outcome can accompany adverse withinstock timing. The cross-sectional information coefficient (IC) measures contemporaneous stock selection by correlating positions and subsequent returns across the set Sdt of stocks available to a condition at the same decision time, ICdt = Corri∈Sdt (pidt , ridt ). (3) Timing measures when a stock is held, while Equation 3 measures which stocks are preferred. Brokerage evidence on retail attention, overconfidence, turnover, and cross-sectional return patterns [Barber and Odean, 2000, 2008, Statman et al., 2006, Ben-David et al., 2018, Benamar, 2019, Hvidkjaer, 2008] motivates evaluating both margins under a sparse price-and-state interface. RetailAgent provides a controlled policy proxy, with retail-population behavior as a separate empirical target. 2.2
Controlled decisions and evaluation
RetailAgent separates the observation supplied to an agent from the endogenous state through which it interprets that observation. Figure 2 summarizes the text and vision pathways, the dashed selfconditioning route, recursive policy state, and optional latent-steering branch. Across conditions we hold fixed the binary long/flat action semantics and research-return scoring. We vary observation construction and the endogenous state carried forward. At the start of interval t, the agent receives condition-specific observation xid,1:t , presented as (c) numerical text, a chart, or both, together with endogenous state zidt such as account variables, memory history, or soft tokens. These inputs enter the unified prompt that feeds the frozen LLM (cf. Figure 2). The agent then emits a binary position pidt ∈ {0, 1}, where 1 denotes long and 0 denotes flat. The protocol reveals the research-return label ridt after the action. The next interval repeats with updated observation and endogenous state. Over the day this yields a trajectory of actions, optional self-authored memories, and subsequently revealed labels. Matched comparisons use the same observation path and vary the specified carried state. We score trajectories with timing Aid (p, r) and contemporaneous IC (Equation 3). Timing measures entry and exit quality on a stock’s path. IC measures cross-sectional ranking at the same decision time. The complementary schedule 1 − p flips the timing sign by construction. Each condition induces (c) pidt ∼ πc (· | xid,1:t , zidt ). 2.3
Interventions and self-conditioning
Conditioning changes representation or endogenous state while keeping the market information set and binary action space fixed. We apply three families. Observation representation. Numerical text serializes completed intervals, making local differences and ordering directly available to linguistic reasoning. The chart provides a fine-resolution visual path, making slope, curvature, extrema, and visual grouping jointly salient. Multimodal presents both views through the unified prompt. These conditions hold the underlying stock-day fixed while changing resolution, lookback, and representation. 4
Consequential account state. Stateful prompts progressively reveal current position and entry, a trade ledger, or an account summary. Position and entry supply immediate action state. The ledger records prior commitments, and the account summary presents accumulated action-weighted return and entry-relative performance. Because these variables depend on earlier actions, each decision changes part of the state that conditions the next decision and induces a recursive policy. Narrative and latent endogenous state. Narrative self-conditioning uses a two-pass protocol on the dashed route in Figure 2. A first pass writes a short memory to the model’s future self. A second pass conditions on the current observation, that memory, and up to w earlier memories before choosing long or flat. We evaluate w ∈ {0, 1, 5, 12}. At w = 0, the decision uses the current-step memory and zero earlier memories. At w ≥ 1, earlier commitments are visible. Directives are absent, emphasize conviction, or ask for consistency unless evidence has clearly changed. All narrative conditions use inference only. An optional latent channel supplies continuous, price-dependent state: fθ
gϕ
xid,1:t −→ hidt −→ (e1 , . . . , ek ) −→ frozen LLM −→ pidt .
(4)
Here fθ is a gated recurrent unit (GRU) price encoder [Cho et al., 2014], hidt is its hidden state, gϕ is a low-rank transformation with rank 64, and e1 , . . . , ek are soft-token embeddings [Li and Liang, 2021, Lester et al., 2021]. The GRU is pretrained with variance-invariance-covariance regularization (VICReg), a self-supervised objective [Bardes et al., 2021]. It maps seven price features into k=2 embeddings, each formed as a weighted combination of 92 fixed market-related word embeddings. Ablations vary token count, basis size, encoder freezing, and free embedding vectors. Comparing narrative and latent conditioning tests how linguistic self-commitment and continuous state affect persistence.
3
Experiments
We evaluate RetailAgent across modality, horizon, account state, model family, and self-conditioning interventions. Section 3.2 reports timing, shuffle and overlap controls, and narrative effects. Section 3.3 explains how the recovered directional structure could inform another participant’s response and states the empirical scope. 3.1
Experimental setup
Appendix A provides detailed documentation of panel construction, prompts, generation and parsing rules, optimization, statistical inference, saved artifacts, and computational resources. Market panels and conditions. CSI-500 is a mid-cap Chinese equity index [China Securities Index Co., Ltd., 2026]. The source data provide each anonymized stock-day on a 239-minute intraday grid. Numerical conditions receive indexed histories constructed from completed non-overlapping intervals. Fine charts and encoder features use the archived one-minute reconstruction. The primary panel samples 23 decisions at 10-minute intervals, with 5- and 20-minute panels as horizon checks. Outcomes are subsequent non-overlapping research-return labels. Narrative and encoder evaluations attempt 1,500 stock-days, while larger trajectory sets support modality, state, and horizon checks. The principal model is Qwen3.5-9B [Qwen Team, 2026]. Sign checks use Claude Haiku 4.5 [Anthropic, 2025] and Granite-4.0-H-Small [IBM Research, 2025]. Stateful variants add position and entry, a trade ledger, or an account summary. Memory conditions use w ∈ {0, 1, 5, 12} and absent, conviction, or consistency directives. Standard and narrative conditions use inference only. Learned encoder and adapter conditions include an optimization stage. Generation and scoring. Principal Qwen runs use vLLM [Kwon et al., 2023] in bfloat16 with thinking disabled, temperature 0.7, and top-p 0.95. Text and state outputs use 160 tokens, chart and joint outputs use 320, and hosted outputs use 350. Memory uses 220 tokens followed by a greedy 24-token decision. Local standard, narrative, and hosted generation paths apply their recorded parsers and failure rules. Timing estimates retain trajectories containing both actions, and confidence intervals resample dates. The optional encoder is a two-layer GRU with 256 units, a 120-minute lookback, seven archived channels, and a rank-64 adapter into two soft tokens. Phase-two runs use a fixed initial decision bias and an exposure-collapse penalty. The memory-conditioned phase-three run targets long exposure 0.40 through an online bias update. Learned conditions use hard actions with 5
soft backward gradients. Training dates occupy the first 3/5 of the applicable panel, where outcome transformations are estimated. The saved memory-conditioned checkpoint is evaluated on 1,500 stock-days from 28 later dates. Statistical inference and controls. Code, trajectories, filenames, and panels preserve the prompts, actions, selected memories, failure counters, model identifiers, and labels. Timing aggregates within stock-day and then averages in bps. The primary null draws exposure-matched random schedules, giving near-zero timing by construction. Percentile bootstraps resample trading dates. Cross-sectional IC uses decision times with position variation across stocks. For each comparator s, overlap tests remove its within-stock linear component from q = 1 − p and score the remaining timing.
3.2
Results
Across every standard configuration, RetailAgent enters and exits at comparatively unfavorable intervals. Matched-panel analyses then examine the pattern’s sequential structure and response to self-conditioning. 3.2.1
Standard timing and controls
Table 1 consolidates 14 negative timing estimates across three decision horizons, four state conditions, text and visual inputs, and two model families. The principal 10-minute conditions score −45.7 bps for text, −29.9 for chart, and −48.9 for multimodal inputs. Their distinct sampling frames support a descriptive sign comparison. The shuffle controls isolate trajectory alignment on the principal text condition. Global shuffling yields −3.5 bps and same-day shuffling yields −8.7 bps, compared with −45.7 for the intact schedule. These controls preserve the overall long fraction while breaking sequential alignment. The intact trajectory therefore contains substantially more negative timing. Haiku and Granite provide crossmodel sign checks. Granite retains the negative sign across four state prompts on 600 stock-days per prompt. Appendix B provides additional visual estimates and detailed model records. The 20-minute state rows range from −43.9 to −56.7 bps, and the 5-minute rows range from −30.5 to −53.2 bps. Their changing order shows that additional account information changes several state inputs at once. Every state and horizon configuration retains the negative sign. The Haiku rows reproduce that sign on smaller samples, including 165 stock-days at 10 minutes. Their role is a model-family sign check with lower statistical power. Granite extends the check across price text, position, ledger, and account prompts. Each Granite row uses 600 stock-days, and its point estimates range from −8.2 to −36.3 bps. These cross-model rows support sign recurrence. The sampling differences make their magnitude comparisons descriptive. On the principal text sample, the difference between the LLM schedule and exposure-matched random schedules is −46.2 bps with 95% CI [−50.5, −41.8]. Price-level and last-return schedules have their own timing patterns. We therefore use random exposure-matched schedules as the behavioral benchmark and price-based signals as overlap comparators. 3.2.2
Signal overlap with price baselines
The complementary schedule makes the sign of the behavior explicit and is algebraically determined by Equation (1). We measure its linear overlap with three conventional price signals. The GRU comparator is a gated recurrent unit price model. GBDT-38 is a gradient-boosted decision tree using 38 price features. One-period reversal takes the opposite side of the previous interval’s return. For each comparator, we fit its within-stock linear relation to the inverted position and score the unexplained remainder. Table 2 shows that the remainder retains substantial positive timing. Correlations with the inverted schedule remain below +0.3, yet the GRU projection retains 43.9 of 46.8 bps, the GBDT projection retains 40.4 of 45.7 bps, and the reversal projection retains 38.9 of 45.7 bps. The date-clustered intervals are positive in all three rows. These residuals quantify the directional structure that remains after each linear projection under the research labels. 6
Model or control
Observation or state
Stock-days
Timing alpha, bps (95% CI)
10m 10m 10m 20m 20m 20m 20m 5m 5m 5m 5m 5m 10m 20m
13,710 14,937 14,438 23,594 25,410 25,718 22,013 9,937 9,961 9,966 9,052 827 165 28,387
−45.7 [−49.4, −41.8] −29.9 [−33.7, −26.2] −48.9 [−52.7, −45.0] −56.7 [−59.8, −53.6] −54.7 [−58.2, −51.0] −43.9 [−47.0, −40.8] −51.1 [−55.0, −46.7] −38.8 [−42.9, −34.6] −44.8 [−49.3, −40.4] −30.5 [−33.5, −27.2] −53.2 [−56.2, −50.1] −38.8 [−52.9, −22.5] −42.9 [−62.0, −24.8] −32.7 [−35.7, −29.8]
B. Trajectory and self-conditioning controls Global shuffle price-text actions 10m Same-day shuffle price-text actions 10m Qwen3.5, w = 0 current memory 10m Qwen3.5, w = 1 +1 earlier memory 10m
13,716 13,716 1,194 1,054
−3.5 [−5.4, −1.7] −8.7 [−10.4, −7.1] −62.8 [−69.7, −56.0] −74.1 [−81.5, −66.6]
600 600 600 600
−36.3 −25.6 −14.1 −8.2
A. Fourteen standard configurations Qwen3.5 price text Qwen3.5 chart Qwen3.5 multimodal Qwen3.5 price text Qwen3.5 +position Qwen3.5 +ledger Qwen3.5 +account Qwen3.5 price text Qwen3.5 +position Qwen3.5 +ledger Qwen3.5 +account Claude Haiku price text Claude Haiku price text Qwen3-VL coarse image
C. Granite cross-model sign checks Granite price text Granite +position Granite +ledger Granite +account
Interval
10m 10m 10m 10m
Switches
2.5 1.7
Table 1: Exposure-matched timing alpha. Principal local text, chart, and multimodal rows use Qwen/Qwen3.5-9B [Qwen Team, 2026]. The coarse-image archive is recorded as Qwen3-VL [Bai et al., 2025]. Other models are Claude Haiku 4.5 [Anthropic, 2025] and Granite-4.0-H-Small [IBM Research, 2025]. Confidence intervals resample dates. Switches count long/flat changes per stock-day. Granite rows are archived point estimates. Cross-frame magnitudes are descriptive. Comparator GRU price model GBDT-38 One-period reversal
Stock-days
Corr. with q
Inverted
Residual timing (95% CI)
2,519 13,717 13,717
+0.114 +0.132 +0.286
+46.8 +45.7 +45.7
+43.9 [38.1, 49.5] +40.4 [37.0, 43.8] +38.9 [36.0, 41.8]
Table 2: Inverted text-agent timing after within-stock projection on conventional price signals. 3.2.3
Self-conditioning and persistence
Narrative self-conditioning reorganizes temporal behavior under the same information boundary. Table 3 reports the complete ten-condition sweep and the later-period persistence evidence. Every conditional main-period timing interval lies below zero. Among stock-days with both actions, moving from current memory only (w = 0) to one earlier memory (w = 1) shifts timing from −62.8 to −74.1 bps and reduces position changes from 2.5 to 1.7 per stock-day. Appendix A.3 provides detailed failure counts and scoring flow. The timing estimates vary by more than 20 bps across the sweep, while nine of ten IC intervals contain zero. The multimodal no-directive condition has IC −0.0137 with interval [−0.0261, −0.0021], yet its timing estimate is weaker than the consistency condition with one earlier memory. Timing therefore captures when a stock is held along its path, while Equation 3 captures contemporaneous selection across stocks. The lower panel records persistence alongside conditional timing. Position changes count long/flat transitions within each scored stock-day. The condition with one earlier memory (w = 1) has the fewest changes and the most negative conditional timing in both periods. Longer windows remain more persistent than the current-memory condition (w = 0), while their timing estimates move toward it. These action traces associate access to one earlier self-authored memory with greater persistence. For the condition-level comparison below, cross-sectional portfolio return is the mean subsequent return across stocks held long at each decision time. Each condition contributes one timing estimate, one portfolio-return estimate, and one IC estimate. Table 4 sharpens the distinction between timing and IC. Pearson correlations of timing with portfolio return are +0.355 conventionally and −0.066 under memory, while correlations with IC are +0.684 7
Self-conditioning condition No directive, w = 5 Conviction, w = 5 Consistency, current only (w = 0) Consistency, one earlier (w = 1) Consistency, w = 5 Consistency, w = 12 Multimodal consistency Multimodal, no directive Encoder-off replication Encoder-word injection
Scored N 1,289 1,011 1,194 1,054 1,154 1,184 1,169 1,274 1,049 1,019
Timing alpha (95% CI)
−59.9 [−67.1, −53.0] −0.0105 [−0.0233, 0.0017] −58.1 [−67.6, −48.6] +0.0028 [−0.0082, 0.0128] −62.8 [−69.7, −56.0] −0.0134 [−0.0278, 0.0009] −74.1 [−81.5, −66.6] −0.0125 [−0.0260, 0.0011] −66.7 [−73.9, −59.7] −0.0087 [−0.0212, 0.0036] −67.1 [−75.0, −59.6] −0.0076 [−0.0190, 0.0039] −64.8 [−73.6, −56.0] +0.0002 [−0.0130, 0.0134] −55.1 [−62.4, −48.0] −0.0137 [−0.0261, −0.0021] −70.2 [−77.9, −62.5] −0.0042 [−0.0165, 0.0081] −51.5 [−58.8, −44.5] −0.0110 [−0.0227, 0.0011]
Later-period persistence and position changes Condition Scored N No directive, w = 5 Consistency, w = 0 Consistency, w = 1 Consistency, w = 5 Consistency, w = 12
IC (95% CI)
Later-period alpha
Switches per stock-day
−65.3 −68.3 −85.6 −82.9 −79.3
2.5 2.5 1.7 1.8 1.9
277 270 245 252 251
Table 3: Narrative self-conditioning results. Every main-period condition attempts 1,500 stock-days across 150 dates. Scored N excludes failed intervals and constant action trajectories. The upper panel reports conditional timing alpha in bps per stock-day and contemporaneous cross-sectional IC with 95% date-clustered confidence intervals. The lower panel reports later-period point estimates and observed long/flat position changes.
Metric pair
Conventional Pearson Spearman
Self-conditioning Pearson Spearman
Timing vs portfolio return Timing vs cross-sectional IC Portfolio return vs cross-sectional IC
+0.355 +0.684 +0.859
−0.066 −0.075 +0.920
+0.392 +0.399 +0.881
+0.018 −0.212 +0.867
Table 4: Condition-level metric correlations. Conventional contains 12 standard conditions. Selfconditioning contains ten memory conditions. Each condition contributes one observation. and −0.075. Portfolio return remains strongly associated with IC at +0.859 and +0.920, with the same ordering under Spearman correlation. Thus memory changes path-wise timing along a separate empirical axis from contemporaneous selection. Appendix B.1 provides additional condition-level interpretation. Literal injection of the encoder’s highest-weight words scores −51.5 bps, compared with −70.2 for the encoder-off replication in Table 3. This contrast separates lexical rendering from embedding-space steering. The latent channel supplies a secondary continuous-state comparison. Table 5 reports the complete ablation record. The first group shares one cross-sectionally centered training outcome, while the second group records separate transformed objectives and supports descriptive sensitivity checks. Within the shared centered-outcome group, two tokens shift timing from −21.0 to −33.7 bps relative to the disabled-token prompt. Eight and sixteen tokens yield −32.3 and −29.2 bps, while a 492-word basis yields −33.8 bps. Across the separate frames, trainable and frozen encoders score −38.4 and −39.7 bps, free embeddings score −2.1 bps, and the combined transformation scores −28.7 bps. The memory-conditioned checkpoint is fixed before evaluation on 1,500 stock-days from 28 later dates. It scores −15.4 bps with 95% CI [−24.6, −5.1], exposure 0.397, and 6.71 position changes per stock-day. Appendix B.1 provides detailed arm definitions and checkpoint provenance. Trace-level example. Table 6 makes the timing estimand concrete with one standard price-text stock-day and one consistency stock-day with an earlier memory visible (w = 1). In the second trace, the agent stays flat for decisions 1 to 7, switches long at decision 8, and remains long through decision 23. Its preceding memory states, “My bullish thesis remains fully intact. The decisive breakout above 108.71 is confirmed, and the recent pullback to 114.39 served only as healthy consolidation.” The numbers are normalized price levels from the observed history. The price-text trajectory is long for seven intervals whose returns sum to −576.7 bps. The memoryconditioned trajectory earns a positive return while long, yet flat intervals capture a much larger part of the stock-day rise. Exposure centering assigns the second trajectory −867.3 bps of timing 8
Configuration
Timing score, bps (95% CI)
Shared centered-outcome group Soft tokens disabled Two tokens, 92-word basis Eight tokens, 92-word basis Sixteen tokens, 92-word basis Two tokens, 492-word basis
−21.0 [−23.8, −18.3] −33.7 [−37.5, −30.0] −32.3 −29.2 −33.8 [−37.5, −30.1]
Separate objectives or evaluation frames Trainable encoder, 92-word basis Frozen encoder, 54k-parameter adapter Free embedding vectors Combined outcome transformation Two-pass memory-conditioned encoder
−38.4 [−43.6, −33.3] −39.7 [−46.8, −32.4] −2.1 [−6.5, +2.6] −28.7 [−32.3, −25.0] −15.4 [−24.6, −5.1]
Table 5: Latent-state ablations. Comparisons within the upper group share a training outcome. Lower-group rows use separate transformed objectives or evaluation frames. Date-clustered 95% confidence intervals appear where available. Condition
Long intervals
Exposure
Long return
Flat return
Timing alpha
7/23 16/23
0.304 0.696
−576.7 +359.4
+575.9 +1,404.0
−576.4 −867.3
Price text Consistency, one earlier memory
Table 6: Archived trajectory examples. Returns and timing alpha are in bps under the research-return labels. The rows illustrate the estimand on individual stock-days and support the aggregate evidence in Tables 1 and 3. alpha. Its language preserves the bullish interpretation while its actions contain one position change. These cases show how path-wise timing reveals entry and exit quality beyond the long-only outcome. Appendix B.2 provides the detailed archived memory and action summary. 3.3
Behavioral signal and scope
RetailAgent identifies a predictable response pattern that another participant could diagnose from the agent’s fixed-path action trace. Market theory shows how prices aggregate information and order flow conveys information to other participants [Grossman and Stiglitz, 1980, Kyle, 1985]. Historical evidence links small-trader demand to predictable subsequent returns [Hvidkjaer, 2008] and active individual trading to underperformance [Barber and Odean, 2000]. The complementary schedule exchanges long and flat actions and serves as a sign diagnostic, while Section 3.2.2 measures its linear overlap with three price-based signals. Our evidence concerns a controlled LLM policy over anonymized historical equity paths with fixed prices and research-return labels. Matched human decision traces and executable-return analysis remain separate empirical requirements. Future work can compare LLM and human decisions under a matched interface and extend RetailAgent to interactive markets that incorporate transaction costs, borrowing constraints, latency, market impact, capacity, strategic counterparties, and price feedback. Magnitude comparisons across different sampling frames remain descriptive. Appendix B.3 provides additional validity conditions and reporting conventions.
4
Conclusion
In this paper, we developed RetailAgent, a controlled framework for interpreting sequential LLM trading behavior. Across configurations spanning input modality, decision horizon, account state, and model family, agents exhibit consistently negative exposure-matched within-stock timing. Trajectory shuffling substantially attenuates this effect, while self-conditioning increases policy persistence and shifts conditional timing among stock-days with both actions. These findings reveal stable directional structure in LLM action traces beyond average exposure and the tested price-based signals. Future work can examine whether this structure remains actionable under transaction costs, market impact, and strategic feedback.
9
References Gati V Aher, Rosa I Arriaga, and Adam Tauman Kalai. Using large language models to simulate multiple humans and replicate human subject studies. In International conference on machine learning, pages 337–371. PMLR, 2023. Robert Almgren and Neil Chriss. Optimal execution of portfolio transactions. Journal of Risk, 3: 5–40, 2001. Anthropic. Introducing Claude Haiku 4.5, 2025. URL https://www.anthropic.com/news/ claude-haiku-4-5. Lisa P Argyle, Ethan C Busby, Nancy Fulda, Joshua R Gubler, Christopher Rytting, and David Wingate. Out of one, many: Using language models to simulate human samples. Political Analysis, 31(3):337–351, 2023. Shuai Bai, Yuxuan Cai, Ruizhe Chen, Keqin Chen, Xionghui Chen, Zesen Cheng, Lianghao Deng, Wei Ding, Chang Gao, Chunjiang Ge, et al. Qwen3-vl technical report. arXiv preprint arXiv:2511.21631, 2025. David Bailey, Jonathan Borwein, Marcos Lopez de Prado, and Qiji Jim Zhu. The probability of backtest overfitting. The Journal of Computational Finance, 20(4):39–69, 2017. Brad M Barber and Terrance Odean. Trading is hazardous to your wealth: The common stock investment performance of individual investors. The journal of Finance, 55(2):773–806, 2000. Brad M Barber and Terrance Odean. All that glitters: The effect of attention and news on the buying behavior of individual and institutional investors. The review of financial studies, 21(2):785–818, 2008. Brad M Barber and Terrance Odean. The behavior of individual investors. In Handbook of the Economics of Finance, volume 2, pages 1533–1570. Elsevier, 2013. Adrien Bardes, Jean Ponce, and Yann LeCun. Vicreg: Variance-invariance-covariance regularization for self-supervised learning. arXiv preprint arXiv:2105.04906, 2021. Itzhak Ben-David, Justin Birru, and Viktor Prokopenya. Uninformative feedback and risk taking: Evidence from retail forex trading. Review of Finance, 22(6):2009–2036, 2018. Hedi Benamar. To see is to know: simultaneous display of market data for retail investors. Review of Finance, 23(2):397–437, 2019. Yoshua Bengio, Nicholas Léonard, and Aaron Courville. Estimating or propagating gradients through stochastic neurons for conditional computation. arXiv preprint arXiv:1308.3432, 2013. China Securities Index Co., Ltd. CSI 500 index. https://www.csindex.com.cn/, 2026. Accessed: 2026-08-27. Kyunghyun Cho, Bart Van Merriënboer, Çağlar Gulçehre, Dzmitry Bahdanau, Fethi Bougares, Holger Schwenk, and Yoshua Bengio. Learning phrase representations using rnn encoder–decoder for statistical machine translation. In Proceedings of the 2014 conference on empirical methods in natural language processing (EMNLP), pages 1724–1734, 2014. Sanford J Grossman and Joseph E Stiglitz. On the impossibility of informationally efficient markets. The American economic review, 70(3):393–408, 1980. Liang Hu, Jianpeng Jiao, Jiashuo Liu, Dongyuan Mutu, Yanle Ren, Zhoufutu Wen, Kaiyuan Zhang, Xuanliang Zhang, Xiang Gao, Tianci He, et al. Finsearchcomp: Towards a realistic, expertlevel evaluation of financial search and reasoning. In International Conference on Learning Representations, volume 2026, pages 46402–46428, 2026a. Tiancheng Hu, Joachim Baumann, Lorenzo Lupo, Nigel Collier, Dirk Hovy, and Paul Röttger. Simbench: Benchmarking the ability of large language models to simulate human behaviors. In International Conference on Learning Representations, volume 2026, pages 28290–28341, 2026b. 10
Soeren Hvidkjaer. Small trades and the cross-section of stock returns. The Review of Financial Studies, 21(3):1123–1151, 2008. IBM Research. Granite 4.0 language models, 2025. URL https://github.com/ibm-granite/ granite-4.0-language-models. Kelvin Koa, Jan Chen, Yunshan Ma, Zheng Huanhuan, and Tat-Seng Chua. Reasoning on time-series for financial technical analysis. In International Conference on Learning Representations, volume 2026, pages 64059–64079, 2026. Michael Krumdick, Rik Koncel-Kedziorski, Viet Dac Lai, Varshini Reddy, Charles Lovering, and Chris Tanner. Bizbench: A quantitative reasoning benchmark for business and finance. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 8309–8332, 2024. Woosuk Kwon, Zhuohan Li, Siyuan Zhuang, Ying Sheng, Lianmin Zheng, Cody Hao Yu, Joseph Gonzalez, Hao Zhang, and Ion Stoica. Efficient memory management for large language model serving with pagedattention. In Proceedings of the 29th symposium on operating systems principles, pages 611–626, 2023. Albert S Kyle. Continuous auctions and insider trading. Econometrica: Journal of the Econometric Society, pages 1315–1335, 1985. Brian Lester, Rami Al-Rfou, and Noah Constant. The power of scale for parameter-efficient prompt tuning. In Proceedings of the 2021 conference on empirical methods in natural language processing, pages 3045–3059, 2021. Xiang Lisa Li and Percy Liang. Prefix-tuning: Optimizing continuous prompts for generation. In Proceedings of the 59th annual meeting of the association for computational linguistics and the 11th international joint conference on natural language processing (volume 1: Long papers), pages 4582–4597, 2021. Xiao Liu, Hao Yu, Hanchen Zhang, Yifan Xu, Xuanyu Lei, Hanyu Lai, Yu Gu, Hangliang Ding, Kaiwen Men, Kejuan Yang, et al. Agentbench: Evaluating llms as agents. In International Conference on Learning Representations, volume 2024, pages 52989–53046, 2024. Xiao-Yang Liu, Guoxuan Wang, Hongyang Yang, and Daochen Zha. Fingpt: Democratizing internetscale data for financial large language models. arXiv preprint arXiv:2307.10485, 2023. Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. In International Conference on Learning Representations, 2019. Joon Sung Park, Joseph O’Brien, Carrie Jun Cai, Meredith Ringel Morris, Percy Liang, and Michael S Bernstein. Generative agents: Interactive simulacra of human behavior. In Proceedings of the 36th annual acm symposium on user interface software and technology, pages 1–22, 2023. Giorgio Piatti, Zhijing Jin, Max Kleiman-Weiner, Bernhard Schölkopf, Mrinmaya Sachan, and Rada Mihalcea. Cooperate or collapse: Emergence of sustainable cooperation in a society of llm agents. Advances in Neural Information Processing Systems, 37:111715–111759, 2024. Qwen Team. Qwen3.5-9B model card. Hugging Face model card, 2026. //huggingface.co/Qwen/Qwen3.5-9B.
URL https:
Raeid Saqur, Anastasis Kratsios, Florian Krach, Yannick Limmer, Blanka Horvath, and Frank Rudzicz. Filtered not mixed: Filtering-based online gating for mixture of large language models. In International Conference on Learning Representations, volume 2025, pages 85557–85590, 2025. Karthik Sreedhar and Lydia Chilton. Simulating human strategic behavior: Comparing single and multi-agent llms. arXiv preprint arXiv:2402.08189, 2024. Meir Statman, Steven Thorley, and Keith Vorkink. Investor overconfidence and trading volume. The Review of Financial Studies, 19(4):1531–1565, 2006. 11
Shijie Wu, Ozan Irsoy, Steven Lu, Vadim Dabravolski, Mark Dredze, Sebastian Gehrmann, Prabhanjan Kambadur, David Rosenberg, and Gideon Mann. Bloomberggpt: A large language model for finance. arXiv preprint arXiv:2303.17564, 2023. Yijia Xiao, Edward Sun, Di Luo, and Wei Wang. Tradingagents: Multi-agents llm financial trading framework. arXiv preprint arXiv:2412.20138, 2024. Qianqian Xie, Weiguang Han, Zhengyu Chen, Ruoyu Xiang, Xiao Zhang, Yueru He, Mengxi Xiao, Dong Li, Yongfu Dai, Duanyu Feng, et al. Finben: A holistic financial benchmark for large language models. Advances in neural information processing systems, 37:95716–95743, 2024. Yangyang Yu, Zhiyuan Yao, Haohang Li, Zhiyang Deng, Yuechen Jiang, Yupeng Cao, Zhi Chen, Jordan W Suchow, Zhenyu Cui, Rong Liu, et al. Fincon: A synthesized llm multi-agent system with conceptual verbal reinforcement for enhanced financial decision making. Advances in Neural Information Processing Systems, 37:137010–137045, 2024. Yangyang Yu, Haohang Li, Zhi Chen, Yuechen Jiang, Yang Li, Jordan W Suchow, Denghui Zhang, and Khaldoun Khashanah. Finmem: A performance-enhanced llm trading agent with layered memory and character design. IEEE Transactions on Big Data, 2025. Yilun Zhao, Hongjun Liu, Yitao Long, Rui Zhang, Chen Zhao, and Arman Cohan. Financemath: Knowledge-intensive math reasoning in finance domains. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 12841– 12858, 2024.
12
Supplementary Material These appendices provide the information needed to interpret and reproduce the main results. Appendix A records the experimental protocol and reproducibility information. Appendix B presents visual summaries and supporting analyses. The main paper retains the principal numerical comparisons, while these records document how each estimate was produced.
A
Expanded experimental protocol
A.1
Observation panels and sequential state
CSI-500 is a mid-cap Chinese equity index [China Securities Index Co., Ltd., 2026]. The source data represent each anonymized stock-day on a 239-minute intraday grid. Numerical conditions receive an indexed serialization that preserves relative price movements while concealing the absolute price level. The primary local panel contains 23 scored 10-minute intervals per stock-day. The 5-minute and 20-minute panels contain 47 and 11 intervals. Their construction leaves terminal remainders of 4, 9, and 19 minutes outside the respective scored grids. Each outcome is the subsequent non-overlapping research-return label for the selected interval. Numerical histories are constructed from previously completed non-overlapping intervals. Fineresolution charts and encoder features use the archived one-minute series reconstructed from nested forward-return labels. That reconstruction depends on later label rows, so the fine-chart and learnedencoder conditions characterize behavior under the archived reconstructed input. The numerical-text conditions provide the direct information-boundary evidence based on previously completed intervals. The standard configurations use a one-pass decision policy based on the current observation and condition-specific account state. Stateful prompts progressively add current position and entry price, a recent trade ledger, or an account summary of realized and unrealized performance. These variables arise from earlier actions and therefore create a recursive policy state. The two-pass narrative conditions first generate a short memory addressed to the model’s future self. The second pass receives the current observation, the new memory, and up to w earlier memories before selecting long or flat. Thus, w = 0 includes the newly written memory and zero earlier memories, while w ≥ 1 adds prior memory history. A.2
Prompt templates
The principal local numerical condition uses the following user prompt before application of the checkpoint’s chat template. Bracketed fields are filled from the current stock-day and decision interval. You are a retail investor watching one stock during the trading day. You decide once every [horizon] minutes whether to be in the market or out. For each decision: 1 = be in the market (long) 0 = be out of the market (flat) Reply in exactly this format, with no other text and no markdown: MEMO: <one or two sentences of reasoning> ACTION: <0 or 1> The final line MUST be exactly ‘‘ACTION: 0’’ or ‘‘ACTION: 1’’. Price history ([horizon]-minute bars, oldest to newest, index starts at 100): [up to 20 observed price values] This is bar [t] of [T]. Your decision:
Stateful conditions retain this task and response format. The position condition adds current long or flat status, entry price when long, current indexed price, unrealized return, holding duration, and an accumulated action-weighted return labeled as realized profit and loss in the archived prompt. The ledger condition additionally presents the eight most recent closed trades with entry, exit, return, and holding duration. The account condition also presents the five most recent self-authored memos. These fields are updated from earlier actions and indexed prices. The accumulated return includes the contribution of an open long position, while the separate unrealized field measures the change from its entry price. 13
The chart-only and joint conditions pass a structured multimodal user message to the checkpoint processor. The image block precedes the text block, and the processor serializes it schematically as follows: user.content[0]: type=image user.content[1]: type=text, text=[task instructions and current observation] <|vision_start|> [image placeholder tokens] <|vision_end|>
The implementation supplies the image as multimodal data, and the checkpoint processor generates the exact vision tokens through its chat template. The chart-only text states, “The chart above shows the price history ([horizon]-minute bars, left to right).” The joint condition attaches the rolling one-minute chart and includes the same numerical list used by the text condition. Both passes of a multimodal narrative condition attach the current chart before the corresponding memory or decision text. All multimodal prompts retain the common long and flat definitions and response format. Narrative conditions make two calls per interval. The first call appends, “First, write a short note to your later self about the market situation and your position. Begin the note with ‘NOTE:’.” The consistency condition further appends, “When you write your note, keep it consistent with the view in your earlier notes unless the evidence has clearly changed.” The second call includes the newly generated note and appends, “Now reply with a single character, 0 or 1. Your decision:” The memory window w controls only the number of earlier notes displayed in addition to the current note. A.3
Generation and parsing
The principal conditions use the locally cached Qwen/Qwen3.5-9B checkpoint [Qwen Team, 2026] in bfloat16. Agents run through vLLM [Kwon et al., 2023] with the model’s Hugging Face chat template, prefix caching, and thinking disabled. Numerical text and state conditions use temperature 0.7, top-p 0.95, and a 160-token output limit. Chart and joint text-chart conditions use the same sampling parameters with a 320-token limit. Narrative memory generation uses temperature 0.7, top-p 0.95, and a 220-token limit. Its second-pass binary decision is greedy with a 24-token limit. Hosted Haiku and Granite calls use temperature 0.7 and a 350-token limit. Local numerical generation uses two-way tensor parallelism. Stateful, chart, joint, and narrative generation use four-way tensor parallelism. Generation is batched across stock-days at each decision time, while decisions within each stock-day remain sequential. Parsing follows the output format used by each generation path. Local numerical and state conditions select the final explicit ACTION: 0/1 match and then apply directional-keyword fallback rules. Narrative decisions select the final standalone binary digit and use the same directional fallback. Hosted conditions select the first explicit action match. Local numerical and state failures map to flat. Chart and joint conditions retain a stock-day when every interval parses. Narrative scoring removes failed intervals before exposure centering. Hosted Haiku and Granite failures retain the incoming position and increment their recorded counters. The generation code contains the complete templates and parsing rules, while saved trajectories preserve actions and selected memory excerpts. Table A1 traces the narrative sample from generation to scoring. Each condition begins with 34,500 attempted decisions from 1,500 stock-days and 23 intervals. The archived scorer removes failed intervals, requires at least five valid decisions, and retains stock-days that contain both long and flat actions. Prompt-horizon provenance. The interval column in the results tables records the panel and scoring cadence. The archived local state generator maps the 47-bar panel to 5-minute wording and assigns 10-minute wording to the 23-bar and 11-bar panels. Its 20-minute state conditions therefore display 10-minute wording. The visual generator computes the displayed horizon as 239/T , which produces 21-minute wording on the 11-bar panel. The hosted prompt uses fixed 10-minute wording, including the archived 5-minute Haiku condition. These wording differences qualify comparisons across horizon rows while leaving each row’s scoring interval unchanged. A.4
Encoder optimization and chronological split
The price encoder is a two-layer GRU [Cho et al., 2014] with 256 hidden units, a 256-dimensional output, dropout 0.1, and a 120-minute lookback. The archived implementation stacks one-minute return, 10-minute volatility, 30-minute volatility, a second adjacent-return difference stored under
14
Narrative condition
Failed intervals Affected cells Constant paths Scored N
No directive, w = 5 Conviction, w = 5 Consistency, w = 0 Consistency, w = 1 Consistency, w = 5 Consistency, w = 12 Multimodal consistency Multimodal, no directive Encoder-off replication Encoder-word injection
1,120 1,690 1,581 1,545 505 266 425 233 1,657 1,407
641 584 925 615 344 207 186 147 608 609
211 489 306 446 346 316 331 226 451 481
1,289 1,011 1,194 1,054 1,154 1,184 1,169 1,274 1,049 1,019
Table A1: Narrative scoring provenance. Affected cells contain at least one failed interval. Constant paths remain all long or all flat after failed intervals are removed. The archived conditional timing estimates use the scored stock-days in the final column.
the mom5 name, 20-minute momentum, drawdown, and time of day. VICReg pretraining [Bardes et al., 2021] uses invariance and variance weights of 25 and covariance weight 1, together with 10% magnitude jitter and 10% channel dropout. Pretraining runs for eight epochs with batch size 512 on 60 stocks selected with NumPy seed 0. AdamW uses learning rate 3 × 10−4 and weight decay 10−4 . The principal adapter uses two soft tokens, a rank-64 bottleneck, and a 92-token lexical basis. The phase-two runs use AdamW [Loshchilov and Hutter, 2019] with default learning rates of 10−4 for the adapter and 10−5 for the encoder. The frozen-encoder run uses adapter learning rate 3 × 10−4 . Phase two initializes a fixed decision bias and applies an exposure-collapse penalty outside the interval [0.10, 0.60]. The memory-conditioned phase-three run uses learning rates of 3 × 10−4 for the adapter and 10−5 for the encoder, together with an online scalar bias targeting exposure 0.40. The principal phase-two ablations use 100 optimizer steps and 480 stock-days per step. Training dates occupy the first three chronological fifths of the relevant panel. The saved memory-conditioned checkpoint is evaluated on 1,500 stock-days from 28 later dates. The narrative sweep attempts 1,500 stock-days over 150 dates. Panel construction and statistical evaluation use recorded seeds. The primary panel samples 150 dates and up to 200 stocks per date with seed 4242. The 5-minute panel samples 100 dates with seed 20260811 and 100 stocks per date with date-specific seed 20260810 + d. The cross-sectional panel uses seed 31337. Narrative conditions select 1,500 stock-days with seed 0. Learned-condition replication treats the archived checkpoints as canonical because the training scripts use frameworklevel randomness and omit a global training seed. A.5
Inference and metric provenance
Timing alpha first aggregates over intervals within each stock-day and then averages across the stock-days admitted by the corresponding scorer. Standard and narrative scoring retain trajectories with both long and flat actions. Equation 1 assigns zero timing to an all-long or all-flat trajectory, so the reported means characterize the switching subset. Table A1 distinguishes the 1,500 attempted narrative stock-days from the scored counts. Confidence intervals use a date-clustered percentile bootstrap that resamples dates with seed 0. Standard-arm validation and signal-overlap analyses use 3,000 draws. Narrative analyses use 2,000 draws. Hosted-model summaries use 5,000 draws. Crosssectional IC averages over decision times with cross-sectional position variation. Constant-position cross-sections are undefined and omitted. For the overlap analysis, the inverted position is q = 1 − p. For each comparator s, the analysis projects the within-stock centered q onto centered s and evaluates the residual schedule. This procedure measures linear overlap with the tested comparator. The GRU row uses its available 2,519-stock-day evaluation frame, while GBDT-38 and one-period reversal use 13,717 stock-days. Comparisons across these frames are descriptive. The later-period narrative panel uses dates 296 through 354. The consistency directive was selected using the broader panel that includes these dates. The later-period rows therefore provide a chronological extension of the observed pattern rather than a directive-selection holdout.
15
Qwen price, 10m Qwen chart, 10m Qwen multimodal, 10m Qwen price, 20m Qwen +position, 20m Qwen +ledger, 20m Qwen +account, 20m Qwen price, 5m Qwen +position, 5m Qwen +ledger, 5m Qwen +account, 5m Haiku price, 5m Haiku price, 10m Qwen coarse VLM, 20m Self-cond.: current note only (w=0) Self-cond.: +1 earlier note (w=1) −80
−60 −40 −20 Timing alpha (bps per stock-day)
0
Figure B1: Standard and representative self-conditioning timing estimates for the locally cached Qwen/Qwen3.5-9B checkpoint and the archived Qwen3-VL coarse-image condition [Qwen Team, 2026, Bai et al., 2025], with the Claude Haiku 4.5 sign check [Anthropic, 2025]. Points report within-stock timing alpha with 95% date-clustered confidence intervals. Table 1 reports sample sizes and exact values. A.6
Reproducibility record
The accompanying artifact contains panel-construction and scoring code, the prompt implementations summarized in Appendix A.2, aggregate trajectories, per-cell hosted-model records, encoder checkpoints, failure counters, and machine-readable evaluation outputs. Saved positions directly reproduce the reported scores. Generation code and aligned panel values reconstruct the prompts. Narrative trajectory files preserve parsed actions and one truncated midpoint memory excerpt per stock-day. Checkpoint arguments and filenames preserve most model identifiers, while aligned panels provide the subsequently revealed labels. Appendix B.2 records the remaining coarse-image checkpoint ambiguity. Scoring requires NumPy, Polars, and scikit-learn on CPU. Regenerating local model actions additionally requires PyTorch, Transformers, vLLM, and the relevant model weights. The hosted-model cache records 218,639 calls, 98,041,696 prompt tokens, and 15,322,815 completion tokens across the archived Haiku and Granite sweeps. Gateway billing records determine the corresponding monetary cost. The artifact records panel and evaluation seeds as described above. Exact software versions, immutable model revision hashes, CPU allocation, system memory, and full-project compute accounting remain items for the final release record.
B
Additional experimental and analysis details
Figures B1 and B2 provide visual counterparts to Tables 1 and 3. The tables remain the numerical record. The figures make sign recurrence, uncertainty, and the separation between timing and cross-sectional selection easier to inspect.
16
Within-stock timing
Contemporaneous stock selection
No directive, w=5 Conviction, w=5 Consistency, current only Consistency, +1 earlier Consistency, w=5 Consistency, w=12 Multimodal consistency Multimodal, no directive Encoder-off replication Encoder-word injection −80 −60 −40 −20 Timing alpha (bps per stock-day)
0
−0.03 −0.02 −0.01 0.00 0.01 Cross-sectional IC
Figure B2: Within-stock timing alpha and contemporaneous cross-sectional IC for ten Qwen3.5-9B narrative self-conditioning conditions [Qwen Team, 2026]. Each condition attempts 1,500 stock-days. Scored counts appear in Table 3. Both panels report 95% date-clustered confidence intervals. B.1
Latent-state and metric analyses
Table 5 separates configurations by objective comparability. The disabled-token row, the two-token principal arm, the eight-token and sixteen-token variants, and the 492-word basis variant share one cross-sectionally centered outcome. The trainable-encoder, frozen-encoder, free-vector, combinedtransformation, and memo-conditioned rows use separate transformed objectives or evaluation frames. Their values document the archived procedures within those groups. The disabled-token row receives a numerical price list. The token-enabled phase-two rows receive price state through soft tokens as their sole price representation. The archived evaluations therefore compare input channels under a shared outcome rather than isolating token presence while holding the prompt representation fixed. The principal constrained arm uses two tokens formed on the 92-word lexical basis. The eight-token and sixteen-token variants change token bandwidth. The 492-word variant changes the lexical basis size. The frozen-encoder condition trains only the 54k-parameter adapter. The free-vector condition removes the lexical constraint. The combined-transformation condition uses its separately recorded outcome transformation. The code contains a matched pricetext-plus-token option, and the archive currently contains the channel comparison reported in Table 5. The memo-conditioned checkpoint is trained inside the two-pass narrative procedure and evaluated on 1,500 stock-days from 28 later dates. Its prompt, sample, and training procedure define a separate frame from the narrative-only conditions. The stored centered score is −15.0 with interval [−20.3, −9.1]. Rescoring the same positions on raw returns produces the reported −15.4 value with interval [−24.6, −5.1]. The launch configuration specifies 12 steps, its progress trace records steps 1 through 8, and the checkpoint omits a step field. We treat the saved checkpoint as the canonical evaluated state and leave its stopping iteration unspecified. Cross-condition metric interpretation. Each observation in Table 4 is one experimental condition with complete trajectories. Portfolio return is the mean subsequent return across stocks held long at each decision time. Timing and IC have Pearson correlation 0.684 across 12 conventional conditions and −0.075 across the ten narrative conditions. Portfolio return and IC have corresponding correlations of 0.859 and 0.920. These condition-level summaries describe metric coupling rather than stock-day sampling uncertainty. B.2
Archived trajectory and cross-model records
Table 6 contains ex-post illustrations of Equation 1. In the price-text example, seven long intervals sum to −576.7 bps, sixteen flat intervals sum to +575.9 bps, and timing alpha equals −576.4 bps. In the w = 1 consistency example, the agent switches long at decision 8 and remains long through decision 23 after preserving its bullish interpretation in memory. The trajectory has exposure 0.696,
17
one position change, long-interval return of +359.4 bps, flat-interval return of +1,404.0 bps, and timing alpha of −867.3 bps. The aggregate tables provide the principal evidence. Cross-model record provenance. Table 1 contains the complete cross-model sign checks. Claude Haiku 4.5 [Anthropic, 2025] produces negative estimates at both tested horizons, with 827 stockdays at 5 minutes and 165 stock-days at 10 minutes. Granite 4.0 [IBM Research, 2025] produces negative point estimates across price-only, position, ledger, and account prompts on 600 stock-days per condition. The Granite point estimates were recovered from per-cell records after a cache migration. The cache preserves actions, failure counters, and the 600-stock-day condition summaries, while the archived condition summaries provide point estimates only. Hosted failures retain the incoming position. At least one API failure occurs in 33 price-only stock-days, 76 position stock-days, 8 ledger stock-days, and zero account stock-days. The point estimates in Table 1 reproduce the archived 600-stock-day summaries with this recorded fallback behavior. Accordingly, the Granite evidence serves as a directional sign check, while the Qwen trajectories provide the principal evidence base. The coarse-image trajectory archive is labeled Qwen3-VL, while the included visual launcher defaults to Qwen/Qwen3.5-9B and the saved trajectory lacks an embedded checkpoint identifier. The exact checkpoint for this row remains an author-verification item. Its reported timing value describes the archived trajectory regardless of the final model label. B.3
Validity conditions and reporting conventions
Empirical scope. RetailAgent characterizes a controlled LLM policy over anonymized historical paths. Its outcomes are research-return labels. Economic evaluation would incorporate executable prices, borrowing rules, latency, and capacity. Transaction costs and permanent and temporary market impact are central components of optimal-execution analysis [Almgren and Chriss, 2001]. A market period reserved from design and selection would provide a selection-independent evaluation, while specialized procedures can quantify backtest-overfitting risk [Bailey et al., 2017]. An interactivemarket extension would model endogenous order flow and price feedback [Kyle, 1985]. Multi-agent LLM studies provide complementary frameworks for strategic interaction [Piatti et al., 2024, Sreedhar and Chilton, 2024]. Comparison scope. Several conditions use different sampling frames, prompt wording, and evaluation procedures. We interpret their repeated signs as configuration-level evidence and compare magnitudes when prompt, sample, reward, and inference procedure coincide. The latent-state table identifies rows that share an outcome and rows that use separate objectives or evaluation frames. Implementation choices. Phase-two learned runs use a fixed initial decision bias and an exposurecollapse penalty. The memory-conditioned phase-three run updates its bias online toward exposure 0.40. Reported learned runs estimate their outcome transformations on training dates and evaluate saved checkpoints on designated later observations. Hard binary actions define evaluation, while the training path uses the straight-through gradient estimator [Bengio et al., 2013]. The exposure controls keep learned policies away from all-long and all-flat boundaries. Metric conventions. Timing alpha is a raw within-stock covariance in basis points per stock-day on its original scale. The archived standard and narrative scorers condition this average on trajectories containing both actions. The complementary schedule exchanges every long and flat action and serves as a sign diagnostic. Signal projections measure linear overlap with three tested comparators. Cross-sectional IC averages over valid decision times with cross-sectional position variation.
18
Related documents
- RetailAgent: Structured Adverse Timing in Self-Conditioned Multimodal LLM Trading Agents#792407
- RetailAgent: Structured Adverse Timing in Self-Conditioned Multimodal LLM Trading Agents#788407
- Agentic markets.#269557
- Before Agents Decide: Epistemic Action in LLM-Based Systems#1155446
- Marketplace Institutions Related to the Timing of Transactions#21472
Retrieved via Conceptio: every document is proof-bundled with source, license, and retrieval metadata.
Read the Docs → · View CLI source on GitHub · Conceptio Open Knowledge Archive