A text-signal backtest needs the exact document version and the time at which its contents could have been processed into an actionable signal. A publication date alone is often insufficient. Evaluation must also respect duplicate reports, corrected stories, entity mapping and the time required for inference and order submission.
The model and its assumptions
A document can appear in several feeds, be updated after publication and contain references to multiple companies. Without versioning and event identifiers, a dataset can treat repeated coverage of one announcement as independent evidence. Later summaries may also explicitly describe the price reaction that the model is supposed to predict.
Text preprocessing can leak as well. A vocabulary, feature selection rule or learned representation fitted on the complete research period can contain later information. The model's permitted knowledge and any pretraining-related contamination should be considered when evaluating historical documents.
A worked example
Suppose a hypothetical announcement is published at 09:00:00, received at 09:00:03, processed into a signal at 09:00:05 and submitted as an order at 09:00:06. A strategy that captures the price change from 09:00:00 to 09:00:04 has claimed a return that occurred before its signal was usable.
Now suppose twenty near-identical articles repeat that announcement. Randomly distributing them across training and test sets can let the model recognise one event rather than generalise to new events. Grouping by the underlying announcement and maintaining chronological boundaries addresses the relevant evaluation question more directly.
Practical review and implementation
Archive original content, updates, source identifiers, receipt timestamps and the mapping from documents to assets. Define a policy for corrections and duplicated coverage before fitting. Fit text transformations within the training process and preserve the prediction-generation timestamp separately from the document timestamp.
Evaluate the complete path from source arrival to a tradable decision, including inference latency and execution costs. Inspect false signals involving negation, changed guidance, mixed units and statements about competitors. A phrase such as lower operating costs cannot be interpreted reliably by counting negative words alone.
Assumptions and limitations
Historical feed archives may lack accurate receipt times or retain only corrected content. Such gaps limit what the backtest can establish. A modern model's knowledge of later events can also complicate historical evaluation even when documents are correctly timestamped. Strong text classification metrics do not prove that its information remained unpriced when an executable signal became available.
Primary references
Further detail on the underlying concepts and data definitions:
