Deep Learning for Classical Japanese Literature
Paper · 2018 · Tarin Clanuwat, Mikel Bober-Irizar, Asanobu Kitamoto et al.
Summary
A digital copy of an old Japanese book preserves the page. Reading it requires a skill that most present-day Japanese readers have had little opportunity to learn. Much of the literature the authors discuss uses Kuzushiji, a cursive script that disappeared from the official school curriculum after changes to Japanese writing and education. The authors take up a problem within the larger effort to make these books readable. They turn character images from transcribed books into datasets for machine learning, then ask what can be recovered from an individual image, either as a recognized character or as a drawing in modern script.
The paper releases datasets drawn from 35 classical books. Kuzushiji-MNIST adapts the familiar format of MNIST, the handwritten digit benchmark, to a balanced selection of 10 hiragana classes. Kuzushiji-49 covers 48 hiragana characters and an iteration mark, preserving the unequal frequencies found in the books. Kuzushiji-Kanji contains 140,426 images across 3832 classes, including characters represented by a single image. The task is complicated by variation within a class. Historically distinct kana forms can share the same modern reading, so an accurate classifier has to bring together shapes that may look quite different.
The authors compare four approaches to kana recognition, from a nearest-neighbor rule to a residual network trained with manifold mixup. They evaluate by taking the mean of the test accuracies for individual classes, which gives each character class equal influence even when the number of examples differs. The paper identifies the systems and the scoring rule. The numerical entries of the classification table are unavailable, so the benchmark comparison cannot be reconstructed from the paper’s prose.
For kanji, the authors try a different task. They learn separate compact representations for historical character images and modern ones, then learn how to predict a modern representation from an old one. The prediction can be rendered as a pixel image or used to generate an ordered series of strokes. The paper shows examples for unseen characters, illustrating what a modern rendering might offer a human transcriber. These examples demonstrate the form of the output. They leave open how frequently the conversion is correct and whether it helps people transcribe complete pages.
Deep dive: Deep Learning for Classical Japanese Literature
Deep Learning for Classical Japanese Literature introduces Kuzushiji recognition benchmarks and tests how cursive kanji can be rendered in modern form. · about 36 minutes to read
The problem and its context
Why a scan can remain hard to read
The obstacle begins with a difference between preserving a document and preserving the ability to read it. A scan can make a book available away from the archive and protect its contents against the loss of the physical copy. The writing on the scanned page still requires interpretation. In the Japanese books that motivate the paper, that interpretation depends on familiarity with historical character forms. Present-day fluency in Japanese offers only part of the preparation a reader needs. The authors describe a situation in which digital copies are already available for many works, while reading those copies remains a specialist activity.
The paper places this gap in the history of Japanese education. It points to the Meiji Restoration in 1868 and the reforms that altered writing, printing and schooling. Kuzushiji was dropped from the official curriculum after more than a millennium of use. The authors’ account connects the difficulty of reading old books to a break in instruction. Their comparison of a book printed in 1772 with a school textbook printed in 1900 gives a visual example of what that break means for a reader. Both are printed texts. The older page requires knowledge of forms that a reader trained on the later standard would have little reason to acquire. Historical linguistics & language change
The scale of the material matters to the authors’ argument. They report that the General Catalog of National Books records over 1. Before 1867, 7 million books were either written or published in Japan. In a separate estimate, they put the nationwide totals at more than 3 million unregistered books and one billion historical documents, all still preserved. The first quantity is tied to a catalog and the latter quantities are estimates. Their role in the paper is to explain why transcription matters even after digitization. The benchmarks themselves draw on a much smaller set of books, where transcription has already supplied examples from which a system can learn.
The paper also shows historical books outside formal archives. It describes circulation through specialist bookstores and auctions and illustrates books offered at a flea market. These examples give the access problem a practical setting. A work can be physically available for inspection and still be effectively closed to someone who cannot recognize its script. The authors’ goal of bringing computational researchers into contact with classical literature starts with that specific obstacle. They organize the research around visual character forms because these can be isolated, labeled and made available in a format that image-recognition researchers already know.
How transcription became recognition data
Before the paper’s benchmarks, the National Institute of Japanese Literature and other institutions had begun a national digitization project in 2014. The project sought to digitize about 300,000 old Japanese books and share open data, with transcription for some of the collection. Transcription involved marking a box around each character. A box records the part of the page occupied by a character. Once it is associated with a reading, it gives a recognition system both a region from which an image can be taken and an answer against which a prediction can be checked.
The authors say that literature scholars initially saw little reason to release the boxes separately. Seeing their value for computational research, Center for Open Data in the Humanities proposed bringing them together into a standalone resource. The complete dataset for Kuzushiji became available in November 2016. The paper describes it as containing 403,242 character instances and 3,999 character types. An instance is a particular occurrence of a character on a page. A type collects occurrences under a shared identity. Those counts therefore describe different things. A book can contribute many instances to a type that occurs frequently.
This history matters to the shape of the experiment. A transcribed book offers an aligned pair of sources, a page image and a record of what its marks mean. The boxes supply the correspondence at character scale. A system can then be evaluated on whether it recognizes the contents of a region whose location has already been established. On a full page, deciding which marks belong to a character is itself work. Starting after that decision creates a problem that can be specified precisely and shared across experiments. It also explains why character recognition is one stage of the authors’ longer-term aim of automated transcription.
What an image benchmark can ask about old writing
The authors model the simplest of their tasks on MNIST, which gives a classifier an image of a handwritten digit and asks it to choose a digit class. Reusing a familiar benchmark format means researchers can bring existing recognition systems to a different collection of images. The paper cites Fashion-MNIST as a precedent. Fashion-MNIST changes the subject to clothing while preserving the ease of using small grayscale inputs. The authors adopt the same general idea of substitution and give the resulting task a connection to a problem in cultural preservation. Evaluation & benchmarks
The paper distinguishes the visual challenges of clothing and historical kana. In a small grayscale image, items assigned to different clothing categories can look much alike. Some kana present the converse difficulty. Images assigned to the same class can have visibly different shapes because the older forms descend from different written characters. A reader may recognize each shape individually and know that they represent the same kana. A classifier has to learn both judgments from examples, including when a visually unusual form belongs to a familiar category.
That distinction clarifies why a familiar input format does not make the task equivalent to digit recognition. Changing the source images changes what counts as meaningful variation. A classifier should allow for differences between individual impressions of the same written form. It may also need to recognize an completely different historical form under the same label. The benchmark defines success at the level of the chosen kana identity. The history of how that identity came to have several appearances remains visible in the examples even though it is compressed into a single target label.
The paper puts the kanji experiment in a separate line of earlier work. It cites studies of transfer between pixel images and work that generated Chinese characters as ordered strokes. The authors bring these strands together by asking for an output in modern Japanese kanji from a historical pixel input. One possible output remains an image, while another is a drawing that specifies strokes in order. This shift changes the question from choosing a known label to producing a visible form. The older input and the modern output are related through character identity, but the evidence available on each side is stored in a different form.
The method, step by step
From a marked page to a character example
The authors perform preprocessing on images taken from 35 classical books that were printed in the eighteenth century. The earlier transcription work supplies boxes around characters. For the recognition datasets, the box gives the system a small field of view that contains one written instance. The class attached to that instance tells the system which character it represents. During supervised training, examples provide both the visual input and its class. During testing, the system receives the image and its prediction is evaluated against the recorded class.
Each collection makes a different choice about what to keep from the source material. The compact recognition task keeps a small, evenly represented class inventory. The broader kana task keeps a much larger inventory and retains the imbalance that comes with the books. The kanji task keeps an inventory with a wide range of observed class frequencies and provides larger images. These are choices about the experimental question as much as about the files. A balanced sample asks how well a method distinguishes the selected classes under even representation. Preserving the book frequencies also asks what a method learns when some classes provide far less evidence than others.
Kuzushiji-MNIST takes one character from each of the 10 hiragana rows. Restricting the inventory to 10 classes makes the classification interface compatible with MNIST. Its images are grayscale and have a resolution of 28x28 pixels. For each class, the training split contains 6,000 images and the test split contains 1,000 images. Holding those counts constant across the chosen classes means that a system receives the same number of training examples for each label. The samples can still vary considerably inside a label.
Kuzushiji-49 also uses 28x28 grayscale images. It contains 48 hiragana classes and one hiragana iteration mark, a sign used to indicate repetition. Its 49 classes contain 266,407 images in all. The authors retain the imbalance because frequencies in the selected books are part of the distribution they want the task to reflect. They describe allocating 6/7 of each class to training and 1/7 to testing. Because the allocation is applied within each class, the resulting splits preserve the difference between common and rare classes. The paper gives 「ゑ」, which has around 400 examples in the collection, as an example of a rare class.
Kuzushiji-Kanji has 140,426 images in 3832 classes, with an image resolution of 64x64 pixels. The highest class count given is 1,766 images, and the smallest classes can have a single instance. At that extreme, the available image offers no way to observe variation within the class. The authors present the collection as a resource for experimental tasks that can use character imagery in other ways, including the transfer experiment, where knowledge learned from many character identities may be applied to an input of an unseen identity.
The authors describe the datasets as drawing their training and test characters from the same 35 books. This keeps the collections used for learning and testing within a shared source population. For the kana experiments, the assignment being tested is from a prepared image to its class. For the kanji examples, the paper emphasizes transfer to unseen characters. Sharing the source books and holding out identities address different aspects of generalization. The former concerns where the visual instances come from. The latter concerns whether a relationship learned across some identities can be applied to others.
What a kana label brings together
The paper uses hentaigana, or variant kana, to explain what the recognizer must learn. Some old kana have forms derived from different kanji. Consequently, a written mark can belong to a particular visual tradition even though its assigned modern kana is shared with marks from other traditions. A flat list of class names conceals this structure. From the classifier’s point of view, the examples available for a label may form several visually distinct groups.
The authors illustrate the issue with 「つ」. They show 3 forms for this kana and identify 川 and 津 as source kanji. The example separates the number of forms a reader might encounter from the number of roots named in the discussion. The paper gives an especially rich example for 「か」, with 12 root characters. It calls such roots jibo and notes that some roots can themselves be written in multiple ways. In that case, an image can differ from another within the same class because of its root or because of variation in the way that root was written.
This is what it means for a class to have a multimodal distribution. If images were organized according to their visual properties, examples with the same answer could gather in separate parts of that organization. A single central example would capture some forms well and leave others poorly represented. The learning problem is to assign the whole collection to the right category while preserving enough visual discrimination to keep neighboring classes apart. Aggregate class counts alone say little about how much training evidence there is for each distinct form.
The benchmark’s label choice follows the recognition task. If a classifier receives two visually different variants of the same kana and gives the shared class for both, both predictions can receive credit. The evaluation does not ask which jibo lies behind an image or how a historical writer arrived at its shape. This makes the label useful for mapping to a modern reading. It also means that accuracy on the benchmark measures success at a particular level of description. A reader studying how the forms differ would need information beyond the final class prediction.
How the classifiers turn pictures into labels
The simplest baseline uses 4 nearest neighbors. It searches among labeled examples for those closest to the input under a measure of similarity, then uses their labels to decide the prediction. This gives the benchmark a direct test of whether a new example can be recognized by comparison with individual examples already seen. The paper names the method and the number of neighbors. It leaves implementation details such as the precise comparison rule to the accompanying repository.
The small convolutional network has 2 layers. A convolution applies learned visual filters across the image, so the same detector can respond to a pattern in different locations. The system learns from training labels which image features to use. The residual network, or ResNet, has 18 layers. A residual connection gives a layer a route by which its input can pass forward alongside transformations learned by the network. This lets the benchmark include a deeper recognizer whose features can be built up over more processing stages.
The remaining approach uses a residual network with manifold mixup. Its distinguishing training operation is to interpolate between internal representations of examples. The representation is the set of features the network has produced at some point on the way to a prediction. Mixing at that point exposes learning to intermediate feature values and encourages the system to behave regularly between observed examples. The paper includes this approach as a regularized residual network. It does not specify in the article where interpolation occurs, how frequently it is applied or the other settings used in the classification runs.
The baselines span choices that matter for a many-form class. Direct neighbor comparison depends on finding suitable exemplars near the input. A convolutional recognizer can learn local features that recur across visually different examples. A deeper network can combine those features over more layers, and manifold mixup changes the way the internal features are trained. These are reasons for including the comparisons. Whether any of the methods actually improved recognition of a particular variant depends on results broken down by variant, which the paper does not report.
What the kanji transfer system predicts
The kanji experiment begins with two views of writing. On the historical side, the available observation is a pixel image from Kuzushiji-Kanji. On the modern side, the authors use KanjiVG, which gives modern kanji as a sequence of strokes. They also render KanjiVG into 64x64 pixel images, matching the resolution of the historical inputs. Rendering puts the modern forms in a format suitable for the same kind of image encoder while keeping the original stroke records available as supervision for the drawing task.
The common identity of a character provides the connection between the two views. Where the collections overlap, an old image belongs to a kanji for which KanjiVG supplies a modern counterpart. The actual marks need not correspond stroke for stroke at the same pixel positions. The aim is to learn a relationship from the form available in the old image to the form used in modern writing. The following diagram follows a historical image through the trained system. The learned components that make those steps possible are trained using both kinds of data.
From a historical kanji image to modern renderings
The steps in order.
The pixel rendering and stroke drawing serve different purposes. A raster image represents the final visible marks as pixel values. A stroke representation also records how the marks are assembled in sequence. A final raster image can show that two marks meet or pass close to one another while leaving their drawing order unspecified. Giving the system stroke data on the modern side lets the authors train it to produce information that is absent from the historical crop as a direct observation.
Learning separate representations of old and modern forms
The authors train separate convolutional variational autoencoders, abbreviated VAEs. An autoencoder learns a compact representation by attempting to reconstruct an input from the representation it produces. The encoder operates on the image and produces the information used to describe it in a latent space. The decoder uses a vector from that space to render an image. In a variational autoencoder, the encoding and reconstruction are organized around a probability distribution, with training also encouraging the latent representations to follow a specified prior.
One VAE learns to reconstruct historical kanji. The other learns to reconstruct the pixel renderings of modern kanji from KanjiVG. The authors use the same architecture, drawn from earlier work, on each side. Each latent space has 64 dimensions. A dimension is one coordinate of the representation. The coordinates together carry the image information used for reconstruction. Nothing in the setup assigns a particular coordinate to a named stroke or a particular visual feature. Their meaning for this experiment comes from what the corresponding decoder can recover from them.
The historical representation appears in the paper as follows.
z_old
Here z denotes a vector in a latent space, and old identifies the space learned from the Kuzushiji-Kanji images. The corresponding vector on the modern side has a parallel name.
z_new
Here z again denotes a latent vector, and new identifies the space learned from modern KanjiVG renderings. The vectors have the same number of coordinates, but the two VAEs are trained separately. Their shared dimensionality makes the inputs and outputs comparable in size. The relationship between the meanings of their coordinates is something to be learned.
The authors apply a Gaussian prior, a reference distribution of the normal family, to latent vectors. They describe a threshold for the KL loss term, where KL stands for Kullback–Leibler divergence. This term penalizes departures of the encoder’s distribution from the prior. The authors stop optimizing that term below the threshold so that pressure to match the prior leaves room for the representation to carry image information. Reconstructing a recognizable glyph requires information about the particular input. Matching the prior encourages a regular latent space. The threshold is their way of managing these competing objectives. The paper gives the policy but leaves the numerical threshold and the full objective unspecified.
Training the VAEs separately lets each solve a reconstruction problem suited to its own images. The historical encoder can learn from the appearances in old books while the modern one can learn from the cleaner KanjiVG renderings. The decoding side of each VAE also supplies a means of checking what information the corresponding representation retains. An image reconstructed in the historical space addresses how well the original visual input survived compression. A modern image produced after the transfer step addresses a different question, because it also depends on how the historical vector was translated.
Learning a probability distribution across the two spaces
To bridge the representations, the authors train a mixture density network, or MDN, with 2 hidden layers. A hidden layer is an intermediate transformation between the input and the prediction. The output of an MDN describes a probability distribution. In this experiment, the distribution is a mixture of Gaussians. Each Gaussian component describes a region of probable outputs, and the mixture combines those components so that the resulting distribution can assign probability to different regions of the modern latent space.
The paper describes the MDN’s target as this conditional distribution.
P(z_new | z_old)
P denotes the probability distribution being estimated. z_new is a vector in the modern latent space, z_old is a vector in the historical latent space, and the vertical bar means “given.” The network receives z_old and describes plausible values of z_new for that input. The parentheses group the modern quantity and the condition. The paper specifies the Gaussian mixture family but gives no further equation for the density or its parameterization.
The paired identities supply the information needed to learn this mapping. A historical image can be encoded by the historical VAE, and a modern image for its known counterpart can be encoded by the modern VAE. The resulting vectors provide examples of how the spaces are related. The mapping learns on those representations. It does not have to align the original pixels of a historical crop with pixels of a modern font rendering. Its prediction is judged through the outputs that can be generated from a vector in the target space.
Given an input from the historical collection, the authors draw a vector from the predicted modern distribution. They mark the sampled vector with a tilde.
z̃_new
z denotes the vector, new identifies the modern space, and the tilde distinguishes a draw from the MDN’s prediction from a vector obtained by encoding a known modern image. The sampled vector can be passed into the modern VAE’s decoder to produce an image. It can also be used as a condition for stroke generation. Conditioning means that the drawing system receives the vector as information about the character it should produce.
A distributional prediction permits the MDN to express more than a single preferred point in the modern space. That property is relevant when information in a cursive image does not map cleanly to a modern rendering. The paper does not identify the Gaussian components with named characters, and it does not attach recognition confidence to individual components. Their immediate role is to provide a way to sample a modern representation for the next stage. A sample can be inspected as a character only after it has been decoded or drawn.
Training the system to draw in strokes
The stroke generator is a Sketch-RNN decoder. A recurrent network produces a sequence with internal state passed from one step to the next. Here the sequence is a drawing, so subsequent parts of the output can depend on earlier ones as well as on the modern latent vector. KanjiVG supplies the ordered target strokes. That supervision lets the decoder learn the relationship between the information carried in a latent vector and the sequence that constitutes a modern glyph.
The authors report around 3,600 character identities shared between Kuzushiji-Kanji and KanjiVG. For a KanjiVG character absent from Kuzushiji-Kanji, stroke training can still use the modern data. The modern VAE encodes the rendered KanjiVG image into z_new, and the Sketch-RNN learns to produce the KanjiVG strokes. In that case the conditioning vector and the target drawing both come from modern material. It is a way to learn the job of drawing a modern character even when no historical example of that character is available.
For the overlapping identities, the authors use z̃_new sampled through the historical-to-modern prediction as the condition, again with KanjiVG strokes as the training target. Here the drawing system learns from the kind of vector it will receive when the input is Kuzushiji. Those vectors can differ from codes obtained by directly encoding modern images. Training with them asks the decoder to use what the transfer stage provides while aiming at the ordered modern strokes.
The paper describes stroke supervision as a way to refine aspects of the representation that pixel reconstruction may capture poorly. An image reconstruction objective rewards reproducing the visible result. The stroke objective provides information about the process that constructs that result. The paper explains the rationale through the training design, but does not specify which parameters of the pixel VAE, if any, are updated during the stroke stage. The distinction matters for reproducing the procedure. Learning to interpret a fixed representation and changing the representation itself are different operations.
The authors also suggest a role for the pixel output in transcription. A human reader could examine places where a rendered character looks blurred and give those places more attention. In the paper, this is a proposed interpretation of the output rather than a separately trained assessment of uncertainty. The blur belongs to the rendered image. Establishing what it means for a reader would require observing cases where the uncertain-looking parts can be compared with known errors or with a transcriber’s decisions.
The paper directs readers to the official dataset repository, rois-codh/kmnist, for the released data, accompanying instructions and classification training details. The released collections provide the inputs for trying the tasks. For the transfer experiment, the article supplies the sequence of training stages and the roles of Kuzushiji-Kanji and KanjiVG. It describes how the components fit together without documenting all the settings required to reproduce the particular outputs shown.
Experiments and results
What changes between the recognition benchmarks
The classification experiments cover Kuzushiji-MNIST and Kuzushiji-49. In both, the input is an isolated grayscale crop and the requested answer is a class. Across the two experiments, the number of possible answers changes, as does the amount of training evidence available for each answer. Kuzushiji-MNIST contains 10 selected classes. Kuzushiji-49 extends the inventory to 49 classes, with its iteration mark included in the count. Members of those classes still fit in the same image format, so the broader task changes the recognition problem without changing image resolution.
Character classes covered by the Kuzushiji kana classification benchmarks
The broader benchmark covers more kana forms at the level of the class inventory.
The numbers
| System or setting | classes |
|---|---|
| Kuzushiji-MNIST | 10 |
| Kuzushiji-49 (this paper) | 49 |
The chart compares benchmark coverage. A larger class count here means a wider answer inventory. It gives no performance ranking. Each class in either dataset can include several visual forms, so the count also does not measure the number of distinguishable shapes the system has to learn. The classification experiment on the wider inventory combines the additional choices at prediction time with unequal amounts of information in training. Both properties are relevant when interpreting a result.
Kuzushiji-MNIST is the more direct counterpart to the MNIST digit task. Its shared image dimensions and balanced class design make the differences in the subject matter easy to locate. The labels stand for selected kana instead of digits, and some kana combine several distinct historical forms. Kuzushiji-49 broadens what the system needs to recognize. It also changes the sampling conditions. A recognizer that has learned several forms of a common class can have much less exposure to the forms of a rare one, even within the same benchmark.
The four comparisons are the nearest-neighbor method, the small convolutional network, the deeper residual network and the residual network with manifold mixup. The original MNIST is the reference task the authors use to frame relative difficulty. The intent is to see how recognizers of different kinds fare when familiar input dimensions are applied to a different writing system. A method that uses the same interface on both collections can be evaluated on the same kind of decision, namely whether it assigns the known class to a held-out image. The images and the character identities supply the substantive differences.
How test accuracy is aggregated
The paper scores a recognition run by computing accuracy separately for each class in the test split and taking the mean of those accuracies. For a given class, the score is the proportion of test examples of that class that were assigned the correct label. Averaging the class scores gives each class the same weight in the reported result. This measure is often called macro-averaged accuracy. For Kuzushiji-MNIST, the test split supplies the same number of images for every class. On Kuzushiji-49, the distinction between weighting classes and weighting individual examples matters much more.
Consider the rare 「ゑ」 class in Kuzushiji-49. In an accuracy measure that counts every test image equally, the contribution of errors on that class depends on how many such images happen to be in the test set. Under the paper’s method, the accuracy on that class contributes as much to the final mean as the accuracy on a common class. This makes the headline score sensitive to failures on rare labels. It leaves the imbalance of the training distribution intact, so the systems still have to contend with the difference in available examples.
Equal influence in the reported score also does not imply equal precision of the per-class estimates. A class with a small test allocation offers fewer observations about how consistently the recognizer can identify it. The result from a larger test allocation is based on more individual instances. The use of a class mean states what the evaluation values. It leaves open how stable the means would be if an investigator changed the split or repeated training. A result divided by class would be needed to see which labels dominate the errors.
The paper identifies the baseline table as test-set accuracy and gives this aggregation rule, but the individual numerical entries are unavailable. The experimental design is therefore recoverable, including the test tasks and the measure used to compare predictions. The test accuracies, the ordering of the systems, and the size of any differences between them cannot be stated. In particular, pairing a residual network with a mixup version does not by itself establish that manifold mixup helped on either dataset. The chart reports class coverage because that is a numerical comparison the paper supplies explicitly.
The Fashion-MNIST comparison has a different evidentiary role. In discussing how recognizable clothing can be at 28x28 resolution, the authors cite 83.5% as human performance on Fashion-MNIST. They use it to motivate a distinction between images that look similar across class boundaries and images that look different within a class. This figure is a measurement on the clothing task. The paper does not give a corresponding reader score for Kuzushiji-MNIST. It therefore offers a rationale for expecting a different kind of difficulty, without measuring how human recognition compares across the two tasks.
What the transfer examples show
The kanji experiment places a historical input beside generated representations that can be examined visually. The paper shows examples of transfer to unseen characters. It also illustrates the pixel reconstructions available from the VAEs, alongside results of generating modern strokes. Those views distinguish reconstruction in the source domain from transfer across domains. The historical reconstruction shows what the source VAE can re-create from its own code. A modern output depicts what the learned mapping and a modern decoder produce from the historical input.
For a reader inspecting these examples, a pixel output and a stroke output offer different evidence. The pixel image makes it possible to see the approximate shape and areas rendered imprecisely. The stroke-based version shows what the drawing system produced as an ordered construction. A generated stroke sequence can appear coherent as a drawing but still correspond to the wrong character. Conversely, a raster image can suggest the intended identity without offering usable stroke information. The two renderings expose different properties of the same transfer task.
The unseen-character examples address whether knowledge from the overlapping material can carry over to a new identity in the demonstration. They go beyond illustrating reconstruction of a training input in its own domain. The historical form is encoded, mapped to the modern space, and used to generate a depiction there. The paper provides qualitative examples rather than a quantitative rate of correct modern identities, a score for stroke agreement, or a comparison with a measured transfer baseline. The examples document the kind of behavior the system can produce in selected cases.
This evidence differs from the evidence produced by the recognition benchmarks. A classifier has a prescribed answer for each crop, and each prediction can be marked right or wrong under the dataset’s labels. A transfer output needs a criterion for judging a drawing. One could ask whether the visual result conveys the expected character, whether its ordered strokes agree with the reference, or whether it helps someone transcribe the input. Those criteria concern different properties. The article’s demonstration leaves them as distinct questions and does not combine them into a reported score.
What the ablations show
The comparison between separate and joint training
The paper reports no formal ablation study with settings, controlled results and a quantitative measure for each variant. It does give the authors’ experience with an alternative to the staged kanji system. They say that training separate VAEs was more efficient and yielded better results than training a single end-to-end system in their experiments. An end-to-end system would learn the path from the historical input toward the modern output jointly. Their chosen procedure first gives the historical and modern representations their own training objectives, then learns the connection between them.
This comparison explains a practical decision. Separate reconstruction training gives each side a direct source of supervision. The historical encoder and decoder can use old images even when the objective at that stage is simply to preserve their visible structure. The modern encoder and decoder can use KanjiVG renders to learn the equivalent operation in their own domain. The mapping is introduced after these representations are available. An end-to-end system would have to develop a useful organization of its intermediate information while trying to solve the transfer problem.
The paper gives neither a numerical measure for efficiency nor a precise score for the better outcomes it reports. It also leaves the architecture and training conditions of the joint alternative unspecified. The comparison cannot isolate whether the difference arose from separate optimization, the opportunity to use reconstruction in each domain, the shape of the mapping, or a difference in other training choices. It supports the authors’ account of how they arrived at their implementation. It supplies a weaker basis for predicting what would happen to another end-to-end approach.
The authors connect their experience to earlier transfer approaches that use adversarial losses. Such a loss trains a system using feedback from another component that tries to distinguish its outputs from examples in the target data. They suggest that the difficulty they encountered with joint training might help explain the role of adversarial training in earlier studies. The paper presents this as a possible explanation. It does not run a comparison that introduces an adversarial loss into the Kuzushiji experiment or measure how much such a loss changes the outcome.
What the classifier comparisons could isolate
Among the recognition systems, the plain residual network and the one with manifold mixup are the closest comparison of a particular training change. They could show how the regularizer affects mean per-class accuracy while using the same general kind of recognizer. Interpreting that difference as the effect of mixup would require knowing that the rest of the relevant settings are comparable. The table entries needed to report the direction and magnitude of the difference are unavailable, and the paper directs the reader to the repository for the training setup.
The other baseline comparisons address broader changes. A nearest-neighbor rule and a convolutional network differ in how they represent examples and in how they make a prediction. The small convolutional network and the deeper residual one differ in depth and architecture. Such comparisons can characterize benchmark difficulty across different kinds of systems. They do not assign responsibility for a performance change to a single component, even when evaluated on the same test set.
Comparing Kuzushiji-MNIST with Kuzushiji-49 similarly changes several properties at once. The label inventory expands and the sampling distribution becomes imbalanced. The prevalence of individual visual forms may also differ across the enlarged collection of labels. The metric gives the classes equal influence, but that choice does not control for the amount of training data each class contributes. The comparison studies performance under each dataset’s conditions. It cannot explain by itself how much of a difference comes from increased coverage or from the long tail of rare characters.
What the visual evidence can diagnose
The paper’s examples of variant kana are a direct analysis of the task’s structure. They show why a class can contain forms with quite different appearances. They do not trace the predictions of any classifier back to these forms. A confusion between two kana and a failure on an uncommon variant of a familiar kana are different kinds of errors. Per-class accuracy can flag a label that is difficult overall. It does not indicate which of those errors drove the result or whether the main difficulty lies in a particular lineage of written forms.
In the transfer experiment, the separate image views offer a way to locate possible sources of failure. If a historical reconstruction loses a distinguishing mark, the source encoding is one place to examine. If the historical reconstruction appears adequate but the generated modern identity is wrong, the mapping is another candidate. If a raster output suggests the expected identity while its stroke drawing goes astray, the stroke decoder merits examination. These are diagnostic possibilities made visible by the representations. The displayed examples are not controlled comparisons that assign those causes across a collection of errors.
The two ways of conditioning the stroke decoder also form part of the design instead of an evaluated ablation. Direct modern codes allow use of KanjiVG characters without historical counterparts. Transferred codes expose the decoder to predictions made from historical images. The paper explains why both can be useful. It gives no separate result that measures an effect from removing one source of conditioning, nor does it quantify how frequently the pixel and stroke outputs agree. The available analysis explains the training choices and illustrates the outputs, with the contribution of individual choices left unresolved.
Limitations
Limits and open questions identified by the authors
The authors explicitly describe the smallest benchmark as a selection. Kuzushiji-MNIST uses its 10 classes to match the digit benchmark’s format, choosing a representative from each hiragana row. Its accuracy would therefore concern those selected classes. The paper offers Kuzushiji-49 for broader kana coverage, while acknowledging that the resulting distribution includes rare labels with comparatively few examples. Retaining the frequencies gives the task a connection to the source books. It also means that the amount of evidence for learning individual labels varies widely.
For kanji, the authors draw attention to still more pronounced imbalance. A class with a single image cannot supply independent examples of how it looks on several pages. The paper positions this collection as material for creative experiments as well as recognition. The transfer demonstration is one way of using the breadth of the inventory. The paper names areas such as domain adaptation and few-shot learning as future directions. Few-shot learning concerns how a system adapts when very few labeled examples are available. Listing it as a direction establishes an intended use for the data and does not report a result on such a task.
The authors describe their kana results as baselines and set out to give a sense of difficulty relative to the familiar digit benchmark. Their suggestion that many Kuzushiji forms remain unambiguous to trained readers, even at low resolution, is a belief about how the task could behave as systems improve. The benchmark contains assertions about class identity drawn from transcription, but the paper does not measure what a group of trained readers can recover from these isolated images. A benchmark score and the authors’ expectation about human readability have different kinds of support.
The authors also frame the possible use of blur for transcription as an interpretation. A human could treat an indistinct part of a modern reconstruction as a place to inspect. The paper does not assess whether this helps a person choose the right character or reduces the time spent reading a document. Similarly, the planned competitions and expansion of the collection are presented as future work. They express how the authors hoped the resources would be used and extended. They do not change the scope of the reported experiments.
Limits that follow from the experimental setup
The recognition datasets begin with a prepared crop. Much of the work of finding the character on the page has already been done. On a page with neighboring marks or irregular spacing, a system would first need to find the relevant regions and work out where each character begins and ends. It would also need to establish how those regions are read in order. An evaluation that supplies the location and asks for the class addresses a well-defined part of that problem. Its accuracy does not measure the accuracy of a complete transcription from an unmarked scan.
The isolated view also removes wider textual context. A specialist may use surrounding characters to settle an uncertain reading, while the isolated-image recognizer has only the contents of the crop. This difference cuts in both directions for interpreting the task. Supplying the box makes the visual search easier. Removing context can make a difficult glyph harder to identify. Because the experiments vary neither of these conditions, their results would not say how much neighboring text could improve recognition or how much automatic segmentation could reduce it.
The training and test images are sampled from the same 35 books. That is appropriate for measuring held-out recognition within the prepared source collection. It provides no book-level test in which all the examples from a new source are reserved for evaluation. The setup therefore leaves open how a recognizer would perform on a work with visual conventions or printing characteristics that are poorly represented in the source books. The historical argument spans a broad body of writing, while the evidence for recognition comes from the particular material preprocessed for these tasks.
Retaining the natural frequency distribution also needs a precise interpretation. The frequencies are natural for the selected sources as sampled in this project. The paper does not show that they are representative of historical Japanese publishing as a whole. A term or form can be common in the selected texts for reasons specific to those books. The class means reduce the dominance of common labels in the reported performance, but do not change where the images came from. Neither the class frequency nor the score should be read as an estimate for all surviving documents.
Hentaigana creates a further distinction between class coverage and form coverage. Having many images of a kana class does not guarantee that every root or every way of writing it is well represented. A train and test split defined by class counts can include familiar forms on both sides even when the individual images differ. The paper does not describe a test that reserves whole variant forms for evaluation, or give counts for each variant within a class. Its setup therefore addresses generalization to held-out images under the chosen labels. It does not establish how readily a recognizer handles an unfamiliar historical form of a known kana.
The mean per-class score answers a limited question about reliability. It records the typical class accuracy under equal weighting of classes. It does not reveal whether mistakes cluster in a small set of labels, whether rare classes tend to be mistaken for common ones, or whether many variant forms are consistently recognized. An aggregate score can consequently coexist with difficult cases that matter greatly for transcription. The unavailable baseline entries restrict even the aggregate comparison. The paper gives the experimental categories needed to state what would be measured, without the scores needed to assess how well each approach performed.
For the kanji transfer experiment, the modern side defines a particular target, the images and ordered strokes supplied by KanjiVG. Success in rendering that target would help present an old form in a recognizable modern script. It would not recover the original stroke sequence used to produce the historical form. The input image does not contain an explicit record of that sequence, and the stroke supervision concerns modern characters. The difference matters if the goal is historical analysis of handwriting rather than assistance in reading the character.
The unseen-character examples also leave the evaluation protocol underspecified. The paper describes the examples as unseen and states the approximate overlap between the datasets. It does not give a detailed account of the held-out set, report the number of evaluated identities, or state exactly how the test identities were excluded from the various training stages. Presence in the data used to train a modern reconstruction system is a different matter from presence in the paired examples used to learn the cross-domain mapping. The article shows a transfer demonstration, while the extent of independence between training and evaluation cannot be determined for every stage.
A further limit is the difference between generating a possible image and measuring uncertainty. The mixture density network provides a distribution in latent coordinates. A rendered blur is an appearance in pixel space. The paper does not establish how the uncertainty in one relates to the appearance of the other or to the likelihood that a predicted identity is wrong. Blur can identify a region that looks imprecise, which is enough to motivate the authors’ idea for a reading aid. Its reliability as a guide remains an empirical question.
Finally, the paper gives no quantitative account of how frequently generated strokes match the intended kanji. The reader can inspect the examples for plausibility, but a polished drawing is not in itself evidence of correct identity. The output would have to be checked against its reference and, for the proposed human use, assessed as part of a transcription task. The paper’s contributions are the prepared character resources, the design of their evaluation and a demonstration of a path from historical pixels to a modern rendering. Their scope stops at the character-level experiments described.
What came after
The later works place the Kuzushiji paper in a broader conversation about the choice of data and the aims of evaluation. The paper’s own choice was to use a familiar experimental format while changing the material that the format brings into view. A conventional image-recognition task could be used to study a historical script that present-day readers frequently cannot access. The later works address multilingual data and multilingual evaluation. Their titles establish those subjects, and their citations establish a connection to the Kuzushiji paper. The specific role of the earlier work in their methods and experiments is unspecified.
Aya Dataset: An Open-Access Collection for Multilingual Instruction Tuning (2024) concerns a dataset for multilingual instruction tuning. Instruction tuning uses examples of instructions and associated responses to train a system to follow requests. As a data contribution, Aya is concerned with making a collection openly available for this kind of training across languages. The point of comparison with Kuzushiji is the release of data organized around a research task. The data and the tasks differ. Kuzushiji supplies historical character images for visual recognition and transfer, while Aya’s stated purpose concerns instruction following. The citation alone gives no basis for attributing the use of Kuzushiji images or its training methods to Aya. Fine-tuning
Global MMLU: Understanding and Addressing Cultural and Linguistic Biases in Multilingual Evaluation (2025) addresses cultural and linguistic bias in multilingual evaluation. Its subject is closer to the Kuzushiji paper’s question about what a benchmark brings into focus. Through the choice of character images, Kuzushiji makes access to a historical writing tradition part of the substance of a recognition benchmark. Global MMLU’s stated concern is with the cultural and linguistic properties of multilingual assessments. That is a connection in the questions the works ask of evaluation. The citation does not establish that Global MMLU used Kuzushiji-MNIST, adopted its class-averaging rule or carried forward its image-to-stroke method. Multilingual & cross-lingual NLP
These two citations show the paper being referenced in work whose declared subjects extend beyond recognition of Japanese script. They offer no documented follow-up measurement on its character datasets or on its proposed aid for transcribers. The continuity that can be traced is in the choice to make the content of a research task consequential. In the Kuzushiji paper, that choice determines what is kept from the books, how distinct written forms are grouped, which rare labels receive weight in an evaluation, and what kind of output might support reading. The later works bring other data and other evaluation questions into view, with their exact uses of this precedent left open.
Cite
Cite as Tarin Clanuwat, Mikel Bober-Irizar, Asanobu Kitamoto, Alex Lamb, Kazuaki Yamamoto and David Ha. 2018. Deep Learning for Classical Japanese Literature. arXiv (Cornell University).
@misc{clanuwat2018deep,
title = {{Deep Learning for Classical Japanese Literature}},
author = {Tarin Clanuwat, Mikel Bober-Irizar, Asanobu Kitamoto, Alex Lamb, Kazuaki Yamamoto and David Ha},
year = {2018},
doi = {10.48550/arxiv.1812.01718},
eprint = {1812.01718},
archivePrefix = {arXiv},
url = {https://doi.org/10.48550/arxiv.1812.01718}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/clanuwat-2018-deep-learning-classical-japanese-literature/
References
- U. Apel et al. KanjiVG, 2009. http://kanjivg.tagaini.net. OpenAlex ↗ · Scholar ↗
- C. M. Bishop. Mixture Density Networks. Technical Report, 1994. OpenAlex ↗ · Scholar ↗
- K. Bousmalis, N. Silberman, D. Dohan, D. Erhan, and D. Krishnan. Unsupervised pixel-level domain adaptation with generative adversarial networks. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), page 7, 2017. OpenAlex ↗ · Scholar ↗
- F. Chollet et al. Keras, 2015. https://keras.io. OpenAlex ↗ · Scholar ↗
- C. for Open Data in the Humanities. Kuzushiji dataset, 2016. http://codh.rois.ac.jp/char-shape/. OpenAlex ↗ · Scholar ↗
- Fukyūsha. Shinpen Shūshinkyouten Vol.3 (『新編修身教典 巻三』). Fukyūsha, 1900. OpenAlex ↗ · Scholar ↗
- D. Ha. Recurrent Net Dreams Up Fake Chinese Characters in Vector Format with TensorFlow, 2015. http://otoro.net/kanji-rnn. OpenAlex ↗ · Scholar ↗
- D. Ha and D. Eck. A Neural Representation of Sketch Drawings. In International Conference on Learning Representations, 2018. https://openreview.net/forum?id=Hy6GHpkCW. OpenAlex ↗ · Scholar ↗
- D. Ha and J. Schmidhuber. Recurrent World Models Facilitate Policy Evolution. arXiv preprint arXiv:1809.01999, 2018. https://worldmodels.github.io/. OpenAlex ↗ · Scholar ↗
- Y. Hashimoto, Y. Iikura, Y. Hisada, S. Kang, T. Arisawa, and D. Kobayashi-Better. The Kuzushiji Project: Developing a Mobile Learning Application for Reading Early Modern Japanese Texts. DHQ: Digital Humanities Quarterly, 11(1), 2017. http://dh2016.adho.org/static/data/254.html. OpenAlex ↗ · Scholar ↗
- K. He, X. Zhang, S. Ren, and J. Sun. Identity mappings in deep residual networks. In European conference on computer vision, pages 630–645. Springer, 2016. OpenAlex ↗ · Scholar ↗
- P. Isola, J.-Y. Zhu, T. Zhou, and A. A. Efros. Image-to-Image Translation with Conditional Adversarial Networks. In 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 5967–5976. IEEE, 2017. OpenAlex ↗ · Scholar ↗
- E. Kaibara. Onna Daigaku (『女大学』). Shinsaibashijunkeichō, 1772. http://www.wul.waseda.ac.jp/kotenseki/html/bunko30/bunko30_g0371/index.html. OpenAlex ↗ · Scholar ↗
- D. Kingma and M. Welling. Auto-Encoding Variational Bayes. In International Conference on Learning Representations, 2014. our card
- K. Kodama. Kuzushiji Yōrei Jiten. Kondō Shuppansha, 1980. OpenAlex ↗ · Scholar ↗
- Y. LeCun. The MNIST database of handwritten digits, 1998. http://yann.lecun.com/exdb/mnist/. OpenAlex ↗ · Scholar ↗
- M.-Y. Liu, T. Breuel, and J. Kautz. Unsupervised image-to-image translation networks. In Advances in Neural Information Processing Systems, pages 700–708, 2017. OpenAlex ↗ · Scholar ↗
- D. J. Rezende, S. Mohamed, and D. Wierstra. Stochastic Backpropagation and Approximate Inference in Deep Generative Models. In International Conference on Machine Learning, pages 1278–1286, 2014. our card
- I. Shoten. General Catalog of National Books (『国書総目録』). Iwanami Shoten, 2002. OpenAlex ↗ · Scholar ↗
- K. Takashiro. Notation of the Japanese Syllabary seen in the Textbook of the Meiji first Year. The bulletin of Jissen Women's Junior College, 34:109–119, mar 2013. https://ci.nii.ac.jp/els/contents110009587135.pdf?id=ART0010042265. OpenAlex ↗ · Scholar ↗
- Unknown. Scroll Genjimonogatari Uta Awase (『源氏歌合絵巻』). National Institute of Japanese Literature, c. 1500. http://codh.rois.ac.jp/pmjt/book/200014735/. OpenAlex ↗ · Scholar ↗
- V. Verma, A. Lamb, C. Beckham, A. Najafi, A. Courville, I. Mitliagkas, and Y. Bengio. Manifold Mixup: Learning Better Representations by Interpolating Hidden States. ArXiv e-prints, June 2018. OpenAlex ↗ · Scholar ↗
- L. Wolf, Y. Taigman, and A. Polyak. Unsupervised Creation of Parameterized Avatars. In Computer Vision (ICCV), 2017 IEEE International Conference on, pages 1539–1547. IEEE, 2017. OpenAlex ↗ · Scholar ↗
- H. Xiao et al. Fashion-MNIST: A MNIST-like fashion product database, 2017. https://github.com/zalandoresearch/fashion-mnist. OpenAlex ↗ · Scholar ↗
- H. Xiao, K. Rasul, and R. Vollgraf. Fashion-MNIST: a novel image dataset for benchmarking machine learning algorithms. arXiv preprint arXiv:1708.07747, 2017. OpenAlex ↗ · Scholar ↗
- H. Zhang, M. Cisse, Y. N. Dauphin, and D. Lopez-Paz. mixup: Beyond Empirical Risk Minimization. In International Conference on Learning Representations, 2018. our card
- X. Zhang, F. Yin, Y. Zhang, C. Liu, and Y. Bengio. Drawing and Recognizing Chinese Characters with Recurrent Neural Network. CoRR, abs/1606.06539, 2016. OpenAlex ↗ · Scholar ↗