Elamur Research⌕
☰
home / papers / 2024 / dzFinNlp at AraFinNLP: Improving Intent Detection in Financial Conversational Agents

dzFinNlp at AraFinNLP: Improving Intent Detection in Financial Conversational Agents

Paper · 2024 · Mohamed Lichouri, Khaled Lounnas and Amziane Zakaria

Summary

The dzFinNlp team tackled Subtask-1 of the AraFinNLP shared task: assigning each Arabic banking customer query to one of 77 intents. The data is ArBanking77, which was built by translating the English Banking77 corpus into MSA and Palestinian Arabic and was then extended to more dialects. The authors trained only on the Palestinian (PAL) portion. They then evaluated on a test set that mixes MSA, Gulf, Levantine and North African queries. They compared four system families:

  • LinearSVC on combined TF-IDF n-gram features, unweighted;
  • the same model with per-feature-block weights;
  • LSTM and BiLSTM networks;
  • frozen multilingual Sentence Transformer embeddings fed to logistic regression.

The tuned TF-IDF + LinearSVC system was the clear winner on the development set, at roughly 93% micro F1. On the multi-dialect test set it fell to 67.21%. The work shows that a carefully tuned sparse baseline can beat untuned neural models on short, domain-specific queries. It also shows that skill learned on a single dialect transfers poorly to others.

Key points

  • Subtask data: 10,821 training, 1,234 development and 1,721 test sentences (13,776 in total). Queries average about 8 words and about 42–43 characters. The full ArBanking77 resource contains 31,404 queries across 77 intent classes.
  • Features were built with scikit-learn's FeatureUnion over three TF-IDF analyzers: word, char and char_wb.
    • The block weights (transformer_weights) were searched from 0.1 to 1.0 in steps of 0.1.
    • The best settings paired word 3-grams or 4-grams with character 4–5-grams.
    • The strongest configurations set C between 4 and 6.
  • Development F1 rose from 88.01 with a word-unigram baseline to between 92.11 and 93.08 with richer n-grams and weighting. The abstract reports 93.02 as the best figure, while the table's top value is 93.08.
  • Neural results on development were much lower:
    • The plain LSTM (100 units, embedding size 100) scored 75.23.
    • Capping sequence length at 50 and vocabulary at 5,000 raised this to 79.6 for the LSTM and 79.84 for the BiLSTM.
    • Both xlm-r Sentence Transformer variants with logistic regression scored 75.76.
  • The best system scored 67.21 micro F1 on the official multi-dialect test set. The gap from development reflects training on PAL only.

Interesting ideas

  • I1. Combining word, character and word-boundary-aware character n-gram views, each with its own tunable weight, lets one linear model capture both lexical cues and sub-word morphology in noisy text.
  • I2. The authors trained on one dialect and tested on a mixture of dialects, which exposed a drop of about 26 points that an in-dialect dev set completely hid.
  • I3. A tuned sparse linear baseline beat LSTMs and frozen multilingual embeddings by more than 13 points, so cheap baselines deserve real tuning before neural models are credited with gains.
  • I4. Shrinking the LSTM's input, through shorter maximum sequences and a capped vocabulary, improved scores by about 4–5 points, which suggests that pruning rare items can act as useful regularization on short-query tasks.
  • I5. The 77 banking intents work as a fixed inventory of request types attached to whole utterances, essentially domain-specific speech acts.

For Mova

How these ideas could serve Mova, our small open language model — its files, stages and tests:

  • I1 (tokens): A weighted char/char_wb view could back an explainable guesser for the POS and lemma of out-of-vocabulary or misspelled words, with each view's contribution inspectable.
  • I2 (learn): Every evaluation should include a deliberately shifted split, such as a different genre or register, so that in-domain scores are never read as general competence.
  • I3 (learn): Keeping a well-tuned simple witness alongside the parsers and LLM teachers gives an honest floor for judging whether the complex components add value.
  • I4 (tree): Capping rare word forms in the gparse or perceptron feature sets could be tested as a simple regularizer and checked on held-out treebanks.
  • I5 (frames): A closed intent inventory like Banking77's could serve as a test bed for mapping prag's speech-act and frame output onto concrete request types, with each decision traced back to tree evidence.

Our summary of the paper, in our own words — not its text. The work belongs to its authors; read it at the links above.

 Institutions

 Fields, topics and concepts

Cite

Cite as Mohamed Lichouri, Khaled Lounnas and Amziane Zakaria. 2024. dzFinNlp at AraFinNLP: Improving Intent Detection in Financial Conversational Agents. Proceedings of the Second Arabic Natural Language Processing Conference.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2024.arabicnlp-1.43

