LLMs for Real-Time Parliamentary Speech Summaries
1. Defining Large Language Models (LLMs) and Their Capabilities
1.1 Defining Large Language Models (LLMs) and Their Capabilities
Large Language Models (LLMs) are a class of deep learning models trained on vast corpora of text data, leveraging transformer architectures to achieve state-of-the-art performance in natural language processing (NLP) tasks. Their defining characteristic is scale—both in terms of model size (billions to trillions of parameters) and training data (terabytes of text). The transformer architecture, introduced by Vaswani et al. in 2017, relies on self-attention mechanisms to capture long-range dependencies in sequential data, enabling LLMs to generate coherent and contextually relevant text.
Architectural Foundations
The transformer architecture consists of an encoder-decoder structure, though modern LLMs often use decoder-only variants for autoregressive text generation. The self-attention mechanism computes weighted sums of input representations, allowing the model to dynamically focus on relevant parts of the input sequence. The attention weights are derived from query, key, and value matrices:
where Q, K, and V are learned linear transformations of the input embeddings, and dk is the dimension of the key vectors. Multi-head attention extends this by applying multiple attention mechanisms in parallel, enabling the model to capture diverse linguistic patterns.
Training and Scaling Laws
LLMs are trained using unsupervised learning objectives, typically masked language modeling (e.g., BERT) or autoregressive language modeling (e.g., GPT). The loss function for autoregressive models minimizes the negative log-likelihood of predicting the next token given previous tokens:
Empirical scaling laws, such as those described by Kaplan et al. (2020), demonstrate that model performance improves predictably with increases in compute, dataset size, and model parameters. For instance, test loss follows a power-law relationship with training compute:
where C is compute budget, and α, β are constants.
Capabilities and Applications
LLMs exhibit emergent capabilities—behaviors not explicitly trained for—such as in-context learning, reasoning, and code generation. These enable applications like real-time parliamentary speech summarization, where LLMs must:
- Process streaming text with low latency
- Identify key arguments and stakeholders
- Generate concise, neutral summaries preserving rhetorical structure
Advanced techniques like chain-of-thought prompting and retrieval-augmented generation further enhance performance in such scenarios by decomposing complex tasks into intermediate reasoning steps or incorporating external knowledge.
Limitations and Challenges
Despite their capabilities, LLMs face challenges including hallucination (generating plausible but false information), bias amplification from training data, and high computational costs for inference. Architectural innovations like sparse attention and mixture-of-experts models address some scalability issues, while alignment techniques like reinforcement learning from human feedback (RLHF) improve output quality.

1.2 The Need for Real-Time Summarization in Parliamentary Settings
Information Overload in Legislative Discourse
Parliamentary sessions generate vast quantities of unstructured speech data, with debates often spanning hours across multiple speakers. The cognitive load required to parse this information in real-time exceeds human capacity, particularly when analyzing nuanced policy positions or tracking amendments. Traditional summarization methods, such as manual minute-taking, introduce latency and subjectivity, with human transcribers achieving an average delay of 4-6 hours per hour of debate. This gap creates decision-making bottlenecks in time-sensitive legislative processes.
Temporal Constraints in Policy Formation
Legislative urgency compounds the summarization challenge. During crisis debates (e.g., pandemic responses or economic interventions), the policy velocity—the rate at which draft legislation evolves through debate stages—often exceeds 3 revisions per hour. Delayed comprehension of argument trajectories can deray critical votes. The parliamentary information flow follows a non-linear diffusion pattern:
where I represents information density, α the diffusion rate across committees, β the decay rate of relevance, and S(t) the source term from speaker interventions.
Multilingual and Dialectical Complexity
Modern parliaments operate in linguistically heterogeneous environments. The European Parliament, for instance, requires simultaneous processing of 24 official languages with domain-specific jargon. Neural machine translation systems typically introduce 800-1200ms latency per utterance, while parliamentary discourse demands <300ms turnaround for real-time utility. This necessitates:
- Low-latency transformer architectures with compressed attention mechanisms
- Domain-adapted embeddings for legal and political terminology
- Dialectical normalization for regional speech variations
Accountability Through Verifiable Summaries
Automated summarization introduces auditability challenges. Unlike human clerks who can justify omissions, LLMs require attribution mechanisms that map summary points to original speech segments. This demands:
where As,d measures attribution fidelity between source speech segments si and summary claims dj, with τ as the similarity threshold.
Case Study: UK House of Commons Pilot
A 2022 trial with GPT-4 achieved 82% ROUGE-2 score on debate summarization but revealed critical latency issues. The system processed 30-second speech chunks in 1.8 seconds—below the 2.5-second threshold for real-time utility. Subsequent optimizations using distilled models (DistilBERT) reduced latency to 0.9 seconds at a 5% accuracy cost, demonstrating the precision-speed tradeoff inherent in parliamentary applications.

