Elamur Research

Sentence-to-Label Generation Framework for Multi-task Learning of Japanese Sentence Classification and Named Entity Recognition

Paper · 2023 · Chengguang Gan, Qinghao Zhang and Tatsunori Mori

Summary

A sentence can tell a reader what it is about and name the people, places, or organizations involved. These are different kinds of information, and either can help a reader understand the other. A person's name can be a clue to the subject of a sentence, while the subject can help narrow down what an unfamiliar name refers to. The authors test whether a system can benefit from learning to recover both kinds of information together. They combine sentence classification, which assigns a category to the whole sentence, with named entity recognition, which identifies particular stretches of text and assigns them types. Text classification and named entity recognition are both used here to extract structured information from Japanese text.

The authors start with 5,343 Japanese Wikipedia sentences that already have entity annotations. They give each sentence a category from a broad inventory covering social topics, literature and art, academic topics, technical topics, and nature. Their Sentence-to-Label Generation framework uses Japanese T5-base to produce a single text answer. The answer gives the sentence category first and follows it with the entity types and the corresponding words from the sentence. A converter puts the sentence and the allowed labels into a common input format. The authors also train T5 on name–type pairs from the Shinra2020-JP corpus before training it on full sentences. During joint prediction, they force the decoder to start with the marker expected at the beginning of every answer.

On randomized held-out splits, the joint setup scores 72.41 in accuracy for the complete answer, which requires the sentence category and the recorded entity output to match together. When the authors score the two parts separately, joint training improves sentence-classification accuracy by 1.13 points and entity-output accuracy by 1.06 points over training for either task alone. Removing the forced opening marker reduces format accuracy from 100 to 63.61. This format check asks whether the answer can be read as the expected sequence of fields. An output can pass it while still containing the wrong category or entity information.

The experiments therefore show two distinct effects. The paired annotations improve both measured tasks in the authors' comparison, and a predictable opening makes the chosen answer format much easier for the system to follow. The first finding concerns what can be learned from a dataset that gives each sentence both kinds of supervision. The second concerns the conditions under which that learning can be measured reliably when the answer is generated as text. The evidence comes from Japanese Wikipedia sentences, a particular category inventory, and a score that gives credit only for complete matches to the reference output.

Deep dive: Sentence-to-Label Generation Framework for Multi-task Learning of Japanese Sentence Classification and Named Entity Recognition

How Sentence-to-Label Generation classifies Japanese Wikipedia sentences and extracts named entities, and what joint training changes. · about 34 minutes to read

The problem and its context

A category for the sentence and types for the names

Imagine reading a sentence about a resignation. Its general subject may become clear from the action, the role of the person involved, and the institutions or places named. A reader might group the sentence with other sentences about public life. If asked who or what the sentence mentions, the same reader would give a different answer, pointing to particular words and distinguishing a person from a place. The authors turn these two readings into a single task. One annotation attaches to the sentence as a whole. The others attach to stretches of words within it. This is an example of linguistic annotation.

The paper illustrates the distinction with a sentence about Shinzo Abe's resignation as prime minister of Japan. The sentence receives the category Social. The span Shinzo Abe is annotated as a person, and Japan is annotated as a location. A span is the stretch of input text that names the entity. The name and its type answer different parts of the extraction question. A response that identifies a person without specifying which words name that person is incomplete. Similarly, giving the name alone leaves out the type the annotation calls for.

The two levels of information can support one another without defining one another. The name of a public figure can help make a social interpretation plausible, while a sentence about public affairs can make certain interpretations of names more likely. The sentence still has to be read. Knowing that Japan occurs somewhere in the input leaves many sentence categories open, and assigning Social says little by itself about the precise boundaries of a person's name. The authors' hypothesis is that learning the two tasks together lets the system use correlations that would be harder to exploit under separate supervision.

What makes the question practical is the need to return both kinds of information about the same sentence. A collection annotated only for names can teach where entities occur and what sorts of things they name. It does not directly supervise the intended categories for full sentences. A collection annotated only for sentence topics supplies the other part. The authors identify a need for sentences annotated at both levels, with broad sentence categories that can be used across the content in the collection. They meet that need by adding sentence labels to an existing Japanese entity dataset. The two tasks then refer to the same source sentences, so the relation between their annotations is available during training.

Why generate an answer as text?

The paper places the task within information extraction, a part of natural language processing that turns aspects of text into structured outputs. Alongside entity recognition and sentence classification, the authors mention work on extracting relations and events and on identifying sentiment. These tasks can have different annotation units and different output requirements even when they start from similar text. A relation extractor needs to indicate what is connected. An entity recognizer needs to indicate which words form a name and what kind of entity those words name. A sentence classifier can give a category without marking any individual words. Information extraction

One route described in the paper starts with a system pretrained on a general corpus and then trains it for a particular downstream task. The second stage, called fine-tuning, exposes the pretrained system to examples of the particular predictions it must make. Separate task datasets make this straightforward when the desired answers have different shapes. The cost for this study is that a separately trained sentence classifier and entity recognizer have no joint training examples in which one answer includes both kinds of evidence. The authors want to test what can be gained when the tasks are presented together. Fine-tuning

The paper also describes a change in how extraction outputs can be represented. In sequence tagging, a prediction assigns labels to tokens in the input sequence. Those labels can encode whether a token belongs to an entity and help recover the full span. In sequence-to-sequence generation, an input text is mapped to an output text. The output can contain an entity type followed by the words it applies to. It can be shorter than the input or include several entries, and its positions need not be aligned with the positions of the input tokens. That flexibility allows the authors to place a sentence category and a list of entities in the same generated answer. It also means that the system must learn the conventions governing the answer itself.

