TL;DR for operators
When a functioning generative AI product repeatedly fails certain customer requests, should the next engineering dollar buy more computing capacity, better training data, or better evaluation? PenGPT’s handwriting and sketch experiments offer a way to distinguish these investments.1
- Diagnose before scaling. Increasing the handwriting model from 5.2 million to 11.2 million parameters reduces predictive loss by just 0.004 nats per pen move. Removing geometric augmentation increases it by 0.028, while retaining only 10% of the training data produces a reported deterioration of 0.050.
- Train the relationships that personalization requires. Training on isolated handwritten words rather than same-writer sequences substantially weakens adaptation to unfamiliar writers, even when contextual examples are available during inference.
- Compatible representations do not guarantee compatible capabilities. A shared numerical representation of images and text does not eliminate the need to train on the kinds of instructions customers will provide.
- Better prediction does not necessarily mean a better product. The image-only sketch model achieves lower predictive loss than the fully conditioned model (0.580 versus 0.591 nats per pen move), yet its caption-retrieval accuracy is only 4.3% versus 43.3%.
- Distinguish architecture from scale. The evaluated transformer outperforms the recurrent sketch baseline in label retrieval, 75.6% versus 40.3%. Architecture, capacity, training-data coverage, and representation design address different constraints. Because most ablations rely on single training runs and retrieval metrics do not establish unrestricted task success, validate the relevant intervention before committing additional resources.
The next engineering dollar
When a specialized generative AI product repeatedly disappoints customers, increasing model capacity is an understandable response. A larger model may capture relationships that its predecessor misses. But the same failure could arise because the training process rarely exposes the model to the circumstances in which customers expect it to perform.
PenGPT,1 a study of handwriting and sketch generation, offers a revealing comparison. Increasing its handwriting model from 5.2 million to 11.2 million parameters improves predictive loss by just 0.004 nats per pen move. Removing geometric augmentation worsens that loss by 0.028, while reducing training data to 10% produces a reported deterioration of 0.050.
A separate experiment produces an even more consequential result: a sketch generator becomes better at predicting pen movements while becoming substantially worse at drawing what users request through text.
For an AI product leader, these findings change the investment decision. Before purchasing additional computational capacity, it may be worth establishing whether the existing model has encountered the relationships, instructions, and examples necessary to acquire the desired capability.
Training-data coverage can dominate parameter expansion
PenGPT represents handwriting and drawings as sequences of small pen movements and changes in pen state. Rather than generating a finished image, it learns to construct digital ink incrementally.
The method quantizes pen trajectories onto a grid, represents movements through eight neighboring directions, and compresses recurring movement patterns using byte-pair encoding (BPE). Separate decoder-only transformers generate handwriting and sketches using this common representation.
The assembled handwriting corpus contains 495,590 words from 1,255 writers. The drawing corpus contains 477,670 sketches.
The handwriting ablations in Table 1 reveal where performance is sensitive to changes in the training recipe.
| Handwriting configuration | Nats per pen move | Reported change |
|---|---|---|
| Baseline, 5.2M parameters | 0.716 | — |
| Larger model, 11.2M parameters | 0.712 | −0.004 |
| Without geometric augmentation | 0.744 | +0.028 |
| With 10% of training words | 0.765 | +0.050 |
| Larger ScribeTokens vocabulary | 0.714 | −0.001 |
Source: Table 1 and Appendix E, Table 5. Lower values indicate better predictive likelihood. Reported changes follow the paper’s calculations rather than subtraction of rounded displayed values.
Negative log-likelihood measures how much probability a model assigns to observed sequences. Normalizing it by elementary pen movements allows comparisons between token vocabularies using the same underlying grid.
Within these experiments, removing augmentation produces a deterioration seven times the magnitude of the improvement achieved by increasing model capacity. Reducing the available training words has an even larger effect.
Vocabulary expansion also delivers limited gains. Appendix F compares PenGPT’s 526-token vocabulary with a roughly 32,000-token alternative on the external DeepWriting benchmark. Under matched grid resolutions, the larger vocabulary produces mixed recognition results and slightly worse normalized likelihood.
Compression itself remains valuable: removing BPE merges increases sequence length approximately 3.2-fold and doubles training duration, despite slightly improving handwriting likelihood.
These comparisons distinguish three engineering objectives: predictive quality, representation efficiency, and computational capacity. Improving one does not necessarily improve the others.
Personalization depends on relationships in the training data
PenGPT’s handwriting model can adapt to previously unseen writers using preceding handwritten examples. The mechanism is particularly relevant to personalized AI products because it does not depend primarily on storing a dedicated embedding for every new writer.
During training, the model encounters sequences containing up to four words from the same writer. These sequences expose it to recurring stylistic relationships across different words.
The researchers test this mechanism by replacing multiword sequences with isolated words.
| Training configuration | Unseen-writer style rank after three examples |
|---|---|
| Standard multiword training | 1.87 |
| Without stored writer embeddings | 1.80 |
| Single-word training | 5.97 |
Source: Appendix E, Table 5. The metric ranks the correct writer among 16 candidates; lower is better.
Removing stored writer embeddings has little effect on this contextual adaptation measure. Removing the relationships between examples during training produces a much larger deterioration.
The distinction matters beyond handwriting. A personalization team may provide customer examples at inference time while assuming the model will automatically identify their common characteristics. PenGPT suggests a specific diagnostic: examine whether the training sequences contain the kinds of relationships that make those examples informative.
This is a Cognaptus engineering inference, not evidence that the same training intervention will improve every personalized AI application.
A shared embedding space is not sufficient training coverage
The sketch experiments expose a different failure mode.
PenGPT conditions sketch generation on numerical representations of images, category labels, and descriptive captions produced through SigLIP 2. Because images and text share an embedding space, it seems plausible that a generator trained only on image representations could also respond to textual instructions.
The conditioning ablations show otherwise.
| Training conditioning | Label retrieval | Caption retrieval |
|---|---|---|
| Images only | 6.1% | 4.3% |
| Images and labels | 77.5% | 9.5% |
| Images, labels, and captions | 75.6% | 43.3% |
Source: Table 1 and Appendix H, Table 8. Guidance strength 2; retrieval uses candidate sets of 345 labels and 300 held-out caption phrases. Full-conditioning results use the main baseline averages.
Adding category labels restores category-level generation, but descriptive requests remain difficult. Including captions during training improves descriptive-prompt retrieval by 33.8 percentage points relative to image-and-label conditioning.
Appendix H investigates the mechanism through embedding-distribution analysis and an exploratory mean-shift intervention. Translating textual embeddings toward the image-embedding distribution improves the image-only model’s caption retrieval to 17.3%, but remains well below explicit caption-conditioned training.
Representational compatibility therefore does not eliminate differences between the inputs encountered during training and deployment. This complements our earlier discussion in Not Every Shift Is Noise: What Multimodal AI Should Keep: understanding what changes within a representation can be more informative than assuming that numerical compatibility resolves distributional differences.
The evaluation mismatch is equally striking. The image-only model records a predictive loss of 0.580 nats per move, outperforming the fully conditioned baseline’s 0.591. Yet its descriptive-prompt retrieval is approximately one-tenth as high.
A product team selecting models solely through held-out predictive loss could therefore select the weaker system for its intended text-driven application.
Match the engineering expenditure to the observed failure
Cognaptus interprets these findings as a framework for allocating development resources when a specialized generative system already functions but fails under particular customer requirements.
| Observed product failure | Intervention to investigate | Evaluation requirement |
|---|---|---|
| Weak performance on unfamiliar examples | Data coverage and augmentation | Representative held-out cases |
| Inconsistent personalization | Contextual training-sequence construction | Adaptation to previously unseen users |
| Poor response to particular instruction formats | Conditioning coverage | Tests using actual production prompts |
| Excessive computational requirements | Token compression and vocabulary design | Quality, memory, and latency comparisons |
| Difficulty with extended output dependencies | Model architecture and capacity | Performance across sequence lengths |
Architecture remains part of this diagnosis. In the main sketch-generation comparison, the transformer achieves 75.6% label retrieval against 40.3% for the author-implemented recurrent baseline using common stroke tokens. Its advantage over recurrent models is less pronounced for handwriting.
The longer sketch sequences appear to place greater demands on dependency modeling. Consequently, the handwriting results should not become a general argument against scaling.
Where the evidence stops
PenGPT provides moderate computational evidence from held-out evaluations, architecture comparisons, and controlled ablations. Most individual ablations, however, rely on single training runs.
The assembled training corpora are unavailable for independent replication. Most handwriting trajectories are reconstructed from static scans, which cannot verify historical stroke order. Filtering also favors short, neatly written words, while the handwriting experiments primarily concern English.
The evaluation metrics introduce further boundaries. Writer-style rank measures conditional discrimination rather than human-perceived authenticity. Sketch retrieval uses the same multimodal model family that provides conditioning embeddings, creating potential evaluator dependence. Neither metric independently establishes unrestricted user-task satisfaction.
Commercial reliability, human preference, physical plotting quality, and development returns remain unmeasured. Personalized handwriting applications would additionally require consent, provenance, and controls against impersonation.
Conclusion
PenGPT’s most transferable contribution is its approach to diagnosing generative capability through targeted comparisons.
A model can have sufficient capacity to learn a capability without receiving the training examples necessary to acquire it. It can compress its representations efficiently without improving predictive quality. It can also improve predictive likelihood while becoming less suitable for the task customers intend to perform.
For engineering leaders, these distinctions justify treating model scaling as one candidate intervention among several. The next development expenditure should follow evidence about which constraint is preventing the intended capability from emerging.
Cognaptus: Automate the Present, Incubate the Future.
-
Sam Greydanus (2026). PenGPT: A Generative Transformer for Handwriting and Sketches. arXiv:2611.38036. https://arxiv.org/abs/2611.38036 ↩︎ ↩︎