Figure 1: Example of the sequential prediction task.
Table 2: Run-to-run variability on MovieLens-20M (mean ± SE).
metric
mean ± standard error
Recall@5
0.1908 ± 0.00016
NDCG@5
0.1378 ± 0.00017
Recall@10
0.2596 ± 0.00014
NDCG@10
0.1600 ± 0.00014
Figure 2: Example of the legal precedent prediction task. Given context from the citing opinion (Garcia-Giraldo v. United States), predict the quotation sentence(s) or paragraph(s) from the cited opinion (United States v. Broce), which is unknown at inference time.
Table 4: Statistics of the sequential recommendation datasets.
Dataset
#users
#items
#actions
Avg. length
Density
Beauty
40,226
54,542
0.35m
8.8
0.02%
ML-1m
6,040
3,416
1m
163.5
4.79%
ML-20m
138,493
26,744
20m
144.4
0.54%
Table 6: Summary statistics of legal precedent dataset text features
Feature
Mean
Std
Min
Max
Length of cited text (chars)
306
225
24
18,342
Length of citing context (chars)
562
216
5
14,062
Figure 4: Ablation test on MovieLens-20m.
Table 7: Validation subset sizes for model selection
Dataset
Validation size
Sample size
Beauty
40,226
5,000
MovieLens-1m
6,040
1,000
MovieLens-20m
138,493
1,000
10k
103,812
1,000
20k
134,737
1,000
50k
190,051
1,000
Table 8: RQ-VAE hyperparameters.
ML-1M
LePaRD
Hyperparameter
Beauty
ML-20M
10k / 20k / 50k
Figure 6: RQ-VAE training progress on different datasets.
Many real-world AI systems represent entities, behaviors, and structured information using discrete machine-native symbols rather than natural language. While these representations are compact and preserve task-relevant structure, they lie outside the linguistic token space of pretrained large language models (LLMs), creating a fundamental divide between language modeling and structured prediction. We introduce UniLang, a unified generative framework that bridges this divide by extending pretrained LLMs to treat machine-native symbols as first-class generative units alongside natural-language tokens. UniLang expands the LLM's vocabulary and embedding space with grounded machine-native representations, enabling textual and symbolic tokens to be jointly modeled and generated under a single autoregressive objective. This unified interface allows pretrained LLMs to directly operate on machine-native representations without requiring them to be verbalized as natural language or relying on task-specific architectures. We evaluate UniLang on two structurally distinct tasks, sequential recommendation and legal precedent prediction, spanning different domains and types of structured prediction. Across both tasks, UniLang consistently outperforms strong baselines, demonstrating a path toward extending pretrained LLMs beyond language and using them as a common generative modeling backbone for heterogeneous machine-native representations.