Paper deep dive
LLM-Driven AutoML for Cross-Lingual Handwritten OCR: Closed-Loop Neural Architecture Search with GPT-5, GPT-4o, and Claude Sonnet 4
Mobina Kashaniyan, Amirhossein Ghassemi, Nasser Mozayani
Intelligence
Status: succeeded | Model: Gemma-4-26B-A4B | Prompt: intel-v1 | Confidence: 93%
Last extracted: 7/20/2026, 2:42:51 AM
Summary
This paper introduces a fully automated, closed-loop AutoML framework that utilizes Large Language Models (GPT-5, GPT-4o, and Claude Sonnet 4) as autonomous agents to design, train, and refine neural network architectures for cross-lingual handwritten optical character recognition (OCR). The system operates without manual intervention, domain-specific preprocessing, or hyperparameter tuning. Evaluated on Arabic, Persian, and English datasets, the framework consistently discovers efficient models with mean test accuracies above 93% and inference latencies between 41-44 milliseconds, demonstrating that LLMs can effectively serve as generative agents for neural architecture search in multilingual contexts.
Entities (16)
Relation Signals (19)
Proposed framework → appliedto → Arabic
confidence 95% · We apply this approach to Arabic, English, and Persian scripts
Proposed framework → appliedto → Persian
confidence 95% · We apply this approach to Arabic, English, and Persian scripts
Proposed framework → appliedto → English
confidence 95% · We apply this approach to Arabic, English, and Persian scripts
AHCD → usedfor → Arabic
confidence 95% · the AHCD dataset [9] for Arabic handwriting recognition
GPT-5 → usedfor → Neural Architecture Search
confidence 95% · GPT-5, GPT-4o, and Claude Sonnet 4 are employed independently as AI architects responsible for proposing, refining, and optimizing deep learning models.
GPT-4o → usedfor → Neural Architecture Search
confidence 95% · GPT-5, GPT-4o, and Claude Sonnet 4 are employed independently as AI architects responsible for proposing, refining, and optimizing deep learning models.
Claude-Sonnet-4 → usedfor → Neural Architecture Search
confidence 95% · GPT-5, GPT-4o, and Claude Sonnet 4 are employed independently as AI architects responsible for proposing, refining, and optimizing deep learning models.
EMNIST → usedfor → English
Cypher Suggestions (0)
No Cypher suggestions yet.
Abstract
Abstract:We present a fully automated closed-loop AutoML framework that uses GPT-5, GPT-4o, and Claude Sonnet 4 as autonomous neural architecture designers for cross-lingual handwritten optical character recognition. Each large language model independently generates, trains, evaluates, and iteratively refines neural network architectures using performance feedback from previous trials. The framework is evaluated on Arabic, Persian, and English handwriting datasets through 270 independent experiments. It consistently discovers accurate and computationally efficient models without manual architecture design, domain-specific preprocessing, or hyperparameter tuning. The generated models achieve mean test accuracies above 93 percent, a best accuracy of 98.1 percent, and inference latency between 41 and 44 milliseconds. The results demonstrate that large language models can function as effective AutoML agents for neural architecture search, enabling scalable, script-adaptive, and reproducible handwriting recognition across languages.
Tags
Links
- Source: https://arxiv.org/abs/2607.15509v1
- Canonical: https://arxiv.org/abs/2607.15509v1
Trouble viewing inline? Open PDF directly →
Full Text
27,997 characters extracted from source content.
Expand or collapse full text
LLM-Driven AutoML for Cross-Lingual Handwritten OCR: Closed-Loop Neural Architecture Search with GPT-5, GPT-4o, and Claude Sonnet 4 Mobina Kashaniyan Department of Computer Engineering Iran University of Science and Technology Tehran, Iran Amirhossein Ghassemi Department of Computer Engineering Iran University of Science and Technology Tehran, Iran Nasser Mozayani Department of Computer Engineering Iran University of Science and Technology Tehran, Iran Abstract—Handwritten text recognition across diverse scripts presents an enduring challenge in machine learning, as each lan- guage and writing system introduces unique visual complexities and demands. Traditional approaches have depended on expert- guided model design and extensive preprocessing, which make it difficult to scale and adapt to new scripts efficiently. In this work, we introduce a pipeline that is fully automatic and cross lingual, using large language models, GPT 5, GPT 4o and Claude Sonnate 4, to independently generate, evaluate, and refine neural network architectures for handwritten optical character recognition. This process requires no manual intervention, domain specific prepro- cessing, or human selection of models, resulting in a complete end to end automated system. We apply this approach to Arabic, English, and Persian scripts, each representing distinct character shapes and writing tradi- tions, and conduct thirty independent trials for every language. The pipeline consistently discovers efficient models with high test accuracy, achieving average scores above ninety three percent, while also maintaining inference speeds that meet the needs of real time applications. Notably, the system is able to automatically explore a wide range of neural architectures and adaptively select designs that fit the unique requirements of each script, without any explicit guidance from human experts. These results show that large language models can move beyond language processing and act as independent designers for machine learning systems. This enables a scalable, script agnostic, and fully automatic solution for multilingual handwritten text recognition, opening the door to rapid and adaptable deployment of OCR technology across many languages and domains. Index Terms—large language models, neural architecture search, handwritten text recognition, multilingual OCR, automa- tion, model discovery I. INTRODUCTION Converting handwritten text into digital formats is increas- ingly essential for professionals such as editors, students, archivists, and researchers. Despite significant advances in artificial intelligence, accurately recognizing handwritten char- acters remains a complex challenge across diverse scripts such as Arabic, English, and Persian. These languages present unique structural characteristics, including intricate stroke pat- terns, diacritics, and high variability in writing styles among individuals. Traditional Optical Character Recognition (OCR) approaches typically rely on manually designed neural archi- tectures, such as convolutional or transformer-based networks. While these handcrafted models have achieved promising re- sults, they often demand extensive expert intervention to itera- tively adjust network layers, tune hyperparameters, or redesign model components. This process can be both time-consuming and prone to inconsistent outcomes. Consequently, prior work has often prioritized elaborate preprocessing techniques rather than addressing architectural improvements directly. Recent developments in large language models (LLMs), particularly GPT-5, GPT-4o, and Claude Sonnet 4, have opened new frontiers for automated neural network design. These models demonstrate advanced reasoning and code-generation capabil- ities, enabling them to serve as intelligent agents for archi- tectural discovery. Motivated by this emerging capability, we present a fully automated pipeline for multilingual handwritten text recognition in Arabic, English, and Persian scripts, where GPT-5, GPT-4o, and Claude Sonnet 4 are employed indepen- dently as AI architects responsible for proposing, refining, and optimizing deep learning models. Our pipeline begins with raw handwritten image data and minimal augmentation. Dataset-specific metadata including the number of classes and image dimensions is used to prompt GPT-5, GPT-4o, and Claude Sonnet 4 to propose candidate model architectures in structured JSON format. These archi- tectures incorporate a variety of components including con- volutional layers, pooling operations, normalization, dropout, and optional transformer-based modules. Each proposed model979-8-3315-8973-8/25/$31.00 © 2025 IEEE arXiv:2607.15509v1 [cs.CV] 16 Jul 2026 is then trained and evaluated without human intervention. Following each trial, performance metrics such as training accuracy, validation accuracy, and test accuracy are fed back into the same LLM that generated the architecture. This creates a closed feedback loop that allows each LLM to refine its subsequent proposals based on previous outcomes. This iterative architecture optimization process eliminates the need for manual hyperparameter tuning and significantly ac- celerates the model development cycle. While recent research has leveraged LLMs for direct image or text classification, their role as generative agents for automated model discovery remains largely unexplored. To the best of our knowledge, our approach is the first to apply GPT-5, GPT-4o, and Claude Sonnet 4 in closed-loop pipelines for architecture generation in the domain of cross-lingual handwritten text recognition. The key contributions of this work are summarized below: • Cross-script Capability: We introduce a single, unified framework capable of recognizing multiple handwritten scripts, including Arabic, English, and Persian. Each language benefits from tailored preprocessing and encod- ing strategies to accommodate its specific structural and visual complexities. • LLM-driven Model Discovery: GPT-5, GPT-4o, and Claude Sonnet 4 are employed as standalone architecture generators. By translating dataset-specific insights into executable model configurations, our method entirely removes the need for manual architecture design. • Automated Iterative Refinement: The system operates in a closed feedback loop in which each LLM receives trial-by-trial results and uses them to refine future ar- chitecture proposals. This dynamic process enables con- vergence toward more effective solutions over successive iterations. • Transparency and Reproducibility: Every experimental trial is rigorously documented, with architecture config- urations, training logs, and performance metrics saved in structured formats such as JSON and CSV. This design ensures full reproducibility and facilitates meaningful comparisons across model variations and LLM strategies. By transforming GPT-5, GPT-4o, and Claude Sonnet 4 into autonomous architecture designers, our framework signif- icantly simplifies OCR model development and advances the capabilities of automated machine learning for handwriting recognition. The rest of this paper is organized as follows: Section 2 discusses related work on multilingual handwrit- ten OCR and recent trends in automated model generation. Section 3 details our methodology, including architecture prompting, model generation, training procedures, and the feedback loop. Section 4 presents experimental results across all three languages and provides an analysis of performance, parameter efficiency, and architectural evolution. Finally, Sec- tion 5 concludes the paper and outlines directions for future research. Fig. 1: The fully automated LLM-driven cross-lingual OCR architecture search pipeline. Evaluation results are fed back to the LLM, which iteratively refines model designs until the best architecture is discovered for each script. I. RELATED WORK Recent advances in handwritten text recognition (HTR) have leveraged deep learning and neural architecture search (NAS), particularly for complex scripts like Arabic and Per- sian. Qalam [1] integrates a SwinV2 vision encoder with a RoBERTa-style decoder to handle both printed and hand- written Arabic text, highlighting the power of transformers for cursive, context-sensitive features. For Persian and Ara- bic, [2] uses an ensemble of feedforward networks optimized with particle swarm and League Championship algorithms, while [10] applies DenseNet and Xception with augmenta- tion, [11] introduces Bina, a CNN–BiRNN trained on synthetic data, and [12] develops a segmentation-free CNN–RNN–CTC model for offline word recognition. Broader reviews [5], [13] categorize HTR methods, survey datasets, and outline chal- lenges such as style variability, limited data, and low-resource language coverage. Parallel to OCR progress, large language models have been explored for NAS. GPT-NAS [3] combines a pretrained GPT with a genetic algorithm for architecture search on NAS-Bench-101, achieving strong results on CIFAR and ImageNet, while GENIUS [4] prompts GPT-4 to itera- tively generate and refine models, rivaling conventional NAS with minimal domain expertise. While prior work addresses OCR for complex scripts and LLM-driven NAS separately, our approach unifies them by employing GPT-5, GPT-4o, and Claude Sonnet 4 in a closed-loop, multilingual OCR pipeline that automates both model generation and refinement across Arabic, English, and Persian. I. THE PROPOSED APPROACH Our end to end automated machine learning (AutoML) pipeline for Optical Character Recognition (OCR) revolves around an integrated and iterative loop comprising four core components: (1) data collection and augmentation, (2) large language model (LLM) driven neural architecture proposal, (3) automated model training and evaluation, and (4) con- tinuous performance feedback for refining subsequent model architectures. By systematically repeating this cycle across numerous trials, our pipeline autonomously identifies and leverages optimal architectural patterns and hyperparameters for each targeted handwriting script, including Arabic, English, and Persian, without manual intervention. Figure 1 illustrates the architecture of the proposed framework. A. Data Collection and Augmentation We utilize the EMNIST dataset [7] for English, the SADRI dataset [8] for Persian, and the AHCD dataset [9] for Arabic handwriting recognition. For each script, we implement spe- cialized data loaders to collect raw handwritten images along with their corresponding labels. These loaders reshape the data into standardized tensor formats and partition datasets into training, validation, and test subsets using stratified sampling to maintain class distributions, dedicating 10% of the data to validation. To enhance the model’s generalization capa- bility while ensuring computational efficiency, we apply a lightweight data augmentation strategy and employ Keras’s ImageDataGenerator to introduce random rotations, horizontal and vertical shifts, and zoom operations directly during train- ing. This method enriches the training set’s diversity without imposing significant computational overhead. B. LLM Driven Neural Architecture Proposal At the beginning of each trial, we prepare a structured prompt containing essential dataset details, such as the number of classes and image dimensions, and, when available, perfor- mance metrics from the previous iteration (training, validation, and test accuracies). We provide this information to GPT-5, GPT-4o and Claude Sonnet 4, which responds with a detailed JSON specification. The specification includes the sequen- tial structure of neural layers, such as Conv2D, BatchNorm, MaxPooling, Dropout, Flatten, Dense, and optionally, hybrid patch embedding and transformer blocks. It also specifies hyperparameters like the optimizer choice, learning rate, batch size, number of epochs, early stopping patience, and evaluation metrics. Utilizing JSON specifications ensures deterministic parsing, allowing seamless and automated integration into the subsequent model construction step. C. Model Construction and Training We parse the architecture specifications generated by GPT- 5, GPT-4o and Claude Sonnet 4 returned in JSON format and automatically convert them into complete neural network models using Keras. Each specification defines a sequence of layers, including convolutional blocks, batch normalization, pooling, dropout, flattening, and dense layers terminating in a softmax classifier for multi-class prediction. The JSON format also contains training hyperparameters such as learning rate, optimizer type, batch size, and early stopping crite- ria. Our parser accommodates both conventional CNN-based structures and more advanced hybrid architectures. When specified, the system constructs models incorporating Vision Transformer components through custom implementations of PatchEmbedding and TransformerBlock layers. These modules support projection-based patch extraction and self-attention over spatial tokens, enabling exploration of token-mixing representations beyond spatial convolutions. Each model is compiled with categorical cross-entropy loss and optimized using either the Adam or SGD optimizer, as indicated in the LLM-generated specification. D. Evaluation and Metric Collection After training concludes, we rigorously evaluate each model on its corresponding test set to determine final test accuracy. We also record the highest training and validation accuracies observed during the optimization process. Inference latency is measured through repeated forward passes using single sample inputs to simulate real time prediction performance. Addition- ally, we document the total number of trainable parameters as an indicator of model complexity. All collected metrics along with the full JSON model specification are systematically logged in a centralized CSV file. This ensures transparency, facilitates cross trial comparisons, and supports reproducibility in all downstream analyses. E. Continuous Self-Improvement Feedback Loop Following each training trial, we compile a structured summary containing key performance metrics training accu- racy, validation accuracy, and test accuracy into a concise JSON object. This summary is passed as feedback into the subsequent LLM prompt, enabling the model to evaluate the effectiveness of its prior architectural decisions. The language model uses this information to adjust architectural elements such as layer types, depth, width, and hyperparameter settings in future proposals. This feedback loop operates automatically across multiple trials, allowing the LLM to iteratively refine its understanding of which configurations yield better results for each handwriting script. As a result, the system converges toward architectures that balance predictive performance, in- ference efficiency, and model complexity. IV. EVALUATION We evaluated the proposed closed loop neural architecture search pipeline over thirty fully independent trials for each script, Arabic, English, and Persian, for each language model designer. In every trial the assistant generated a new network topology and training schedule. We reported peak training, validation, and test accuracy, total parameters, and mean per sample latency averaged over one thousand forward passes on an NVIDIA GPU with batch size one and float32 precision. As summarized in Tables Ia, Ib, and Ic, GPT 5 discovered the most compact architectures with mean parameter counts from 0.88 to 1.35 million and latencies from 41.2 to 41.7 ms, while reaching mean test accuracies of 0.954 for Arabic, 0.938 for Persian, and 0.937 for English, and a best trial of 0.981 on Arabic. GPT 4o closely matched or exceeded these accuracies, 0.959 for Arabic, 0.944 for Persian, and 0.936 for English, with slightly larger models between 1.31 and 2.74 million parameters and similar latency between 40.6 and 41.6 Fig. 2: Claude Sonnet 4 parameter count and per sample inference time across thirty trials for Arabic, English, and Persian. Latency remains stable near forty one milliseconds despite large variation in model size, which suggests that runtime cost is driven more by architectural depth than by parameter count. Fig. 3: Claude Sonnet 4 training and validation accuracy across thirty generated models for Arabic, English, and Persian. Validation closely follows training with differences typically within one to two percentage points, which indicates strong generalization. Fig. 4: Claude Sonnet 4 distribution of test accuracy across thirty trials per script for Arabic, English, and Persian. Persian shows the highest median, Arabic exhibits wider spread, and English is stable. TABLE I: Aggregate performance across thirty independent trials per script. (a) ChatGPT 5 ScriptMean AccStd DevBest TrialBest AccMean Params (M)Mean Latency (ms) English0.9370.008120.9441.3541.7 Persian0.9380.01480.9630.9741.3 Arabic0.9540.015270.9810.8841.2 (b) ChatGPT-4o ScriptMean AccStd DevBest TrialBest AccMean Params (M)Mean Latency (ms) English0.9360.00490.9441.3141.6 Persian0.9440.011160.9622.7441.2 Arabic0.9590.015110.9782.5740.6 (c) Claude Sonnet 4 ScriptMean AccStd DevBest TrialBest AccMean Params (M)Mean Latency (ms) English0.9310.00420.9466.7643.8 Persian0.9460.00710.9649.2842.3 Arabic0.9210.015170.9799.2643.2 ms. Claude Sonnet 4 produced competitive models, especially for Persian with a mean of 0.946 and a best of 0.964, but with substantially larger sizes from 6.76 to 9.28 million parameters TABLE I: Comparison of our AutoML-based LLM OCR framework and Cerescu & Bumbu [14]. Cerescu & Bumbu (2024)This Work LLM Model(s)GPT-4oGPT-5, GPT-4o, Claude Sonnet 4 LLM RoleVision-based OCRGenerative AutoML agent Dataset(s)Romanian CyrillicArabic, Persian, English PreprocessingManualFully automated Cross-LingualNoYes Architecture DesignFixedAutomated and dynamic Loop StructureOne-pass evaluationIterative search and feedback Accuracy MetricCharacter-levelFull-sequence accuracy while maintaining real time latency from 42.3 to 43.8 ms. Variability across trials was low for all settings, with standard deviation between 0.004 and 0.015, and English typically showed the tightest spread. The training and validation curves for all trials show validation closely following training within about 0.5 to 2 percent, as seen in Figures 9, 6, and 3, which indicates robust generalization and effective early stopping. The parameter versus latency plots in Figures 8, 5, and 2 show that latency remains clustered near 40 to 44 ms despite multi fold changes in parameter count, which suggests that runtime cost is driven more by architectural depth and composition than by raw size. The accuracy distributions in Figures 10, 7, and 4 highlight cross lingual trends. Arabic attains the highest medians for GPT 5 and GPT 4o with tight variance, English is slightly lower but very stable, and Persian is competitive with a few low outliers and the strongest median for Claude Sonnet 4. Across ninety trials for each model, the pipeline consistently discovers accurate and parameter efficient archi- tectures that meet real time constraints without manual tuning, which validates language model driven architecture search for multilingual handwritten optical character recognition. A. Comparison with Prior Work A closely related study by Cerescu and Bumbu [14] com- pared GPT-4o’s vision-based OCR capabilities against tra- Fig. 5: GPT 4o parameter count and per sample inference time across thirty trials for Arabic, English, and Persian. Bars show parameters and lines show mean latency. Latency remains near forty one milliseconds across a wide range of sizes. Fig. 6: GPT 4o training and validation accuracy across thirty trials for Arabic, English, and Persian. Validation accuracy tracks training accuracy with small gaps, which indicates effective regularization and limited overfitting. Fig. 7: GPT 4o distribution of test accuracy across thirty trials per script for Arabic, English, and Persian. Arabic attains the highest median, English is slightly lower but very stable, and Persian is comparable. ditional neural networks for a historical Romanian Cyrillic script, evaluating both models as direct recognition tools. Their work demonstrates the utility of LLMs for low-resource OCR, particularly at the character level, achieving up to 64% accu- racy with the GPT-4o API for single-character recognition. However, their approach treats LLMs solely as recognizers, without addressing model generation or adaptation. In contrast, our framework leverages GPT-5, GPT-4o and Claude Sonnet 4 as generative agents within an automated neural architecture search process, enabling not only recognition but also dynamic model design, script adaptation, and cross-lingual transfer across English, Persian, and Arabic datasets. B. Comparison of LLMs A quantitative comparison of GPT 5, GPT 4o, and Claude Sonnet 4 shows clear differences in model quality and resource efficiency when used as automated neural architecture design- ers for multilingual handwritten text recognition. Summary statistics appear in Tables Ia, Ib, and Ic. 1. Test Accuracy and Robustness: GPT 4o attains the highest mean test accuracy for Arabic at 0.959, followed by GPT 5 at 0.954 and Claude Sonnet 4 at 0.921. Claude Sonnet 4 leads on Persian at 0.946, with GPT 4o at 0.944 and GPT 5 at 0.938. For English the means are 0.937 for GPT 5, 0.936 for GPT 4o, and 0.931 for Claude Sonnet 4. Best trial accuracies extend from 0.944 to 0.981 across the three models and scripts. GPT 5 reaches 0.981 on Arabic and 0.963 on Persian. GPT 4o reaches 0.978 on Arabic and 0.962 on Persian. Claude Sonnet 4 reaches 0.979 on Arabic and 0.964 on Persian and 0.946 on English. Variability is low in all cases, with standard deviation values between 0.004 and 0.015 across the three scripts and models. English shows the tightest variance at 0.004 for GPT 4o and Claude Sonnet 4 and 0.008 for GPT 5. Arabic shows 0.015 for all three models. These results indicate stable performance over thirty trials per script. 2. Model Size and Latency: GPT 5 produces the most compact architectures with mean parameter counts of 1.35 million for English, 0.97 million for Persian, and 0.88 million for Arabic, and with mean latency from 41.2 to 41.7 ms. GPT 4o yields slightly larger models at 1.31 million for English, 2.74 million for Persian, and 2.57 million for Arabic, with latency from 40.6 to 41.6 ms. Claude Sonnet 4 generates substantially larger models at 6.76 million for English and about 9 million for Persian and Arabic, while maintaining real time inference from 42.3 to 43.8 ms. The small differences in latency despite large differences in parameter counts suggest that runtime cost is governed more by architectural depth and composition than by raw size, and all three approaches satisfy real time requirements. 3. Final Assessment: GPT 5 offers the best accuracy to size profile, combining strong cross script accuracy with the smallest models and consistent real time latency. GPT 4o provides a balanced option with top mean accuracy in Arabic, competitive results in Persian and English, compact models, and very low latency. Claude Sonnet 4 achieves the strongest mean accuracy in Persian and competitive best trials across scripts, although it does so with a higher parameter budget. Fig. 8: GPT 5 parameter count and per sample inference time across thirty trials for Arabic, English, and Persian. Bars indicate parameters and lines indicate mean latency. Latency remains near forty one milliseconds even when model size varies by several fold. Fig. 9: GPT 5 training and validation accuracy across thirty trials for Arabic, English, and Persian. Validation closely follows training with small gaps, which confirms strong generalization. Fig. 10: GPT 5 distribution of test accuracy across thirty trials per script for Arabic, English, and Persian. Arabic reaches the highest median with tight spread, English is slightly lower but stable, and Persian is competitive with a few low outliers. V. CONCLUSION AND FUTURE WORK We presented a fully automated, closed-loop neural archi- tecture search pipeline for multilingual handwritten character recognition, powered by GPT-5, GPT-4o, and Claude Sonnet 4. Experiments on Arabic, English, and Persian showed that the pipeline consistently discovers compact, accurate models without manual tuning or domain specific heuristics. Across trained models, it achieved strong generalization, efficient resource use, and inference times suitable for real-time deploy- ment. Our analysis indicates that accuracy gains result from exploring depth and structural diversity rather than simply increasing parameter counts. Future work includes expanding to more languages with complex ligatures systems, integrat- ing hardware-aware constraints, and extending to end-to-end sequence-to-sequence architectures for full line or paragraph recognition. These directions will further enhance the robust- ness, efficiency, and applicability of automated OCR model discovery. REFERENCES [1] B. Gagan, EM. Billah Nagoudi, F. Alwajih, & M. Abdul-Mageed. Qalam: A multimodal LLM for Arabic optical character and handwriting recognition. arXiv preprint arXiv:2407.13559, 2024. [2] O. Motamedisedeh,F. Zagia, , & A. Alaei. A new optimization approach to improve an ensemble learning model: application to Persian/Arabic handwritten character recognition. In International conference on doc- ument analysis and recognition (p. 180-194). Cham: Springer Nature Switzerland, 2023. [3] C. Yu, X. Liu, Y. Wang, Y. Liu , W. Feng ,X. Deng , C. Tang , J. Lv . GPT-NAS: Evolutionary neural architecture search with the generative pre-trained model. arXiv preprint arXiv:2305.05351. 2023. [4] M. Zheng, X. Su, S. You, F. Wang, C. Qian, C. Xu, S. Albanie . Can gpt- 4 perform neural architecture search?. arXiv preprint arXiv:2304.10970. 2023. [5] V. Sharma, M. Nazim, & S. Prakash Sharma, A Systematic Literature Review on Handwritten Text Recognition: Approaches, Challenges, and Future Directions. Challenges, and Future Directions, 2025. [6] AaronHurst,etal.”Gpt-4osystemcard.”arXivpreprint arXiv:2410.21276 (2024). [7] G. Cohen, S. Afshar, J. Tapson, & A. Van Schaik, EMNIST: Extending MNIST to handwritten letters. In 2017 international joint conference on neural networks (IJCNN) - p. 2921-2926-. IEEE, 2017. [8] J. Sadri, M. R. Yeganehzad, and J. Saghi, ”A novel comprehensive database for offline Persian handwriting recognition,” Pattern Recog- nition, vol. 60, p. 378-393, 2016. [9] A. El-Sawy, M. Loey, and H. EL-Bakry, “Arabic handwritten characters recognition using convolutional neural network,” WSEAS Transactions on Computer Research, vol. 5, p. 11–19, 2017. [10] M. Bonyani, S. Jahangard, & M. Daneshmand, Persian handwritten digit, character and word recognition using deep learning. International Journal on document analysis and recognition (IJDAR), 24(1), 133-143, 2021. [11] Z. Khosrobeigi, H. Veisi, E. Hoseinzade, & H. Shabanian, Persian optical character recognition using deep bidirectional long short-term memory. Applied Sciences, 12(22), 11760, 2022. [12] Safarzadeh, V .Mohammadi & P. Jafarzadeh, Offline Persian handwriting recognition with CNN and RNN-CTC. In 2020 25th international computer conference, computer society of Iran (CSICC) (p. 1-10). IEEE, 2020. [13] C. Garrido-Munoz, A. Rios-Vila, & J. Calvo-Zaragoza, Handwritten Text Recognition: A Survey. arXiv preprint arXiv:2502.08417, 2025. [14] T. Bumbu. Comparison of Large Language Models and Traditional Neural Networks in Optical Character Recognition for Old Alphabets. In International Conference dedicated to the 60th anniversary of the foundation of Vladimir Andrunachievici Institute of Mathematics and Computer Science, MSU p. 259-265, 2024. [15] OpenAI. Introducing GPT-5. 2025. Available at: https://openai.com/ index/introducing-gpt-5/. Accessed: 2025-08-12.