A common text format makes single-task and joint versions of the experiment possible inside the same framework. If training calls for a sentence category alone, the examples can be written for that output. The same principle applies to entity extraction. In the combined task, the target text contains both. The important comparison is between these training conditions. Simply taking the outputs of two independently trained systems and placing them in the same record would supply both answers for a user, but it would leave the paper's question about shared supervision unanswered.

How the study relates to earlier work

The authors describe prior generative work at the level of entities and other local structures. One sequence-to-sequence approach generates entity spans and covers flat, nested, and discontinuous recognition. These variants concern how mentions can be arranged, including whether one can occur inside another or have separated parts. A self-describing approach joins descriptions of mentions with entity generation in a few-shot setting, where little labeled data is available. The paper also discusses GenIE, which uses a global structural constraint for relation extraction. Earlier work thus already gave the authors reasons to consider both text generation and controls on the shape of that text. Few-shot learning and text generation

LightNER addresses transfer across entity categories with a learned way of expressing those categories and uses a pluggable guidance component for transfer across domains. InstructionNER and UIE are cited as additional examples of frameworks for extraction at the word level. The relevant point for the Japanese Wikipedia study is that generated text can represent labels and extracted material within a shared format. The authors apply that idea to outputs at different levels, by putting a topic category for the entire sentence alongside the descriptions of its mentions.

The paper also discusses prior joint learning across the sentence and token levels. One approach uses sentence labels to support entity recognition in a framework with a bidirectional recurrent network, attention, and a layer that models dependencies among output labels. Another, MGADE, jointly handles adverse-drug-event entity recognition and sentence classification. It uses attention to take advantage of the connection between the coarse decision about a sentence and the more detailed decision about the spans within it. These studies establish the context for asking whether supervision at one level can help at another. The Japanese study asks that question with broader Wikipedia sentence categories and a generated output that exposes both decisions in the same answer.

The method, step by step

Start with sentences that have both kinds of annotation

The authors call the joint task SCNM. An instance begins with a Japanese sentence and ends with its sentence category and the entity entries expected for that sentence. Each entity entry needs a type and a span. The word classification applies at both levels in a broad sense, because the system chooses a category for a sentence and a type for each mention. The entity task has the added requirement of locating the material to type. In the resignation example, the system must find the words corresponding to Shinzo Abe and Japan before an answer can correctly record them with their types.

The source is a Japanese Wikipedia entity-recognition dataset. The authors report 5,343 sentences, of which 4,859 have named entities and 484 have none. The dataset contains 13,185 named entities across 8 types. Its organization labels distinguish companies, political organizations, and other organizations. The other types cover people, locations, public facilities, products, and events. These distinctions belong to the entity task, independently of the category that the new annotation assigns to the sentence.

For the classification task, the authors assign each sentence to one of five broad categories: natural, technical, academic, social, or literature and art. Literature and art is a single category. A sentence's category is chosen at the level of its subject matter, so a sentence about a work of art can still identify a person or a location within it. The sentence category and the entity types consequently form two separate inventories. An entry for a person cannot serve as the whole-sentence category, even when the person's identity is the strongest clue to the subject.

The sentences without entities are kept in the dataset. This matters to the task definition because the system must be able to conclude that a sentence yields no name entries. Every such sentence still receives a sentence category. The input inventory for entity recognition includes the extra label None to represent the absence of named entities. It is an option for the negative case rather than an additional kind of named object, so the inventory shown to the system has nine choices while the underlying entity annotations have 8 types.

Keeping both annotations on the original sentence also makes it possible to derive single-task data without finding a new collection. The format converter can retain the sentence classification part or the entity part of the joint examples. With both parts retained, each example supervises both outputs. These variants give the experimental comparison a common source of sentences and labels. They also make clear what changes when the task is presented separately, since the expected answer and the associated prompts can be adapted to what that condition asks the system to return.

How Sentence-to-Label Generation prepares and answers the joint task

The steps in order.

How Sentence-to-Label Generation prepares and answers the joint taskStep 1: Add sentence categories to Wikipedia entity examples1. Add sentence categories to Wikipedia entity examplesStep 2: Convert Shinra names and types into training pairs2. Convert Shinra names and types into training pairsStep 3: Train Japanese T5 on the Shinra pairs3. Train Japanese T5 on the Shinra pairsStep 4: Format joint inputs and their target answers4. Format joint inputs and their target answersStep 5: Fine-tune on the joint sentence examples5. Fine-tune on the joint sentence examplesStep 6: Force the opening marker during decoding6. Force the opening marker during decodingStep 7: Generate the sentence category and entity entries7. Generate the sentence category and entity entries

Put the sentence and the label inventories into text

The converter specifies the words and markers T5 receives and the organization of the answer it should learn. The authors call the system Sentence-to-Label Generation, or SLG. For the selected joint format, the input opens with the source sentence. The set of sentence-category labels comes next, enclosed by < and >. The original sentence then appears again. The next word is NER, which signals the entity part of the request. After it come the allowed entity labels, including None, with : and ; marking the boundaries of the label inventory.

This layout gives the system access to both the text to analyze and the words available as labels. The sentence is repeated so each part of the input has a copy associated with its own classification inventory. The category list gives the options for the whole sentence, while the NER prompt and its accompanying list specify a request for types and spans. The presence of a label in the input means it is an available answer. Which label belongs in the output is learned from the target texts.