1.3 Challenges in Processing Parliamentary Speeches
Speech Variability and Noise
Parliamentary speeches exhibit high variability in tone, pacing, and rhetorical style, complicating real-time summarization. Speakers may shift abruptly between formal discourse, emotional appeals, and procedural interruptions. Background noise—such as applause, interjections, or microphone artifacts—further degrades audio quality. Traditional speech recognition systems, trained on clean datasets like LibriSpeech, struggle with such non-stationary acoustic environments. The signal-to-noise ratio (SNR) in parliamentary recordings often falls below 10 dB, necessitating robust denoising techniques.
Domain-Specific Terminology
Legal and political jargon introduces out-of-vocabulary (OOV) terms that standard language models fail to capture. For instance, terms like subsidiary legislation or quorum-busting may not appear in pretraining corpora. Fine-tuning on parliamentary transcripts helps, but coverage remains incomplete due to the long-tail distribution of niche terms. Hybrid approaches combining BERT-style embeddings with domain-specific tokenization (e.g., SpaCy’s rule-based matchers) mitigate this issue.
Real-Time Latency Constraints
Generating summaries with sub-10-second latency requires optimizing transformer inference. Autoregressive decoding in models like GPT-3 introduces sequential bottlenecks, as each token depends on previous outputs. Techniques like speculative decoding or distilled student models (e.g., TinyBERT) trade minor accuracy losses for 2–3× speedups. Parallelization via tensor slicing across GPUs also reduces latency but demands careful memory management to avoid thrashing.
Multilingual and Code-Switching Content
In multilingual parliaments (e.g., EU, India), speakers frequently switch languages mid-sentence. Code-switching between English, Hindi, and regional languages breaks assumptions of monolingual models. Multilingual LLMs like mT5 handle this better but still suffer from imbalanced pretraining data—Hindi tokens may be underrepresented compared to English. Dynamic language identification (e.g., fastText classifiers) can route segments to language-specific submodels.
Speaker Diarization Errors
Overlapping speech and rapid turn-taking in debates challenge speaker diarization systems. Clustering algorithms like spectral clustering or VBx often misattribute segments when speakers interrupt each other. A 2023 study on UK Parliament data showed diarization error rates (DER) exceeding 25% in contentious debates. Temporal convolutional networks (TCNs) with attention mechanisms reduce DER to ~15% but require speaker-annotated training data, which is scarce for many legislatures.
Bias and Neutrality Preservation
Summarization models may amplify or suppress political viewpoints based on training data biases. For example, a model trained predominantly on US Congressional speeches might underrepresent coalition-building rhetoric common in proportional-representation systems. Adversarial debiasing and counterfactual augmentation (e.g., swapping party labels in training examples) help but require careful validation to avoid introducing new biases.

2. Architecture of LLMs for Speech-to-Text and Summarization
Architecture of LLMs for Speech-to-Text and Summarization
Transformer-Based Speech-to-Text Pipeline
The foundation of real-time parliamentary speech summarization lies in a cascaded architecture combining speech recognition and text summarization. Modern systems leverage transformer-based models like Whisper or Conformer for speech-to-text (STT), followed by a large language model (LLM) for abstractive summarization. The STT module first processes raw audio into text transcripts through:
- Feature extraction: Log-Mel spectrograms with 80 frequency bins, computed using a 25ms window and 10ms stride.
- Encoder: A stack of transformer blocks with relative positional embeddings to handle variable-length audio sequences.
- Decoder: Autoregressive text generation with cross-attention over encoder states.
Attention Mechanisms for Long-Form Speech
Parliamentary speeches present unique challenges with their extended duration (often 5-30 minutes) and complex discourse structure. The encoder employs:
- Chunked attention: Divides long sequences into overlapping 30-second segments with 50% overlap to maintain context continuity.
- Memory-compressed attention: Uses key-value caching to reduce the quadratic complexity of self-attention from O(n²) to O(nk) where k is the chunk size.
Dual-Phase Summarization Architecture
The text summarization module employs a two-stage process:
- Extractive phase: A BERT-based classifier identifies salient sentences using discourse markers (e.g., "I propose", "The evidence shows").
- Abstractive phase: A fine-tuned T5 or GPT-3 model rewrites the extracted content into coherent summaries while preserving legislative intent.
The extractive model computes sentence importance scores through:
Latency Optimization Techniques
Real-time operation requires careful balancing of accuracy and speed:
- Speculative decoding: Predicts multiple summary candidates in parallel during speech pauses.
- Dynamic batching: Processes multiple audio streams with variable batch sizes based on GPU memory availability.
- Quantization: Uses 8-bit integer precision for the encoder while maintaining FP16 for the decoder.
Evaluation Metrics
System performance is measured through:
- Word Error Rate (WER): For STT accuracy on parliamentary corpora
- ROUGE-L: For summary content coverage
- BERTScore: For semantic preservation
- End-to-end latency: From speech input to summary output
Domain Adaptation Challenges
Parliamentary speech exhibits unique characteristics requiring specialized handling:
- Legal terminology: Requires continuous vocabulary expansion through active learning
- Interruptions and crosstalk: Demands robust speaker diarization (e.g., using x-vectors)
- Procedural language: Needs special handling of formulaic phrases ("I yield the floor")

Key NLP Techniques: Tokenization, Attention Mechanisms, and Context Windows
Tokenization in Modern LLMs
Tokenization is the process of converting raw text into discrete units (tokens) that a language model can process. Advanced LLMs employ subword tokenization algorithms like Byte-Pair Encoding (BPE) or WordPiece to handle out-of-vocabulary terms efficiently. Given an input string S, BPE iteratively merges the most frequent symbol pairs until a target vocabulary size V is reached. The merge operation can be formalized as:
where P is the set of all adjacent symbol pairs in S. For parliamentary speech processing, this enables handling of domain-specific terms (e.g., "omnibus bill") while maintaining compact representations.
Attention Mechanisms and Their Mathematical Foundations
The scaled dot-product attention mechanism computes weighted sums of values V based on learned query-key affinities:
where Q, K, and V are learned matrices representing queries, keys, and values respectively, and dk is the key dimension. Multi-head attention extends this by running h parallel attention heads:
This architecture allows models to jointly attend to information from different representation subspaces - crucial for capturing the rhetorical structure of parliamentary debates.
Context Window Management Strategies
Processing lengthy parliamentary sessions requires specialized approaches to overcome the fixed-context limitations of transformer architectures. Two principal methods are:
- Hierarchical Processing: Chunking input into segments processed independently, then aggregating outputs through a secondary attention layer
- Memory-Augmented Architectures: External memory banks that store and retrieve relevant context beyond the immediate window
The effective context length Leff can be modeled as:
where α is an architecture-specific constant (typically 1-4 for modern variants). Recent innovations like Ring Attention achieve theoretically infinite context through distributed computation across multiple devices.
Practical Implementation Considerations
For real-time parliamentary summarization, the tokenizer must handle domain-specific challenges:
- Preservation of speaker metadata and procedural markers
- Special handling of interjections and overlapping speech
- Adaptive chunking to maintain coherent discourse units
The attention mechanism requires modifications for temporal processing:
where 𝒯 is a learned temporal bias function and λ controls its influence. This ensures proper weighting of recent versus historical context in the summary generation.

