Papers
Topics
Authors
Recent
Search
2000 character limit reached

Concept Prompting and Aggregating (CoPA)

Updated 5 July 2026
  • 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 BiB_i and the aggregation is a Bradley–Terry latent score. In the zero-shot vision case, the intermediate objects are class-specific concepts cc and the aggregation is Bayesian marginalization with adaptive soft-trim refinement. In the diagnosis case, the intermediate objects are layer-wise concept embeddings zilz_i^l 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 TiT_i, a researcher-designed series of sub-prompts elicits a concept-specific breakdown BiB_i. 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

[Ti;  Answer1;  Answer2;  Answer3;  Answer4].\bigl[T_i;\; \mathrm{Answer}_1;\; \mathrm{Answer}_2;\;\mathrm{Answer}_3;\;\mathrm{Answer}_4\bigr].

Once every text has an associated breakdown, the LLM compares pairs (Bi,Bj)(B_i,B_j) 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 λi\lambda_i 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

wij={1,if Bi wins, 0.5,if “Tie,” 0,if Bj wins.w_{ij} = \begin{cases} 1, & \text{if } B_i \text{ wins},\ 0.5, & \text{if “Tie,”}\ 0, & \text{if } B_j \text{ wins.} \end{cases}

Under the Bradley–Terry model,

cc0

and the parameters cc1 are fitted by maximizing the tie-adjusted log-likelihood

cc2

For interpretability, the fitted abilities are centered and scaled to the unit interval,

cc3

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 cc4 with human coder counts is cc5 for Wordfish on raw tweets, cc6 for Wordfish on breakdowns, cc7 for non-CoT pairwise, and cc8 for CoPA. For aversion toward Democrats, the corresponding values are cc9, zilz_i^l0, zilz_i^l1, and zilz_i^l2. In binary classification with cutoff at mean score, non-CoT pairwise cutoff achieves F1 zilz_i^l3 for Republicans and zilz_i^l4 for Democrats; CoPA pairwise cutoff achieves zilz_i^l5 and zilz_i^l6; RoBERTa-Large fine-tuned on 3,000 tweets achieves zilz_i^l7 and zilz_i^l8. 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 zilz_i^l9 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 TiT_i0 is treated as generated by an unobserved concept TiT_i1. The zero-shot posterior is written as

TiT_i2

Because the true concept space is infinite, the method approximates the posterior through a finite proposal distribution TiT_i3 and uses importance-sampling-style marginalization. In practice,

TiT_i4

with the prior TiT_i5 taken uniform over the selected concept set TiT_i6, and the conditional TiT_i7 defined by the CLIP soft-maxed cosine similarity between the image embedding of TiT_i8 and the text embedding of the prompt TiT_i9 “A photo of BiB_i0 with BiB_i1” (Liu et al., 9 Mar 2026).

For class BiB_i2 with concepts BiB_i3, the approximation becomes

BiB_i4

The class-specific concept set BiB_i5 is built by a four-stage pipeline. Step 1 uses CLIP’s text encoder to identify, for each class BiB_i6, the top-BiB_i7 nearest other classes BiB_i8 as hard negatives. Step 2 prompts an LLM with a contrastive template—“Given core class BiB_i9 and negative classes [Ti;  Answer1;  Answer2;  Answer3;  Answer4].\bigl[T_i;\; \mathrm{Answer}_1;\; \mathrm{Answer}_2;\;\mathrm{Answer}_3;\;\mathrm{Answer}_4\bigr].0, propose 10 concise visual concepts that distinguish [Ti;  Answer1;  Answer2;  Answer3;  Answer4].\bigl[T_i;\; \mathrm{Answer}_1;\; \mathrm{Answer}_2;\;\mathrm{Answer}_3;\;\mathrm{Answer}_4\bigr].1 from those negatives.”—and prunes any new atomic concept whose CLIP-text embedding is greater than [Ti;  Answer1;  Answer2;  Answer3;  Answer4].\bigl[T_i;\; \mathrm{Answer}_1;\; \mathrm{Answer}_2;\;\mathrm{Answer}_3;\;\mathrm{Answer}_4\bigr].2 cosine-similar to an existing atom, yielding [Ti;  Answer1;  Answer2;  Answer3;  Answer4].\bigl[T_i;\; \mathrm{Answer}_1;\; \mathrm{Answer}_2;\;\mathrm{Answer}_3;\;\mathrm{Answer}_4\bigr].3. Step 3 samples [Ti;  Answer1;  Answer2;  Answer3;  Answer4].\bigl[T_i;\; \mathrm{Answer}_1;\; \mathrm{Answer}_2;\;\mathrm{Answer}_3;\;\mathrm{Answer}_4\bigr].4 subsets of [Ti;  Answer1;  Answer2;  Answer3;  Answer4].\bigl[T_i;\; \mathrm{Answer}_1;\; \mathrm{Answer}_2;\;\mathrm{Answer}_3;\;\mathrm{Answer}_4\bigr].5 distinct atoms and joins them with “or” to form compositional candidates [Ti;  Answer1;  Answer2;  Answer3;  Answer4].\bigl[T_i;\; \mathrm{Answer}_1;\; \mathrm{Answer}_2;\;\mathrm{Answer}_3;\;\mathrm{Answer}_4\bigr].6. Step 4 computes text embeddings [Ti;  Answer1;  Answer2;  Answer3;  Answer4].\bigl[T_i;\; \mathrm{Answer}_1;\; \mathrm{Answer}_2;\;\mathrm{Answer}_3;\;\mathrm{Answer}_4\bigr].7, forms the kernel matrix

[Ti;  Answer1;  Answer2;  Answer3;  Answer4].\bigl[T_i;\; \mathrm{Answer}_1;\; \mathrm{Answer}_2;\;\mathrm{Answer}_3;\;\mathrm{Answer}_4\bigr].8

and runs a size-[Ti;  Answer1;  Answer2;  Answer3;  Answer4].\bigl[T_i;\; \mathrm{Answer}_1;\; \mathrm{Answer}_2;\;\mathrm{Answer}_3;\;\mathrm{Answer}_4\bigr].9 DPP to choose a diverse subset (Bi,Bj)(B_i,B_j)0. The DPP assigns

(Bi,Bj)(B_i,B_j)1

so maximizing (Bi,Bj)(B_i,B_j)2 encourages low-redundancy choices because large determinant implies embeddings in (Bi,Bj)(B_i,B_j)3 are linearly independent.

At inference, the framework applies an adaptive soft-trim likelihood to down-weight outlier prompts. For each class (Bi,Bj)(B_i,B_j)4, it computes similarities (Bi,Bj)(B_i,B_j)5, their median (Bi,Bj)(B_i,B_j)6, and (Bi,Bj)(B_i,B_j)7. It then estimates the contamination rate

(Bi,Bj)(B_i,B_j)8

sets

(Bi,Bj)(B_i,B_j)9

and defines weights

λi\lambda_i0

The final refined class score is

λi\lambda_i1

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

λi\lambda_i2

then with probability at least λi\lambda_i3,

λi\lambda_i4

A corollary bounds multi-class excess risk through the margin event

λi\lambda_i5

Implementation details are concrete: GPT-4.1-Turbo (or Mini/Nano) for concept synthesis, λi\lambda_i6, λi\lambda_i7, λi\lambda_i8 with λi\lambda_i9, 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 wij={1,if Bi wins, 0.5,if “Tie,” 0,if Bj wins.w_{ij} = \begin{cases} 1, & \text{if } B_i \text{ wins},\ 0.5, & \text{if “Tie,”}\ 0, & \text{if } B_j \text{ wins.} \end{cases}0 into a final visual concept representation wij={1,if Bi wins, 0.5,if “Tie,” 0,if Bj wins.w_{ij} = \begin{cases} 1, & \text{if } B_i \text{ wins},\ 0.5, & \text{if “Tie,”}\ 0, & \text{if } B_j \text{ wins.} \end{cases}1, aligns wij={1,if Bi wins, 0.5,if “Tie,” 0,if Bj wins.w_{ij} = \begin{cases} 1, & \text{if } B_i \text{ wins},\ 0.5, & \text{if “Tie,”}\ 0, & \text{if } B_j \text{ wins.} \end{cases}2 with textual concept embeddings, and fuses the chosen text embedding wij={1,if Bi wins, 0.5,if “Tie,” 0,if Bj wins.w_{ij} = \begin{cases} 1, & \text{if } B_i \text{ wins},\ 0.5, & \text{if “Tie,”}\ 0, & \text{if } B_j \text{ wins.} \end{cases}3 into a gated aggregation for disease prediction (Dong et al., 4 Oct 2025).

For flattened key/value matrices wij={1,if Bi wins, 0.5,if “Tie,” 0,if Bj wins.w_{ij} = \begin{cases} 1, & \text{if } B_i \text{ wins},\ 0.5, & \text{if “Tie,”}\ 0, & \text{if } B_j \text{ wins.} \end{cases}4, the CEG computations are

wij={1,if Bi wins, 0.5,if “Tie,” 0,if Bj wins.w_{ij} = \begin{cases} 1, & \text{if } B_i \text{ wins},\ 0.5, & \text{if “Tie,”}\ 0, & \text{if } B_j \text{ wins.} \end{cases}5

wij={1,if Bi wins, 0.5,if “Tie,” 0,if Bj wins.w_{ij} = \begin{cases} 1, & \text{if } B_i \text{ wins},\ 0.5, & \text{if “Tie,”}\ 0, & \text{if } B_j \text{ wins.} \end{cases}6

At transformer layer wij={1,if Bi wins, 0.5,if “Tie,” 0,if Bj wins.w_{ij} = \begin{cases} 1, & \text{if } B_i \text{ wins},\ 0.5, & \text{if “Tie,”}\ 0, & \text{if } B_j \text{ wins.} \end{cases}7, the model prepends the concept prompts from layer wij={1,if Bi wins, 0.5,if “Tie,” 0,if Bj wins.w_{ij} = \begin{cases} 1, & \text{if } B_i \text{ wins},\ 0.5, & \text{if “Tie,”}\ 0, & \text{if } B_j \text{ wins.} \end{cases}8: wij={1,if Bi wins, 0.5,if “Tie,” 0,if Bj wins.w_{ij} = \begin{cases} 1, & \text{if } B_i \text{ wins},\ 0.5, & \text{if “Tie,”}\ 0, & \text{if } B_j \text{ wins.} \end{cases}9 Only cc00 and the concept anchors cc01 are updated; the backbone parameters are frozen.

The cross-layer aggregation is defined as

cc02

where cc03 are learned by a small selector network. For each concept cc04, the textual candidate set cc05 is embedded by a frozen text encoder into

cc06

Alignment uses the contrastive loss

cc07

where cc08 is the ground-truth candidate and cc09 is a learnable temperature.

Disease diagnosis is trained jointly with concept alignment through

cc10

and the full loss

cc11

In practice, cc12. The optimization details given are Adam, learning rate cc13, batch size cc14 (typical), and cc15 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 cc16 split: PHcc17 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: PHcc18, AUC cc19, accuracy cc20, F1 cc21; Derm7pt, AUC cc22, accuracy cc23, F1 cc24; SkinCon, AUC cc25, accuracy cc26, F1 cc27. Reported concept-prediction results are: PHcc28, AUC cc29, accuracy $c$30, F1 cc31; Derm7pt, AUC cc32, accuracy cc33, F1 cc34; SkinCon, AUC cc35, accuracy cc36, F1 cc37.

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 PHcc38 label accuracy/F1 cc39 and concept accuracy/F1 cc40, and Derm7pt label accuracy/F1 cc41 and concept accuracy/F1 cc42. Qualitative analysis reports concept heatmaps concentrated around expert-annotated regions, gate weights cc43 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 cc44 Bradley–Terry latent score cc45 and normalized score cc46
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 cc47 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 cc48 with cc49.” In the diagnosis framework, prompts are injected concept tokens cc50 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 cc51, typically cc52, whereas inference is cc53 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 cc54 prompts as limitations. The same section proposes automatic concept discovery via clustering of cc55, 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.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Concept Prompting and Aggregating (CoPA).