The markers supply cues in addition to the label words. The sentence categories are surrounded by one pair of signs and the entity inventory by another. Accordingly, the system encounters a recognizable transition between the parts even when the lists contain several ordinary label words. In the format comparison, the authors vary how the request and answer are expressed, including whether the parts are distinguished by their markers. The selected design incorporates the inventories and uses different boundary signs for the two parts.

An input can therefore be read as a sentence accompanied by two requests. The first request is to choose its general category. The second is to report the entities it contains and their types. The converter expresses these requests with repetition, prompt words, label names, and delimiters. The same underlying text-to-text system can then be trained using different versions of the task. For single-task training, the converter separates the relevant material so the answer can be generated for sentence classification or entity recognition alone.

Teach the order of a complete answer

The target text shows what an acceptable answer looks like. It begins with the sentence-classification portion, preserving the convention that opens that portion with <. In place of the full set of allowable sentence categories, it contains the single category assigned to the example. The entity portion follows after NER. Its content consists of the entity labels and the accompanying spans from the sentence. In the resignation example, the output would first identify Social as the sentence category and would then associate the person and location types with the corresponding names.

An important distinction is between the size of a label inventory and the number of entries in an answer. The same candidate labels can appear in the input for every sentence. The number of named mentions depends on the particular sentence. For a sentence containing several mentions, the decoder has several type–span pairs to produce. For one without entities, the format includes the negative option. Because the response is text, the system can produce variable-length answers within the same task.

The target spans are the words that occur in the input. The method trains the system to generate those words as part of its answer. This means the span requirement is a content requirement even when it is expressed through text generation. A pair can look like a type followed by a name while containing the wrong name. It can name the right person while leaving out part of the annotated span. It can also be a well-formed pair in an answer that omits another required entity. The training target supplies the specific span phrases the system is expected to generate.

The order of fields also gives the output a natural dependency. The decoder sees the generated sentence category before it generates the entity portion. In principle, it can use that category as part of the context for predicting types and spans. At the same time, the sentence category is predicted before any actual entity entries are generated. Information useful for predicting the category can still come from the sentence and from what the system learned through shared training. The order alone cannot establish whether the system actually uses its own generated category as evidence for the later entries.

Prepare T5 with entity names from Shinra

The starting point is Japanese T5-base, a pretrained system for mapping input sequences to output sequences. An encoder reads the input and represents it in a form that the decoder can use. The decoder produces the answer as a sequence of tokens. A token is the unit the system reads or writes, so the selected markers as well as the words used for labels must be represented in the system's vocabulary. Tokenization

Before fine-tuning on the joint sentences, the authors carry out what they call incremental learning, abbreviated IL. Their rationale is that general sequence-to-sequence pretraining provides a starting point for text processing, while a further training stage can give the system direct practice with named entities. They want to add this practice while retaining the capabilities of the pretrained system. This stage uses entity names with type labels and does not require the full SCNM answer format.

For this stage they use Shinra2020-JP, a Japanese Wikipedia resource for extended named entity recognition. The paper reports 14,117 samples after conversion, with no duplicates among those samples. City, airport name, and location are among the categories in the inventory, as are person, Compound, company, organization, event, and facility. Its categories need not correspond individually to the downstream inventory. For example, the downstream task has distinctions involving organizations that are stated differently from the Shinra categories.

The conversion for Shinra makes each training example a short input–output pair. The input is an entity name, and the output is its category. The authors illustrate the format with Japan as the input and Location as the answer. This is practice in linking a name to a type. It does not by itself teach the system where to begin and end a mention in a full sentence, how to classify that sentence, or how to serialize several mentions together. Those requirements are introduced in the next training stage.

The authors first continue training Japanese T5-base on the converted Shinra pairs. They then fine-tune the resulting system on the converted SCNM sentences. The pipeline thus goes from general sequence-to-sequence pretraining to specialized practice with entity types and then to the paired annotation task. When the paper tests the contribution of IL, it asks what happens when the entity-specific intermediate stage is removed from that pipeline.

Force the opening token during generation

The authors call their decoding rule the Constraint Mechanism, or CM. It exploits a feature of the selected joint format. All the reference answers begin with <, the marker for the sentence-category field. Generating another token at that position would immediately put the answer outside the expected format. Because the correct opening is already known, the authors replace the initially predicted token with the vocabulary token for <. This gives the decoder the expected prefix before it predicts the next token.

The paper represents an output sequence in the following form.

(X₁, X₂, …, Xₙ)

Each X is a predicted output token, and its subscript gives its position. X₁ is the opening token, X₂ is the following token, and Xₙ is the last token. The ellipsis stands for the intervening positions, and n is the number of tokens in the predicted sequence. The parentheses group the tokens in their generation order.

The paper illustrates the dependency between predictions by writing the probability of the token that follows the opening.

P(X₂ | X₁) = Decoder₂(X₁, Encoder(Inputs))

P denotes the prediction probability. The vertical bar means that the prediction for X₂ is conditioned on X₁. Inputs is the converted source text. Encoder(Inputs) is the encoded representation of that text. Decoder₂ denotes the decoder computation used to obtain the next prediction from the preceding token and that encoded input. The equation uses the source representation on the right-hand side, so the prediction depends on what the encoder read as well as on the output prefix.

Setting X₁ changes the context used for X₂. That consequence distinguishes the rule from a cosmetic repair that inserts the right opening sign into a completed answer. When the decoder continues from <, subsequent choices are made with the category field already opened. Later choices can then depend on the text produced along that path. The rule fixes the initial token. The rest of the sequence, including the category, the following format markers, and the entity text, is still generated.