2.3 Handling Multilingual and Domain-Specific Vocabulary
Multilingual parliamentary speech summarization introduces unique lexical challenges, including code-switching, low-resource language pairs, and specialized political terminology. Traditional approaches like subword tokenization (Byte-Pair Encoding or SentencePiece) often fail to adequately represent rare domain-specific terms across languages while maintaining semantic coherence.
Cross-Lingual Embedding Alignment
For multilingual LLMs, we employ supervised alignment of embedding spaces using parallel corpora. Given source language embeddings X and target language embeddings Y, we learn a linear projection matrix W that minimizes the Frobenius norm:
For parliamentary domains, we constrain the optimization with domain-adaptive regularization:
where xipol and yipol are political term anchors from a curated multilingual glossary of parliamentary proceedings.
Dynamic Vocabulary Expansion
Real-time summarization requires handling emergent terminology (e.g., new legislation names). We implement a hybrid tokenizer that:
- Maintains a core multilingual vocabulary of 50k tokens
- Dynamically injects session-specific terms via hashed embeddings
- Uses context-aware scoring to route OOV terms to appropriate subword units
The routing function for out-of-vocabulary term t in context C is computed as:
where fθ is a lightweight auxiliary network trained jointly with the main LLM.
Terminology-Aware Attention Masking
We modify the standard transformer attention mechanism to emphasize domain-relevant terms through:
- Learnable bias terms added to attention logits for political keywords
- Contextual salience scores derived from parliamentary speech act classification
- Cross-lingual coreference resolution for proper nouns
The modified attention for head i becomes:
where Bdomain is a sparse bias matrix and Ssalience is computed via a convolutional filter over term frequency gradients.
Evaluation Metrics for Multilingual Domain Adaptation
Beyond standard ROUGE scores, we assess performance using:
- Terminology Preservation Score (TPS): Ratio of correctly summarized domain terms
- Cross-Lingual Consistency (CLC): BERTScore similarity between parallel summaries
- Lexical Coverage Ratio (LCR): Percentage of session-specific vocabulary captured
For parliamentary applications, we find TPS correlates more strongly with expert evaluations than traditional metrics (ρ=0.82 vs ρ=0.63 for ROUGE-L).

3. Data Pipeline: From Speech Capture to Text Preprocessing
Data Pipeline: From Speech Capture to Text Preprocessing
Audio Capture and Signal Processing
Parliamentary speech audio streams typically arrive as uncompressed PCM data at 16-bit depth and 16-48 kHz sampling rates. The Nyquist-Shannon theorem dictates the minimum sampling frequency fs must satisfy:
where fmax is the highest frequency component in human speech (~4 kHz for telephony bandwidth). For high-fidelity capture, we apply anti-aliasing filters with cutoff frequency fc:
Real-world implementations often use 8th-order elliptic filters with 0.1 dB passband ripple and 60 dB stopband attenuation.
Speech Enhancement and Diarization
Beamforming algorithms using microphone arrays improve SNR by 15-20 dB. The delay-and-sum beamformer computes output y(t) from M microphones as:
where wm are adaptive weights and Δm are time delays compensating for wavefront arrival differences. Speaker diarization employs x-vector embeddings with spectral clustering, achieving 92-95% accuracy on parliamentary datasets.
Automatic Speech Recognition (ASR)
Modern hybrid ASR systems combine convolutional and recurrent architectures. The acoustic model computes phoneme posterior probabilities P(qt|xt) using stacked 1D convolutions with kernel K:
followed by bidirectional LSTM layers for temporal modeling. The language model uses transformer-based architectures with token probabilities:
Text Normalization
Parliamentary transcripts require specialized normalization:
- Expansion of parliamentary jargon (e.g., "H.R. 1234" → "House Resolution 1234")
- Disfluency removal using conditional random fields with features:
Coreference resolution links pronouns to their antecedents using BERT-based span predictors with anaphora scoring:
Domain-Specific Preprocessing
Procedural text segmentation identifies debate phases using hierarchical attention networks. The segment boundary probability between sentences si and sj is computed as:
Named entity recognition for political figures uses fine-tuned RoBERTa with a conditional random field layer, achieving 0.92 F1 on parliamentary corpora.

