ALAMBIC : Active Learning Automation Methods to Battle Inefficient Curation
필름·전자재료 · (16) CPI(투명 폴리이미드)
기본 정보
- 저자
- DOI
- 10.18653/v1/2023.eacl-demo.14
- 저널
- –
- 발행년도
- 2023
- 발행기관
- –
- 피인용수
- 1
- 라이선스
- cc-by
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- http://dx.doi.org/10.18653/v1/2023.eacl-demo.14
- 토픽
- Advancements in Photolithography Techniques
- OpenAlex ID
- W4386566851
평가 내용
- 관련도
- 사업분야
- 필름·전자재료 · (16) CPI(투명 폴리이미드)
- 부 분야
- –
- R&D 측면
- –
- 확신도
- –
- 근거 용어
- –
- 판단 근거
- 임베딩 유사도 기반 평가로 '필름·전자재료 > CPI(투명 폴리이미드)' 분야에 선정된 논문입니다.
- R&D 활용 포인트
- –
- 평가 입력
- –
초록
본문 29,307자
본문 펼치기
섹션 본문 41문단 · 15,854자
(제목 없음)
1In this paper, we present ALAMBIC, an opensource dockerized web-based platform for annotating text data through active learning for classification tasks. Active learning is known to reduce the need of labelling, a time-consuming task, by selecting the most informative instances among the unlabelled instances, reaching an optimal accuracy faster than by just randomly labelling data. ALAMBIC integrates all the steps from data import to customization of the (active) learning process and annotation of the data, with indications of the progress of the trained model that can be downloaded and used in downstream tasks. Its architecture also allows the easy integration of other types of models, features and active learning strategies. The code is available on https: //trusted-ai-labs.github/ALAMBIC/ and a video demonstration is available on https: //youtu.be/4oh8UADfEmY.
Introduction
2Data annotation is crucial for any machine learning task. Datasets of high-quality are obtained through manual labelling which requires both considerable time and sometimes also expertise. Active learning aims to reduce the need for labelled data by starting from a partially labelled dataset and gradually selecting the most informative instances among the unlabelled instances (Settles, 2009;Baldridge and Palmer, 2009). This incremental training of a machine learning model can thus actively select the instances it finds to be the most informative, asking the person involved to provide a true label for the selected data. Several strategies exist to define informativeness, such as those based on uncertainty of the predictions obtained for unlabelled instances (Settles, 2009) or based on the difference of their features with respect to the training set (Sener and Savarese, 2018). The model is then trained with the newly obtained labelled set and can again select instances to be labeled. This process is repeated up until a specific criterion is reached, such as a desired accuracy or a maximum number of instances labelled.
3We present in this work ALAMBIC (Active Learning Automation with Methods to Battle Inefficient Curation), an open-source dockerized web-based platform for active-learning-based text classification, allowing for a full customisation of the active learning process, from the choice of the model, its features and parameters, and the active learning strategy 1 . It allows the study of the usefulness of active learning on a given labelled dataset and model, as well as the annotation of text instances with active learning.
Related works
4Several active learning libraries have been developed, such as ALiPy (Tang et al., 2019), modAL (Danka and Horvath), scikit-activeml (Kottke et al., 2021), for traditional machine learning methods and DISTIL (Beck et al., 2021), SmallText (Schröder et al., 2021), the low-resource Text classification framework (Ein-Dor et al., 2020) or the ALToolbox (Tsvigun et al., 2022) which also contains active learning methods for deep learning. However, these libraries do not provide user interface or if they do, they require the user to be reasonably skilled in coding. Tools such as Prodigy 2 , APLenty (Nghiem and Ananiadou, 2018), Al-pacaTag (Lin et al., 2019), Paladin (Nghiem et al., Figure 1: Diagram of the orchestrated deployment for ALAMBIC. Each box with a full line corresponds to a container. The blue box inside the container is the main service of the container. The name of the docker image for each container is indicated below the blue box. 2021), or Label Sleuth (Shnarch et al., 2022) tried to fill the gap by offering a user interface for the annotation process combined with an active learning setting. While these tools offer a friendly user-interface to annotate text classification or sequence labelling tasks, they either require a highto-expert knowledge in programming languages, are not open source or are limited in the choice of the parameters in the active learning process, such as the model or the selection strategy.
5At the time of writing, and to the best of our knowledge, ALAMBIC is the first free annotation tool for text classification with a user-friendly interface allowing a complete control of the user on the parameters of the features, model and active learning strategy, with no coding skills needed. Moreover, in addition to support the annotation task, it also allows the study of different active learning strategies with chosen features and models to evaluate the best strategy within that specific context. Its dockerized form also allows for an easy deployment and usage on diverse platforms. 4 , Redis 5 and PostgreSQL 6 in a Docker Compose setting (Fig. 1). The installation requires only few command lines and is quite easy, even for people not familiar with Docker or GitHub (see Appendix A). The framework is divided in five main interfaces : (i) the import data interface, (ii) the setup and customisation of the (active) learning process, (iii) the progress of the active learning process, (iv) annotation interface and (v) the result interface. Each of these interfaces will be described below in detail 7 .
Data import and task choice
6ALAMBIC supports the import of the data in raw text with a reference file containing the path of the files and their labels if already available. The supported format is a TSV file with the path of the text files and their optional labels.
7The user can also choose the annotation task. At the moment only multi-class classification is implemented.
8Future developments will include annotation for relation extraction, as well as additional formats, such as JSON and XML, for import.
9If several files are provided, the user can choose among them through the dedicated user interface. Once imported, the data is accessible through the Django admin interface.
Setup of the learning process
10Once the data has been added to the database, the user can setup each part of the learning process, from the model, its parameters and the features used as inputs.
11The user can then choose to either analyse the impact of different active learning strategies in order to evaluate which one would be the most suitable with their data and choice of learning process, or use a specific active learning strategy to annotate the unlabeled part of the dataset. In the first case, the user is invited to choose the number of crossvalidation folds, number of repetitions and size of the initial training seed, as well as which strategies they want to evaluate, ensuring a robust analysis of the process. In the second case, the user can choose the portion of the dataset to use as test set to evaluate the performance of the model at each iteration of the active learning process, the size of the training seed, the active learning strategy and the stop criterion, which will stop the active process once a specific criteria is met, such as a minimum accuracy, or a number of annotations done.
12Model and feature implementations are based on scikit-learn (Pedregosa et al., 2011). While only a fraction of these are currently implemented, the architecture allows for an easy extension to functionalities already implemented in scikit-learn or having a similar programming interface. Our documentation offers a dedicated section for people more at ease in coding with Python to guide them through the integration of new models or features.
13Active learning strategies are implemented from the ALiPy library (Tang et al., 2019). We choose to use only the strategies using the trained model in a pool-based scenario, i.e. all the unlabelled instances are considered for labelling at each iteration step.
Analysis and annotation interface
14Once either type of processes, i.e. study of different active learning strategies or annotation, is launched, the process can be followed on an interface, displaying a plot of the performance of the model up until the current iteration.
15All the plots are interactive, meaning that the user can zoom to observe a specific range of data, highlight and make disappear specific observations as to not crowd the graphic.
Study of different active learning strategies
16In this case, the interface shows the performance in terms of accuracy of each of the strategies while the model goes through the different cross-validation folds and repetitions. The entire process is automated and can be followed in real-time.
17Once the process is finished, the user can download the performances of the model generated during the whole analysis. Performances measures currently include accuracy, precision, recall, F-score and Matthews correlation coefficient.
Annotation using active learning
18During the training of the model and the selection of the instances to label, the user can also observe in real time the accuracy of the model with the currently labelled data used as a training set.
19Once instances have been selected to be labelled, the user is brought to a page where the text to label is displayed (Fig 2). They can either select an existing label or create a new one in the below dropdown menu. Above the text, a interactive plot with all the performance measures across the iterations is shown. This should have a positive impact on the motivation of the annotator by showing the effect of their work directly during the learning process.
Results interface
20Once the process finished, the user can download for both types of processes the performances visualized in the plots. If ALAMBIC is used for annotating a dataset, the annotated dataset and the trained model during the last iteration can also be downloaded.
21The performances are available in a CSV format with the different performance measures for each iteration, and optionally the repetitions, of the active learning process.
22The annotated dataset format is a CSV file with the path of the text file, the ground-truth label if available, the manual label given during the anntation process, the label predicted by the model trained with ALAMBIC, as well as if the instance was part of the training set, the test set or none of them.
23The model is exported in a compressed joblib format, compatible with most of the machine learning libraries for downstream import and usage.
Use Cases
24The platform supposes that the user has a partially labelled dataset, a preferred model and features to use, and wants to label a portion of the remaining unlabelled dataset in a way that this portion will be the most informative to obtain a high-performance model. ALAMBIC can be used for two main use cases :
25• Comparison of active learning strategies:
26ALAMBIC can be used to compare the performance of different active learning strategies, to determine which strategy to choose under given parameters/conditions.
27• Annotation of datasets: ALAMBIC allows to choose one of the implemented active learning strategies and proceed with the annotation. The resulting annotations, performances measures and trained model can be exported and used for downstream analysis or automatic annotation.
Experiments and Results
28We used the training set of the Large Movie Review Dataset (Maas et al., 2011), consisting in 25,000 highly polarized movie reviews, 12,500 positive and 12,500 negative. For the analysis, we selected randomly 500 instances from each class.
29Using ALAMBIC, we tested several active learning methods, including an uncertainty-based strategy (Settles, 2009), i.e. strategy based on different measures of uncertainty computed with the prediction output of the model; Core-set (Sener and Savarese, 2018), a selection method which tries to select the most different from the current training set and representative subset of unlabelled instances; and of course the random sampling as a baseline.
30Each active learning method was tested for five folds of cross-validation, with three repetitions of the active learning process for the same test set with different initial training seeds (of a size of 10% of the remaining dataset). This means that 15 experiments were conducted for each strategy. Resulting performances are averaged for each iteration step. For each step, 50 instances are selected to be added.
31The experiment was conducted with a Support Vector Machine (SVM) and a Random Forest (RF), with the default parameters proposed in their im- plementation in scikit-learn. The text was first pre-processed by ignoring the stop words, then the Term Frequency -Inverse Document Frequency (TF-IDF) was computed for each term, with a minimum document frequency of 0.1 and a maximum of 0.9. Only the top 3000 features were kept to build the vocabulary, ordered by term frequency across the corpus. Figure 3 and 4 display the F-scores obtained for the subset of 1000 samples. We could observe that it would be preferable to use the uncertainty sampling method coupled with the SVM, as we see that while it performs less efficiently in the first few iterations, it clearly performs better and reached an optimal performance earlier than the random sampling or core-set method. However, if one wanted to use a RF, then it would be better to use the coreset method, as while it does not perform well in the first iterations, it outperforms the outer two selection methods. Moreover, for the RF, the uncertainty method has a similar performance as the random sampling.
32Those observations highlight the importance of such analysis before using active learning in a real setting in order to choose the most optimal strategy. More advanced cases will be explored outside this paper.
Conclusion and Future Work
33We presented ALAMBIC, an open-source webbased platform for the study and use of active learning in text classification. It can help people with low-to-no coding skills to use in the most efficient way active learning methods to build high-quality NLP datasets at a faster pace. First, they can compare with their choice of parameters and models different active learning strategies and then annotate their data with the strategy obtaining the best performance.
34Further developments of the tools include the addition of other NLP annotation tasks, the integration of deep learning models and their related active learning methods. While the later development would reduce the ease of deployment for non-experts in coding, this would offer more stateof-the-art models for further automatic annotation.
Limitations
35At the moment, only traditional machine learning methods can be used with our framework. The expansion to deep learning methods would bring models with better accuracy and make disappear the need to study also different features.
36Using active learning in practice is also subject to several limitations. First, finding the right initial pool for an active learning setting will have an important impact on the overall performance of the active learning process. Moreover, the choice of the evaluation set is difficult as 1) it has to be representative of a dataset whom distribution could be unknown and 2) large enough to evaluate the performances of the model (such as recall, notably sensitive to class distribution). The latter aspect in particular would be in conflict with the spirit of active learning which tries to limit the annotation as much as possible. Finally, one has to keep in mind that the oracle/annotator is not always right and could in consequence introduce noise in the active learning process. While some strategies could be implemented to fight those practical issues (Yang and Loog, 2022;Paul et al., 2020), they were not implemented or taken into account in our work.
37While it only supports few models and features at the moment, it can be easily extended to any models and features developed by scikit-learn.
38ALAMBIC has only been tested and implemented for the English language. Spacy (Honnibal et al., 2020), which is used for some pre-processing steps, can be however adapted for many other languages.
39The platform has also not been developed for a multi-annotators or crowd annotator contexts, which means that only one annotator can work at a time on the annotation task.
A Installation commands
40Docker, Docker compose and git needs to be installed. The commands to install the tool and launch everything can be resumed in :
41• Clone the repository
참고문헌 18건
- Scikit-learn: Machine Learning in Python arXiv (Cornell University) · Cornell University · 2012 10.48550/arxiv.1201.0490
- Learning Word Vectors for Sentiment Analysis Meeting of the Association for Computational Linguistics · 2011
- Active Learning for Convolutional Neural Networks: A Core-Set Approach arXiv (Cornell University) · Cornell University · 2017 10.48550/arxiv.1708.00489
- APLenty: annotation tool for creating high-quality datasets using active and proactive learning 2018 10.18653/v1/d18-2019
- Active Learning Literature Survey 2009
- ALiPy: Active Learning in Python arXiv (Cornell University) · Cornell University · 2019 10.48550/arxiv.1901.03802
- ORVAL: a novel platform for the prediction and exploration of disease-causing oligogenic variant combinations Nucleic Acids Research · Oxford University Press · 2019 10.1093/nar/gkz437
- AlpacaTag: An Active Learning-based Crowd Annotation Framework for Sequence Tagging 2019 10.18653/v1/p19-3010
- Exploiting Context for Robustness to Label Noise in Active Learning arXiv (Cornell University) · Cornell University · 2020 10.48550/arxiv.2010.09066
- Active Learning for BERT: An Empirical Study 2020 10.18653/v1/2020.emnlp-main.638
- scikit-activeml: A Library and Toolbox for Active Learning Algorithms 2021 10.20944/preprints202103.0194.v1
- Paladin: an annotation tool based on active and proactive learning 2021 10.18653/v1/2021.eacl-demos.28
- To Actively Initialize Active Learning Pattern Recognition · Elsevier BV · 2022 10.1016/j.patcog.2022.108836
- Small-Text: Active Learning for Text Classification in Python arXiv (Cornell University) · Cornell University · 2021 10.48550/arxiv.2107.10314
- Effective Evaluation of Deep Active Learning on Image Classification\n Tasks arXiv (Cornell University) · Cornell University · 2021 10.48550/arxiv.2106.15324
- Frugal Algorithm Selection (Short Paper) Dagstuhl Research Online Publication Server · 2024 10.4230/lipics.cp.2024.38
- Label Sleuth: From Unlabeled Text to a Classifier in a Few Hours 2022 10.18653/v1/2022.emnlp-demos.16
- ALToolbox: A Set of Tools for Active Learning Annotation of Natural Language Texts 2022 10.18653/v1/2022.emnlp-demos.41