Score complete answers, their parts, and their format

The authors use several readings of the same predictions. For joint accuracy, they require a match to the full reference answer. An output can miss for several reasons. It could give the wrong category, omit or add an entity, produce a different span, or generate extra material that breaks the match. Requiring the whole answer to agree makes this a sentence-level exact-match measure for the combined task.

The paper summarizes the matches with intersection notation.

|A ∩ G| = C_generated_text

A denotes the actual or reference texts, and G denotes the generated texts. ∩ denotes their intersection, and the surrounding vertical bars denote a count. C_generated_text is the count of matching answers. The scoring description makes the comparison example by example. The count includes an answer only if it matches the reference for the sentence that prompted it.

The joint score divides that count by the number of reference answers.

SCNM Accuracy = C_generated_text / T_actual_text

SCNM Accuracy is the overall accuracy of the joint task. C_generated_text is the number of generated answers that fully match their references. T_actual_text is the total number of reference answers for the test examples. The slash denotes division.

For the component scores, the evaluation separates the sentence label from the remaining entity material and compares corresponding parts. The sentence score has this form.

SC Accuracy = C_SC / T_SC

SC Accuracy is sentence-classification accuracy. C_SC counts matching sentence labels and T_SC counts the reference sentence labels evaluated. The slash denotes division. If the category in the output agrees with the reference category, its correctness can be registered in this component even when the full answer fails.

The entity component is measured separately as well.

NER Accuracy = C_NER / T_NER

NER Accuracy is the accuracy of the entity portion. C_NER counts matches between that portion of the generated answer and the corresponding reference portion. T_NER counts the reference entity portions evaluated. The slash denotes division. The component is the answer containing the expected labels and spans for the sentence. It is evaluated as a match to that answer, so this score has a different meaning from counting individual recovered mentions across a collection.

Finally, the paper measures whether the generated text has the expected structure.

Format Accuracy = C_format / T_format

Format Accuracy measures how often an output follows the expected arrangement. C_format counts outputs judged correctly formatted, and T_format counts the reference examples over which they are assessed. The slash denotes division. For the joint answer, the sentence-classification field is expected first, followed by the entity label and span material. A format pass depends on the arrangement of fields. It can occur even if the reference supplies a different category or different entities.

Experiments and results

Data splits and conditions

The main experiments use Japanese T5-base as the shared starting point. The authors explain that the Japanese T5 they use is available in the base size. The downstream data come from the annotated Japanese Wikipedia collection. The intermediate training resource, where applicable, is Shinra2020-JP. It supplies training pairs for entity names and types and has a different role from that of the held-out joint sentences. The reported downstream scores test whether SLG can recover the annotations on sentences set aside for evaluation.

The paper reports a 9:1 division between training and test examples. For its general experimental procedure, it describes running each experiment three times and taking the average, randomly partitioning the data so the train and test sets vary between iterations. It gives Random Seed=None for that procedure. The separate format comparison holds the random seed and the other hyper-parameters constant. This distinction is relevant because the general procedure averages across randomized partitions, while the format comparison aims to hold the surrounding setup fixed as the representation changes.

The principal baselines address the joint-learning question directly. The authors derive an SC Only dataset and an NER Only dataset from the jointly annotated collection. SC Only retains the sentence classification task. NER Only retains the entity task. Each is run within SLG. The joint version trains the system to generate the two outputs together. Comparing each component of the joint answer with its single-task counterpart therefore asks whether packaging the two kinds of supervision together improves the component being measured.

The format and ablation experiments address different sources of improvement. The format comparison varies the representation using the original Japanese T5-base, without IL and CM. The ablation comparison removes stages from the selected framework. Those conditions are useful baselines for choices within SLG. They answer questions about presenting the task, giving the system prior practice on entity typing, and guiding the initial decoding step. They do not supply a ranking against all the earlier extraction approaches discussed in the paper.

Joint training and the single-task comparison

The full SLG setup reaches 72.41 joint accuracy on the held-out SCNM sentences. The unit of success is the complete generated answer. Both the category and the entity portion have to match together. A prediction that extracts all the expected entities while assigning the wrong sentence category misses on this metric. The same is true for a prediction with the right category and an incomplete inventory of names. This is why the headline value should be read in terms of sentences with a complete answer.

The component results supply the comparison with single-task training. For sentence classification on the held-out downstream data, the authors report an increase of 1.13 points over the condition that trains on the sentence labels alone. For entity-output accuracy on that dataset, they report an increase of 1.06 points over the entity-only condition. Both comparisons use the corresponding component of the combined output. Thus an increase in the sentence-classification score is evidence about the quality of the category prediction, even when the same prediction is also assessed under the full-answer requirement.

The changes are in the same direction for both tasks. That is the experimental basis for the authors' description of mutual reinforcement. The comparison puts the hypothesis to a stronger test than showing that a system can return two answers in one string. A system can be technically capable of producing both fields while becoming worse at one of the underlying decisions. Here the reported averages favor joint training for each component. How much of that effect is attributable to particular correlations between categories and entity types remains a separate question.

The complete-answer result and the two component gains answer different questions. The complete-answer score tells a reader how frequently the selected joint setup returned the required answer for the whole sentence. The gains tell a reader what happens to each component under joint training compared with the corresponding separate task. Neither component gain directly determines the joint score. That score depends on whether category and entity predictions succeed on the same individual examples, and it also depends on being able to express the answer in a form that matches the reference.

What changes when the output can be read