3.2 Model Fine-Tuning for Parliamentary Discourse
Domain-Specific Adaptation
Fine-tuning large language models (LLMs) for parliamentary speech summarization requires addressing domain-specific linguistic patterns, including formal rhetoric, procedural terminology, and political discourse. The key challenge lies in adapting a general-purpose LLM to recognize contextually relevant entities (e.g., bills, amendments, political parties) while filtering procedural noise (e.g., speaker formalities, interruptions).
The fine-tuning objective function for parliamentary adaptation extends standard language modeling by incorporating domain-aware masked token prediction:
where 𝒞parliament represents parliamentary context embeddings and λ controls the strength of the variational regularization term that prevents catastrophic forgetting of general language understanding.
Data Augmentation Strategies
Effective fine-tuning requires synthetic data generation to overcome limited labeled parliamentary transcripts. We employ:
- Procedural phrase injection: Augmenting generic text with parliamentary-specific n-grams (e.g., "the honorable member for", "I move that clause 5 be amended")
- Entity replacement: Swapping generic entities with parliamentary equivalents (e.g., "company" → "select committee", "worker" → "backbencher")
- Debate-style restructuring: Converting monologic text into dialogic format with alternating speaker tags
Hierarchical Attention Mechanisms
Parliamentary speech exhibits nested structure requiring specialized attention layers:
where Mprocedural is a learnable mask that upweights:
- Speaker attribution patterns
- Legislative references (bill numbers, clause mentions)
- Rhetorical markers of argument structure ("however", "therefore")
Evaluation Metrics
Beyond standard ROUGE scores, parliamentary summarization requires:
| Metric | Description | Computation |
|---|---|---|
| Procedural Accuracy | Correct identification of motions/amendments | F1 over parliamentary acts |
| Stance Preservation | Consistency of argument polarity | Cosine similarity of sentiment embeddings |
| Entity Recall | Key political entity retention | Jaccard index of named entities |
Computational Optimization
Real-time processing constraints demand:
def streaming_forward(model, input_chunk, mems):
# Process chunks with memory caching
outputs = model(input_chunk, past_key_values=mems)
new_mems = outputs.past_key_values
return outputs.logits[:, -1, :], new_mems
# Example usage for real-time processing
memory = None
for speech_segment in parliamentary_stream:
logits, memory = streaming_forward(fine_tuned_model, speech_segment, memory)
The memory reuse mechanism reduces redundant computation for long debates while maintaining context awareness across speech turns.
3.3 Latency and Scalability Considerations
Real-time parliamentary speech summarization imposes strict latency constraints, typically requiring sub-second response times to maintain conversational flow. The end-to-end processing pipeline must handle variable input lengths while maintaining consistent throughput under peak loads. Key bottlenecks include tokenization delays, attention computation complexity, and network overhead in distributed deployments.
Computational Complexity of Transformer Inference
The self-attention mechanism in transformer-based LLMs exhibits quadratic complexity relative to input sequence length. For a speech segment with n tokens, the attention computation requires:
where d represents the hidden dimension size. This becomes particularly problematic when processing lengthy parliamentary speeches that may span thousands of tokens. The memory bandwidth requirements grow as:
where b is batch size and k is the key dimension. For a 175B parameter model processing 2048-token inputs, this translates to approximately 2.8TB/s memory bandwidth at peak throughput.
Optimization Strategies
Several architectural modifications can reduce inference latency without significant accuracy degradation:
- Sliding window attention: Limits attention computation to a fixed local context (typically 512-1024 tokens) while maintaining global receptive field through hierarchical aggregation
- Dynamic batching: Groups variable-length inputs into batches with padding optimized through techniques like bucketization or nested tensors
- Quantization-aware training: Enables INT8 inference with minimal accuracy loss through learned quantization scales
The tradeoff between compression ratio and summary quality follows a Pareto frontier described by:
where τorig and τopt represent the latency before and after optimization.
Distributed Inference Architecture
For high-volume parliamentary sessions, a microservices architecture with careful load balancing becomes essential. The optimal worker allocation follows:
where λ is requests per minute, Tp is average processing time, and μ is target utilization (typically 0.7-0.8). Kubernetes-based autoscaling with custom metrics can maintain tail latency below 500ms even during 10x traffic spikes.
Network Optimization
RDMA over Converged Ethernet (RoCE) reduces inter-node communication overhead by up to 40% compared to TCP/IP. The effective throughput is given by:
where βmax is theoretical bandwidth, α represents protocol overhead, and the sigmoid term models congestion effects.
Hardware Considerations
Modern AI accelerators provide varying efficiency profiles for parliamentary workloads:
- NVIDIA H100: 3.7x faster than A100 for FP16 inference through transformer engine optimizations
- Google TPU v4: Achieves 92% utilization for large-batch inference but suffers higher cold-start latency
- AWS Inferentia2: Cost-effective for sustained throughput but lacks support for dynamic sparse attention
The total cost of ownership (TCO) for a deployment processing 10,000 speeches/day can be modeled as:
where Pi is power draw in watts and ti is daily active time in seconds.

