Concept Prompting and Aggregating (CoPA)
- CoPA is a concept-centric framework that constructs intermediate, concept-sensitive representations and aggregates them into final scores for tasks like text scaling, image recognition, and diagnosis.
- It employs distinct aggregation mechanisms—pairwise comparison scoring, Bayesian marginalization, and hierarchical prompt tuning—to robustly combine intermediate outputs.
- Its modular design enables flexible adaptations across unsupervised and supervised settings, reducing reliance on large labeled datasets and enhancing interpretability.
Concept Prompting and Aggregating (CoPA) is a name used for several concept-centric frameworks that couple an explicit prompting or concept-construction stage with a subsequent aggregation stage. In the arXiv literature, the term denotes at least three distinct instantiations: a text-scaling framework based on concept-guided chain-of-thought prompting and pairwise comparison scoring; a zero-shot image-recognition framework that marginalizes over class-specific concepts in a Bayesian formulation; and a hierarchical concept-prompting network for explainable diagnosis that aggregates multilayer visual concept representations (Wu et al., 2023, Liu et al., 9 Mar 2026, Dong et al., 4 Oct 2025).
1. Terminological scope and recurring structure
The acronym CoPA does not refer to a single canonical algorithm. In one usage, it is a text scoring framework summarized as Concept-Guided Chain-of-Thought (CGCoT) prompting with pairwise comparison scaling. In a second usage, it is a Concept-Guided Bayesian Classification framework for zero-shot image recognition, explicitly described as also being referred to as Concept Prompting and Aggregating. In a third usage, it names a “Concept Prompting and Aggregating Network” for explainable diagnosis (Wu et al., 2023, Liu et al., 9 Mar 2026, Dong et al., 4 Oct 2025).
A shared pattern nevertheless recurs across these works. Each framework first constructs concept-sensitive intermediate representations rather than operating directly on a raw input alone. It then aggregates those intermediate objects into a final score, posterior, or diagnosis. In the text case, the intermediate object is a concept-specific breakdown and the aggregation is a Bradley–Terry latent score. In the zero-shot vision case, the intermediate objects are class-specific concepts and the aggregation is Bayesian marginalization with adaptive soft-trim refinement. In the diagnosis case, the intermediate objects are layer-wise concept embeddings and the aggregation is a learned cross-layer combination aligned with textual concept embeddings.
2. CoPA as concept-guided pairwise text scaling
In "Concept-Guided Chain-of-Thought Prompting for Pairwise Comparison Scoring of Texts with LLMs," CoPA consists of two sequential stages: concept prompting and aggregating pairwise comparisons. For each text , a researcher-designed series of sub-prompts elicits a concept-specific breakdown . The LLM is prompted, in sequence, to summarize the text, to identify the focal entity, and to judge the presence or intensity of the target concept relative to that entity. The resulting breakdown is the concatenation
Once every text has an associated breakdown, the LLM compares pairs and indicates which breakdown exhibits more of the concept, or returns “Tie.” These wins, losses, and ties are then fed into a Bradley–Terry model to produce a continuous latent score for each text (Wu et al., 2023).
The pairwise comparison stage is formalized through
$p_{ij}=\Pr\bigl(\text{“%%%%7%%%% exhibits more of the concept than %%%%8%%%%”}\bigr),$
with hard outcomes encoded as
Under the Bradley–Terry model,
0
and the parameters 1 are fitted by maximizing the tie-adjusted log-likelihood
2
For interpretability, the fitted abilities are centered and scaled to the unit interval,
3
The paper applies this procedure to partisan aversion on Twitter using 500 test-set tweets labeled by humans for aversion to Republicans and to Democrats. The baselines are Wordfish on raw tweets, Wordfish on CGCoT breakdowns, and pairwise comparisons of raw tweets (“non-CoT”) plus Bradley–Terry. For aversion toward Republicans, the reported Spearman’s 4 with human coder counts is 5 for Wordfish on raw tweets, 6 for Wordfish on breakdowns, 7 for non-CoT pairwise, and 8 for CoPA. For aversion toward Democrats, the corresponding values are 9, 0, 1, and 2. In binary classification with cutoff at mean score, non-CoT pairwise cutoff achieves F1 3 for Republicans and 4 for Democrats; CoPA pairwise cutoff achieves 5 and 6; RoBERTa-Large fine-tuned on 3,000 tweets achieves 7 and 8. The paper states that CoPA outperforms or matches the supervised RoBERTa baseline on F1 and precision, despite using no labeled data beyond a small pilot for prompt development.
This formulation explicitly reframes text scaling as a pattern-recognition problem guided by substantive concept prompts. A plausible implication is that the breakdown 9 functions as a standardized comparison object, reducing heterogeneity in how the LLM evaluates raw texts of varying length and specificity.
3. CoPA as concept-guided Bayesian zero-shot classification
In "Beyond Heuristic Prompting: A Concept-Guided Bayesian Framework for Zero-Shot Image Recognition," CoPA denotes a Concept-Guided Bayesian Classification framework in which each class label 0 is treated as generated by an unobserved concept 1. The zero-shot posterior is written as
2
Because the true concept space is infinite, the method approximates the posterior through a finite proposal distribution 3 and uses importance-sampling-style marginalization. In practice,
4
with the prior 5 taken uniform over the selected concept set 6, and the conditional 7 defined by the CLIP soft-maxed cosine similarity between the image embedding of 8 and the text embedding of the prompt 9 “A photo of 0 with 1” (Liu et al., 9 Mar 2026).
For class 2 with concepts 3, the approximation becomes
4
The class-specific concept set 5 is built by a four-stage pipeline. Step 1 uses CLIP’s text encoder to identify, for each class 6, the top-7 nearest other classes 8 as hard negatives. Step 2 prompts an LLM with a contrastive template—“Given core class 9 and negative classes 0, propose 10 concise visual concepts that distinguish 1 from those negatives.”—and prunes any new atomic concept whose CLIP-text embedding is greater than 2 cosine-similar to an existing atom, yielding 3. Step 3 samples 4 subsets of 5 distinct atoms and joins them with “or” to form compositional candidates 6. Step 4 computes text embeddings 7, forms the kernel matrix
8
and runs a size-9 DPP to choose a diverse subset 0. The DPP assigns
1
so maximizing 2 encourages low-redundancy choices because large determinant implies embeddings in 3 are linearly independent.
At inference, the framework applies an adaptive soft-trim likelihood to down-weight outlier prompts. For each class 4, it computes similarities 5, their median 6, and 7. It then estimates the contamination rate
8
sets
9
and defines weights
0
The final refined class score is
1
The paper emphasizes that this requires only one forward pass and automatically down-weights extreme outliers.
The theoretical analysis is stated under a Huber-contamination model with sub-Gaussian inliers. If
2
then with probability at least 3,
4
A corollary bounds multi-class excess risk through the margin event
5
Implementation details are concrete: GPT-4.1-Turbo (or Mini/Nano) for concept synthesis, 6, 7, 8 with 9, DPP subset size $p_{ij}=\Pr\bigl(\text{“%%%%7%%%% exhibits more of the concept than %%%%8%%%%”}\bigr),$0, outlier threshold $p_{ij}=\Pr\bigl(\text{“%%%%7%%%% exhibits more of the concept than %%%%8%%%%”}\bigr),$1, sigmoid slope $p_{ij}=\Pr\bigl(\text{“%%%%7%%%% exhibits more of the concept than %%%%8%%%%”}\bigr),$2, offline DPP complexity $p_{ij}=\Pr\bigl(\text{“%%%%7%%%% exhibits more of the concept than %%%%8%%%%”}\bigr),$3, and inference cost $p_{ij}=\Pr\bigl(\text{“%%%%7%%%% exhibits more of the concept than %%%%8%%%%”}\bigr),$4.
4. CoPA as a hierarchical concept-prompting network for explainable diagnosis
In "CoPA: Hierarchical Concept Prompting and Aggregating Network for Explainable Diagnosis," CoPA is a supervised concept-based architecture for clinical imaging. It consists of four main components: a multilayer visual encoder, a Concept-aware Embedding Generator (CEG), Concept Prompt Tuning (CPT), and an aggregation-and-alignment module. A pre-trained vision backbone such as ViT is split into $p_{ij}=\Pr\bigl(\text{“%%%%7%%%% exhibits more of the concept than %%%%8%%%%”}\bigr),$5 sequential layers $p_{ij}=\Pr\bigl(\text{“%%%%7%%%% exhibits more of the concept than %%%%8%%%%”}\bigr),$6, each producing token-wise features $p_{ij}=\Pr\bigl(\text{“%%%%7%%%% exhibits more of the concept than %%%%8%%%%”}\bigr),$7. CEG maintains learnable concept anchors $p_{ij}=\Pr\bigl(\text{“%%%%7%%%% exhibits more of the concept than %%%%8%%%%”}\bigr),$8, one per concept, and uses them to query each layer’s features to produce concept embeddings $p_{ij}=\Pr\bigl(\text{“%%%%7%%%% exhibits more of the concept than %%%%8%%%%”}\bigr),$9. CPT then treats these layer-wise embeddings as prompt tokens injected into the next transformer layer while keeping backbone weights frozen, and the final module aggregates 0 into a final visual concept representation 1, aligns 2 with textual concept embeddings, and fuses the chosen text embedding 3 into a gated aggregation for disease prediction (Dong et al., 4 Oct 2025).
For flattened key/value matrices 4, the CEG computations are
5
6
At transformer layer 7, the model prepends the concept prompts from layer 8: 9 Only 00 and the concept anchors 01 are updated; the backbone parameters are frozen.
The cross-layer aggregation is defined as
02
where 03 are learned by a small selector network. For each concept 04, the textual candidate set 05 is embedded by a frozen text encoder into
06
Alignment uses the contrastive loss
07
where 08 is the ground-truth candidate and 09 is a learnable temperature.
Disease diagnosis is trained jointly with concept alignment through
10
and the full loss
11
In practice, 12. The optimization details given are Adam, learning rate 13, batch size 14 (typical), and 15 epochs with early stopping on validation AUC. BiomedCLIP provides the pre-trained backbone initialization, the text encoder is frozen, and only prompts and query anchors are updated beyond the gating network.
The experimental evaluation uses three public datasets with a 16 split: PH17 with 200 dermoscopic images and 5 morphological concepts; Derm7pt with 1,011 images and 7 checklist concepts; and SkinCon with 3,690 clinical photos, 22 high-frequency skin features, and 3 disease classes. Reported disease-diagnosis test-set averages are: PH18, AUC 19, accuracy 20, F1 21; Derm7pt, AUC 22, accuracy 23, F1 24; SkinCon, AUC 25, accuracy 26, F1 27. Reported concept-prediction results are: PH28, AUC 29, accuracy $c$30, F1 31; Derm7pt, AUC 32, accuracy 33, F1 34; SkinCon, AUC 35, accuracy 36, F1 37.
The ablation study compares Baseline, MLA only, CPT only, CPT and Freeze, MLA and CPT, and Full (MLA and CPT and Freeze). The full configuration yields PH38 label accuracy/F1 39 and concept accuracy/F1 40, and Derm7pt label accuracy/F1 41 and concept accuracy/F1 42. Qualitative analysis reports concept heatmaps concentrated around expert-annotated regions, gate weights 43 correlated with clinical relevance, and predictable shifts under test-time intervention by flipping a concept’s confidence.
5. Aggregation mechanisms across CoPA variants
Although the three frameworks operate in different domains, each instantiates aggregation in a formally explicit way.
| Variant | Prompting or concept stage | Aggregation stage |
|---|---|---|
| CGCoT text scoring | Researcher-designed sub-prompts produce breakdowns 44 | Bradley–Terry latent score 45 and normalized score 46 |
| CGBC zero-shot recognition | LLM-generated atomic and compositional concepts selected by DPP | Bayesian marginalization and adaptive soft-trim refinement |
| Explainable diagnosis network | CEG and CPT produce layer-wise concept embeddings 47 | Learned multilayer aggregation, contrastive alignment, and gated diagnosis |
In the text-scaling version, aggregation turns pairwise judgments into a continuous latent score. In the zero-shot vision version, aggregation marginalizes over a set of selected concepts and then reweights prompt contributions to suppress outliers. In the diagnosis version, aggregation operates across representational depth, combining concept information extracted from multiple transformer layers. This suggests that “aggregating” in CoPA is not tied to a single estimator; rather, it denotes a general commitment to making the final prediction depend on explicit concept-level intermediates rather than on an undifferentiated end-to-end latent representation.
A related distinction concerns what counts as a “prompt.” In the text framework, prompts are sequential natural-language instructions posed to an LLM. In the zero-shot image framework, prompts are class descriptions of the form “A photo of 48 with 49.” In the diagnosis framework, prompts are injected concept tokens 50 within a transformer. The terminology is therefore stable at the level of design intent but heterogeneous at the level of implementation.
6. Empirical properties, limitations, and extensions
The text-scoring CoPA emphasizes precise targeting of abstract concepts via researcher-crafted prompts, no or minimal reliance on large labeled corpora, robust continuous scaling with meaningful intervals through Bradley–Terry, and competitive binary classification performance against fully supervised LLMs. Its stated limitations are manual and concept-specific prompt design, dependence on LLM idiosyncrasies, the sampling trade-off between stability and API cost, and the black-box nature of LLM reasoning steps (Wu et al., 2023).
The zero-shot image-recognition CoPA is designed to improve prompt quality through class-specific concepts, diversity enforcement by DPP, and robustness to outlier prompts through adaptive soft-trim likelihood. Its theoretical section supplies a robust guarantee under a Huber-contamination model and a multi-class excess-risk corollary. The implementation summary also makes its computational trade-off explicit: offline DPP selection per class is 51, typically 52, whereas inference is 53 after text prompts are pre-cached (Liu et al., 9 Mar 2026).
The explainable-diagnosis CoPA emphasizes multilayer concept capture under prompt guidance, preservation of pre-trained vision-language alignment through frozen backbones, and effective use of concept-wise information for concept and disease prediction. Its discussion identifies reliance on human-annotated concepts and increased compute or memory for storing 54 prompts as limitations. The same section proposes automatic concept discovery via clustering of 55, dynamic prompt pruning, and application to other modalities such as radiology and to weakly supervised settings (Dong et al., 4 Oct 2025).
A common misconception is to treat CoPA as synonymous with a single text-oriented prompting pipeline. In the cited literature, the acronym names three different architectures with different supervision regimes and different notions of prompting. The text version is unsupervised beyond prompt-tuning, the zero-shot image version is a Bayesian prompt-aggregation framework with training-free adaptive soft-trim at inference, and the diagnosis version is a supervised concept-alignment model trained with concept and disease losses. A plausible implication is that CoPA is best understood as a reusable methodological pattern: define concept-sensitive intermediates, then aggregate them with an explicitly specified probabilistic or architectural mechanism.