The effect of decoding control is visible on the same joint evaluation. With the full SLG framework the joint score is 72.41. Removing the constraint gives 46.38 for joint accuracy. With the constraint removed, the sentence-classification component scores 55.99 and the entity component scores 52.62. All of these values concern the held-out SCNM evaluation under the paper's accuracy definitions. The ablation therefore affects the full answer and both parts that the evaluation extracts from it.

Joint exact-match accuracy on held-out SCNM sentences with and without the decoding constraint

The full framework matches more complete reference answers when decoding starts with the required marker.

Joint exact-match accuracy on held-out SCNM sentences with and without the decoding constraintSLG without the decoding constraint: 46.38SLG without the decoding constraint46.38Full SLG (this paper): 72.41Full SLG (this paper)72.41
The numbers
System or settingaccuracy %
SLG without the decoding constraint46.38
Full SLG (this paper)72.41

The format score shows a related change at the level of answer structure. The system without CM records 63.61 format accuracy on the joint task, while the system using CM reaches 100. The formatting check can accept an answer with incorrect labels or mentions, which is why the format score can reach 100 even though the complete-answer score is lower. A reliable structure makes it possible to find the fields the system intended to return. It still leaves questions about which values the system put in those fields.

Format accuracy on held-out SCNM sentences with and without the decoding constraint

Forcing the opening marker improves adherence to the expected structure of the joint answer.

Format accuracy on held-out SCNM sentences with and without the decoding constraintSLG without the decoding constraint: 63.61SLG without the decoding constraint63.61Full SLG (this paper): 100Full SLG (this paper)100
The numbers
System or settingformat accuracy %
SLG without the decoding constraint63.61
Full SLG (this paper)100

The drop in the content scores can reflect several consequences of changing the start of generation. A response that goes off format can be hard to separate into the fields needed for the component scores. The changed prefix can also alter which category words, entity types, or spans are generated. Since the forced token is used while decoding is still in progress, both effects are plausible. The scores establish that the constraint improves measured performance in this format. They do not separate failures to express a decision from changes in the decision itself.

How the choice of format affects the result

The authors compare four formats using the original T5-base and keeping the random seed and other hyper-parameters fixed. They leave out the incremental training stage and the decoding constraint. The result of interest is joint exact-match accuracy on SCNM. Under this setup, the format comparison tests how the representation alone can help the system generate the combined answer.

In the simplest condition, the input is just the sentence. The reported joint accuracy is 0. The authors attribute this result to failures to produce the required format. Under exact matching, whatever useful category or entity information might occur within an irregular output does not by itself earn credit. Adding a short cue for the classification and entity portions changes the reported joint accuracy to 0.19. The cue gives the system an indication of the task, but the complete answer still rarely matches under that design.

The richer versions include all five sentence labels and all nine entity options in the input. The paper's account of the prompt-rich comparison cites 0.37 and 0.56, then reports 29.40 for the design with < and > enclosing the sentence labels, which makes the sentence markers distinct from the entity markers. The discussion does not specify a separate split or metric for each of the two small intermediate values, so the clearest comparisons are the settings with an explicit mapping from representation to score.

Joint exact-match accuracy for selected input and output formats on SCNM

The format with separate markers for sentence categories and entity information outperforms the simpler prompts.

Joint exact-match accuracy for selected input and output formats on SCNMSentence as input: 0Sentence as input0Short task prompt: 0.19Short task prompt0.19Separate sentence and entity markers (this paper): 29.40Separate sentence and entity markers(this paper)29.40
The numbers
System or settingaccuracy %
Sentence as input0
Short task prompt0.19
Separate sentence and entity markers (this paper)29.40

The 29.40 result belongs to the format experiment with the original T5-base and without IL or CM. The 72.41 result belongs to the main joint experiment with the full framework. The comparison restricted to formats provides direct evidence for choosing the converter design. The full result measures the combined pipeline. Treating the two values as an isolated test of any single additional feature would ignore the fact that the full pipeline changes both the training history and the decoding setup.

What the scores tell a reader about an answer

The paper's accuracies operate on generated text and on parts of that text. A sentence can contain several names, while another contains none. Each sentence still contributes one joint answer to check. A sentence with several annotated mentions has more required content for a complete match, but the correct generation of some of those mentions does not receive separate credit in the joint score. This is a reasonable measure when the aim is to deliver a whole structured answer. An engineer who wants to know how often individual names are recovered would need a different breakdown.

The entity score follows the same emphasis on a complete output for the relevant field. It can penalize a missing name, a wrong type, and an extra span through failure of that field to match. Precision and recall at the level of mentions could describe those errors in different ways. The paper instead evaluates the version of the task that it trains the system to perform, which is to return the specified answer text. The gain of 1.06 points thus has a precise interpretation as a gain on this entity-output accuracy measure.

Format accuracy is helpful because generation can fail before its meaning can be evaluated cleanly. It asks a narrower question about the ordering and presence of the required output material. Taken together, the scores allow a reader to see an effect that a single aggregate would obscure. The decoding rule makes it possible to obtain the expected format throughout the reported test, while exact matching still leaves a gap between a structurally acceptable response and a complete correct answer.

What the ablations show

Entity preparation helps beyond the entity field

The intermediate training stage gives the system direct practice in mapping names to types before the downstream fine-tuning. In the ablation that removes this stage, the authors report a decline of 15.98 in entity-output accuracy on SCNM. The corresponding decline in sentence-classification accuracy is 3.18. These are reported reductions from the full setup for the two component scores, rather than the absolute accuracies of the system without IL.