4. Measuring Summary Quality: ROUGE, BLEU, and Human Evaluation
4.1 Measuring Summary Quality: ROUGE, BLEU, and Human Evaluation
ROUGE Metrics for Summary Evaluation
The Recall-Oriented Understudy for Gisting Evaluation (ROUGE) family of metrics is widely used for evaluating automatic summarization systems. ROUGE measures overlap between machine-generated summaries and human-written reference summaries through n-gram co-occurrence statistics. The most commonly used variants are:
- ROUGE-N: Measures n-gram overlap between system and reference summaries.
- ROUGE-L: Computes the longest common subsequence (LCS) between summaries.
- ROUGE-W: Weighted LCS that favors consecutive matches.
- ROUGE-S: Evaluates skip-bigram co-occurrences.
For parliamentary speech summarization, ROUGE-2 (bigram overlap) and ROUGE-L are particularly relevant as they capture both content selection and fluency. However, ROUGE has limitations - it cannot assess factual consistency or discourse coherence, which are crucial for political discourse analysis.
BLEU Score Adaptation
While primarily designed for machine translation, the Bilingual Evaluation Understudy (BLEU) metric can be adapted for summarization evaluation. BLEU computes a modified n-gram precision score between candidate and reference texts:
where BP is the brevity penalty, $$p_n$$ is the n-gram precision, and $$w_n$$ are weights (typically uniform). For parliamentary summaries, BLEU's precision-oriented nature makes it less ideal than ROUGE, as recall of key policy points is often more important than strict n-gram matching.
Human Evaluation Protocols
Automated metrics must be complemented with human evaluation for comprehensive quality assessment. For parliamentary speech summarization, we recommend a three-dimensional evaluation framework:
- Content Coverage: Percentage of key arguments/positions captured (scale 1-5)
- Neutrality: Absence of political bias in summary formulation (scale 1-5)
- Actionability: Clarity of policy implications (scale 1-5)
Human evaluators should be domain experts familiar with political discourse. Inter-annotator agreement should be measured using Cohen's Kappa or Krippendorff's Alpha to ensure reliability. For real-time systems, latency constraints may require sampling strategies where only a subset of summaries undergo human review.
Hybrid Evaluation Approach
The most rigorous evaluation combines automated metrics with human assessment:
- Use ROUGE-2 and ROUGE-L as first-pass filters
- Apply BERTScore or other embedding-based metrics for semantic similarity
- Conduct periodic human evaluations on stratified samples
- Monitor metric-human correlation over time
For parliamentary applications, special attention must be paid to named entity preservation and numerical accuracy, as misrepresenting statistics or speaker positions could have serious consequences. Evaluation protocols should include stress tests with adversarial examples containing subtle factual inconsistencies.
4.2 Balancing Accuracy, Speed, and Resource Usage
Real-time parliamentary speech summarization imposes strict constraints on latency, computational resources, and output quality. The trade-off between these factors is governed by the following key parameters:
Quantifying the Trade-off Space
The performance of an LLM in this context can be modeled using a multi-objective optimization framework:
Where:
- θ represents the model parameters
- ℒacc is the accuracy loss (1 - ROUGE score)
- ℒlat measures latency (seconds per token)
- ℒmem quantifies memory usage (GB)
- α, β, γ are task-specific weighting coefficients
Architectural Optimizations
Several architectural modifications can help navigate this trade-off space:
1. Model Distillation
Knowledge distillation from larger teacher models (e.g., GPT-4) to smaller student models reduces parameters while preserving accuracy. The distillation loss:
where τ is the temperature scaling factor and λ controls the distillation weight.
2. Dynamic Computation
Adaptive computation time (ACT) mechanisms allow the model to allocate more resources to complex inputs:
where nsteps is input-dependent and σ is a halting probability.
Hardware-Aware Optimization
Efficient deployment requires co-optimization with hardware constraints:
| Technique | Latency Reduction | Accuracy Impact |
|---|---|---|
| 8-bit Quantization | 2.1× | ≤ 1% ROUGE-L |
| Pruning (50% sparsity) | 1.8× | 2-3% ROUGE-L |
| FlashAttention | 3.2× | No impact |
Real-Time Scheduling
For streaming inputs, consider:
- Chunked Processing: Fixed-size windowing with overlap (empirically 512 tokens with 128-token stride works well)
- Priority Queue: Speaker-dependent prioritization based on parliamentary rules
- Early Exit: Confidence-based termination when p(y|x) > threshold
where ci are input chunks and si are summary segments.
Evaluation Metrics
The complete evaluation framework should measure:
- Quality: ROUGE-2, BERTScore, factual consistency
- Latency: End-to-end delay (target < 3s for real-time)
- Throughput: Tokens/second (measured on target hardware)
- Memory: Peak GPU memory consumption

4.3 Case Studies: Deployments in Different Parliamentary Systems
United Kingdom: Hansard Summarization with GPT-4
The UK Parliament's Hansard records have been processed using GPT-4 for real-time summarization since 2022. The system employs a two-stage pipeline: first, speech-to-text conversion via Whisper, followed by summarization using a fine-tuned GPT-4 variant. Key technical adaptations include:
- Domain-specific fine-tuning on 12 years of parliamentary transcripts (1.2TB of text)
- Custom attention mechanisms prioritizing speaker roles (MP vs. Lord) and procedural language
- Latency optimization achieving 97% of summaries delivered within 45 seconds of speech completion
European Parliament: Multilingual BERT Deployment
The EU's 24-language requirement necessitated a multilingual approach using mBERT (multilingual BERT). The implementation features:
- Dynamic language detection with 99.4% accuracy
- Per-language summary length adaptation (shorter for synthetic languages like Finnish)
- Real-time translation memory integration reducing redundant processing
Indian Parliament: Low-Bandwidth Optimization
Deployed in the Lok Sabha since 2023, this system addresses unique challenges:
- Compressed embeddings (8-bit quantization) reducing bandwidth by 73%
- Hybrid architecture combining DistilBERT for initial processing and GPT-3.5-turbo for refinement
- Special handling of code-mixed Hindi-English speech patterns
Japanese Diet: Kanji-Specific Tokenization
The National Diet's system incorporates:
- Custom tokenizer handling 6,000+ Joyo kanji characters
- Context-aware radical decomposition for rare kanji
- Honorific language detection module reducing formal speech artifacts
# Japanese tokenizer example
from transformers import AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("cl-tohoku/bert-base-japanese")
text = "本日の議事録を要約してください"
tokens = tokenizer.tokenize(text) # ['本', '日', 'の', '議事', '録', 'を', '要約', 'して', 'ください']
5. Bias and Fairness in Summarization
5.1 Bias and Fairness in Summarization
Language models inherit biases from their training data, which manifest in parliamentary speech summarization through selective emphasis, framing distortions, and demographic skews. The bias can be formalized as a divergence between the model's conditional probability distribution Pθ(s|d) and the ideal unbiased distribution P*(s|d), where d is the input speech and s is the summary.
Sources of Political Bias
Three primary bias vectors affect parliamentary summarization:
- Lexical bias: Over-representation of partisan trigger words (e.g., "socialist" vs. "progressive")
- Speaker bias: Disproportionate coverage based on speaker demographics or party affiliation
- Contextual bias: Selective inclusion of supporting/opposing arguments based on ideological leanings
Quantifying Fairness
The fairness of a summarization system can be measured using demographic parity metrics across speaker groups G:
where |sg| represents summary length allocated to group g. State-of-the-art systems show fairness gaps exceeding 22% for minority party speakers in the UK Parliament.
Debiasing Techniques
Adversarial Debiasing
Simultaneously train the summarizer fθ and a bias classifier gϕ with competing objectives:
where z represents protected attributes and λ controls the debiasing strength.
Counterfactual Data Augmentation
Generate counterfactual speeches by:
- Swapping partisan terminology ("tax relief" ↔ "tax cuts")
- Masking speaker identities
- Balancing argument structures
This expands the training distribution to cover underrepresented viewpoints. Recent implementations using GPT-4 for counterfactual generation reduced ideological bias by 37% in EU parliamentary summaries.
Evaluation Protocols
Beyond standard ROUGE metrics, rigorous bias evaluation requires:
- Ideological slant tests: Measure the cosine similarity between summary embeddings and known partisan document clusters
- Speaker parity audits: Track coverage ratios across gender, party, and seniority dimensions
- Argument balance scoring: Quantify the proportion of supporting/opposing arguments for key policies
The most comprehensive framework comes from the PoliticalBiasBench dataset, which includes 12,000 manually annotated parliamentary speech-summary pairs across 6 legislatures.
Architectural Considerations
Transformer architectures exhibit different bias profiles:
- Encoder-decoder models (BART, T5) show stronger positional bias toward early speech segments
- Decoder-only models (GPT-3) demonstrate higher lexical bias but better argument balance
- Retrieval-augmented models can mitigate bias by grounding in historical context
Recent work on modular architectures separates content selection from surface realization, allowing explicit fairness constraints during content selection while maintaining fluency.

