Triplet-based Explainable Semantic Communication (TESC) is a task-focused framework using explicit triplet representations to enable efficient, interpretable, and knowledge-aligned semantic transmission over noisy channels.
It integrates methods like OpenIE and syntactic dependency parsing to extract and merge semantic triplets, enhancing completeness by capturing nuanced linguistic relations.
Empirical results demonstrate TESC's superior performance in sentiment analysis and question answering through significant symbol count reductions and competitive accuracy under challenging channel conditions.
Triplet-based Explainable Semantic Communication (TESC) is a task-oriented semantic communication scheme for text tasks that achieves efficient, interpretable, and knowledge-aligned information transfer using explicit triplet representations. The TESC framework integrates semantic extraction, knowledge-based filtering, and neural encoding—customized per task—to enable explainable and compact semantic transmission over noisy wireless channels. Empirical results demonstrate superior performance compared to both conventional and deep learning–based semantic communication baselines, particularly in challenging settings with aggressive bandwidth constraints and lossy physical channels (Liu et al., 2023).
1. Formal Problem Setting
TESC is designed for inference-focused communication tasks, such as sentiment analysis (SA) and question answering (QA), where the transmitter observes a text source I=[i1,…,iN] and aims to communicate sufficient semantic content to allow the receiver to perform downstream inference. The end-to-end system can be formalized as a pipeline: Semantic extraction: A=RT(I),where A={a1,…,aK},ak=(enk,i,rk,ij,enk,j)Semantic filtering: X=CT(A),X⊂ASemantic encoding: M=EαT(X)Channel encoding: S=Qσ(M)Wireless channel: Y=hS+n,n∼CN(0,σ2I)Channel decoding: M′=Qχ−1(Y)Semantic decoding: p=EμT−1(M′)
The overall training objective follows a rate–distortion framework: all paramsminEI,T[Ltask(p(I),q(I))]+λ⋅H(S)
where Ltask measures inference error (e.g., cross-entropy), q(I) is the ground-truth, H(S) is the entropy (average transmitted symbols), and λ balances task accuracy against transmission efficiency (Liu et al., 2023).
2. Semantic Extraction Pipeline
Semantic extraction in TESC proceeds via two complementary methods to ensure completeness and explainability.
2.1 OpenIE Component:
An Open Information Extraction (OpenIE) annotator is applied to source text I to obtain initial triplets AOpenIE.
2.2 Syntactic Dependency Augmentation:
Using spaCy, a dependency parse tree Ad=Sd(I) is constructed. A rule-based extraction process Semantic extraction: A=RT(I),where A={a1,…,aK},ak=(enk,i,rk,ij,enk,j)Semantic filtering: X=CT(A),X⊂ASemantic encoding: M=EαT(X)Channel encoding: S=Qσ(M)Wireless channel: Y=hS+n,n∼CN(0,σ2I)Channel decoding: M′=Qχ−1(Y)Semantic decoding: p=EμT−1(M′)0 identifies, for each verb Semantic extraction: A=RT(I),where A={a1,…,aK},ak=(enk,i,rk,ij,enk,j)Semantic filtering: X=CT(A),X⊂ASemantic encoding: M=EαT(X)Channel encoding: S=Qσ(M)Wireless channel: Y=hS+n,n∼CN(0,σ2I)Channel decoding: M′=Qχ−1(Y)Semantic decoding: p=EμT−1(M′)1, its syntactic subject Semantic extraction: A=RT(I),where A={a1,…,aK},ak=(enk,i,rk,ij,enk,j)Semantic filtering: X=CT(A),X⊂ASemantic encoding: M=EαT(X)Channel encoding: S=Qσ(M)Wireless channel: Y=hS+n,n∼CN(0,σ2I)Channel decoding: M′=Qχ−1(Y)Semantic decoding: p=EμT−1(M′)2 and object Semantic extraction: A=RT(I),where A={a1,…,aK},ak=(enk,i,rk,ij,enk,j)Semantic filtering: X=CT(A),X⊂ASemantic encoding: M=EαT(X)Channel encoding: S=Qσ(M)Wireless channel: Y=hS+n,n∼CN(0,σ2I)Channel decoding: M′=Qχ−1(Y)Semantic decoding: p=EμT−1(M′)3, expands these entity nodes to include modifiers, and forms additional triplets Semantic extraction: A=RT(I),where A={a1,…,aK},ak=(enk,i,rk,ij,enk,j)Semantic filtering: X=CT(A),X⊂ASemantic encoding: M=EαT(X)Channel encoding: S=Qσ(M)Wireless channel: Y=hS+n,n∼CN(0,σ2I)Channel decoding: M′=Qχ−1(Y)Semantic decoding: p=EμT−1(M′)4 for information potentially missed by OpenIE.
2.3 Deduplication and Merging:
The full set of extracted triplets is given by Semantic extraction: A=RT(I),where A={a1,…,aK},ak=(enk,i,rk,ij,enk,j)Semantic filtering: X=CT(A),X⊂ASemantic encoding: M=EαT(X)Channel encoding: S=Qσ(M)Wireless channel: Y=hS+n,n∼CN(0,σ2I)Channel decoding: M′=Qχ−1(Y)Semantic decoding: p=EμT−1(M′)5, where Semantic extraction: A=RT(I),where A={a1,…,aK},ak=(enk,i,rk,ij,enk,j)Semantic filtering: X=CT(A),X⊂ASemantic encoding: M=EαT(X)Channel encoding: S=Qσ(M)Wireless channel: Y=hS+n,n∼CN(0,σ2I)Channel decoding: M′=Qχ−1(Y)Semantic decoding: p=EμT−1(M′)6 is the output of the syntactic dependency extractor. This combination yields higher semantic completeness, as evidenced by the recovery of modifier relations omitted in OpenIE, e.g., capturing "bird is red" from "a red bird flies in the sky".
3. Knowledge-Based Semantic Filtering
TESC introduces a knowledge-driven, two-stage filtering process to minimize redundancy and focus on task-relevant information.
3.1 Duplicate Removal:
Applying Semantic extraction: A=RT(I),where A={a1,…,aK},ak=(enk,i,rk,ij,enk,j)Semantic filtering: X=CT(A),X⊂ASemantic encoding: M=EαT(X)Channel encoding: S=Qσ(M)Wireless channel: Y=hS+n,n∼CN(0,σ2I)Channel decoding: M′=Qχ−1(Y)Semantic decoding: p=EμT−1(M′)7, only the first triplet for each unique entity pair (head, tail) is retained, producing Semantic extraction: A=RT(I),where A={a1,…,aK},ak=(enk,i,rk,ij,enk,j)Semantic filtering: X=CT(A),X⊂ASemantic encoding: M=EαT(X)Channel encoding: S=Qσ(M)Wireless channel: Y=hS+n,n∼CN(0,σ2I)Channel decoding: M′=Qχ−1(Y)Semantic decoding: p=EμT−1(M′)8.
3.2 Task-Relevant Pruning:
For a given task, further filtering Semantic extraction: A=RT(I),where A={a1,…,aK},ak=(enk,i,rk,ij,enk,j)Semantic filtering: X=CT(A),X⊂ASemantic encoding: M=EαT(X)Channel encoding: S=Qσ(M)Wireless channel: Y=hS+n,n∼CN(0,σ2I)Channel decoding: M′=Qχ−1(Y)Semantic decoding: p=EμT−1(M′)9 is performed using small scoring functions:
For Sentiment Analysis: A triplet score all paramsminEI,T[Ltask(p(I),q(I))]+λ⋅H(S)0 is computed, favoring longer entities/relations or the presence of sentiment-laden adjectives/verbs. Bottom all paramsminEI,T[Ltask(p(I),q(I))]+λ⋅H(S)1 are pruned.
For Question Answering: Triplets are scored by the count of question-relevant entity types all paramsminEI,T[Ltask(p(I),q(I))]+λ⋅H(S)2 (e.g., time, location, number): all paramsminEI,T[Ltask(p(I),q(I))]+λ⋅H(S)3. Only triplets with all paramsminEI,T[Ltask(p(I),q(I))]+λ⋅H(S)4 are retained.
Empirically, average triplet count drops from 70.8 to 16.9 (–76.1%) and average word count from 517.3 to 83.6 (–83.8%) post-filtering, with only a 0.4% accuracy reduction.
Stage
Avg. Triplets
Avg. Words
Accuracy Drop
Pre-filter
70.8
517.3
–
Post-filter
16.9
83.6
0.4%
4. Semantic Encoding and Channel Codec Architectures
TESC's encoder and decoder architectures are tailored per task and quantized for communication efficiency.
4.1 Sentiment Analysis:
Semantic encoderall paramsminEI,T[Ltask(p(I),q(I))]+λ⋅H(S)5: BERT-style Transformer with 12 heads, 768-dim embeddings, 256-dim hidden layer, followed by a 192-unit ReLU dense.
Semantic decoder all paramsminEI,T[Ltask(p(I),q(I))]+λ⋅H(S)6: MLP mapping 192 to 2 outputs, with softmax.
4.2 Question Answering:
Semantic encoder all paramsminEI,T[Ltask(p(I),q(I))]+λ⋅H(S)7: Triplet embedding layer mapping each triplet to a 64-dim vector.
Semantic decoder: STM (Structured Two-Memory) architecture with item memory all paramsminEI,T[Ltask(p(I),q(I))]+λ⋅H(S)8 and relational memory all paramsminEI,T[Ltask(p(I),q(I))]+λ⋅H(S)9, updated via parameterized functions and outputting the final answer vector Ltask0 at each timestep.
All networks are quantized to 8 bits/weight. The channel model comprises a linear layer combined with AWGN or Rayleigh fading; bit allocation is learned implicitly.
5. Task-Specific Customization and Training
Task-specific customization occurs at both semantic filter and decoder head levels:
Sentiment Analysis: Filter favors sentiment-rich triplets; output head is a 2-way softmax for polarity classification.
Question Answering: Pruning is based on matching question types; decoder is STM as above.
Training employs cross-entropy loss: Ltask1
Ltask2
Evaluation metrics include Top-1 accuracy vs. channel SNR, mean number of transmitted symbols/sentence, FLOPs, and model footprint.
6. Comparative Experimental Results
Experiments are conducted on SST-2 (sentiment) and bAbi (QA, 20 subtasks), with competing baselines: Error_free, DeepJSCC, DeepSC + classifier, and Huffman+RS+16QAM.
6.1 Accuracy and Efficiency:
Sentiment Analysis (5 dB AWGN): TESC outperforms Huffman+RS by 80.5% accuracy gain.
Question Answering (5 dB Rayleigh): TESC achieves +150% over Huffman+RS, +20.6% over DeepSC, +7.5% above DeepJSCC. TESC nearly matches Error_free at SNR ≥ 15 dB.
Visual QA case studies show TESC enabling correct response without explicit text reconstruction, unlike competing schemes.
7. Significance, Limitations, and Outlook
TESC provides a model-agnostic, interpretable, and knowledge-aligned approach to semantic communication, achieving compression and transmission efficiency while preserving task performance. The explicit use of triplet forms yields inherent explainability—filtered semantic units can be directly audited for information content and task relevance, addressing the explainability gap inherent in prior neural semantic communication schemes (Liu et al., 2023).
The tightly integrated pipeline—combining explicit linguistic structure extraction, knowledge-driven filtering, and deep neural coding—confers unique transmission efficiency. Empirical evidence for both sentiment analysis and question answering indicate near upper-bound performance at moderate SNR, substantial symbol count reductions, and competitive computational cost.
A plausible implication is that TESC's explicit explainable representation framework may generalize to more complex multi-modal or reasoning-centric communication tasks, where semantic transparency and efficient rate usage are co-critical. An outstanding area for further investigation is the impact of larger and more varied knowledge bases for filtering, and the system's adaptability to open-domain or dynamic-task scenarios.