The larger effect falls on the part of the downstream task that is closest to Shinra supervision. The Shinra inputs are names and the targets are entity categories. The downstream entity field asks for names and types, though it adds contextual recognition, span generation, and the need to report several mentions where applicable. The ablation shows that the intermediate practice is useful for that broader output in the joint pipeline. The 15.98 decline is a property of removing the whole training stage, so it summarizes the resulting differences in the entity answer instead of isolating individual improvements in typing or span selection.

The category score also benefits in the full pipeline, despite the absence of the downstream sentence categories from the intermediate exercise. This is compatible with the idea that learned information about entities can help with interpreting the sentence. For example, contextualizing a name as a person can be relevant to understanding which words describe an action and what subject the sentence covers. The evidence is at the level of aggregate accuracy. The ablation does not trace a specific correct category decision to a newly learned fact about one of its mentions.

This intervention tests a different source of transfer from the single-task comparison. Removing IL changes the data seen before downstream fine-tuning. Splitting the downstream task changes whether the category and entity answers are learned together on the annotated sentences. The results in both comparisons fit the authors' hypothesis that supervision involving entities can be useful beyond entity recognition. Each comparison defines its own rerun of the pipeline, and the reported changes should be interpreted in their respective settings.

The first token shapes the rest of the response

The decoding ablation alters what happens after training. With CM, the decoder begins from a forced <. Without it, the decoder supplies its own opening. The structure of the target answer remains the same. The drop to 63.61 format accuracy without the rule shows that learning from formatted examples leaves the unguided decoder liable to deviate from the expected layout. When given the known start, it produces correct formats at the rate of 100 in the reported evaluation.

The intervention is small in terms of the number of decisions it fixes, because it fixes the opening token. Its influence can extend past that decision because the token becomes part of the prefix for every continuation. A response that begins in the expected category field can continue with category words and then move to the entity field. If it begins differently, the continuation may follow another pattern. The experiment illustrates why correcting a fixed structural decision before generating the rest of the output can affect accuracy measured across the whole sequence.

The reductions to 46.38 for the joint answer, 55.99 for sentence classification, and 52.62 for entity recognition show that the formatting difference is consequential for the content evaluation. Some of the change can arise because correctly organized answers let the scorer identify parts that would otherwise be difficult to read. A different opening can also produce different content even in a response whose parts happen to be identifiable. The paper measures the total effect of the allowed starting token on the resulting output. It leaves those explanations unresolved at the level of particular errors.

The ablation also puts the 100 format score in context. CM explicitly guarantees the opening marker. The paper reports that the rest of the tested joint output follows the required format when the decoder starts that way. The method does not describe a grammar that constrains the later choices one by one. The observed outcome therefore says that a forced start was sufficient for the evaluated setting. It gives no formal guarantee that every continuation on a different set of texts would also be valid.

What the format variants can isolate

The format comparison gives a controlled view of a different part of the system. Since IL and CM are absent and the authors hold the surrounding settings constant, the shifts in joint accuracy arise when the task is expressed differently. The variants change the information available directly in the prompt and the way an acceptable output is marked. At the low end, a sentence by itself gives no visible inventory of permissible answers. Adding a brief prompt tells the system more about the request, while leaving the form of a full structured answer difficult to learn.

The strongest format puts the category and entity inventories visibly in the input and distinguishes the category boundaries with their own markers. The comparison supports using those boundaries in the selected design. In particular, the authors describe changing the signs around the sentence labels to make them easier to distinguish from the entity labels. The gain in exact matching is evidence about how the system responds to this representation. Because exact matching includes content and structure, the format comparison does not quantify how much of the gain comes from selecting better labels and how much comes from expressing them in the required layout.

There is also a distinction between format cues and the decoding constraint. The boundary symbols in the converter expose the structure in the input and reference output, and the training examples teach the response pattern. CM supplies the known first marker at prediction time. The format comparison tests the converter without this assistance, while the decoding ablation tests the value of the assistance in the selected joint framework. Together, the results show that the interface created by the converter affects performance even before the first token is forced, and that the forced start improves adherence to that interface after fine-tuning.

What the joint comparison establishes

The joint and separate tasks give the final comparison needed for the paper's main hypothesis. SC Only and NER Only show what the framework can do when it learns each answer separately from the same underlying annotation collection. The combined condition gives it both forms of supervision and trains it on a sequence that contains both. The resulting gains of 1.13 points for the sentence category and 1.06 points for the entity output favor joint learning under the reported conditions.

The comparison includes both shared training and a change to the prediction task. In the joint condition, the system learns to produce the sentence category and entities in one sequence. For the entity part, the earlier category output is available as context during generation. For the sentence part, the result can depend on representations learned through both training objectives, although actual entity entries occur later in the sequence. The experiment establishes a benefit for the joint setup as a whole. It does not break that benefit down into gains from shared parameter training, extra information in the prompts, and conditioning on the already generated category.

This is also why the gains and the format results belong in the same account. A comparison between complete responses is only informative if the system can reliably express the fields used to measure them. The authors improve that reliability and then use the component scores to ask whether the single joint answer is also better at each task. The resulting picture is more specific than a general claim that combining extraction tasks helps. For these two annotations, in this converter and training pipeline, the measured gains are positive in both directions.

Limitations

The scope the authors identify

The authors propose evaluating the framework with other underlying language systems and on other sentence-classification and entity-recognition datasets. They also propose building domain-specific versions of SCNM to test adaptability. The completed experiments therefore concern the Japanese T5-base system and the Wikipedia-derived setup. The future work identifies two changes that could affect the result, replacing the underlying system and replacing the kinds of sentences and annotations it sees.

