paper-with-me

Papers

CoCoP: Enhancing Text Classification with LLM through Code Completion Prompt

2024-11-13 · Mohammad Mahdi Mohajeri, Mohammad Javad Dousti, Majid Nili Ahmadabadi

Text classification is a fundamental task in natural language processing (NLP), and large language models (LLMs) have demonstrated their capability to perform this task across various domains. However, the performance of LLMs heavily depends on the quality of their input prompts. Recent studies have also shown that LLMs exhibit remarkable results in code-related tasks. To leverage the capabilities of LLMs in text classification, we propose the Code Completion Prompt (CoCoP) method, which transforms the text classification problem into a code completion task. CoCoP significantly improves text classification performance across diverse datasets by utilizing LLMs' code-completion capability. For instance, CoCoP enhances the accuracy of the SST2 dataset by more than 20%. Moreover, when CoCoP integrated with LLMs specifically designed for code-related tasks (code models), such as CodeLLaMA, this method demonstrates better or comparable performance to few-shot learning techniques while using only one-tenth of the model size. The source code of our proposed method will be available to the public upon the acceptance of the paper.

📄 PDF Abstract BibTeX arXiv:2411.08979

Code (0)

등록된 구현이 없습니다.

Tasks

ClassificationCode CompletionFew-Shot Learningtext-classificationText Classification

Similar Papers 제목 키워드 기반

CoCoPIE: Making Mobile AI Sweet As PIE --Compression-Compilation Co-Design Goes a Long Way

2020-03-14 · Shaoshan Liu, Bin Ren, Xipeng Shen, Yanzhi Wang

Assuming hardware is the major constraint for enabling real-time mobile intelligence, the industry has mainly dedicated their efforts to developing specialized hardware accelerators for machine learning and inference. Th…

CoCoPlan: Adaptive Coordination and Communication for Multi-robot Systems in Dynamic and Unknown Environments

2026-01-15 · Xintong Zhang, Junfeng Chen, Yuxiao Zhu, Bing Luo 외 arxiv

Multi-robot systems can greatly enhance efficiency through coordination and collaboration, yet in practice, full-time communication is rarely available and interactions are constrained to close-range exchanges. Existing …

COCOpf: An Algorithm Portfolio Framework

2014-05-14 · Petr Baudiš

Algorithm portfolios represent a strategy of composing multiple heuristic algorithms, each suited to a different class of problems, within a single general solver that will choose the best suited algorithm for each input…

PoSeg: Pose-Aware Refinement Network for Human Instance Segmentation

2020-01-07 · IEEE Access 2020 1 · Desen Zhou, Qian He

Human instance segmentation is a core problem for human-centric scene understanding and segmenting human instances poses a unique challenge to vision systems due to large intra-class variations in both appearance and sha…

Human Instance SegmentationInstance SegmentationPose EstimationScene Understanding+2

CoCoPIE XGen: A Full-Stack AI-Oriented Optimizing Framework

2022-06-21 · Xiaofeng Li, Bin Ren, Xipeng Shen, Yanzhi Wang

There is a growing demand for shifting the delivery of AI capability from data centers on the cloud to edge or end devices, exemplified by the fast emerging real-time AI-based apps running on smartphones, AR/VR devices, …

Autonomous Vehicles