@inproceedings{lichouri2024dzfinnlp,
  title = {{dzFinNlp at AraFinNLP: Improving Intent Detection in Financial Conversational Agents}},
  author = {Mohamed Lichouri, Khaled Lounnas and Amziane Zakaria},
  booktitle = {Proceedings of the Second Arabic Natural Language Processing Conference},
  year = {2024},
  doi = {10.18653/v1/2024.arabicnlp-1.43},
  url = {https://doi.org/10.18653/v1/2024.arabicnlp-1.43}
}

References

14 references, 10 of them with a card of ours. ↗ leads to the work, «find» searches for one we have no id for yet.

  1. Mourad Abbas, Mohamed Lichouri, and Abed Alhakim Freihat. 2019. St madar 2019 shared task: Arabic fine-grained dialect identification. In Proceedings of the Fourth Arabic Natural Language Processing Workshop, pages 269–273. ↗
  2. Hala J Alshahrani, Khaled Tarmissi, Hussain Alshahrani, Mohamed Ahmed Elfaki, Ayman Yafoz, Raed Alsini, Omar Alghushairy, and Manar Ahmed Hamza. 2022. Computational linguistics with deep-learning-based intent detection for natural language understanding. Applied Sciences, 12(17):8633. ↗
  3. I. Casanueva, T. Temnikova, J. Gerz, V. Suàrez, I. Vulic, and N. Mrkšić. 2020. Efficient intent detection with dual sentence encoders. In Proceedings of the 28th International Conference on Computational Linguistics, pages 145–152. Association for Computational Linguistics.
  4. Mauajama Firdaus, Hitesh Golchha, Asif Ekbal, and Pushpak Bhattacharyya. 2021. A deep multi-task model for dialogue act classification, intent detection and slot filling. Cognitive Computation, 13:626–645. ↗
  5. Mustafa Jarrar, Ahmet Birim, Mohammed Khalilia, Mustafa Erden, and Sana Ghanem. 2023. Arbanking77: Intent detection neural model and a new dataset in modern and dialectical arabic. In Proceedings of ArabicNLP 2023, Singapore (Hybrid), December 7, 2023, pages 276–287. Association for Computational Linguistics.
  6. Mohamed Lichouri and Mourad Abbas. 2020. Speechtrans@ smm4h’20: Impact of preprocessing and ngrams on automatic classification of tweets that mention medications. In Proceedings of the Fifth Social Media Mining for Health Applications Workshop & Shared Task, pages 118–120. find
  7. Mohamed Lichouri, Mourad Abbas, Besma Benaziz, Aicha Zitouni, and Khaled Lounnas. 2021a. Preprocessing solutions for detection of sarcasm and sentiment for Arabic. In Proceedings of the Sixth Arabic Natural Language Processing Workshop, pages 376–380, Kyiv, Ukraine (Virtual). Association for Computational Linguistics.
  8. Mohamed Lichouri, Mourad Abbas, Khaled Lounnas, Besma Benaziz, and Aicha Zitouni. 2021b. Arabic dialect identification based on a weighted concatenation of TF-IDF features. In Proceedings of the Sixth Arabic Natural Language Processing Workshop, pages 282–286, Kyiv, Ukraine (Virtual). Association for Computational Linguistics.
  9. Mohamed Lichouri, Khaled Lounnas, Aicha Zitouni, Houda Latrache, and Rachida Djeradi. 2023. Usthb at nadi 2023 shared task: Exploring preprocessing and feature engineering strategies for arabic dialect identification. arXiv preprint arXiv:2312.10536. ↗
  10. Sanad Malaysha, Mo El-Haj, Saad Ezzini, Mohammad Khalilia, Mustafa Jarrar, Sultan Nasser, Ismail Berrada, and Houda Bouamor. 2024. AraFinNlp 2024: The first arabic financial nlp shared task. In Proceedings of the 2nd Arabic Natural Language Processing Conference (Arabic-NLP), Part of the ACL 2024. Association for Computational Linguistics. ↗
  11. Nils Reimers and Iryna Gurevych. 2019. Sentence-bert: Sentence embeddings using siamese bert-networks. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing. Association for Computational Linguistics.
  12. K Sreelakshmi, PC Rafeeque, S Sreetha, and ES Gayathri. 2018. Deep bi-directional lstm network for query intent detection. Procedia computer science, 143:939–946. find
  13. Congying Xia, Chenwei Zhang, Xiaohui Yan, Yi Chang, and Philip S Yu. 2018. Zero-shot user intent detection via capsule neural networks. arXiv preprint arXiv:1809.00385. ↗
  14. Nadhem Zmandar, Mo El-Haj, and Paul Rayson. 2023. Finarat5: A text to text model for financial arabic text understanding and generation. In Proceedings of the 4th Conference on Language, Data and Knowledge, pages 262–273.

Updated

↑ back to top

This page in Markdown → https://md.research.elamur.ai/free/en/papers/lichouri-2024-dzfinnlp-arafinnlp-improving-intent-detection/