The authors also recognize that their criterion for text accuracy is strict. A generated answer has to agree completely with its reference to pass the joint check. This gives the task a clear definition and fits the aim of producing structured text with variable numbers of entities. It leaves other descriptions of performance outside the main evaluation. A system can provide a almost complete answer and receive the same joint score for that sentence as a system that misses the sentence category and all the entities.

What follows from the dataset and comparison

The source sentences come from Japanese Wikipedia and inherit that collection's entity inventory. The sentence annotation is broad in topic, which suits the authors' design goal, but that breadth is within one source. Evidence from this collection leaves open how often the same reinforcement would appear in other text or under a different definition of the sentence categories. In a new domain, the kinds of entities that help distinguish topics could be quite different. The balance of sentences with and without entities could change, as could the way names are presented.

The paper gives the names of the category groups and explains that all the sentences receive a category. It does not report agreement among annotators or detail how ambiguous category matches were adjudicated. That matters to interpretation because a whole-sentence task requires a single answer even when the content could plausibly fit more than one broad group. The exact-match score measures agreement with the recorded choice. The paper does not give a separate estimate of uncertainty about that choice.

Both the Shinra intermediate corpus and the downstream entity dataset are derived from Japanese Wikipedia. The statement that the 14,117 converted Shinra samples have no duplicates describes that collection internally. It does not establish that names are disjoint between Shinra and the downstream test sentences. As a result, the IL ablation shows the effect of using that resource under the study's setup. It cannot tell how much of the gain would remain for names that never occur in the intermediate training data. An evaluation organized around unseen names or source groups would address a different question from the paper's randomized sentence splits.

The paper reports averages but does not accompany the main comparisons with uncertainty intervals or run-level results. The observed gains of 1.13 points and 1.06 points give their magnitude under the reported procedure. They cannot show whether every run favored the joint condition or how sensitive the conclusion is to the composition of a particular split. Randomizing the splits tests the method over more than one partition. The summary accuracy alone leaves the amount of variation unspecified.

The single-task baselines are appropriate for comparing variants within SLG because they use component annotations from the same underlying collection. They do not establish a performance advantage over a separate sequence tagger for entities or a different classifier for sentence categories. The prior work discussed by the authors provides motivation and context. Those systems do not serve as evaluated alternatives on the new joint dataset in the reported experiments.

What remains unknown about the errors and the mechanism

The measure of entity accuracy cannot show whether the joint setup recovers more mentions, predicts their boundaries more precisely, types more of them correctly, or avoids extra predictions. Several of these changes could contribute to the same increase in exact matches. Likewise, the results do not say which of the five sentence categories benefit most. The examples explain why a relation between the tasks is plausible, but an aggregate improvement leaves open which combinations of sentence categories and entity types account for it.

The 484 sentences without entities are important for interpreting what a correct entity answer can mean. Success on such an example involves identifying the negative case and avoiding a spurious extraction. A sentence with entities asks for one or more typed spans. The reported global score does not separate these cases, so it cannot show whether the increase in entity-output accuracy comes from better negative decisions, better extraction in positive sentences, or improvements in both. The same issue arises when comparing positive sentences with different numbers of expected mentions.

The decoding result also belongs to a particular target convention. Its intervention is available because every reference output has a known initial <. The results demonstrate how well this early control works with the paper's selected format. They do not show that the rule checks the source grounding of a generated name, that all type decisions use sentence context, or that equivalent performance would hold for formats whose correct openings vary. The remaining gap between format and joint accuracy is direct evidence that being able to read an answer and agreeing with its content are separate outcomes.

Finally, there is a difference between showing a benefit from paired tasks and establishing how that benefit arises. The study compares the joint setup against otherwise related single-task conditions and observes better component accuracy for each. It does not intervene on particular category predictions to see whether changing them alters entity output, or on the presence of particular names to measure the effect on the category. The tested conclusion is that this joint training and generation arrangement improves the two measured outputs on the authors' dataset. The paper's explanation in terms of mutually useful information is consistent with that evidence, while the path by which individual predictions improve remains open.

What came after

No later work is documented here as extending the framework, so there is no established follow-up to discuss. The authors themselves leave open whether the result carries over to other language systems, other annotation collections, and domain-specific versions of the task. Each direction would test a different part of the finding. Changing the underlying system would test whether the method depends on the behavior of Japanese T5-base. Changing the dataset would test whether the link between categories and entities persists when the sentences and labels change. A domain-specific dataset would test whether the same approach works when the sentence categories have a narrower purpose.

Cite

Cite as Chengguang Gan, Qinghao Zhang and Tatsunori Mori. 2023. Sentence-to-Label Generation Framework for Multi-task Learning of Japanese Sentence Classification and Named Entity Recognition. Lecture notes in computer science.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.1007/978-3-031-35320-8_18 · arXiv 2306.15978

@inproceedings{gan2023sentence,
  title = {{Sentence-to-Label Generation Framework for Multi-task Learning of Japanese Sentence Classification and Named Entity Recognition}},
  author = {Chengguang Gan, Qinghao Zhang and Tatsunori Mori},
  booktitle = {Lecture notes in computer science},
  year = {2023},
  doi = {10.1007/978-3-031-35320-8\_18},
  eprint = {2306.15978},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.1007/978-3-031-35320-8_18}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/gan-2023-sentence-label-generation-framework-multi/

References