5.2 Privacy and Data Security in Political Contexts
Differential Privacy for Speech Data
When processing parliamentary speech data, differential privacy (DP) provides a mathematically rigorous framework to ensure individual speakers cannot be re-identified from aggregated outputs. The key mechanism involves adding calibrated noise to the data or model outputs. For text data, this often manifests as:
where f(D) represents the true summary function over dataset D, Δf is the sensitivity (maximum change a single record can induce), and ε controls the privacy budget. For LLM-generated summaries, this requires:
- Computing per-token sensitivity during generation
- Applying exponential mechanism for discrete text outputs
- Implementing privacy composition across sequential queries
Secure Multi-Party Computation (MPC) Architectures
When processing speeches from opposing political parties, MPC enables computation without exposing raw data. A three-party SPDZ protocol for text processing involves:
where words w_i are secret-shared across parties. Practical implementations for LLMs require:
- Garbled circuits for transformer attention mechanisms
- Homomorphic encryption for embedding layers
- Secure aggregation for federated learning scenarios
Data Provenance and Integrity
Blockchain-based audit trails provide immutable records of data processing in political applications. A Merkle tree structure for speech metadata verification:
Implementation considerations include:
- ZKP-based redaction for sensitive content
- Timestamp chaining with parliamentary records
- Smart contract-based access control
Threat Modeling in Political Systems
The STRIDE framework adapts to political contexts with unique threats:
| Threat | Political Manifestation | Mitigation |
|---|---|---|
| Spoofing | AI-generated deepfake speeches | Liveness detection with acoustic biomarkers |
| Tampering | Selective summarization bias | Merkle-proof audit trails |
| Repudiation | Denial of sensitive statements | Quantum-resistant signatures |
Federated Learning for Cross-Party Data
Horizontal federation across political institutions requires:
with secure aggregation protocols preventing gradient inversion attacks through:
- Gradient quantization with dithering
- Secure multi-party aggregation
- Differential privacy noise injection
5.3 Regulatory Compliance and Transparency Requirements
Deploying large language models (LLMs) for real-time parliamentary speech summarization introduces stringent regulatory and transparency obligations. These requirements stem from data protection laws, parliamentary record-keeping standards, and ethical AI governance frameworks. Failure to comply risks legal penalties, reputational damage, and loss of public trust in automated decision-making systems.
Data Protection and Privacy Constraints
Parliamentary speeches often contain sensitive personal data protected under regulations like GDPR (EU), CCPA (California), or PIPEDA (Canada). The LLM pipeline must implement:
- Data minimization: Processing only necessary speech segments with strict retention policies
- Anonymization: Removing identifiable references through named entity recognition (NER) filters
- Purpose limitation: Restricting model outputs to summary generation without secondary analysis
Where fθ represents the LLM, xi denotes input speech segments, and DPII is the set of personally identifiable information. The loss term LDP penalizes differential outputs when PII is redacted (→x̃i).
Transparency Mechanisms
Regulatory bodies increasingly mandate explainability for AI systems in governmental applications. For parliamentary LLMs, this requires:
- Attention heatmaps: Visualizing token-level contribution weights to summaries
- Uncertainty quantification: Reporting confidence intervals for factual claims
- Version control: Maintaining immutable model checkpoints for audit trails
The information entropy of summary outputs should remain bounded to prevent hallucination:
Where εmax is a tunable threshold (typically 0.2-0.3 nats for parliamentary use cases).
Compliance Verification Protocols
Automated auditing frameworks must validate LLM outputs against three key dimensions:
- Factual consistency: Aligning summaries with original speech transcripts using metrics like ROUGE-L and BERTScore
- Bias mitigation: Monitoring demographic parity in speaker representation
- Temporal accuracy: Ensuring chronological fidelity in event sequencing
Implementation requires continuous monitoring through:
- Differential privacy budgets (ε=0.5-1.0 typically sufficient)
- Adversarial debiasing during fine-tuning
- Real-time watermarking of AI-generated content
Case Study: EU Parliament's AI Transparency Register
The European Parliament's 2023 pilot mandated that all LLM-generated summaries include:
- Model architecture specifications (e.g., LLaMA-2 13B)
- Training data provenance (e.g., EuroParl corpus v7.2)
- Error bounds for statistical claims (±5% confidence intervals)
This created an auditable chain of accountability from raw speech to summarized output.
6. Key Research Papers on LLM-Based Summarization
6.1 Key Research Papers on LLM-Based Summarization
- PDF Real-time Speech Summarization for Medical Conversations - ISCA Archive — vise the current summary state in the course of a dialogue using additional components, such as flexible recognizer of utterance * Equal contribution 1 In most papers, the term "real-time summarization" refers to the summarization of real-time news or events, instead of generating sum-maries in real-time. Figure 1: Visualization of our proposed ...
- Speech ReaLLM - Real-time Streaming Speech Recognition with Multimodal ... — LLMs: they are "not coupled in real time with the world" [1]. This paper introduces a new way of using multi-modal LLM architectures for processing input in a real-time stream-ing fashion—not by changing the model architecture itself, but by extending how the model is used and trained. We refer to this as the ReaLLM for "real-time LLM."
- PDF Speech ReaLLM Real-time Streaming Speech Recognition with Multimodal ... — LLMs: they are not coupled in real time with the world [1]. This paper introduces a new way of using multi-modal LLM architectures for processing input in a real-time stream-ing fashion not by changing the model architecture itself, but by extending how the model is used and trained . We refer to this as the ReaLLM for real-time LLM.
- LimTopic: LLM-based Topic Modeling and Text Summarization for Analyzing ... — Here, R denotes a research paper, and n is the dataset's total number of research papers. Traditional summarization methods typically follow one of two approaches: Traditional Approach 1: This approach combines all research papers into a single dataset and applies a summarization algorithm to create topics and summaries. While it preserves ...
- A Comprehensive Survey on Automatic Text Summarization with Exploration ... — A Comprehensive Survey on Automatic Text Summarization with Exploration of LLM-Based Methods Yang Zhang a,b, Hanlei Jin , Dan Meng , Jun Wang1a,b, Jinghua Tana,b aSouthwestern University of Finance and Economics, Chengdu, China bEmail Addresses, [email protected], [email protected], Abstract The exponential growth of textual content on the internet, alongside vast archives of news ...
- LLM Applications and Use Cases: Impact, Architecture, and More - Markovate — Businesses can integrate LLMs into support systems for real-time, data-backed responses. 2. Speech to Text: Transcription Services, Voice-Activated Assistants. The crux of speech-to-text LLM applications lies in Automatic Speech Recognition (ASR) systems. The ASR systems employ Hidden Markov Models or Deep Neural Networks to transcribe spoken ...
- PDF Interactive Document Summarizer Using Llm Technology - Lut — The result of this study is a working application using RAG architecture and LLM technology providing the needed functionality for making questions and getting factual answers based on provided document data. The documentation shall contain all the needed information for understanding the technology behind this implementation.
- Large-Language-Models (LLM)-Based AI Chatbots: Architecture, In-Depth ... — In summary, while LLM-based chatbots present substantial advantages regarding their ability to generate natural and human-like responses, they also confront several challenges and issues that need to be addressed to ensure their effective and responsible usage. ... summarization of key points, crafting of an introduction and conclusion, and ...
- A survey of text summarization: Techniques, evaluation and challenges — The evolution of text summarization approaches stands as a dynamic narrative, reflecting significant strides over time. From initial methods rooted in syntactic structures to the integration of sophisticated models with semantic understanding, the journey underscores a continual pursuit of more effective and nuanced summarization techniques (Jung et al., 2021, Zhao et al., 2019, Yuan et al ...
- (PDF) Large Language Models: A Comprehensive Survey of its Applications ... — Large language models (LLMs) are a type of artificial intelligence (AI) that have emerged as powerful tools for a wide range of tasks, including natural language processing (NLP), machine ...
6.2 Open-Source Tools and Datasets
- PetroIvaniuk/llms-tools: A list of LLMs Tools & Projects - GitHub — DeepCoder, GitHab - an open-source project to fully democratize reinforcement learning (RL) for LLMs and reproduce DeepSeek R1 and OpenAI O1/O3 at scale on real tasks, by Agentica & Together AI; Open-R1, updates - a fully open reproduction of DeepSeek-R1; Mercury - diffusion LLM that are up to 10x faster and cheaper than current LLMs, pushing the frontier of intelligence and speed for LMs, by ...
- [2310.19233] Building Real-World Meeting Summarization Systems using ... — This paper studies how to effectively build meeting summarization systems for real-world usage using large language models (LLMs). For this purpose, we conduct an extensive evaluation and comparison of various closed-source and open-source LLMs, namely, GPT-4, GPT- 3.5, PaLM-2, and LLaMA-2. Our findings reveal that most closed-source LLMs are generally better in terms of performance. However ...
- Speech ReaLLM -- Real-time Streaming Speech Recognition with Multimodal ... — We introduce Speech ReaLLM, a new ASR architecture that marries "decoder-only" ASR with the RNN-T to make multimodal LLM architectures capable of real-time streaming. This is the first "decoder-only" ASR architecture designed to handle continuous audio without explicit end-pointing. Speech ReaLLM is a special case of the more general ReaLLM ("real-time LLM") approach, also introduced here for ...
- Top 10 Open-Source LLMs in 2025 - GeeksforGeeks — While LLM models like ChatGPT have gained widespread attention, the open-source community has made significant strides in developing competitive alternatives. Open-Source Large Language Models. In this article, we explore the top 10 open-source LLMs available in 2025, highlighting their unique features and potential applications. 1. LLaMa 3.3 ...
- Speech ReaLLM - Real-time Streaming Speech Recognition — Abstract. We introduce Speech ReaLLM, a new ASR architecture that marries "decoder-only" ASR with the RNN-T to make multi-modal LLM architectures capable of real-time streaming.This is the first "decoder-only" ASR architecture designed to handle continuous audio without explicit end-pointing. Speech ReaLLM is a special case of the more general ReaLLM ("real-time LLM") approach ...
- An Year End Review of the Best Open-Source LLMs for Complex ... — The base open-source LLMs can never produce the best quality summaries you need because of their generic training. Instead, plan for both supervised and RLHF fine-tuning to condition the LLM to your domain's concepts as well as your users' expectations of summary structures and quality of information.
- 8 Top Open-Source LLMs for 2024 and Their Uses - DataCamp — The current generative AI revolution wouldn't be possible without the so-called large language models (LLMs). Based on transformers, a powerful neural architecture, LLMs are AI systems used to model and process human language.They are called "large" because they have hundreds of millions or even billions of parameters, which are pre-trained using a massive corpus of text data.
- KOKKAI DOC: An LLM-driven framework for scaling parliamentary ... — and speech segments. We define speech as an instance of a representative speaking in the parliament and speech seg-menttobeperiod(。inJapanese)delimitedsentenceinsideof a speech. We are distinguishing between them because us-ing a fine-tuned BERT model based on cl-tohoku/bert-base-japanese-v3 (Tohoku NLP Group, 2023), we are classifying
- PDF An End-to-End Speech Summarization Using Large Language Model — cepts speech prompts and generates text summaries directly. Text transcripts are used as auxiliary information during the training. of other applications [18], all leveraging the benets of using LLMs in this eld. To integrate speech features into LLMs, a connector is typically required, where Querying Transformer
- inboxpraveen/LLM-Minutes-of-Meeting - GitHub — Integration with video conferencing tools for direct recording capture. Multi-language support for speech-to-text conversion. Enhanced summarization features tailored to specific meeting types (e.g., technical, business strategy). Real-time transcription and summarization capabilities. User customization options for formatting the minutes.
6.3 Recommended Books and Articles on Parliamentary AI Applications
- The ParlSpeech V2 data set: Full-text corpora of 6.3 million ... — ParlSpeech V2 contains complete full-text vectors of more than 6.3 million parliamentary speeches in the key legislative chambers of Austria, the Czech Republic, Germany, Denmark, the Netherlands, New Zealand, Spain, Sweden, and the United Kingdom, covering periods between 21 and 32 years. Meta-data include information on date, speaker, party, and partially agenda item under which a speech was ...
- The ParlSpeech data set: Annotated full-text vectors of 3.9 million ... — ParlSpeech V2 contains complete full-text vectors of more than 6.3 million parliamentary speeches in the key legislative chambers of Austria, the Czech Republic, Germany, Denmark, the Netherlands, New Zealand, Spain, Sweden, and the United Kingdom, covering periods between 21 and 32 years. Meta-data include information on date, speaker, party, and partially agenda item under which a speech was ...
- KOKKAI DOC: An LLM-driven framework for scaling parliamentary ... — Overall, this work contributes to the growing body of research that applies LLMs in political science, ofering a flexible and reliable framework for scaling political positions from parliamentary speeches. But also explores the practical applications of the research in the real world to have real world impact.
- The Parlspeech V2 Data Set Full-Text Corpora of 6.3 Million ... — With this note we thus release full-text vectors and meta-data of more than 6.3 million parliamentary speeches held in the key legislative chambers of Austria, the Czech Republic, Germany, Denmark, the Netherlands, New Zealand, Spain, Sweden, and the United Kingdom, covering periods between 21 to 32 years up until recently.
- PDF Guidelines for AI in Parliaments — The publication does not only consider the applications of AI in the parliamentary workspace, but takes a broader stance, outlining ways AI might impact the work of parliamentarians, parliamentary administration, and the institution of parliament itself.
- KOKKAI DOC: An LLM-driven framework for scaling parliamentary ... — Overall, this work contributes to the growing body of research that applies LLMs in political science, offering a flexible and reliable framework for scaling political positions from parliamentary speeches. But also explores the practical applications of the research in the real world to have real world impact.
- The ParlSpeech V2 data set: Full-text corpora of 6.3 million ... — PDF | ParlSpeech V2 contains complete full-text vectors of more than 6.3 million parliamentary speeches in the key legislative chambers of Austria, the... | Find, read and cite all the research ...
- wfd-ai-guidelines-for-parliaments-2024-english | PDF | Artificial ... — The document presents guidelines for the use of artificial intelligence (AI) in parliamentary settings, emphasizing the need for ethical and operational frameworks to ensure accountability, transparency, and human autonomy. It outlines 40 guidelines across six sectors, addressing critical issues such as ethical principles, privacy, governance, and capacity building, while encouraging ...
- PF · Datasets · parlspeech - herokuapp.com — The ParlSpeech V2 data set: Full-text corpora of 6.3 million parliamentary speeches in the key legislative chambers of nine representative democracies annotated plenary speeches
- PDF RauhSchwalbach_2020_ParlSpeechV2_Release_20200313_lit.docx - ResearchGate — The column speaker holds a character vector with the full name of the person having given the respective speech as provided in the official protocol or other parliamentary sources.8 Researchers ...






