A Novel Multi-Task Learning Approach for Context-Sensitive Compound Type Identification in Sanskrit

Jivnesh Sandhan, Ashish Gupta, Hrishikesh Terdalkar, Tushar Sandhan, Suvendu Samanta, Laxmidhar Behera, Pawan Goyal

Abstract

Jivnesh Sandhan, Ashish Gupta, Hrishikesh Terdalkar, Tushar Sandhan, Suvendu Samanta, Laxmidhar Behera, Pawan Goyal. Proceedings of the 29th International Conference on Computational Linguistics.

2022.

Introduction

In Sanskrit, compounding (samāsa) is a ubiquitous linguistic tool used for brevity and stylistic expression. However, it presents a significant challenge for Natural Language Processing (NLP) due to inherent semantic ambiguity. The relationship between the components of a compound is often implicit and highly dependent on the surrounding context. For instance, the compound rāma-īśvaraḥ can be interpreted as "Lord who is pleasing" (Karmadhāraya), "The one whose God is Rama" (Bahuvrīhi), or "Lord of Rama" (Tatpuruṣa) depending on its usage in a sentence.

Traditional models for Sanskrit Compound Type Identification (SaCTI) have largely been "context-blind," focusing solely on the compound word itself. This paper introduces a novel context-sensitive multi-task learning (MTL) framework that leverages sentential context and auxiliary linguistic tasks to resolve these ambiguities.

Methodology

The proposed architecture is built upon XLM-R, a multilingual transformer encoder. To capture the complex nuances of Sanskrit grammar, the model employs a Multi-Task Learning (MTL) strategy.

Proposed MTL architecture for context-sensitive SaCTI.

Key Technical Components:

  • Auxiliary Tasks: The model simultaneously learns Morphological Tagging (identifying gender, number, and case) and Dependency Parsing (mapping syntactic relationships). These tasks provide critical signals; for example, certain compound types like Avyayībhāva are strongly correlated with specific morphological tags (e.g., neuter gender).
  • Bi-Affine (BiAFF) Attention: A Bi-Affine scoring function determines the influence of each context word on the compound's classification.
  • Pair-wise Formulation and Max Voting: The model evaluates the relationship between the compound and every context word individually. A maximum voting policy then selects the most probable semantic category based on these pairwise interactions.
  • Explainability: The system generates attention heatmaps, providing a visual proxy for understanding which context words (such as specific verbs or nouns) influenced the model's decision.

Datasets

The model's robustness was evaluated across three languages:

  1. Sanskrit: Utilizing the benchmark SaCTI-base and a newly curated SaCTI-large dataset containing over 48,000 unique compounds.
  2. English: A noun-noun compound dataset extracted from the Wall Street Journal.
  3. Marathi: The authors introduced a new annotated dataset of 368 unique compounds to test generalizability on another morphologically rich language.

Results and Discussion

The proposed MTL framework achieved a new state-of-the-art (SOTA) for Sanskrit compound identification. On the SaCTI-base dataset, the model reached an Accuracy of 83.45% and an F1-score of 81.71%, marking a significant improvement of 7.7 points in F1-score over previous hybrid systems.

Performance comparison of the proposed model against baseline systems across different datasets and settings.

Ablation studies confirmed that the "context" component is the most critical factor for performance. Its inclusion reduced classification errors between similar categories, such as Tatpuruṣa and Bahuvrīhi, by up to 15%. Furthermore, the model demonstrated strong cross-lingual potential, yielding an average absolute gain of 4.7 points in accuracy for English and Marathi without language-specific tuning.

Conclusion

This research demonstrates that context and syntactic structure are indispensable for decoding the semantics of Sanskrit compounds. While the model shows impressive gains, challenges remain regarding data imbalance in Sanskrit corpora and the limitations of zero-shot transfer. Future work will explore "Neuro-symbolic" approaches, integrating formal rules from Pāṇinian grammar with data-driven deep learning to further enhance linguistic precision.

Summary updated

BibTeX
@inproceedings{sandhan2022novel,
  author = {Jivnesh Sandhan and Ashish Gupta and Hrishikesh Terdalkar and Tushar Sandhan and Suvendu Samanta and Laxmidhar Behera and Pawan Goyal},
  title = {{A Novel Multi-Task Learning Approach for Context-Sensitive Compound Type Identification in Sanskrit}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2022},
  url = {https://openreview.net/forum?id=hF5YmSrKAN},
}
Figure