19 references, from the paper's own bibliography.

  1. Chen, J., Liu, Q., Lin, H., Han, X., Sun, L.: Few-shot named entity recognition with self-describing networks. In: Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). pp. 5711–5722. Association for Computational Linguistics, Dublin, Ireland (May 2022). , https://aclanthology.org/2022.acl-long.392 OpenAlex ↗ · Scholar ↗
  2. Chen, X., Li, L., Deng, S., Tan, C., Xu, C., Huang, F., Si, L., Chen, H., Zhang, N.: LightNER: A lightweight tuning paradigm for low-resource NER via pluggable prompting. In: Proceedings of the 29th International Conference on Computational Linguistics. pp. 2374–2387. International Committee on Computational Linguistics, Gyeongju, Republic of Korea (Oct 2022), https://aclanthology.org/2022.coling-1.209 OpenAlex ↗ · Scholar ↗
  3. Etzioni, O., Banko, M., Soderland, S., Weld, D.S.: Open information extraction from the web. Communications of the ACM 51(12), 68–74 (2008) our card
  4. Huang, Z., Xu, W., Yu, K.: Bidirectional lstm-crf models for sequence tagging. arXiv preprint arXiv:1508.01991 (2015) our card
  5. Josifoski, M., De Cao, N., Peyrard, M., Petroni, F., West, R.: GenIE: Generative information extraction. In: Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies. pp. 4626–4643. Association for Computational Linguistics, Seattle, United States (Jul 2022). , https://aclanthology.org/2022.naacl-main.342 OpenAlex ↗ · Scholar ↗
  6. Kruengkrai, C., Nguyen, T.H., Aljunied, S.M., Bing, L.: Improving low-resource named entity recognition using joint sentence and token labeling. In: Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics. pp. 5898–5905. Association for Computational Linguistics, Online (Jul 2020). , https://aclanthology.org/2020.acl-main.523 OpenAlex ↗ · Scholar ↗
  7. Lample, G., Ballesteros, M., Subramanian, S., Kawakami, K., Dyer, C.: Neural architectures for named entity recognition. In: Proceedings of the 2016 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies. pp. 260–270. Association for Computational Linguistics, San Diego, California (Jun 2016). , https://aclanthology.org/N16-1030 our card
  8. Lu, Y., Liu, Q., Dai, D., Xiao, X., Lin, H., Han, X., Sun, L., Wu, H.: Unified structure generation for universal information extraction. In: Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). pp. 5755–5772. Association for Computational Linguistics, Dublin, Ireland (May 2022). , https://aclanthology.org/2022.acl-long.395 OpenAlex ↗ · Scholar ↗
  9. Medhat, W., Hassan, A., Korashy, H.: Sentiment analysis algorithms and applications: A survey. Ain Shams engineering journal 5(4), 1093–1113 (2014) OpenAlex ↗ · Scholar ↗
  10. Mintz, M., Bills, S., Snow, R., Jurafsky, D.: Distant supervision for relation extraction without labeled data. In: Proceedings of the Joint Conference of the 47th Annual Meeting of the ACL and the 4th International Joint Conference on Natural Language Processing of the AFNLP. pp. 1003–1011. Association for Computational Linguistics, Suntec, Singapore (Aug 2009), https://aclanthology.org/P09-1113 our card
  11. Nadeau, D., Sekine, S.: A survey of named entity recognition and classification. Lingvisticae Investigationes 30(1), 3–26 (2007) OpenAlex ↗ · Scholar ↗
  12. Omi, T.: Construction of a japanese named entity recognition dataset using wikipedia. In: 27th Annual Conference of the Association for Natural Language Processing (2021) OpenAlex ↗ · Scholar ↗
  13. Pang, B., Lee, L., Vaithyanathan, S.: Thumbs up? sentiment classification using machine learning techniques. In: Proceedings of the 2002 Conference on Empirical Methods in Natural Language Processing (EMNLP 2002). pp. 79–86. Association for Computational Linguistics (Jul 2002). , https://aclanthology.org/W02-1011 our card
  14. Raffel, C., Shazeer, N., Roberts, A., Lee, K., Narang, S., Matena, M., Zhou, Y., Li, W., Liu, P.J.: Exploring the limits of transfer learning with a unified text-to-text transformer. The Journal of Machine Learning Research 21(1), 5485–5551 (2020) our card
  15. Ritter, A., Clark, S., Etzioni, O., et al.: Named entity recognition in tweets: an experimental study. In: Proceedings of the 2011 conference on empirical methods in natural language processing. pp. 1524–1534 (2011) our card
  16. Wang, L., Li, R., Yan, Y., Yan, Y., Wang, S., Wu, W., Xu, W.: Instructionner: A multi-task instruction-based generative framework for few-shot ner. arXiv preprint arXiv:2203.03903 (2022) OpenAlex ↗ · Scholar ↗
  17. Wunnava, S., Qin, X., Kakar, T., Kong, X., Rundensteiner, E.: A dual-attention network for joint named entity recognition and sentence classification of adverse drug events. In: Findings of the Association for Computational Linguistics: EMNLP 2020. pp. 3414–3423. Association for Computational Linguistics, Online (Nov 2020). , https://aclanthology.org/2020.findings-emnlp.306 OpenAlex ↗ · Scholar ↗
  18. Yan, H., Gui, T., Dai, J., Guo, Q., Zhang, Z., Qiu, X.: A unified generative framework for various NER subtasks. In: Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers). pp. 5808–5822. Association for Computational Linguistics, Online (Aug 2021). , https://aclanthology.org/2021.acl-long.451 our card
  19. Zhang, Y., Wallace, B.: A sensitivity analysis of (and practitioners' guide to) convolutional neural networks for sentence classification. arXiv preprint arXiv:1510.03820 (2015) our card